/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f1419;
}

/* Bonus Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    border: 2px solid #00d4ff;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s ease;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4ff;
    transform: rotate(90deg);
}

.popup-content {
    padding: 30px;
}

.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 12px;
}

.popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.popup-main {
    text-align: center;
}

.popup-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.popup-bonus {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.popup-bonus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.bonus-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bonus-percentage {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.bonus-text {
    font-size: 14px;
    color: #cccccc;
    font-weight: 600;
}

.bonus-amount {
    font-size: 36px;
    font-weight: 800;
    color: #00d4ff;
    font-family: 'Poppins', sans-serif;
}

.bonus-extra {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-btn-primary {
    background: #00d4ff;
    color: #000;
    border: none;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.popup-btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.popup-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.popup-btn-primary:hover::before {
    left: 100%;
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.popup-btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.popup-btn-secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.popup-timer {
    text-align: center;
}

.timer-text {
    color: #cccccc;
    font-size: 12px;
    display: block;
    margin-bottom: 6px;
}

.timer-display {
    color: #ff4757;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .popup-container {
        width: 95%;
        margin: 20px;
    }

    .popup-content {
        padding: 25px 20px;
    }

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

    .bonus-percentage,
    .bonus-amount {
        font-size: 28px;
    }

    .popup-btn-primary {
        padding: 12px 20px;
        font-size: 13px;
    }
}