/* ==========================================
   FREE PAYMENT OPTIONS STYLES
   ==========================================
   Free payment modal, spin wheel, ad watching,
   and survey modal styles.
   ========================================== */

/* Free Payment Link under main button */
.free-payment-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.or-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

.free-pay-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3));
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.free-pay-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(16, 185, 129, 0.5));
    border-color: rgba(34, 197, 94, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.free-pay-btn:active {
    transform: translateY(-1px);
}

/* Side button for free options */
.side-button.free-button {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.2));
    border-color: rgba(34, 197, 94, 0.4);
}

.side-button.free-button:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.35));
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
}

.side-button.free-button svg {
    stroke: rgba(34, 197, 94, 0.9);
}

.side-button.free-button:hover svg {
    stroke: #22c55e;
}

/* ==========================================
   FREE PAYMENT MODAL
   ========================================== */

.free-payment-container {
    max-width: 450px !important;
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 27, 75, 0.98) 50%,
        rgba(49, 46, 129, 0.95) 100%) !important;
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px var(--primary-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.free-payment-container .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.free-payment-container .modal-title {
    color: #f8fafc !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.free-payment-container .modal-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.free-payment-container .modal-close {
    color: rgba(255, 255, 255, 0.6) !important;
}

.free-payment-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px !important;
}

/* Free Option Cards */
.free-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.free-option:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-color);
}

.free-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.free-option-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    flex-shrink: 0;
    color: white;
}

.free-option-icon svg {
    width: 24px;
    height: 24px;
}

.free-option-content {
    flex: 1;
    min-width: 0;
}

.free-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 4px;
}

.free-option-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.free-option-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--primary-color);
}

.free-payment-footer {
    padding: 20px 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.03);
}

.free-footer-note {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Free Option Info Box */
.free-option-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    margin-top: 8px;
}

.free-option-info .info-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.free-option-info .info-icon svg {
    display: block;
}

.free-option-info .info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ==========================================
   AD PLAYER STYLES
   ========================================== */

.ad-player-container {
    display: none;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.ad-player-container.active {
    display: flex;
}

.ad-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-timer {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

.ad-content {
    padding: 16px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.adsense-container {
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.adsense-container .adsbygoogle {
    width: 100%;
    min-height: 250px;
}

/* Fallback when ad doesn't load */
.ad-fallback {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ad-fallback-content {
    text-align: center;
    width: 100%;
}

.sponsor-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sponsor-icon {
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

.sponsor-title {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sponsor-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ad-progress-bar {
    width: 100%;
    max-width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.ad-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1s linear;
    box-shadow: 0 0 10px var(--primary-color);
}

.ad-skip-container {
    padding: 16px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-skip-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px var(--primary-color);
}

.ad-skip-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--primary-color);
}

.ad-skip-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--primary-color);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px var(--primary-color);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SPIN WHEEL STYLES
   ========================================== */

.spin-wheel-container {
    max-width: 400px !important;
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 27, 75, 0.98) 50%,
        rgba(49, 46, 129, 0.95) 100%) !important;
    border: 1px solid var(--primary-color) !important;
}

.spin-wheel-container .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.spin-wheel-container .modal-title {
    color: #f8fafc !important;
}

.spin-wheel-container .modal-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.spin-wheel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px !important;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 30px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    color: #fbbf24;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #22c55e 0deg 45deg,
        #ef4444 45deg 90deg,
        #22c55e 90deg 135deg,
        #ef4444 135deg 180deg,
        #fbbf24 180deg 225deg,
        #ef4444 225deg 270deg,
        #22c55e 270deg 315deg,
        #ef4444 315deg 360deg
    );
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.5),
        inset 0 0 60px rgba(0, 0, 0, 0.3),
        0 0 20px var(--primary-color);
    position: relative;
}

.wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.spin-btn {
    padding: 16px 48px !important;
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
    color: white !important;
    border-radius: 30px !important;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-color);
}

.spin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-color);
}

.spin-btn:disabled {
    animation: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.spins-left {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.spins-left span {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================
   AD WATCHING MODAL STYLES
   ========================================== */

.ad-watch-container {
    max-width: 380px !important;
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 27, 75, 0.98) 50%,
        rgba(49, 46, 129, 0.95) 100%) !important;
    border: 1px solid var(--primary-color) !important;
}

.ad-watch-container .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.ad-watch-container .modal-title {
    color: #f8fafc !important;
}

.ad-watch-container .modal-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.ad-watch-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px !important;
}

.ad-timer-container {
    margin-bottom: 30px;
}

.ad-timer-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.ad-timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ad-timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.ad-timer-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.ad-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 0 20px var(--primary-color);
}

.ad-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 30px;
}

.fake-ad-content {
    width: 100%;
}

.fake-ad-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.fake-ad-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.fake-ad-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.fake-ad-emoji {
    font-size: 40px;
    animation: bounce 1s ease infinite;
}

.fake-ad-text {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   SURVEY MODAL STYLES
   ========================================== */

.survey-container {
    max-width: 420px !important;
    background: linear-gradient(145deg,
        rgba(15, 23, 42, 0.98) 0%,
        rgba(30, 27, 75, 0.98) 50%,
        rgba(49, 46, 129, 0.95) 100%) !important;
    border: 1px solid var(--primary-color) !important;
}

.survey-container .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.survey-container .modal-title {
    color: #f8fafc !important;
}

.survey-container .modal-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.survey-container .modal-close {
    color: rgba(255, 255, 255, 0.6) !important;
}

.survey-body {
    padding: 30px 24px !important;
}

.survey-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.survey-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

.survey-question {
    font-size: 18px;
    font-weight: 600;
    color: #f8fafc;
    text-align: center;
    margin-bottom: 30px;
    transition: opacity 0.2s ease;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.survey-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.survey-option:hover {
    background: linear-gradient(135deg, rgba(var(--primary-color), 0.2), rgba(var(--secondary-color), 0.1));
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 0 15px var(--primary-color);
}

.survey-option:active {
    transform: translateX(5px) scale(0.98);
}

/* ==========================================
   FREE REWARD LABEL STYLES
   ========================================== */

.free-reward-label {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 24px;
    animation: pulse 2s infinite;
}

/* MOBILE RESPONSIVE */

@media (max-width: 768px) {
    .free-payment-link {
        margin-top: 16px;
        gap: 8px;
    }

    .free-pay-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .free-option {
        padding: 12px 16px;
        gap: 12px;
    }

    .free-option-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }

    .free-option-title {
        font-size: 14px;
    }

    .free-option-desc {
        font-size: 11px;
    }

    .wheel-container {
        width: 220px;
        height: 220px;
    }

    .ad-timer-circle {
        width: 120px;
        height: 120px;
    }

    .ad-timer-text {
        font-size: 40px;
    }

    .survey-question {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .free-pay-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .or-divider {
        font-size: 12px;
    }

    .free-option {
        padding: 10px 14px;
        gap: 10px;
    }

    .free-option-icon {
        font-size: 22px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .free-option-badge {
        padding: 4px 8px;
        font-size: 9px;
    }

    .wheel-container {
        width: 180px;
        height: 180px;
    }

    .spin-btn {
        padding: 14px 36px !important;
        font-size: 16px !important;
    }

    /* Ad Player Responsive */
    .ad-content {
        padding: 12px;
        min-height: 200px;
    }

    .adsense-container {
        min-height: 200px;
    }

    .sponsor-icon {
        font-size: 36px;
    }

    .sponsor-title {
        font-size: 16px;
    }

    .sponsor-text {
        font-size: 12px;
    }

    .ad-skip-btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .ad-progress-bar {
        max-width: 200px;
    }
}

