/* ===========================================================
   StanNG — ARCANE TERMINAL Theme (v4.0)
   Fusion DNA: myip.nl cyber-terminal + arcane gold wizardry.
   Division of labor:
   - PHOSPHOR GREEN (--accent-*)  = the ACTION layer: buttons,
     switches, focus, links, grid, terminal output.
   - ARCANE GOLD (--gold-*)       = the IDENTITY layer: brand,
     card header icons, sigils, glows.
   Signature: green→gold gradient bars on card top edges.
   Persian-first (Vazirmatn FD). All legacy class names kept.
   =========================================================== */

:root {
  /* --- base surfaces — MYIP.NL CYBER-TERMINAL (near-black + grid) --- */
  --bg-0: #0a0a0a;
  --bg-rail: #070707;
  --bg-1: #101010;
  --bg-2: #121212;
  --bg-3: #161616;
  --surface-1: #121212;
  --surface-2: #181818;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --glass: #121212;
  --glass-strong: #181818;
  --border-subtle: #242424;
  --border-soft: rgba(139, 92, 246, 0.18);
  --border-strong: rgba(139, 92, 246, 0.40);

  /* --- accent: arcane violet (logo-native) --- */
  --accent-text: #a78bfa;        /* readable lavender on dark */
  --accent-solid: #8b5cf6;       /* solid fill (buttons) */
  --accent-tint: rgba(139, 92, 246, 0.16);
  --accent-glow: rgba(139, 92, 246, 0.30);

  /* --- semantic (Tabler) --- */
  --ok: #4ade80;
  --err: #f87171;
  --warn: #facc15;
  --info: #a78bfa;

  /* --- brand gold — ARCANE IDENTITY (harmonized with the wizard sigil) --- */
  --gold-100: #fef3c7;
  --gold-300: #fbbf24;
  --gold-500: #f59e0b;
  --gold-700: #b45309;
  --gold-glow: rgba(245, 158, 11, 0.28);

  /* --- legacy accent names → arcane palette --- */
  --neon-cyan: #a5b4fc;
  --neon-violet: #cd8be0;
  --neon-pink: #e67a9a;
  --amethyst: #cd8be0;
  --amethyst-d: #ae3ec9;
  --emerald: #a78bfa;
  --emerald-d: #7c3aed;
  --crimson: #e68888;
  --crimson-d: #d63939;
  --azure: #a5b4fc;
  --azure-d: #6366f1;

  /* --- text --- */
  --text-0: #f9fafb;
  --text-1: #e5e7eb;
  --text-2: #9ca3af;
  --text-muted: #6b7280;

  /* --- Tabler radii --- */
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;

  /* --- Tabler shadows --- */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 16px 24px 2px rgba(0, 0, 0, 0.5), 0 6px 30px 5px rgba(0, 0, 0, 0.4), 0 8px 10px -5px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.28);
  --glow-cyan: 0 1px 2px rgba(0, 0, 0, 0.16);
  --glow-violet: 0 1px 2px rgba(0, 0, 0, 0.16);
  --glass-blur: 0px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --dur-fast: 140ms;
  --dur-mid: 220ms;
  --dur-slow: 360ms;

  /* Vazirmatn everywhere — Persian first */
  --font-fa: 'Vazirmatn FD', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* ========== LIGHT THEME — Tabler light (opaque, crisp) ========== */
html[data-theme="light"] {
  --bg-0: #f9fafb;
  --bg-rail: #f3f4f6;
  --bg-1: #f3f4f6;
  --bg-2: #eef1f4;
  --bg-3: #e5e7eb;
  --surface-1: #ffffff;
  --surface-2: #f9fafb;
  --surface: rgba(4, 32, 69, 0.045);
  --surface-strong: rgba(4, 32, 69, 0.09);
  --glass: #ffffff;
  --glass-strong: #ffffff;
  --border-subtle: #e5e7eb;
  --border-soft: rgba(4, 32, 69, 0.16);
  --border-strong: rgba(4, 32, 69, 0.32);

  --accent-text: #7c3aed;
  --accent-solid: #7c3aed;
  --accent-tint: rgba(124, 58, 237, 0.10);
  --accent-glow: rgba(124, 58, 237, 0.18);

  --ok: #2fb344;
  --err: #d63939;
  --warn: #f59f00;
  --info: #4299e1;

  --gold-100: #fef3c7;
  --gold-300: #b45309;
  --gold-500: #d97706;
  --gold-700: #92400e;
  --gold-glow: rgba(217, 119, 6, 0.20);

  --neon-cyan: #6d28d9;
  --neon-violet: #ae3ec9;
  --neon-pink: #d6396b;
  --amethyst: #ae3ec9;
  --amethyst-d: #8912a4;
  --emerald: #2fb344;
  --emerald-d: #258b36;
  --crimson: #d63939;
  --crimson-d: #b02a2a;
  --azure: #6d28d9;
  --azure-d: #5b21b6;

  --text-0: #111827;
  --text-1: #1f2937;
  --text-2: #4b5563;
  --text-muted: #6b7280;

  --shadow-card: 0 1px 2px rgba(4, 32, 69, 0.06);
  --shadow-pop: 0 16px 24px 2px rgba(4, 32, 69, 0.07), 0 6px 30px 5px rgba(4, 32, 69, 0.06), 0 8px 10px -5px rgba(4, 32, 69, 0.09);
  --shadow-glow: 0 1px 2px rgba(4, 32, 69, 0.06);
  --glow-cyan: 0 1px 2px rgba(4, 32, 69, 0.06);
  --glow-violet: 0 1px 2px rgba(4, 32, 69, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-fa);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}

/* ========== BACKDROP — flat, static (legacy layers neutralized) ========== */
.bg-photo,
.bg-aurora { display: none; }

/* floating particles — disabled in flat theme */
.sparkle-field { display: none; }

::selection {
  background: var(--accent-tint);
  color: var(--text-0);
}

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent-solid); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-0);
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 10px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 8px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------------- layout shells ---------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 36px 30px 26px;
  animation: card-rise 380ms var(--ease-out) both;
}
/* legacy neon aura / sheen — disabled */
.auth-card::before,
.auth-card::after { display: none; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px 20px; border-radius: var(--radius-md); }
}
@keyframes card-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 14px;
}

.brand-title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 6px;
}
.brand-sub {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 24px;
}

/* --- arcane brand ring around the login/setup logo (gold sigil halo) --- */
.auth-logo {
  box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--gold-700),
              0 0 18px var(--gold-glow), 0 0 34px rgba(245, 158, 11, 0.14);
}

/* ---------------- form controls (Tabler inputs) ---------------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 13px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
html[data-theme="light"] .input,
html[data-theme="light"] select.input,
html[data-theme="light"] textarea.input { background: #ffffff; }

.input::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover:not(:focus):not(:disabled) { border-color: var(--border-strong); }
.input:focus {
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.input:disabled { opacity: 0.55; cursor: not-allowed; }

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(0% + 16px) calc(50% - 2px), calc(0% + 21px) calc(50% - 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-left: 34px;
}

.input-wrap { position: relative; }
.input-wrap > .ti {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-wrap .input { padding-right: 38px; }
.input-wrap .input-toggle {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}
.input-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.input-toggle:hover { color: var(--accent-text); background: var(--surface); }

/* ---------------- buttons (Tabler) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  color: #ffffff;
  background: var(--accent-solid);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.btn:hover { box-shadow: 0 2px 8px rgba(4, 32, 69, 0.22); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.btn .spin { display: none; }
.btn.is-loading .spin { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.75; }

.btn-block { display: flex; width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-soft);
}
.btn-ghost:hover { background: var(--surface); color: var(--text-0); box-shadow: none; }

.btn-primary { background: var(--accent-solid); }
.btn-primary:hover { background: #055cb4; }
html[data-theme="light"] .btn-primary:hover { background: #055cb4; }

.btn-amethyst { background: var(--amethyst-d); }
.btn-amethyst:hover { background: #9229ad; }

.btn-emerald { background: var(--emerald-d); }
.btn-emerald:hover { background: #6d28d9; }

.btn-crimson, .btn-danger { background: var(--crimson-d); }
.btn-crimson:hover, .btn-danger:hover { background: #b02a2a; }

.btn-azure { background: var(--azure-d); }
.btn-azure:hover { background: #2b7cc0; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-soft);
}
.btn-secondary:hover { background: var(--surface-strong); color: var(--text-0); box-shadow: none; }

.btn-icon { padding: 9px; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: var(--radius-sm); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent-text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.link-btn:hover { color: var(--accent-solid); background: var(--accent-tint); }

/* ---------------- ripple (kept, subtle) ---------------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
  transform: scale(0);
  animation: ripple-anim 600ms var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.4); opacity: 0; }
}

/* ---------------- toasts (Tabler alerts) ---------------- */
.toast-stack {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  color: var(--text-1);
  padding: 12px 14px;
  font-size: 13.5px;
  animation: toast-in 240ms var(--ease-spring) both;
}
.toast.leaving { animation: toast-out 200ms var(--ease-out) both; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px) scale(0.97); }
}
.toast.success { border-inline-start: 3px solid var(--emerald-d); }
.toast.error { border-inline-start: 3px solid var(--crimson-d); }
.toast.info { border-inline-start: 3px solid var(--azure-d); }
.toast-icon { flex-shrink: 0; line-height: 1.4; }
.toast-icon .ti { font-size: 18px; }

.inline-error {
  display: none;
  background: rgba(214, 57, 57, 0.10);
  border: 1px solid rgba(214, 57, 57, 0.35);
  color: var(--err);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  padding: 8px 12px;
  margin-top: 10px;
}
.inline-error.show { display: block; }

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.shake-target.shake { animation: shake 500ms var(--ease-out); }

/* ---------------- switch (Tabler form-switch) ----------------
   Direction-independent: the thumb travels via inline-start/inline-end
   logical properties, so RTL and LTR behave identically and the knob
   can NEVER escape the track (the v2.4.2 RTL bug: checked thumb at
   translateX(-18px) from left:3px walked outside the 40px track). */
.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  display: block;
  width: 42px;
  height: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  text-align: start;              /* thumb anchors to the START edge */
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.switch .thumb {
  display: inline-block;
  vertical-align: top;
  margin: 4px 3px;                /* 4px vertical centering, 3px start inset */
  width: 14px;
  height: 14px;
  background: var(--text-2);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  /* travel = 42 - 2*1(border) - 2*3(inset) - 14(thumb) = 18px toward END */
  transform: translateX(calc(var(--switch-dir, 1) * 0px)); /* placeholder, overridden below */
}
html[dir="rtl"] .switch { --switch-dir: -1; }
html[dir="ltr"] .switch { --switch-dir: 1; }
.switch:hover .track { border-color: var(--accent-text); }
.switch input:focus-visible + .track {
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.switch input:checked + .track {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  box-shadow: 0 0 10px var(--accent-tint);
}
.switch input:checked + .track .thumb {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  /* move to the END edge, safely inside: 18px * direction */
  transform: translateX(calc(var(--switch-dir, 1) * 18px));
}
/* keep-ON glow subtle in light theme */
html[data-theme="light"] .switch input:checked + .track { box-shadow: none; }

/* ---------------- utility classes ---------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.spinner.on-dark { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-strong) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------------- floating telegram contact (left, arcane-themed) ---------------- */
.telegram-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  box-shadow: var(--shadow-card), 0 0 14px rgba(139, 92, 246, 0.22);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
/* telegram paper-plane disc recolored to arcane violet (logo-family) */
.telegram-fab svg { width: 24px; height: 24px; border-radius: 50%; }
.telegram-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.35);
}
.telegram-fab:active { transform: translateY(0); }
@media (max-width: 560px) {
  .telegram-fab { width: 40px; height: 40px; bottom: 14px; left: 14px; }
  .telegram-fab svg { width: 20px; height: 20px; }
}

/* ---------------- floating github link (stacked above telegram) ---------------- */
.github-fab {
  position: fixed;
  bottom: 76px;
  left: 20px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: var(--text-1);
  box-shadow: var(--shadow-card), 0 0 14px var(--gold-glow);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.github-fab .ti { font-size: 24px; }
.github-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--gold-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}
.github-fab:active { transform: translateY(0); }
@media (max-width: 560px) {
  .github-fab { width: 40px; height: 40px; bottom: 64px; left: 14px; }
  .github-fab .ti { font-size: 20px; }
}

/* ===========================================================
   WELCOME SPLASH — clean minimal loader
   =========================================================== */
.welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-0);
  transition: opacity 600ms var(--ease-out);
}
.welcome-splash.hide { opacity: 0; pointer-events: none; }
.splash-logo { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px var(--gold-700), 0 0 16px var(--gold-glow); }
.splash-title {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px var(--gold-glow);
}
.splash-sub { font-size: 13px; color: var(--text-2); }
.splash-icons { display: none; }
.splash-bar {
  width: 132px;
  height: 3px;
  background: var(--surface-strong);
  border-radius: 999px;
  overflow: hidden;
}
.splash-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent-solid);
  border-radius: 999px;
  animation: splash-load 1.4s var(--ease-out) infinite;
}
@keyframes splash-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

/* ===========================================================
   PAGE & STAGGER TRANSITIONS
   =========================================================== */
.page-enter { animation: page-enter 320ms var(--ease-out) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: page-enter 320ms var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 30ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 90ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; }
.stagger > *:nth-child(5) { animation-delay: 150ms; }
.stagger > *:nth-child(6) { animation-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
