/* ========== EXIT-INTENT POPUP ========== */
.exit-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.exit-popup {
    background: linear-gradient(135deg, #112240 0%, #0A192F 100%);
    border: 2px solid #FF6B35;
    border-radius: 20px;
    padding: 35px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 107, 53, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

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

.exit-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    color: #8892B0;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
}

.exit-close:hover {
    color: #FF6B35;
}

.exit-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.exit-popup h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.exit-popup .discount {
    color: #FF6B35;
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
    margin: 5px 0;
}

.exit-popup p {
    color: #8892B0;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.exit-popup input {
    width: 100%;
    padding: 12px 15px;
    background: #0A192F;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #E6F1FF;
    font-size: 0.95rem;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.exit-popup input:focus {
    border-color: #FF6B35;
}

.exit-popup input.error {
    border-color: #ff4444;
}

.exit-popup .exit-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: none;
}

.exit-popup .exit-error.show {
    display: block;
}

.exit-popup button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C00 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.exit-popup button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

.exit-timer {
    color: #FFD700;
    font-size: 0.85rem;
    margin-top: 12px;
    font-weight: 600;
}

.exit-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.exit-success.show {
    display: block;
    animation: exitFadeIn 0.5s;
}

.exit-success .big-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
    display: block;
}

.exit-success h3 {
    margin-bottom: 10px;
}

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

@media (max-width: 480px) {
    .exit-popup {
        padding: 25px 20px;
    }
    .exit-popup h3 {
        font-size: 1.3rem;
    }
    .exit-popup .discount {
        font-size: 1.5rem;
    }
}