    /* Full-screen destination iframe — no bottom bar */
    #ez-frame {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

    /* ── Exit intent target strip (invisible, top edge) ── */
    #exit-trigger {
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 8px;
        z-index: 99998;
        background: transparent;
    }

    /* ── Exit modal overlay ─────────────────────────────── */
    #exit-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0,0,0,0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        transition: background 0.4s ease, backdrop-filter 0.4s ease;
    }

    #exit-overlay.active {
        display: flex;
        background: rgba(0,0,0,0.82);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        animation: overlayFadeIn 0.4s ease forwards;
    }

    #exit-box {
        position: relative;
        width: 90vw;
        height: 90vh;
        max-width: none;
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 24px 64px rgba(0,0,0,0.5);
        display: flex;
        flex-direction: column;
        animation: boxSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        opacity: 0;
        transform: translateY(40px);
    }

    #exit-overlay.active #exit-box {
        animation: boxSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* ── Popup header ───────────────────────────────────── */
    #exit-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px;
        background: #f5f5f5;
        border-bottom: 1px solid #ddd;
        flex-shrink: 0;
        gap: 10px;
    }

    /* Brand icon/logo — left side */
    #exit-brand {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    #exit-brand .ez-logo-text {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont,
                     "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-weight: 700;
        font-size: 1rem;
        color: #5b21b6;
        letter-spacing: -.2px;
        line-height: 1;
    }

    #exit-brand .ez-logo-text span {
        color: #202124;
    }

    /* "Sponsored Message" label — centre */
    #exit-label {
        font-family: Arial, sans-serif;
        font-size: 11px;
        color: #999;
        letter-spacing: .06em;
        text-transform: uppercase;
        flex: 1;
        text-align: center;
    }

    /* Right-side actions */
    #exit-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    #exit-visit {
        font-family: Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        background: #b91c1c;
        border: none;
        border-radius: 6px;
        padding: 5px 14px;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.15s;
        white-space: nowrap;
    }
    #exit-visit:hover { background: #7f1d1d; }

    #exit-close {
        font-family: Arial, sans-serif;
        font-size: 18px;
        color: #888;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
        padding: 2px 6px;
        border-radius: 4px;
        transition: background 0.15s, color 0.15s;
    }
    #exit-close:hover { background: #e0e0e0; color: #333; }

    /* Ad page iframe fills remaining height */
    #exit-frame {
        width: 100%;
        flex: 1;
        border: none;
        display: block;
    }

    @keyframes overlayFadeIn {
        from { background: rgba(0,0,0,0); backdrop-filter: blur(0px); }
        to   { background: rgba(0,0,0,0.82); backdrop-filter: blur(4px); }
    }

    @keyframes boxSlideIn {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
