/* JX Toast Notifications */
.jx-toast-container {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 20000;
    width: min(380px, calc(100vw - 28px));
    display: grid;
    gap: 12px;
    pointer-events: none;
}
.jx-toast {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: start;
    gap: 10px;
    padding: 14px 14px 17px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-left: 4px solid var(--jx-toast-accent, #2563eb);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    color: #0f172a;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .16), 0 3px 12px rgba(37, 99, 235, .08);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    overflow: hidden;
    animation: jxToastIn .32s cubic-bezier(.2,.8,.2,1) both;
}
.jx-toast.is-leaving { animation: jxToastOut .24s ease forwards; }
.jx-toast-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--jx-toast-accent, #2563eb);
    background: var(--jx-toast-soft, #eff6ff);
    font-size: 15px;
}
.jx-toast-content { min-width: 0; padding-top: 1px; }
.jx-toast-title { margin: 0 0 3px; font: 800 12px/1.2 Inter, system-ui, sans-serif; letter-spacing: .3px; text-transform: uppercase; }
.jx-toast-message { margin: 0; color: #475569; font: 600 13px/1.45 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.jx-toast-close { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 2px; line-height: 1; font-size: 16px; transition: .2s ease; }
.jx-toast-close:hover { color: #0f172a; transform: scale(1.1); }
.jx-toast-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--jx-toast-accent, #2563eb); opacity: .28; transform-origin: left; animation: jxToastProgress var(--jx-toast-duration, 4.8s) linear forwards; }
.jx-toast-success { --jx-toast-accent: #059669; --jx-toast-soft: #ecfdf5; }
.jx-toast-error { --jx-toast-accent: #dc2626; --jx-toast-soft: #fef2f2; }
.jx-toast-warning { --jx-toast-accent: #d97706; --jx-toast-soft: #fffbeb; }
.jx-toast-info { --jx-toast-accent: #2563eb; --jx-toast-soft: #eff6ff; }
@keyframes jxToastIn { from { opacity: 0; transform: translate3d(28px, -8px, 0) scale(.96); } to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }
@keyframes jxToastOut { to { opacity: 0; transform: translate3d(28px, -4px, 0) scale(.96); } }
@keyframes jxToastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 576px) { .jx-toast-container { top: 12px; right: 12px; left: 12px; width: auto; } .jx-toast { border-radius: 14px; padding: 12px 12px 15px; } }
@media (prefers-reduced-motion: reduce) { .jx-toast, .jx-toast.is-leaving, .jx-toast-progress { animation: none; } }
