/* Exit Intent Popup Styles */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

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

.exit-popup {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.exit-popup-overlay.show .exit-popup {
    transform: scale(1) translateY(0);
}

.exit-popup-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.exit-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.exit-popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.exit-popup-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.exit-popup-content {
    padding: 2rem;
}

.exit-popup-offer {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.exit-popup-price {
    margin: 1rem 0;
}

.exit-popup-original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.2rem;
    display: block;
}

.exit-popup-current-price {
    color: #10b981;
    font-weight: 800;
    font-size: 2rem;
    display: block;
}

.exit-popup-cta {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.exit-popup-guarantee {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.exit-popup-timer {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.exit-popup-timer-title {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.exit-popup-countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.exit-popup-countdown-item {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 50px;
    text-align: center;
}

.exit-popup-countdown-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ef4444;
    display: block;
}

.exit-popup-countdown-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .exit-popup-overlay {
        padding: 15px;
        align-items: flex-start;
        padding-top: 10vh;
    }
    
    .exit-popup {
        max-width: 100%;
        width: 100%;
        max-height: 80vh;
        margin: 0;
    }
    
    .exit-popup-header {
        padding: 1.5rem 1rem;
    }
    
    .exit-popup-title {
        font-size: 1.4rem;
        margin-right: 40px; /* Make room for close button */
    }
    
    .exit-popup-subtitle {
        font-size: 0.9rem;
    }
    
    .exit-popup-content {
        padding: 1.5rem;
    }
    
    .exit-popup-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .exit-popup-current-price {
        font-size: 1.6rem;
    }
    
    .exit-popup-countdown {
        gap: 0.5rem;
    }
    
    .exit-popup-countdown-item {
        min-width: 45px;
        padding: 0.4rem;
    }
    
    .exit-popup-countdown-number {
        font-size: 1rem;
    }
    
    /* Ensure popup doesn't get cut off on very small screens */
    @media (max-height: 600px) {
        .exit-popup-overlay {
            padding-top: 5vh;
        }
        
        .exit-popup {
            max-height: 85vh;
        }
        
        .exit-popup-header {
            padding: 1rem;
        }
        
        .exit-popup-content {
            padding: 1rem;
        }
    }
}

/* Animation for mobile scroll detection */
@keyframes mobileAlert {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mobile-exit-indicator {
    animation: mobileAlert 0.5s ease-in-out;
}