.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.exit-popup-card {
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 0;
    position: relative;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

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

.exit-popup-card.urgent {
    border: 3px solid #d00;
}

.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.exit-popup-close:hover {
    background: #fff;
    color: #333;
    transform: scale(1.1);
}

.exit-popup-header {
    background: linear-gradient(135deg, #ffe600 0%, #ffcc00 100%);
    padding: 24px 20px;
    text-align: center;
}

.exit-popup-header.urgent {
    background: linear-gradient(135deg, #ff4444 0%, #d00 100%);
}

.exit-popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #00a650 0%, #00c853 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 10px;
    margin-bottom: 12px;
    animation: pulse-badge 1.5s infinite ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 166, 80, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.exit-popup-badge.urgent {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #d00;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.exit-popup-badge.final {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    color: #d00;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.exit-popup-badge.shake {
    animation: shake-badge 0.5s infinite ease-in-out;
}

@keyframes shake-badge {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.exit-popup-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #333;
    margin: 0 0 6px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.exit-popup-header.urgent .exit-popup-title {
    color: #fff;
}

.exit-popup-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.exit-popup-header.urgent .exit-popup-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.exit-popup-product {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.exit-popup-product img {
    max-height: 140px;
    max-width: 180px;
    object-fit: contain;
}

.exit-popup-product-name {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 16px 20px;
    line-height: 1.3;
}

.exit-popup-prices {
    background: #f0fdf4;
    border: 2px solid #00a650;
    border-radius: 12px;
    padding: 16px;
    margin: 0 20px 20px;
    text-align: center;
}

.exit-popup-prices .old-price {
    display: block;
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
    font-weight: 500;
}

.exit-popup-prices .new-price {
    display: block;
    font-size: 42px;
    font-weight: 900;
    color: #00a650;
    line-height: 1.1;
}

.exit-popup-prices .savings {
    display: inline-block;
    background: #d00;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: 10px;
    text-transform: uppercase;
}

.exit-popup-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.exit-popup-timer.timer-urgent {
    background: #d00;
    animation: pulse-timer 1s infinite ease-in-out;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.exit-popup-timer .timer-icon {
    font-size: 18px;
}

.exit-popup-timer strong {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 900;
}

.exit-popup-cta {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 16px;
    padding: 18px;
    background: linear-gradient(135deg, #00a650 0%, #00c853 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(0, 166, 80, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exit-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 166, 80, 0.5);
}

.exit-popup-cta:active {
    transform: scale(0.98);
}

.exit-popup-cta.urgent {
    animation: pulse-cta 1s infinite ease-in-out;
}

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

.exit-popup-skip {
    text-align: center;
    padding: 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin: 0;
    transition: color 0.2s, background 0.2s;
}

.exit-popup-skip:hover {
    color: #333;
    background: #eee;
}

.exit-discount-applied {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.exit-discount-applied svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .exit-popup-overlay {
        padding: 12px;
    }
    
    .exit-popup-card {
        border-radius: 16px;
    }
    
    .exit-popup-header {
        padding: 20px 16px;
    }
    
    .exit-popup-badge {
        font-size: 24px;
        padding: 8px 20px;
    }
    
    .exit-popup-title {
        font-size: 22px;
    }
    
    .exit-popup-subtitle {
        font-size: 14px;
    }
    
    .exit-popup-product {
        padding: 16px;
    }
    
    .exit-popup-product img {
        max-height: 120px;
        max-width: 150px;
    }
    
    .exit-popup-product-name {
        font-size: 15px;
        margin: 12px 16px;
    }
    
    .exit-popup-prices {
        margin: 0 16px 16px;
        padding: 14px;
    }
    
    .exit-popup-prices .old-price {
        font-size: 14px;
    }
    
    .exit-popup-prices .new-price {
        font-size: 36px;
    }
    
    .exit-popup-prices .savings {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .exit-popup-timer {
        margin: 0 16px 16px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .exit-popup-cta {
        width: calc(100% - 32px);
        margin: 0 16px 12px;
        padding: 16px;
        font-size: 16px;
    }
    
    .exit-popup-skip {
        padding: 14px;
        font-size: 12px;
    }
    
    .exit-popup-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}
