.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 20px 40px -18px rgba(35, 43, 57, 0.55);
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
}

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

.toast.is-leaving {
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
}

.toast__icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.05rem;
}

.toast--success .toast__icon {
  background: rgba(179, 149, 94, 0.25);
  color: var(--gold-light);
}

.toast--error .toast__icon {
  background: rgba(220, 90, 90, 0.22);
  color: #e79a9a;
}

.toast--info .toast__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.toast__text {
  flex: 1;
}

.toast__close {
  flex: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.toast__close:hover {
  color: var(--white);
}

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