/* Shared toast notification — single source of truth.
   Slides in from bottom, auto-dismisses. Variants: success / error / info.
   Usage: showToast(msg, type) — see /toast.js */
.aura-toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.aura-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: #0d0d0d;
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.45;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid #d4af37;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.aura-toast.aura-toast-in {
  opacity: 1;
  transform: translateY(0);
}

.aura-toast.aura-toast-out {
  opacity: 0;
  transform: translateY(12px);
}

.aura-toast .aura-toast-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.aura-toast-success { border-left-color: #25d366; }
.aura-toast-success .aura-toast-icon {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
}

.aura-toast-error { border-left-color: #e5484d; }
.aura-toast-error .aura-toast-icon {
  background: rgba(229, 72, 77, 0.14);
  color: #ff7a7e;
}

.aura-toast-info { border-left-color: #d4af37; }
.aura-toast-info .aura-toast-icon {
  background: rgba(212, 175, 55, 0.16);
  color: #d4af37;
}

.aura-toast .aura-toast-msg { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.aura-toast .aura-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  min-height: 0;
}

.aura-toast .aura-toast-close:hover { color: #fff; }

@media (max-width: 480px) {
  .aura-toast-wrap { bottom: 18px; }
  .aura-toast { padding: 12px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .aura-toast { transition: none; }
}
