/* TOAST — centered bottom stack */
#toast-container {
  position: fixed !important;
  left: 40% !important;
  right: auto !important;
  top: auto !important;
  bottom: 32px !important;
  transform: translateX(-50%) !important;

  z-index: 2147483647 !important;

  display: flex !important;
  flex-direction: column-reverse !important; /* новые снизу, старые вверх */
  gap: 12px !important;
  align-items: center !important;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(14px);
  background: rgba(20, 25, 35, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: toastIn .35s ease forwards;
  position: relative;
}

.toast.success {
  border-left: 4px solid #2ecc71;
}

.toast.error {
  border-left: 4px solid #e74c3c;
}

.toast.info {
  border-left: 4px solid #3498db;
}

.toast .title {
  font-weight: 600;
  margin-bottom: 4px;
}

.toast .close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  opacity: .6;
}

.toast .close:hover {
  opacity: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}