/* ===== OVERLAY ===== */
.wheel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1031;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.wheel-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== WHEEL MODAL ===== */
.wheel-modal {
    background: #141a2b;
    border-radius: 28px;
    padding: 35px 40px 40px;
    max-width: 580px;
    width: 95%;
    text-align: center;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wheel-modal h2 {
    font-size: 28px;
    margin-bottom: 4px;
    background: #ffaa00;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /*background-clip: text;*/
}

.wheel-modal .subtitle {
    font-size: 15px;
    color: #8899aa;
    margin-bottom: 25px;
}

/* ===== SECTIONS ===== */
.wheel-section {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.result-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

/* ===== WHEEL CONTAINER (400px) ===== */
.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 25px;
}

.wheel-pointer {
    color: #A71933;
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 42px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.wheel-canvas {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /*border: 8px solid #ffd700;*/
    /*box-shadow: 0 0 40px rgba(255, 215, 0, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.2);*/
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #A71933;
    border-radius: 50%;
    border: 4px solid #fff;
    z-index: 5;
}

/* ===== SPIN BUTTON ===== */
.spin-btn {
    background-color: #A71933;
    color: #fff;
    border-radius: 40px;
    padding: 10px 40px;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.spin-btn:hover {
    transform: scale(1.06);
}

.spin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #667;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
}

/* ===== PRIZE RESULT ===== */
.prize-result {
    display: none;
    margin-top: 20px;
    padding: 22px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 16px;
}

.prize-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.prize-result .prize-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

/* ===== CLAIM FORM ===== */
.claim-form {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.claim-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.claim-form h3 {
    text-align: center;
    font-size: 17px;
    margin-bottom: 16px;
    color: #ccd;
}

.claim-form .form-group {
    margin-bottom: 14px;
}

.claim-form label {
    display: block;
    font-size: 12px;
    color: #8899aa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claim-form input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.claim-form input:focus {
    border-color: #ffd700;
}

.claim-form input::placeholder {
    color: #556;
}

.submit-btn {
    width: 100%;
    background: #00cec9;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.4);
}

/* ===== REPLAY MESSAGE ===== */
.replay-msg {
    display: none;
    margin-top: 20px;
    padding: 22px;
    background: rgba(0, 206, 201, 0.08);
    border: 1px solid rgba(0, 206, 201, 0.25);
    border-radius: 16px;
    text-align: center;
}

.replay-msg.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.replay-msg .replay-text {
    font-size: 20px;
    font-weight: 700;
    color: #00cec9;
    margin-bottom: 16px;
}

.replay-btn {
    border: none;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background-color: #A71933;
    color: #fff;
    border-radius: 40px;
    padding: 10px 40px;
    text-decoration: none;
}

.replay-btn:hover {
    transform: scale(1.06);
}

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
    display: none;
    margin-top: 20px;
    padding: 22px;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 16px;
    text-align: center;
}

.success-msg.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-msg .check {
    font-size: 52px;
    margin-bottom: 10px;
}

.success-msg p {
    color: #00b894;
    font-size: 18px;
    font-weight: 600;
}

.success-msg .small {
    font-size: 14px;
    color: #8899aa;
    margin-top: 8px;
    font-weight: 400;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .wheel-modal {
        padding: 25px 20px 30px;
    }

    .wheel-container, .wheel-canvas {
        width: 320px;
        height: 320px;
    }

    .wheel-pointer {
        font-size: 34px;
        top: -14px;
    }

    .wheel-center {
        width: 48px;
        height: 48px;
    }

    .wheel-modal h2 {
        font-size: 24px;
    }

    .spin-btn {
        padding: 14px 45px;
        font-size: 17px;
    }
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}
