.toast-stack {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  max-width: 440px;
  width: fit-content;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid var(--teal-border-strong, #39e7db);
  background: var(--sf, #232629);
  color: var(--teal, #39e7db);
  font-family: var(--font-ui);
  font-size: var(--text-ui-md);
  letter-spacing: var(--tracking-ui);
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.32s ease forwards;
}

.toast--error {
  border-color: var(--error-border, #991b1b);
  color: var(--error-soft, #f87171);
}

.toast--leaving {
  animation: toast-out 0.24s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
    opacity: 1;
  }

  .toast--leaving {
    opacity: 0;
  }
}
