/* toast.css — премиум-уведомления (не браузерные alert). */

.elo-toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.elo-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 14px;
  min-width: 260px;
  max-width: 420px;
  border-radius: 14px;
  background: rgba(15, 22, 38, 0.95);
  border: 1px solid rgba(214, 158, 78, 0.28);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.4);
  color: #f1f3f9;
  font: 500 14px/1.4 'Inter', system-ui, sans-serif;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateX(20px);
  animation: eloToastIn 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.elo-toast.is-leaving {
  animation: eloToastOut 0.28s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.elo-toast__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.elo-toast--success .elo-toast__icon {
  background: linear-gradient(135deg, #50c878 0%, #2da25b 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(80, 200, 120, 0.18);
}

.elo-toast--error {
  border-color: rgba(255, 90, 90, 0.45);
}
.elo-toast--error .elo-toast__icon {
  background: linear-gradient(135deg, #ff6f6f 0%, #c93434 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.18);
}

.elo-toast--info .elo-toast__icon {
  background: linear-gradient(135deg, #4a82c8 0%, #2c5a99 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(74, 130, 200, 0.18);
}

.elo-toast__body {
  flex: 1;
  min-width: 0;
}

.elo-toast__title {
  font-weight: 700;
  margin: 0 0 2px;
  color: #f7f9fd;
  letter-spacing: 0.01em;
}

.elo-toast__msg {
  font-size: 13px;
  color: rgba(241, 243, 249, 0.75);
  margin: 0;
}

.elo-toast__close {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  color: rgba(241, 243, 249, 0.5);
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s ease;
}
.elo-toast__close:hover { color: #f1f3f9; }

@keyframes eloToastIn {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes eloToastOut {
  to { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 600px) {
  .elo-toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
  }
  .elo-toast { min-width: 0; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .elo-toast { animation: none !important; opacity: 1; transform: none; }
  .elo-toast.is-leaving { opacity: 0; }
}
