#toast-container {
  position: fixed;
  top: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
  pointer-events: none;
  max-width: calc(100% - 40px);
}

.toast {
  display: flex; align-items: center; gap: 12px;
  min-width: 290px; max-width: 400px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(11, 11, 26, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  color: var(--text, #eeeef8);
  font: 500 13px/1.5 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.1px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.42s var(--ease-bounce, cubic-bezier(0.34,1.56,0.64,1)), opacity 0.28s ease;
  pointer-events: all;
  position: relative; overflow: hidden;
  cursor: pointer;
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.hide {
  opacity: 0; transform: translateX(120%);
  transition: transform 0.28s ease, opacity 0.22s ease;
}

.toast .icon {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  border-radius: 50%; color: #fff;
}

.toast .msg { flex: 1; color: var(--text, #eeeef8); }

.toast .bar {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: currentColor;
  transform-origin: left;
  animation: toastBar 4s linear forwards;
}

@keyframes toastBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.toast.success { color: var(--primary, #8B5CF6); border-color: rgba(139,92,246,0.3); }
.toast.success .icon { background: var(--primary, #8B5CF6); }

.toast.error { color: var(--danger, #f43f5e); border-color: rgba(244,63,94,0.3); }
.toast.error .icon { background: var(--danger, #f43f5e); }

.toast.warn { color: var(--warn, #f59e0b); border-color: rgba(245,158,11,0.3); }
.toast.warn .icon { background: var(--warn, #f59e0b); }

.toast.info { color: var(--text-2, #6e6e8a); border-color: rgba(255,255,255,0.08); }
.toast.info .icon { background: var(--text-3, #383850); }

@keyframes toastShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

.toast.error.show { animation: toastShake 0.42s ease 0.12s; }
