.toast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.toast-overlay.hidden {
  display: none;
}

.toast {
  background: #020617;
  color: #e5e7eb;
  padding: 20px 22px;
  border-radius: 12px;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  animation: fadeIn 0.25s ease;
}

.toast button {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
}

.toast button:hover {
  color: #f87171;
}

/* Tipos */
.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #facc15; }
.toast.info    { border-left: 4px solid #38bdf8; }

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}