.anps-exit-popup {
    align-items: center;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    padding: 24px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 100000;
}

.anps-exit-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.anps-exit-popup__backdrop {
    background: rgba(3, 12, 26, 0.62);
    backdrop-filter: blur(7px);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.anps-exit-popup__dialog {
    background:
        radial-gradient(circle at 18% 8%, rgba(15, 127, 242, 0.28), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(130, 201, 30, 0.14), transparent 30%),
        linear-gradient(145deg, #071a2f 0%, #09223d 56%, #061525 100%);
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(3, 12, 26, 0.38), 0 0 0 1px rgba(15, 127, 242, 0.12);
    color: #f8fafc;
    max-width: 560px;
    overflow: hidden;
    padding: 32px 34px 30px;
    position: relative;
    width: min(100%, 560px);
}

.anps-exit-popup__dialog::before {
    background:
        radial-gradient(circle at 0 50%, transparent 0 8px, rgba(255, 255, 255, 0.13) 9px),
        radial-gradient(circle at 100% 50%, transparent 0 8px, rgba(255, 255, 255, 0.13) 9px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(15, 127, 242, 0.24), rgba(130, 201, 30, 0.14));
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    content: "10% OFF";
    color: rgba(255, 255, 255, 0.38);
    font-size: 24px;
    font-weight: 800;
    height: 72px;
    letter-spacing: 0.02em;
    line-height: 72px;
    position: absolute;
    right: 34px;
    text-align: center;
    top: 78px;
    transform: rotate(7deg);
    width: 112px;
    z-index: 0;
}

.anps-exit-popup__dialog::after {
    background: radial-gradient(circle, rgba(15, 127, 242, 0.2), transparent 62%);
    bottom: -110px;
    content: "";
    height: 240px;
    position: absolute;
    right: -80px;
    width: 260px;
    z-index: 0;
}

.anps-exit-popup__dialog > * {
    position: relative;
    z-index: 1;
}

.anps-exit-popup__accent {
    background: linear-gradient(90deg, #0f7ff2 0%, #82c91e 100%);
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.anps-exit-popup__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    width: 34px;
}

.anps-exit-popup__close:hover,
.anps-exit-popup__close:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.anps-exit-popup__badge {
    align-items: center;
    background: rgba(130, 201, 30, 0.1);
    border: 1px solid rgba(130, 201, 30, 0.28);
    border-radius: 9px;
    color: #d9f99d;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.25;
    margin: 2px 42px 15px 0;
    padding: 7px 9px;
    text-transform: uppercase;
}

.anps-exit-popup h2 {
    color: #ffffff;
    font-size: clamp(30px, 4.1vw, 42px);
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0 0 12px;
    max-width: 360px;
}

.anps-exit-popup__text {
    color: #e2e8f0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.42;
    margin: 0 0 7px;
    max-width: 410px;
}

.anps-exit-popup__subtext {
    color: #b7c5d8;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 430px;
}

.anps-exit-popup__form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
}

.anps-exit-popup__form.is-complete {
    display: none;
}

.anps-exit-popup__form input {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(3, 12, 26, 0.12);
    color: #071a2f;
    font-size: 15px;
    height: 52px;
    margin: 0;
    min-width: 0;
    padding: 0 16px;
}

.anps-exit-popup__form input:focus {
    border-color: #0f7ff2;
    box-shadow: 0 0 0 4px rgba(15, 127, 242, 0.22);
    outline: none;
}

.anps-exit-popup__form button {
    background: linear-gradient(135deg, #0f7ff2 0%, #0b5ed7 100%);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 12px 26px rgba(15, 127, 242, 0.26);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    height: 52px;
    padding: 0 19px;
    transition: box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
}

.anps-exit-popup__form button:hover,
.anps-exit-popup__form button:focus {
    box-shadow: 0 18px 34px rgba(15, 127, 242, 0.34);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.anps-exit-popup__form button:disabled {
    cursor: progress;
    filter: grayscale(0.15);
    opacity: 0.78;
    transform: none;
}

.anps-exit-popup__trust {
    color: #9aabc0;
    font-size: 13px;
    line-height: 1.45;
    margin: 12px 0 0;
}

.anps-exit-popup__no-thanks {
    background: transparent;
    border: 0;
    color: #93a4ba;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin: 12px 0 0;
    padding: 0;
    text-decoration: underline;
    text-decoration-color: rgba(183, 197, 216, 0.45);
    text-underline-offset: 4px;
}

.anps-exit-popup__no-thanks:hover,
.anps-exit-popup__no-thanks:focus {
    color: #ffffff;
}

.anps-exit-popup__message {
    border-radius: 12px;
    color: #e2e8f0;
    display: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 16px 0 0;
    padding: 12px 14px;
}

.anps-exit-popup__message:not(:empty) {
    display: block;
}

.anps-exit-popup__message--success {
    background: rgba(130, 201, 30, 0.12);
    border: 1px solid rgba(130, 201, 30, 0.28);
    color: #d9f99d;
}

.anps-exit-popup__message--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
}

.anps-exit-popup__message--info {
    background: rgba(15, 127, 242, 0.13);
    border: 1px solid rgba(15, 127, 242, 0.26);
}

@media (max-width: 640px) {
    .anps-exit-popup {
        align-items: flex-end;
        padding: 12px;
    }

    .anps-exit-popup__dialog {
        border-radius: 16px;
        padding: 26px 20px 22px;
        width: 100%;
    }

    .anps-exit-popup__dialog::before {
        font-size: 18px;
        height: 54px;
        line-height: 54px;
        opacity: 0.48;
        right: 18px;
        top: 74px;
        width: 82px;
    }

    .anps-exit-popup__dialog::after {
        bottom: -120px;
        opacity: 0.72;
        right: -120px;
    }

    .anps-exit-popup__close {
        height: 34px;
        right: 14px;
        top: 14px;
        width: 34px;
    }

    .anps-exit-popup__badge {
        margin-right: 42px;
    }

    .anps-exit-popup h2 {
        font-size: 34px;
        max-width: 260px;
    }

    .anps-exit-popup__text {
        font-size: 17px;
        max-width: 280px;
    }

    .anps-exit-popup__subtext {
        max-width: 285px;
    }

    .anps-exit-popup__form {
        grid-template-columns: 1fr;
    }

    .anps-exit-popup__form input,
    .anps-exit-popup__form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .anps-exit-popup,
    .anps-exit-popup__close,
    .anps-exit-popup__form button {
        transition: none;
    }
}
