.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - var(--space-8));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateX(calc(100% + var(--space-6)));
  opacity: 0;
  transition: transform 350ms var(--ease-out), opacity 350ms var(--ease-out);
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--hiding {
  transform: translateX(calc(100% + var(--space-6)));
  opacity: 0;
}

.toast__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.toast__message {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: var(--leading-normal);
}

.toast__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.toast__close:hover {
  color: var(--color-text);
  background: var(--color-surface-3);
}

/* ─── Variants ───────────────────────────── */
.toast--success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast--success .toast__icon { color: var(--color-success); }

.toast--error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast--error .toast__icon { color: var(--color-error); }

.toast--warning {
  border-color: rgba(245, 158, 11, 0.3);
}

.toast--warning .toast__icon { color: var(--color-warning); }

.toast--info .toast__icon { color: var(--color-text-muted); }

@media (max-width: 480px) {
  .toast-container {
    bottom: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
    width: auto;
    max-width: none;
  }
}
