.toast-host {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1300;
  width: min(360px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: auto;
  cursor: pointer;
}

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

.toast-info {
  border-left: 4px solid #0079c1;
}

.toast-success {
  border-left: 4px solid #0f9f6e;
}

.toast-error {
  border-left: 4px solid #d14b5a;
}

.toast-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.toast-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(0, 121, 193, 0.2);
  border-top-color: #0079c1;
  border-radius: 50%;
  animation: toast-spin 0.75s linear infinite;
}

.toast-loading-message {
  font-weight: 650;
  letter-spacing: -0.01em;
}

@keyframes toast-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast-spinner {
    animation-duration: 1.5s;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 768px) {
  .toast-host {
    right: 12px;
    left: 12px;
    bottom: 16px;
    width: auto;
  }
}
