.bgh-exit-intent {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bgh-exit-intent__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 20, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: bghExitFade 0.3s ease;
}

.bgh-exit-intent__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 30px 24px 26px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    direction: rtl;
    font-family: inherit;
    animation: bghExitPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.bgh-exit-intent__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f4;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bgh-exit-intent__close:hover { background: #e2e2e8; }

.bgh-exit-intent__emoji { font-size: 46px; line-height: 1; }

.bgh-exit-intent__title {
    margin: 14px 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #111;
}

.bgh-exit-intent__desc {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}

.bgh-exit-intent__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.bgh-exit-intent__coupon {
    display: inline-block;
    padding: 10px 18px;
    border: 2px dashed #10b981;
    border-radius: 10px;
    background: #f0fdf7;
    color: #059669;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    direction: ltr;
}

.bgh-exit-intent__copy {
    padding: 9px 16px;
    border: 0;
    border-radius: 10px;
    background: #10b981;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bgh-exit-intent__copy:hover { background: #059669; }

.bgh-exit-intent__copy.is-copied { background: #1f9d6b; }

.bgh-exit-intent__actions .bgh-exit-intent__btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bgh-exit-intent__actions .bgh-exit-intent__btn:hover { background: #2a2a2a; transform: translateY(-1px); }

.bgh-exit-intent.is-open { display: flex; }

@keyframes bghExitFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes bghExitPop {
    from { opacity: 0; transform: scale(0.85) translateY(14px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 480px) {
    .bgh-exit-intent__card { padding: 26px 16px 22px; }
    .bgh-exit-intent__code { flex-direction: column; }
}
