html.hx-notify-gate-active,
html.hx-notify-gate-active body {
    overflow: hidden !important;
    height: 100%;
}

#hx-notification-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 26, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: Inter, system-ui, sans-serif;
}

html.hx-notify-gate-recommended #hx-notification-gate {
    inset: auto 16px 16px auto;
    left: auto;
    top: auto;
    width: min(380px, calc(100vw - 32px));
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

html.hx-notify-gate-recommended #hx-notification-gate .hx-notify-gate-card {
    pointer-events: auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

#hx-user-notify-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2147482500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}

.hx-user-notify-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(46, 125, 32, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f3faf5 100%);
    box-shadow: 0 14px 34px rgba(7, 26, 16, 0.18);
    color: #0f2f1b;
    text-align: left;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.hx-user-notify-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.hx-user-notify-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 32, 0.12);
    color: #2e7d32;
    flex-shrink: 0;
}

.hx-user-notify-toast-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    line-height: 1.45;
}

.hx-user-notify-toast-copy strong {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hx-notify-gate-card--recommended {
    padding: 20px 18px 16px;
}

.hx-notify-gate-card--recommended h2 {
    font-size: 1.05rem;
}

.hx-notify-gate-card--recommended p {
    font-size: 13px;
    margin-bottom: 14px;
}

#hx-notification-gate[hidden] {
    display: none !important;
}

.hx-notify-gate-card {
    width: min(440px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(212, 167, 44, 0.28);
    background: linear-gradient(160deg, #0c2218 0%, #071a10 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: #eef6f1;
    padding: 28px 26px 24px;
    text-align: center;
}

.hx-notify-gate-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
    font-size: 24px;
}

.hx-notify-gate-card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f0d060;
}

.hx-notify-gate-card p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #94a3b8;
}

.hx-notify-gate-card p strong {
    color: #e2e8f0;
}

.hx-notify-gate-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hx-notify-gate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hx-notify-gate-btn-primary {
    background: linear-gradient(135deg, #16a34a, #14532d);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.hx-notify-gate-btn-primary:hover {
    transform: translateY(-1px);
}

.hx-notify-gate-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.hx-notify-gate-denied {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    text-align: left;
    font-size: 12px;
    line-height: 1.5;
    color: #fecaca;
}

.hx-notify-gate-denied.show {
    display: block;
}

.hx-notify-gate-denied ol {
    margin: 8px 0 0;
    padding-left: 18px;
}

.hx-notify-gate-unsupported {
    color: #fbbf24;
}