.toast-host {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: min(420px, calc(100vw - 44px));
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(140, 160, 220, 0.32);
  background: linear-gradient(155deg, rgba(14, 25, 48, 0.94), rgba(13, 26, 55, 0.9));
  color: #eaf0ff;
  box-shadow:
    0 14px 34px rgba(0, 10, 28, 0.5),
    inset 0 1px 0 rgba(146, 173, 245, 0.2);
  backdrop-filter: blur(14px);
  transform: translateX(28px) scale(0.98);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast.hide {
  opacity: 0;
  transform: translateX(22px) scale(0.98);
}

.toast-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-text {
  margin: 3px 0 0;
  color: rgba(218, 230, 255, 0.92);
  font-size: 0.92rem;
}

.toast-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.toast.success .toast-icon {
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.75);
}

.toast.error .toast-icon {
  background: #fb7185;
  box-shadow: 0 0 14px rgba(251, 113, 133, 0.72);
}

.toast.info .toast-icon {
  background: #60a5fa;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.75);
}

body[data-theme="light"] .toast {
  border-color: rgba(128, 151, 205, 0.35);
  background: linear-gradient(155deg, rgba(250, 252, 255, 0.94), rgba(238, 245, 255, 0.9));
  color: #102241;
  box-shadow:
    0 14px 32px rgba(19, 37, 84, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .toast-text {
  color: rgba(36, 59, 101, 0.86);
}

@media (max-width: 640px) {
  .toast-host {
    bottom: 14px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
    min-width: 0;
  }
}
