#toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    min-width: 220px;
    max-width: 360px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(30, 0, 0, 0.92);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ffe5e5;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(180, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toast-success { border-color: rgba(80, 220, 140, 0.6); color: #dfffe8; }
.toast-error { border-color: rgba(255, 90, 90, 0.7); color: #ffd6d6; }
.toast-warn { border-color: rgba(255, 200, 80, 0.7); color: #ffe6b0; }
.toast-info { border-color: rgba(120, 170, 255, 0.6); color: #e1ecff; }

.toast .toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---- styled confirm dialog (Toast.confirm) ---- */
.toast-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.toast-confirm-overlay.show { opacity: 1; }

.toast-confirm {
    width: min(430px, 100%);
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    color: #f0f0f0;
    transform: translateY(10px) scale(0.98);
    opacity: 0.6;
    transition: transform 0.2s cubic-bezier(.2, .9, .3, 1.3), opacity 0.2s ease;
}
.toast-confirm-overlay.show .toast-confirm { transform: translateY(0) scale(1); opacity: 1; }
.toast-confirm.danger {
    border-color: rgba(242, 13, 30, 0.5);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(242, 13, 30, 0.12);
}

.toast-confirm-title { font-size: 16px; font-weight: 650; margin-bottom: 8px; line-height: 1.3; }
.toast-confirm-msg {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    white-space: pre-line;
}
.toast-confirm-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast-confirm-btn {
    padding: 9px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #f0f0f0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.toast-confirm-btn:hover { background: rgba(255, 255, 255, 0.12); }
.toast-confirm-btn:active { transform: translateY(1px); }
.toast-confirm-btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.toast-confirm-btn.ok.danger { background: #F20D1E; border-color: #F20D1E; color: #fff; }
.toast-confirm-btn.ok.danger:hover { background: #d40b19; border-color: #d40b19; }
