/* StakeProSoft Meridian — multi-theme desk system */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Sora:wght@400;500;600;700&display=swap');

:root,
html[data-theme="orbit"] {
  --bg: #01040c;
  --bg-elevated: #060d1a;
  --surface: rgba(8, 14, 28, 0.72);
  --border: rgba(94, 234, 212, 0.16);
  --text: #eaf4ff;
  --text-dim: #8ba3c7;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-3: #fde68a;
  --green: #34d399;
  --red: #fb7185;
  --mark-grad: linear-gradient(110deg, #5eead4 0%, #f8fafc 14%, #38bdf8 28%, #fde68a 42%, #67e8f9 58%, #2dd4bf 72%, #ffffff 88%, #5eead4 100%);
  --mark-stroke: rgba(153, 246, 228, 0.7);
  --mark-glow: rgba(45, 212, 191, 0.55);
  --mark-glow-2: rgba(56, 189, 248, 0.35);
  --btn-grad: linear-gradient(135deg, #0f766e, #2dd4bf 45%, #38bdf8);
  --font-ui: 'Sora', system-ui, sans-serif;
  --font-brand: 'Orbitron', 'Sora', sans-serif;
  --fx-family: space;
}

html[data-theme="nebula"] {
  --bg: #07010f;
  --bg-elevated: #12081f;
  --surface: rgba(22, 10, 36, 0.75);
  --border: rgba(192, 132, 252, 0.22);
  --text: #f5e9ff;
  --text-dim: #b8a0d4;
  --accent: #c084fc;
  --accent-2: #f0abfc;
  --accent-3: #67e8f9;
  --mark-grad: linear-gradient(110deg, #e879f9 0%, #fff 16%, #a78bfa 32%, #67e8f9 48%, #f0abfc 64%, #c084fc 80%, #fff 100%);
  --mark-stroke: rgba(233, 213, 255, 0.75);
  --mark-glow: rgba(192, 132, 252, 0.6);
  --mark-glow-2: rgba(240, 171, 252, 0.4);
  --btn-grad: linear-gradient(135deg, #6b21a8, #c084fc 50%, #67e8f9);
  --fx-family: space;
}

html[data-theme="mars"] {
  --bg: #0c0402;
  --bg-elevated: #1a0a06;
  --surface: rgba(36, 14, 8, 0.78);
  --border: rgba(251, 146, 60, 0.22);
  --text: #fff1e8;
  --text-dim: #c4a090;
  --accent: #fb923c;
  --accent-2: #f87171;
  --accent-3: #fde68a;
  --mark-grad: linear-gradient(110deg, #fdba74 0%, #fff7ed 18%, #f97316 34%, #fecaca 50%, #fbbf24 66%, #ea580c 82%, #fff 100%);
  --mark-stroke: rgba(254, 215, 170, 0.75);
  --mark-glow: rgba(249, 115, 22, 0.55);
  --mark-glow-2: rgba(251, 191, 36, 0.35);
  --btn-grad: linear-gradient(135deg, #9a3412, #fb923c 50%, #fbbf24);
  --fx-family: space;
}

html[data-theme="wallstreet"] {
  --bg: #05070d;
  --bg-elevated: #0c1220;
  --surface: rgba(10, 16, 28, 0.8);
  --border: rgba(148, 163, 184, 0.2);
  --text: #e8eef8;
  --text-dim: #94a3b8;
  --accent: #94a3b8;
  --accent-2: #38bdf8;
  --accent-3: #fbbf24;
  --mark-grad: linear-gradient(110deg, #cbd5e1 0%, #fff 18%, #38bdf8 36%, #e2e8f0 52%, #fbbf24 68%, #94a3b8 84%, #fff 100%);
  --mark-stroke: rgba(226, 232, 240, 0.7);
  --mark-glow: rgba(148, 163, 184, 0.45);
  --mark-glow-2: rgba(251, 191, 36, 0.3);
  --btn-grad: linear-gradient(135deg, #1e293b, #64748b 45%, #fbbf24);
  --fx-family: city;
}

html[data-theme="bull-dawn"] {
  --bg: #1a0f08;
  --bg-elevated: #2a1810;
  --surface: rgba(42, 24, 14, 0.78);
  --border: rgba(251, 191, 36, 0.25);
  --text: #fff8eb;
  --text-dim: #d4b896;
  --accent: #fbbf24;
  --accent-2: #fb923c;
  --accent-3: #fde68a;
  --mark-grad: linear-gradient(110deg, #fde68a 0%, #fff 15%, #f59e0b 30%, #fdba74 48%, #fef3c7 65%, #f97316 82%, #fff 100%);
  --mark-stroke: rgba(254, 243, 199, 0.8);
  --mark-glow: rgba(251, 191, 36, 0.6);
  --mark-glow-2: rgba(249, 115, 22, 0.35);
  --btn-grad: linear-gradient(135deg, #b45309, #fbbf24 50%, #fdba74);
  --fx-family: city;
}

html[data-theme="midnight-nyc"] {
  --bg: #020617;
  --bg-elevated: #0a1628;
  --surface: rgba(8, 20, 40, 0.8);
  --border: rgba(56, 189, 248, 0.2);
  --text: #e0f2fe;
  --text-dim: #7dd3fc;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #22d3ee;
  --mark-grad: linear-gradient(110deg, #7dd3fc 0%, #fff 16%, #38bdf8 32%, #a5b4fc 50%, #22d3ee 68%, #6366f1 84%, #fff 100%);
  --mark-stroke: rgba(186, 230, 253, 0.75);
  --mark-glow: rgba(56, 189, 248, 0.55);
  --mark-glow-2: rgba(129, 140, 248, 0.4);
  --btn-grad: linear-gradient(135deg, #1e3a5f, #38bdf8 50%, #818cf8);
  --fx-family: city;
}

html[data-theme="vault-gold"] {
  --bg: #0a0804;
  --bg-elevated: #16120a;
  --surface: rgba(28, 22, 10, 0.82);
  --border: rgba(234, 179, 8, 0.28);
  --text: #fffbeb;
  --text-dim: #cbb87a;
  --accent: #eab308;
  --accent-2: #f59e0b;
  --accent-3: #fef08a;
  --mark-grad: linear-gradient(110deg, #fef08a 0%, #fff 12%, #eab308 28%, #fde68a 44%, #ca8a04 60%, #fef9c3 76%, #f59e0b 90%, #fff 100%);
  --mark-stroke: rgba(254, 240, 138, 0.85);
  --mark-glow: rgba(234, 179, 8, 0.65);
  --mark-glow-2: rgba(245, 158, 11, 0.4);
  --btn-grad: linear-gradient(135deg, #854d0e, #eab308 50%, #fef08a);
  --fx-family: money;
}

html[data-theme="emerald-capital"] {
  --bg: #02140c;
  --bg-elevated: #0a1f14;
  --surface: rgba(8, 32, 22, 0.8);
  --border: rgba(52, 211, 153, 0.25);
  --text: #ecfdf5;
  --text-dim: #86efac;
  --accent: #34d399;
  --accent-2: #10b981;
  --accent-3: #a7f3d0;
  --mark-grad: linear-gradient(110deg, #6ee7b7 0%, #fff 15%, #34d399 32%, #a7f3d0 48%, #10b981 65%, #d1fae5 80%, #059669 100%);
  --mark-stroke: rgba(167, 243, 208, 0.8);
  --mark-glow: rgba(52, 211, 153, 0.6);
  --mark-glow-2: rgba(16, 185, 129, 0.4);
  --btn-grad: linear-gradient(135deg, #065f46, #34d399 50%, #a7f3d0);
  --fx-family: money;
}

html[data-theme="platinum-desk"] {
  --bg: #0c0e12;
  --bg-elevated: #161a22;
  --surface: rgba(22, 26, 34, 0.82);
  --border: rgba(226, 232, 240, 0.2);
  --text: #f8fafc;
  --text-dim: #94a3b8;
  --accent: #e2e8f0;
  --accent-2: #94a3b8;
  --accent-3: #38bdf8;
  --mark-grad: linear-gradient(110deg, #f8fafc 0%, #94a3b8 18%, #fff 34%, #64748b 50%, #e2e8f0 66%, #38bdf8 82%, #fff 100%);
  --mark-stroke: rgba(248, 250, 252, 0.8);
  --mark-glow: rgba(226, 232, 240, 0.5);
  --mark-glow-2: rgba(56, 189, 248, 0.3);
  --btn-grad: linear-gradient(135deg, #334155, #e2e8f0 50%, #94a3b8);
  --fx-family: money;
}

html[data-theme="rose-vault"] {
  --bg: #12080c;
  --bg-elevated: #1f1016;
  --surface: rgba(40, 18, 28, 0.8);
  --border: rgba(251, 113, 133, 0.25);
  --text: #fff1f2;
  --text-dim: #fda4af;
  --accent: #fb7185;
  --accent-2: #f9a8d4;
  --accent-3: #fde68a;
  --mark-grad: linear-gradient(110deg, #fda4af 0%, #fff 14%, #fb7185 30%, #f9a8d4 48%, #fde68a 64%, #e11d48 80%, #fff 100%);
  --mark-stroke: rgba(254, 205, 211, 0.8);
  --mark-glow: rgba(251, 113, 133, 0.55);
  --mark-glow-2: rgba(253, 230, 138, 0.35);
  --btn-grad: linear-gradient(135deg, #9f1239, #fb7185 50%, #fde68a);
  --fx-family: money;
}

html { background: var(--bg); color-scheme: dark; }

body.meridian-body,
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  position: relative;
  min-height: 100vh;
}

/* ── Shared FX shell ──────────────────────────────────────────────────── */
.meridian-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.meridian-fx [data-layer] { position: absolute; pointer-events: none; }
.meridian-fx [data-layer="space"],
.meridian-fx [data-layer="city"],
.meridian-fx [data-layer="money"] { inset: 0; display: none; }

html[data-theme="orbit"] .meridian-fx [data-layer="space"],
html[data-theme="nebula"] .meridian-fx [data-layer="space"],
html[data-theme="mars"] .meridian-fx [data-layer="space"],
html[data-theme="wallstreet"] .meridian-fx [data-layer="city"],
html[data-theme="bull-dawn"] .meridian-fx [data-layer="city"],
html[data-theme="midnight-nyc"] .meridian-fx [data-layer="city"],
html[data-theme="vault-gold"] .meridian-fx [data-layer="money"],
html[data-theme="emerald-capital"] .meridian-fx [data-layer="money"],
html[data-theme="platinum-desk"] .meridian-fx [data-layer="money"],
html[data-theme="rose-vault"] .meridian-fx [data-layer="money"] { display: block; }

/* Shared overlays */
.fx-grid, .fx-scan {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.fx-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg) translateY(-8%) scale(1.4);
  transform-origin: center top;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 72%);
  animation: fx-grid-drift 22s linear infinite;
}
.fx-scan {
  height: 22%;
  inset: auto 0 auto 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
  animation: fx-scan 11s ease-in-out infinite;
}

/* ── SPACE family ─────────────────────────────────────────────────────── */
.fx-stars, .fx-stars-2 {
  position: absolute; inset: 0;
  background-repeat: repeat;
  background-size: 420px 420px;
}
.fx-stars {
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, var(--accent), transparent),
    radial-gradient(1px 1px at 240px 200px, #fff, transparent),
    radial-gradient(2px 2px at 300px 90px, #fff, transparent),
    radial-gradient(1px 1px at 50px 280px, var(--accent-3), transparent),
    radial-gradient(1.5px 1.5px at 190px 310px, #fff, transparent),
    radial-gradient(1px 1px at 350px 250px, var(--accent-2), transparent);
  animation: fx-stars-drift 120s linear infinite, fx-twinkle 4s ease-in-out infinite alternate;
}
.fx-stars-2 {
  background-size: 560px 560px;
  opacity: .65;
  background-image:
    radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 140px 40px, var(--accent), transparent),
    radial-gradient(1px 1px at 220px 160px, #fff, transparent),
    radial-gradient(2px 2px at 320px 280px, var(--accent-3), transparent),
    radial-gradient(1px 1px at 400px 120px, var(--accent-2), transparent);
  animation: fx-stars-drift 180s linear infinite reverse, fx-twinkle 6s ease-in-out infinite alternate-reverse;
}
.fx-nebula {
  position: absolute; inset: -15%;
  background:
    radial-gradient(ellipse 45% 35% at 25% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 75% 55%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(40px);
  animation: fx-nebula 32s ease-in-out infinite alternate;
}
.fx-globe {
  position: absolute;
  width: min(72vw, 620px); height: min(72vw, 620px);
  right: -8%; bottom: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    color-mix(in srgb, var(--accent) 35%, transparent) 0%,
    color-mix(in srgb, var(--accent-2) 22%, transparent) 28%,
    rgba(6, 40, 70, 0.55) 58%,
    rgba(2, 8, 20, 0.85) 78%, transparent 82%);
  box-shadow: 0 0 80px color-mix(in srgb, var(--accent) 30%, transparent),
    inset -30px -20px 60px rgba(0,0,0,.55);
  animation: fx-globe-float 22s ease-in-out infinite;
}
.fx-globe::before {
  content: ''; position: absolute; inset: 6%; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 14deg, color-mix(in srgb, var(--accent) 28%, transparent) 14deg 15deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 11.5%, color-mix(in srgb, var(--accent-2) 22%, transparent) 11.5%, color-mix(in srgb, var(--accent-2) 22%, transparent) 12%);
  mask-image: radial-gradient(circle, #000 62%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 78%);
  animation: fx-spin 60s linear infinite;
}
.fx-globe::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,.08) 48%, transparent 56%);
}
.fx-planet {
  position: absolute; border-radius: 50%;
}
.fx-planet--a {
  width: 110px; height: 110px; left: 6%; top: 14%;
  background: radial-gradient(circle at 35% 32%, var(--accent-3), var(--accent) 45%, #451a03 100%);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: fx-drift 28s ease-in-out infinite;
}
.fx-planet--a::after {
  content: ''; position: absolute; left: -28%; right: -28%; top: 42%; height: 16%;
  border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent-3) 55%, transparent);
  transform: rotateX(72deg) rotateZ(-18deg);
}
.fx-planet--b {
  width: 48px; height: 48px; left: 22%; bottom: 22%;
  background: radial-gradient(circle at 40% 35%, var(--accent-2), var(--accent) 55%, #1e1b4b);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent-2) 50%, transparent);
  animation: fx-drift 36s ease-in-out infinite reverse;
}
.fx-planet--c {
  width: 28px; height: 28px; right: 28%; top: 18%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent-3) 55%, var(--accent));
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent-3) 45%, transparent);
  animation: fx-drift 20s ease-in-out infinite;
}

/* Celestial Desk (Orbit) — match login screenshot planets */
html[data-theme="orbit"] .meridian-fx {
  background:
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(8, 47, 73, .45), transparent 55%),
    linear-gradient(180deg, #000208 0%, #030712 45%, #01040c 100%);
}
html[data-theme="orbit"] .fx-planet--a {
  width: 150px; height: 150px; left: 4%; top: 8%;
  background: radial-gradient(circle at 32% 28%, #fde68a 0%, #f59e0b 32%, #c2410c 70%, #431407 100%);
  box-shadow: 0 0 60px rgba(245, 158, 11, .55), inset -16px -10px 30px rgba(0,0,0,.45);
}
html[data-theme="orbit"] .fx-planet--a::after {
  left: -36%; right: -36%; top: 44%; height: 18%;
  border: 3px solid rgba(253, 230, 138, .7);
  box-shadow: 0 0 18px rgba(251, 191, 36, .45);
}
html[data-theme="orbit"] .fx-planet--c {
  width: 36px; height: 36px; right: 10%; top: 12%; left: auto;
  background: radial-gradient(circle at 35% 30%, #fecdd3, #fb7185 50%, #9f1239 100%);
  box-shadow: 0 0 28px rgba(251, 113, 133, .55);
}
html[data-theme="orbit"] .fx-planet--b {
  width: 64px; height: 64px; left: 7%; bottom: 16%; top: auto;
  background: radial-gradient(circle at 40% 32%, #ddd6fe, #8b5cf6 45%, #4c1d95 100%);
  box-shadow: 0 0 36px rgba(139, 92, 246, .5);
}
html[data-theme="orbit"] .fx-globe {
  opacity: .95;
  box-shadow: 0 0 100px rgba(34, 211, 238, .28), inset -30px -20px 60px rgba(0,0,0,.55);
}

html[data-theme="nebula"] .meridian-fx { background:
  radial-gradient(ellipse 50% 40% at 80% 20%, rgba(88,28,135,.35), transparent 50%),
  linear-gradient(180deg, #07010f, #12081f 50%, #07010f); }
html[data-theme="mars"] .meridian-fx { background:
  radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124,45,18,.45), transparent 55%),
  linear-gradient(180deg, #0c0402, #1a0a06 50%, #0c0402); }
html[data-theme="mars"] .fx-globe {
  background: radial-gradient(circle at 32% 28%, rgba(251,146,60,.35), rgba(154,52,18,.45) 45%, rgba(40,10,4,.9) 78%, transparent 82%);
}

/* ── CITY family — New York / Wall Street ─────────────────────────────── */
.fx-sky {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #020617 0%, #0b1224 35%, #020617 70%, #000 100%);
}
html[data-theme="wallstreet"] .fx-sky {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(251,191,36,.12), transparent 50%),
    linear-gradient(180deg, #0a0f1a 0%, #111827 40%, #020617 100%);
}
html[data-theme="bull-dawn"] .fx-sky {
  background:
    radial-gradient(ellipse 90% 50% at 70% 15%, rgba(253,230,138,.55), transparent 55%),
    linear-gradient(180deg, #1e3a5f 0%, #c45c1a 32%, #f59e0b 48%, #7c2d12 68%, #1a0f08 100%);
}
html[data-theme="midnight-nyc"] .fx-sky {
  background:
    radial-gradient(ellipse 60% 35% at 80% 10%, rgba(56,189,248,.2), transparent 50%),
    linear-gradient(180deg, #020617 0%, #0c1a32 40%, #020617 100%);
}
.fx-city-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 55% 22%, #fff, transparent),
    radial-gradient(1px 1px at 72% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 88% 16%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 6%, rgba(253,230,138,.9), transparent);
  animation: fx-twinkle 5s ease-in-out infinite alternate;
  opacity: .7;
}
html[data-theme="bull-dawn"] .fx-city-stars { opacity: .25; }
.fx-moon {
  position: absolute;
  width: 56px; height: 56px;
  right: 12%; top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f8fafc, #cbd5e1 55%, #64748b);
  box-shadow: 0 0 40px rgba(248,250,252,.35);
  animation: fx-drift 30s ease-in-out infinite;
}
html[data-theme="bull-dawn"] .fx-moon {
  background: radial-gradient(circle at 35% 30%, #fef9c3, #fbbf24 60%, #b45309);
  box-shadow: 0 0 60px rgba(251,191,36,.55);
  right: 18%; top: 8%; width: 72px; height: 72px;
}
.fx-clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 18% at 20% 28%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 35% 14% at 70% 22%, rgba(255,255,255,.05), transparent);
  animation: fx-clouds 40s ease-in-out infinite alternate;
}
.fx-nyc {
  position: absolute; left: 0; right: 0; bottom: 8%;
  height: min(52vh, 420px);
  z-index: 1;
}
.fx-nyc-svg {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 0 20px rgba(56,189,248,.15));
  animation: fx-skyline-glow 6s ease-in-out infinite alternate;
}
html[data-theme="bull-dawn"] .fx-nyc-svg {
  filter: sepia(.4) saturate(1.35) brightness(.92) drop-shadow(0 0 24px rgba(251,191,36,.3));
}
html[data-theme="midnight-nyc"] .fx-nyc-svg {
  filter: hue-rotate(15deg) saturate(1.2) drop-shadow(0 0 28px rgba(56,189,248,.28));
}
html[data-theme="wallstreet"] .fx-grid,
html[data-theme="bull-dawn"] .fx-grid,
html[data-theme="midnight-nyc"] .fx-grid { opacity: .18; }
.fx-landmark { animation: fx-building-breathe 7s ease-in-out infinite; }
.fx-empire { animation-delay: .4s; }
.fx-chrysler { animation-delay: .9s; }
.fx-wtc { animation-delay: .2s; }
.fx-nyc-label {
  opacity: .55;
  animation: fx-twinkle 4s ease-in-out infinite alternate;
}

.fx-street {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14%;
  background:
    linear-gradient(180deg, transparent, rgba(15,23,42,.85) 30%, #020617 100%);
  z-index: 2;
  overflow: hidden;
}
.fx-street::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 42%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #fbbf24 0 18px, transparent 18px 36px);
  opacity: .45;
  animation: fx-road-dash 1.2s linear infinite;
}
.fx-wallst-sign {
  position: absolute;
  left: 50%; bottom: 55%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 2px solid #fbbf24;
  border-radius: 4px;
  padding: 6px 14px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 0 24px rgba(251,191,36,.35), 0 8px 0 #020617;
  font-family: var(--font-brand);
  letter-spacing: .18em;
  z-index: 3;
  animation: fx-sign-pulse 3s ease-in-out infinite;
}
.fx-wallst-sign span {
  color: #fde68a;
  font-size: 11px; font-weight: 800;
  line-height: 1.15;
}
.fx-wallst-sign::before {
  content: '';
  position: absolute; left: 50%; bottom: -18px;
  width: 4px; height: 18px; margin-left: -2px;
  background: #64748b;
}
.fx-bull {
  position: absolute;
  left: 18%; bottom: 28%;
  width: 52px; height: 28px;
  background: #334155;
  clip-path: polygon(8% 70%, 0 45%, 18% 40%, 22% 10%, 38% 35%, 55% 20%, 70% 40%, 100% 35%, 92% 70%, 75% 100%, 40% 95%, 20% 100%);
  opacity: .75;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.25));
  animation: fx-bull-snort 4s ease-in-out infinite;
}
.fx-taxis { position: absolute; inset: 0; }
.fx-taxi {
  position: absolute;
  left: -8%;
  width: 28px; height: 10px;
  background: #facc15;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(250,204,21,.55);
  animation: fx-taxi-run 9s linear infinite;
}
.fx-taxi::before {
  content: '';
  position: absolute; left: 6px; top: -5px;
  width: 14px; height: 6px;
  background: #eab308;
  border-radius: 2px 2px 0 0;
}
.fx-taxi::after {
  content: '';
  position: absolute; left: 3px; right: 3px; bottom: -2px;
  height: 3px;
  background: radial-gradient(circle, #111 2px, transparent 3px);
  background-size: 10px 3px;
}
.fx-water {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 10%;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,.08));
  opacity: .5;
  animation: fx-water 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
.fx-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 70%, transparent));
  animation: fx-fog 12s ease-in-out infinite alternate;
  z-index: 2;
}
.fx-heli {
  position: absolute; top: 14%; left: -10%;
  width: 14px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent);
  animation: fx-heli 22s linear infinite;
  opacity: .75;
  z-index: 2;
}
.fx-heli::after {
  content: ''; position: absolute; left: -8px; top: 1px; width: 18px; height: 1px;
  background: rgba(255,255,255,.55);
}

/* ── MONEY family ─────────────────────────────────────────────────────── */
.fx-vault {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 80%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--accent) 8%, var(--bg)));
  animation: fx-vault-pulse 10s ease-in-out infinite;
}
.fx-sparkle {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 60%, var(--accent-3), transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 85% 70%, var(--accent), transparent),
    radial-gradient(2px 2px at 50% 80%, var(--accent-3), transparent);
  animation: fx-twinkle 3s ease-in-out infinite alternate;
}
.fx-dollar-rain { position: absolute; inset: 0; overflow: hidden; }
.fx-dollar {
  position: absolute; top: -10%;
  font-family: var(--font-brand); font-weight: 900; font-size: 22px;
  color: color-mix(in srgb, var(--accent) 80%, #fff);
  text-shadow: 0 0 12px var(--accent);
  opacity: .35;
  animation: fx-dollar-fall 12s linear infinite;
}
.fx-coins { position: absolute; inset: 0; }
.fx-coin {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-3), var(--accent) 55%, color-mix(in srgb, var(--accent) 40%, #000));
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 0 0 2px rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-weight: 800; font-size: 16px;
  color: rgba(0,0,0,.55);
  animation: fx-coin-float 12s ease-in-out infinite;
}
.fx-coin::after { content: '$'; }
.fx-bills {
  position: absolute; inset: 0; overflow: hidden;
}
.fx-bill {
  position: absolute;
  width: 70px; height: 34px;
  border-radius: 4px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 55%, #14532d),
    color-mix(in srgb, var(--accent-3) 40%, #166534));
  box-shadow: 0 4px 20px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.2);
  opacity: .45;
  animation: fx-bill-drift 18s linear infinite;
}
html[data-theme="vault-gold"] .fx-bill {
  background: linear-gradient(135deg, #a16207, #fde68a 50%, #854d0e);
}
html[data-theme="platinum-desk"] .fx-bill {
  background: linear-gradient(135deg, #64748b, #e2e8f0 50%, #475569);
}
html[data-theme="rose-vault"] .fx-bill {
  background: linear-gradient(135deg, #9f1239, #fda4af 50%, #881337);
}
.fx-ring {
  position: absolute;
  left: 50%; top: 42%;
  width: min(50vw, 420px); height: min(50vw, 420px);
  margin: calc(min(50vw, 420px) / -2) 0 0 calc(min(50vw, 420px) / -2);
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 0 40px color-mix(in srgb, var(--accent) 10%, transparent);
  animation: fx-spin 80s linear infinite;
}
.fx-ring::before {
  content: ''; position: absolute; inset: 12%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-2) 40%, transparent);
  animation: fx-spin 50s linear infinite reverse;
}

/* ── Content / glass ──────────────────────────────────────────────────── */
.meridian-app, .card, header, .container, main, .nav, .wrap,
body > .card, body > .wrap, body > .container, body > header, body > main {
  position: relative; z-index: 1;
}
.meridian-glass, .card {
  background: var(--surface) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--border) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 24px 80px rgba(0,0,0,.45), 0 0 40px color-mix(in srgb, var(--accent) 10%, transparent);
}
header {
  background: color-mix(in srgb, var(--bg) 78%, transparent) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border) !important;
}

/* ── Consistent brand ─────────────────────────────────────────────────── */
.meridian-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.meridian-brand__logo,
header h1 img[src*="logo"],
.logo-row img {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent);
  flex-shrink: 0;
  vertical-align: middle;
}
header h1 .meridian-brand {
  gap: 10px;
}
.meridian-brand__logo--lg { width: 44px; height: 44px; border-radius: 10px; }
.meridian-mark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.meridian-mark__eyebrow {
  font-family: var(--font-ui);
  font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.meridian-page-chip {
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 3px 8px; border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}
.meridian-word-wrap {
  position: relative; display: inline-block; perspective: 600px;
}
.meridian-word {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.35em;
  letter-spacing: .05em;
  line-height: 1;
  display: inline-block;
  position: relative;
  transform: rotateX(8deg);
  background: var(--mark-grad);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fx-shimmer 4.2s linear infinite, fx-word-glow 3.6s ease-in-out infinite;
}
.meridian-word--lg { font-size: clamp(2.1rem, 6.5vw, 3rem); letter-spacing: .07em; }
.meridian-word--hero { font-size: clamp(2.6rem, 8vw, 3.6rem); letter-spacing: .09em; }
.meridian-word-wrap::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  font-family: var(--font-brand); font-weight: 900;
  letter-spacing: inherit; font-size: inherit;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--mark-stroke);
  z-index: -1;
  transform: translateY(2px) rotateX(8deg);
  filter: drop-shadow(0 0 14px var(--mark-glow));
}
.meridian-word-wrap::after {
  content: '';
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  mix-blend-mode: soft-light;
  animation: fx-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── Theme picker ─────────────────────────────────────────────────────── */
.meridian-theme-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.meridian-theme-fab:hover { filter: brightness(1.1); }
.meridian-theme-panel {
  position: fixed; right: 16px; bottom: 72px; z-index: 9999;
  width: min(340px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: none;
}
.meridian-theme-panel.open { display: block; }
.meridian-theme-panel h3 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 600;
}
.meridian-theme-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.meridian-theme-opt {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px; border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--text);
  cursor: pointer; text-align: left;
  font-family: var(--font-ui); font-size: 12px;
}
.meridian-theme-opt:hover { border-color: var(--accent); }
.meridian-theme-opt.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px color-mix(in srgb, var(--accent) 25%, transparent);
}
.meridian-theme-swatch {
  height: 28px; border-radius: 8px;
  background: var(--swatch, #333);
}
.meridian-theme-opt small {
  color: var(--text-dim); font-size: 10px;
}

button[type="submit"], .btn-primary, .btn.save {
  background: var(--btn-grad) !important;
  border: none !important;
  color: #04101a !important;
  font-weight: 700 !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
button[type="submit"]:hover, .btn-primary:hover { filter: brightness(1.08); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
a { color: var(--accent); }

/* Keyframes */
@keyframes fx-stars-drift { to { background-position: 420px 420px; } }
@keyframes fx-twinkle { from { opacity: .55; } to { opacity: .95; } }
@keyframes fx-nebula { to { transform: translate(-3%, 2%) scale(1.08); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-globe-float { 50% { transform: translate(-12px, -18px); } }
@keyframes fx-drift { 50% { transform: translate(18px, -22px); } }
@keyframes fx-grid-drift { to { background-position: 0 64px, 64px 0; } }
@keyframes fx-scan { from { top: -25%; } to { top: 110%; } }
@keyframes fx-clouds { to { transform: translateX(4%); } }
@keyframes fx-building-breathe { 50% { filter: brightness(1.12); } }
@keyframes fx-skyline-glow { from { opacity: .92; } to { opacity: 1; } }
@keyframes fx-windows { from { opacity: .35; } to { opacity: .75; } }
@keyframes fx-fog { to { opacity: .85; transform: translateY(-6px); } }
@keyframes fx-heli { to { left: 110%; top: 10%; } }
@keyframes fx-road-dash { to { background-position: 36px 0; } }
@keyframes fx-sign-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(251,191,36,.3), 0 8px 0 #020617; }
  50% { box-shadow: 0 0 32px rgba(251,191,36,.55), 0 8px 0 #020617; }
}
@keyframes fx-bull-snort { 50% { transform: translateX(4px); } }
@keyframes fx-taxi-run { to { left: 110%; } }
@keyframes fx-water { to { opacity: .75; } }
@keyframes fx-vault-pulse { 50% { filter: brightness(1.08); } }
@keyframes fx-dollar-fall {
  0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
  15% { opacity: .4; }
  100% { transform: translateY(110vh) rotate(18deg); opacity: 0; }
}
@keyframes fx-coin-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-28px) rotate(20deg); }
}
@keyframes fx-bill-drift {
  0% { transform: translate(-20px, 110%) rotate(-12deg); }
  100% { transform: translate(40px, -30%) rotate(18deg); }
}
@keyframes fx-shimmer { to { background-position: 200% 50%; } }
@keyframes fx-sheen {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  20% { opacity: .85; }
  45% { opacity: 0; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}
@keyframes fx-word-glow {
  0%, 100% { filter:
    drop-shadow(0 1px 0 color-mix(in srgb, var(--accent) 50%, #000))
    drop-shadow(0 2px 0 color-mix(in srgb, var(--accent) 40%, #000))
    drop-shadow(0 3px 0 color-mix(in srgb, var(--accent) 30%, #000))
    drop-shadow(0 5px 14px var(--mark-glow))
    drop-shadow(0 0 28px var(--mark-glow-2)); }
  50% { filter:
    drop-shadow(0 1px 0 color-mix(in srgb, var(--accent) 50%, #000))
    drop-shadow(0 2px 0 color-mix(in srgb, var(--accent) 40%, #000))
    drop-shadow(0 3px 0 color-mix(in srgb, var(--accent) 30%, #000))
    drop-shadow(0 6px 20px var(--mark-glow))
    drop-shadow(0 0 40px var(--mark-glow-2)); }
}

@media (prefers-reduced-motion: reduce) {
  .meridian-fx *, .meridian-word, .meridian-word-wrap::after { animation: none !important; }
}
