.toast {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translate(-50%, -0.15rem) scale(0.98);
  background: rgba(24, 30, 46, 0.96);
  color: #eef2ff;
  padding: 0.5rem 0.8rem;
  border: 1px solid #4a5878;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(2, 5, 12, 0.42);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 60;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast strong {
  color: #ffffff;
  font-weight: 700;
}

.toast-line-gap {
  display: block;
  height: 0.18rem;
}

.toast.show {
  transform: translate(-50%, -0.55rem) scale(1);
  opacity: 1;
}

@media (max-width: 640px) {
  .toast {
    max-width: calc(100vw - 1.5rem);
    white-space: normal;
    text-align: center;
  }
}
