/* ============================================================
   Shared toast/notification component.
   Used everywhere Django messages (or a one-off success/error
   notice) are shown: marketing pages, the login/signup/password
   flows, and the settings/account area -- see templates/_toasts.html.
   Self-contained (no resets/body rules) so it's safe to load on
   every layout without side effects.
   ============================================================ */
.toastStack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: Inter, system-ui, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .15), 0 8px 10px -6px rgba(0, 0, 0, .1);
  pointer-events: auto;
  animation: toastIn .18s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.toastMessage { flex: 1; }
.toastClose {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  margin-top: 1px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  color: inherit;
  opacity: .6;
}
.toastClose:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

.toast--success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.toast--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.toast--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.toast--info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.toast--debug { background: #f3f4f6; border-color: #e5e7eb; color: #374151; }
