/* toast.css — thông báo nổi (popup) dùng chung. Dùng tokens. */
.toast-host {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(440px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 0.85rem 0.9rem 1rem;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-surface));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.75);
  color: var(--ink-bone);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 1;
  animation: toast-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes toast-in { from { transform: translateY(-14px); } to { transform: translateY(0); } }
.toast.is-out { opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.toast--warn { border-color: #C0392B; }
.toast--ok { border-color: var(--el-moc); }
.toast-icon { flex: none; display: inline-flex; color: var(--gold); }
.toast--warn .toast-icon { color: #E0857B; }
.toast--ok .toast-icon { color: var(--el-moc); }
.toast-msg { flex: 1; min-width: 0; }
.toast-action {
  flex: none;
  font-weight: 600;
  color: var(--gold-soft);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 5px 13px;
  text-decoration: none;
  white-space: nowrap;
}
.toast-action:hover { background: rgba(194, 161, 77, 0.12); }
.toast-close { flex: none; color: var(--ink-faint); font-size: 1.25rem; line-height: 1; padding: 0 4px; background: none; }
.toast-close:hover { color: var(--ink-bone); }
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
}
