/* Toast notifications, adapted from Notification-Stack-UI */

.toast-stack {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(360px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    color: #fff;
    background: rgba(20, 20, 28, .78);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 16px 34px rgba(0,0,0,.35),
        inset 0 1px rgba(255,255,255,.15);
    opacity: 0;
    transform: translateY(-16px) scale(.96);
    transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
    pointer-events: auto;
    direction: rtl;
}

.toast-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.03), transparent 70%);
    pointer-events: none;
}

.toast-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-card.hide {
    opacity: 0;
    transform: translateY(-10px) scale(.96);
}

.toast-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
}

.toast-card.toast-success .toast-avatar { color: #4ade80; }
.toast-card.toast-error   .toast-avatar { color: #f87171; }

.toast-body { flex: 1; min-width: 0; }

.toast-body p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #f1f1f1;
    margin: 0;
}

@media (max-width: 480px) {
    .toast-stack { top: 12px; width: 94vw; }
}
