/* ========================================
   Popup Styles
   ======================================== */

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes popupPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(245, 129, 61, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(245, 129, 61, 0.7);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-5px) rotate(-3deg);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999999;
    display: none;
    animation: popupFadeIn 0.3s ease-out;
}

.popup-overlay.show {
    display: block;
}

/* Popup Container */
.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a0a3e 0%, #2d1266 50%, #1a0a3e 100%);
    border-radius: 20px;
    padding: 40px 35px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 129, 61, 0.3);
    z-index: 10000000;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(245, 129, 61, 0.3);
    text-align: center;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
    padding-bottom: 2px;
}

.popup-close:hover {
    background: rgba(245, 129, 61, 0.3);
    transform: rotate(90deg);
}

/* Limited Time Badge */
.popup-badge {
    position: absolute;
    top: -12px;
    left: -10px;
    transform: rotate(-3deg);
    background: linear-gradient(135deg, #ff6b35 0%, #f5813d 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 129, 61, 0.5);
    animation: floatBadge 2s ease-in-out infinite;
}

.popup-badge i {
    margin-right: 5px;
}

/* Logo */
.popup-logo {
    margin: 15px auto 20px;
    display: inline-block;
}

.popup-logo img {
    height: 50px;
    width: auto;
}

/* Title */
.popup-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.popup-title .highlight {
    background: linear-gradient(90deg, #f5813d, #ffcc00, #f5813d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Subtitle */
.popup-subtitle {
    font-size: 16px;
    color: #c4b5fd;
    margin-bottom: 25px;
}

/* Bonus Box */
.popup-bonus-box {
    background: linear-gradient(135deg, rgba(245, 129, 61, 0.2) 0%, rgba(255, 204, 0, 0.1) 100%);
    border: 1px solid rgba(245, 129, 61, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.popup-bonus-amount {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(90deg, #f5813d, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.popup-bonus-text {
    font-size: 14px;
    color: #e4e4fd;
}

.popup-bonus-text strong {
    color: #ffcc00;
}

/* Features */
.popup-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.popup-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a5b4fc;
}

.popup-feature i {
    color: #4ade80;
    font-size: 14px;
}

/* CTA Button */
.popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #f5813d 0%, #d44500 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 129, 61, 0.4);
    animation: popupPulse 2s ease-in-out infinite;
}

.popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 129, 61, 0.6);
    background: linear-gradient(135deg, #ff8f4d 0%, #e55500 100%);
}

.popup-cta .arrow {
    font-size: 22px;
    display: inline-block;
    animation: arrow-bounce 1s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Players Online */
.popup-players {
    margin-top: 15px;
    font-size: 13px;
    color: #a5b4fc;
}

.popup-players .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.popup-players .count {
    color: #4ade80;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-container {
        padding: 35px 25px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .popup-title {
        font-size: 24px;
    }

    .popup-bonus-amount {
        font-size: 36px;
    }

    .popup-cta {
        font-size: 18px;
        padding: 16px 25px;
    }

    .popup-features {
        gap: 15px;
    }

    .popup-feature {
        font-size: 12px;
    }
}
