#simple-exit-notifier-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    --sen-purple: #643891;
    --sen-purple-dark: #4e2b77;
    --sen-aqua: #67cec6;
    --sen-text: #2b2b2b;
}

.simple-exit-notifier-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 10%, rgba(103, 206, 198, 0.2), transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(100, 56, 145, 0.35), transparent 50%),
        rgba(29, 18, 41, 0.72);
    backdrop-filter: blur(3px);
}

.simple-exit-notifier-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100% - 2rem));
    max-width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 245, 252, 0.97) 100%);
    box-shadow:
        0 22px 42px rgba(33, 15, 53, 0.35),
        0 10px 16px rgba(33, 15, 53, 0.2);
    animation: sen-modal-enter 220ms ease-out;
    font-family: "Montserrat", "Avenir Next", "Segoe UI", Arial, sans-serif;
    color: var(--sen-text);
}

.simple-exit-notifier-header {
    background: linear-gradient(90deg, var(--sen-purple) 0%, #5c3490 68%, #7443a7 100%);
    padding: 20px 24px 18px;
    border-bottom: 4px solid var(--sen-aqua);
}

.simple-exit-notifier-header h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.simple-exit-notifier-message {
    padding: 22px 24px 10px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--sen-text);
}

.simple-exit-notifier-message p {
    margin: 0 0 12px;
}

#simple-exit-notifier-external-link {
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(103, 206, 198, 0.16);
    border: 1px solid rgba(103, 206, 198, 0.45);
    color: var(--sen-purple-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.simple-exit-notifier-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 24px 24px;
    text-align: center;
    flex-wrap: wrap;
}

.simple-exit-notifier-content button,
.simple-exit-notifier-content a {
    margin: 0;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease,
        color 140ms ease,
        border-color 140ms ease;
}

.simple-exit-notifier-content button:focus-visible,
.simple-exit-notifier-content a:focus-visible {
    outline: 3px solid rgba(103, 206, 198, 0.85);
    outline-offset: 2px;
}

#simple-exit-notifier-cancel {
    background: #fff;
    color: var(--sen-purple-dark);
    border-color: rgba(100, 56, 145, 0.45);
}

#simple-exit-notifier-proceed {
    background: linear-gradient(90deg, var(--sen-purple) 0%, var(--sen-purple-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(78, 43, 119, 0.32);
}

#simple-exit-notifier-cancel:hover {
    background: #f3f0fa;
    transform: translateY(-1px);
}

#simple-exit-notifier-proceed:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(78, 43, 119, 0.38);
}

#simple-exit-notifier-cancel:active,
#simple-exit-notifier-proceed:active {
    transform: translateY(0);
}

@keyframes sen-modal-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 640px) {
    .simple-exit-notifier-content {
        width: min(520px, calc(100% - 1.25rem));
        border-radius: 16px;
    }

    .simple-exit-notifier-header {
        padding: 16px 16px 14px;
    }

    .simple-exit-notifier-message {
        padding: 16px 16px 8px;
        font-size: 0.96rem;
    }

    .simple-exit-notifier-actions {
        padding: 6px 16px 16px;
    }

    .simple-exit-notifier-content button,
    .simple-exit-notifier-content a {
        width: 100%;
        text-align: center;
    }
}
