body {
  background: #0e1219;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img, svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(1200px circle at 20% 20%,
      rgba(120, 170, 255, 0.18),
      transparent 55%),
    radial-gradient(1000px circle at 80% 75%,
      rgba(90, 220, 190, 0.13),
      transparent 58%),
    radial-gradient(900px circle at 55% 40%,
      rgba(160, 120, 255, 0.10),
      transparent 60%),
    linear-gradient(180deg,
      #101622 0%,
      #0b0f17 100%);

  filter: blur(40px) saturate(115%);
  transform: translate3d(0,0,0);
  animation: veilAurora 26s ease-in-out infinite;
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  opacity: 0.08;
  mix-blend-mode: overlay;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

@keyframes veilAurora {
  0% {
    transform: translate3d(0%, 0%, 0) scale(1);
  }
  30% {
    transform: translate3d(-2%, -1.5%, 0) scale(1.03);
  }
  60% {
    transform: translate3d(2%, 1%, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0%, 0%, 0) scale(1);
  }
}

.veil-toast {
  position: relative;
  border-radius: 16px;
  padding: 14px 18px 14px 22px;
  background: linear-gradient(155deg, rgba(25, 28, 38, 0.96) 0%, rgba(16, 18, 26, 0.96) 100%);
  color: #f5f6fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-width: 220px;
  max-width: 360px;
  backdrop-filter: blur(10px) saturate(120%);
  overflow: hidden;
}

.veil-toast::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9ad4ff 0%, #6be3c7 55%, #7e5df5 100%);
  opacity: 0.9;
}

.veil-toast--success {
  background: linear-gradient(150deg, rgba(21, 35, 33, 0.95) 0%, rgba(14, 24, 21, 0.92) 100%);
  border-color: rgba(112, 224, 170, 0.28);
  box-shadow: 0 18px 42px rgba(16, 46, 34, 0.55);
}

.veil-toast--success::before {
  background: linear-gradient(180deg, #9af5c8 0%, #4ad89f 100%);
}

.veil-toast--error {
  background: linear-gradient(150deg, rgba(49, 20, 32, 0.95) 0%, rgba(32, 12, 22, 0.92) 100%);
  border-color: rgba(255, 146, 177, 0.32);
  box-shadow: 0 18px 42px rgba(56, 10, 28, 0.55);
}

.veil-toast--error::before {
  background: linear-gradient(180deg, #ff9cbf 0%, #ff6b9b 100%);
}

.veil-toast--info {
  background: linear-gradient(150deg, rgba(22, 30, 46, 0.96) 0%, rgba(14, 18, 28, 0.94) 100%);
  border-color: rgba(144, 184, 255, 0.28);
  box-shadow: 0 18px 42px rgba(8, 22, 42, 0.55);
}

.veil-toast--info::before {
  background: linear-gradient(180deg, #9ad4ff 0%, #7e5df5 100%);
}

.veil-toast.toastify {
  opacity: 0.97;
  margin-bottom: 14px;
  transform-origin: bottom left;
}

.veil-toast.toastify .toast-close {
  color: rgba(245, 246, 251, 0.7);
  font-weight: 700;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.veil-toast.toastify:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Ensure Veil toast styles override Toastify defaults (Toastify CSS loads after ours) */
.toastify.veil-toast {
  background: linear-gradient(155deg, rgba(25, 28, 38, 0.96) 0%, rgba(16, 18, 26, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f5f6fb !important;
  pointer-events: auto;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  animation: veilToastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

.toastify.veil-toast--success {
  background: linear-gradient(150deg, rgba(21, 35, 33, 0.95) 0%, rgba(14, 24, 21, 0.92) 100%) !important;
  border-color: rgba(112, 224, 170, 0.28) !important;
  box-shadow: 0 18px 42px rgba(16, 46, 34, 0.55) !important;
}

.toastify.veil-toast--error {
  background: linear-gradient(150deg, rgba(49, 20, 32, 0.95) 0%, rgba(32, 12, 22, 0.92) 100%) !important;
  border-color: rgba(255, 146, 177, 0.32) !important;
  box-shadow: 0 18px 42px rgba(56, 10, 28, 0.55) !important;
}

.toastify.veil-toast--info {
  background: linear-gradient(150deg, rgba(22, 30, 46, 0.96) 0%, rgba(14, 18, 28, 0.94) 100%) !important;
  border-color: rgba(144, 184, 255, 0.28) !important;
  box-shadow: 0 18px 42px rgba(8, 22, 42, 0.55) !important;
}

.toastify.veil-toast .toast-close {
  pointer-events: auto;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px -4px 8px;
}

@keyframes veilToastIn {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toastify.veil-toast.toastify-fadeOut {
  animation: veilToastOut 0.14s ease-out forwards !important;
}

@keyframes veilToastOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-12px) scale(0.96);
  }
}

/* Instant close on click - override Toastify's default transition delay */
.toastify.veil-toast {
  transition: none !important;
}
