.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: toast-in 0.35s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast--success {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast--error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
}

.toast__message {
  flex: 1;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
}

.toast__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toast__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.toast__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .toast {
    left: 1rem;
    right: 1rem;
    min-width: auto;
    top: 1rem;
  }
}
