/* Exit-Intent Popup Styles - Enhanced Interactive Version */
.exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    backdrop-filter: blur(4px);
}

.exit-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.exit-popup {
    background: white;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exit-popup-close:hover {
    background: white;
    color: var(--text-primary);
    transform: scale(1.1);
}

/* === TOP SECTION: Score Gauge === */
.exit-popup-header {
    background: linear-gradient(135deg, #0F1629 0%, #1a2942 100%);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.exit-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(200, 157, 92, 0.15), transparent 70%);
    pointer-events: none;
}

.score-gauge-container {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 200px;
    height: 120px;
}

.score-gauge {
    display: block;
    margin: 0 auto;
}

.gauge-needle {
    transform-origin: 100px 100px;
    transition: transform 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: gaugeWobble 3s ease-in-out infinite;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    margin-top: 10px;
}

.gauge-lock-icon {
    margin-bottom: 0.5rem;
    animation: lockPulse 2s ease-in-out infinite;
}

.gauge-lock-icon i {
    color: var(--gold-primary);
    filter: drop-shadow(0 2px 4px rgba(200, 157, 92, 0.3));
}

.gauge-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow: 0 2px 8px rgba(200, 157, 92, 0.4);
    animation: scorePulse 2s ease-in-out infinite;
}

.gauge-label {
    font-size: 0.75rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.exit-popup-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.exit-popup-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* === MIDDLE SECTION: Live Stats & Testimonials === */
.exit-popup-body {
    padding: 2rem;
}

/* Live Stats */
.live-stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #cbd5e1;
}

.live-stats-header {
    text-align: center;
    margin-bottom: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Testimonial Slider */
.testimonial-slider {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    position: relative;
    min-height: 120px;
}

.testimonial-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.testimonial-badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.testimonial-dots .dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-dots .dot.active {
    background: var(--gold-primary);
    width: 24px;
    border-radius: 4px;
}

/* Unlock Benefits */
.unlock-benefits {
    margin-bottom: 1.5rem;
}

.unlock-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.unlock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.unlock-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.unlock-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 157, 92, 0.2);
}

.unlock-item i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.unlock-item span {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* CTA Button */
.exit-popup-cta {
    margin-bottom: 1.5rem;
}

.exit-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.exit-popup-btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: white;
    box-shadow: 0 6px 20px rgba(200, 157, 92, 0.4);
}

.exit-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.3), transparent);
    transition: left 0.5s;
}

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

.exit-popup-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 157, 92, 0.5);
}

/* === BOTTOM SECTION: Slots Counter === */
.slots-counter-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #fbbf24;
}

.slots-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.slots-bar-container {
    margin-bottom: 1rem;
}

.slots-bar {
    height: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(251, 191, 36, 0.3);
    margin-bottom: 0.5rem;
}

.slots-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    border-radius: 10px;
    transition: width 0.5s ease-out, background 0.3s;
    animation: barPulse 2s ease-in-out infinite;
}

.slots-bar-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.slots-bar-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    animation: barPulse 1s ease-in-out infinite;
}

.slots-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
}

.slots-text span {
    font-size: 1.5rem;
    color: #dc2626;
}

.urgency-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(251, 191, 36, 0.4);
    color: #92400e;
    font-weight: 600;
    font-size: 0.9375rem;
}

.urgency-timer strong {
    color: #dc2626;
    font-size: 1.125rem;
}

.urgency-note {
    text-align: center;
    font-size: 0.75rem;
    color: #78716c;
    margin-top: 0.5rem;
    font-style: italic;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes gaugeWobble {
    0%, 100% { transform: rotate(-90deg); }
    50% { transform: rotate(-85deg); }
}

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

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

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@keyframes barPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 640px) {
    .exit-popup {
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }
    
    .exit-popup-header {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .exit-popup-title {
        font-size: 1.5rem;
    }
    
    .exit-popup-subtitle {
        font-size: 1rem;
    }
    
    .exit-popup-body {
        padding: 1.5rem;
    }
    
    .live-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .unlock-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .exit-popup-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .exit-popup-title {
        font-size: 1.25rem;
    }
    
    .gauge-score {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}
