/* ═══════════════════════════════════════════════════════
   VaultAIClub — Toast unificado de feedback
   Success / Error / Info. Paleta cálida, tokens desde globals.css.
   ═══════════════════════════════════════════════════════ */

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  min-width: 300px;
  max-width: 380px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.toast.is-visible { transform: translateX(0); opacity: 1; }

.toast-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-icon svg { width: 13px; height: 13px; }

.toast.is-success .toast-icon { background: rgba(47, 158, 68, 0.12); color: var(--green); }
.toast.is-error   .toast-icon { background: rgba(230, 57, 70, 0.12);  color: var(--red); }
.toast.is-info    .toast-icon { background: var(--accent-bg);         color: var(--accent-dark); }

.toast-body { flex: 1; min-width: 0; }
.toast-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.toast-msg {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  margin: -2px -4px 0 0;
}
.toast-close:hover { background: var(--bg-soft); color: var(--ink); }

@media (max-width: 480px) {
  .toast-stack { left: 12px; right: 12px; top: 12px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; transform: none; }
}
