/* Assist Workspace — motion layer: intro, parallax backdrop, toasts, transitions, tilt, reveal, switcher */
:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, 1.25, .3, 1);
  --shadow-hover: 0 2px 4px rgba(4, 32, 31, .06), 0 16px 40px -12px rgba(4, 32, 31, .22);
}
:root[data-theme="dark"] { --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -12px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-hover: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 44px -12px rgba(0, 0, 0, .7); } }

/* ---------------------------------------------------------------- app backdrop (parallax) */
.shell { position: relative; }
.main { position: relative; z-index: 1; }
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bd-layer { position: absolute; inset: -12%; }
.bd-blob { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.bd-blob.b1 { width: 62vw; height: 62vw; left: 42%; top: -28%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent); }
.bd-blob.b2 { width: 46vw; height: 46vw; left: 12%; top: 46%; background: radial-gradient(closest-side, color-mix(in srgb, var(--series-fb) 13%, transparent), transparent); animation-duration: 28s; }
.bd-blob.b3 { width: 36vw; height: 36vw; left: 72%; top: 58%; background: radial-gradient(closest-side, color-mix(in srgb, var(--series-ig) 12%, transparent), transparent); animation-duration: 34s; }
@keyframes drift { from { translate: 0 0; } to { translate: 4vw 3vh; } }
.bd-layer.grid {
  background-image: radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1.3px);
  background-size: 28px 28px; opacity: .8;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 18%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 60% at 62% 18%, #000 0%, transparent 72%);
}
.bd-ring { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 26%, transparent); }
.bd-ring.r1 { width: 240px; height: 240px; right: 14%; top: 20%; }
.bd-ring.r2 { width: 130px; height: 130px; left: 34%; top: 74%; border-color: color-mix(in srgb, var(--series-fb) 26%, transparent); }
.bd-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--brand) 60%, transparent); }
.bd-dot.d1 { right: 26%; top: 44%; } .bd-dot.d2 { left: 22%; top: 28%; width: 6px; height: 6px; }
.bd-dot.d3 { right: 10%; top: 78%; background: color-mix(in srgb, var(--series-ig) 55%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--series-ig) 50%, transparent); }
.bd-plus { position: absolute; left: 58%; top: 36%; width: 18px; height: 18px; }
.bd-plus::before, .bd-plus::after { content: ''; position: absolute; inset: 8px 0; background: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 2px; }
.bd-plus::after { inset: 0 8px; }
.topbar { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }

/* ---------------------------------------------------------------- intro */
.intro {
  position: fixed; inset: 0; z-index: 1000; overflow: hidden; cursor: pointer; color: #e8fffb;
  background: radial-gradient(1200px 700px at 50% 120%, #0a3a35 0%, #041615 55%, #020b0b 100%);
  animation: introIn .5s ease both;
  transition: opacity .6s ease, transform .65s var(--ease-out), filter .6s ease;
}
.intro.leaving { opacity: 0; transform: scale(1.08); filter: blur(8px); pointer-events: none; }
@keyframes introIn { from { opacity: 0; } to { opacity: 1; } }
.intro-layer { position: absolute; inset: -10%; pointer-events: none; }
.aur { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aur 9s ease-in-out infinite alternate; }
.aur.a1 { width: 70vw; height: 70vw; left: -10%; top: -30%; background: radial-gradient(closest-side, rgba(25, 181, 163, .55), transparent); }
.aur.a2 { width: 60vw; height: 60vw; right: -15%; top: 10%; background: radial-gradient(closest-side, rgba(57, 135, 229, .38), transparent); animation-duration: 11s; }
.aur.a3 { width: 50vw; height: 50vw; left: 30%; bottom: -35%; background: radial-gradient(closest-side, rgba(235, 104, 52, .28), transparent); animation-duration: 13s; }
@keyframes aur { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.15); } }
.stars { position: absolute; inset: 0; opacity: 0; animation: starsIn 1.2s .2s ease forwards, starDrift 40s linear infinite; }
.stars.s1 {
  background-image: radial-gradient(1px 1px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #bff, transparent), radial-gradient(1.5px 1.5px at 60px 160px, #fff, transparent),
    radial-gradient(1px 1px at 180px 120px, #dff, transparent), radial-gradient(1px 1px at 90px 200px, #fff, transparent);
  background-size: 220px 220px;
}
.stars.s2 {
  background-image: radial-gradient(2px 2px at 40px 60px, rgba(127, 247, 228, .9), transparent), radial-gradient(1.5px 1.5px at 260px 180px, #fff, transparent), radial-gradient(2px 2px at 160px 300px, rgba(255, 255, 255, .8), transparent);
  background-size: 340px 340px; animation-duration: 1.2s, 26s;
}
@keyframes starsIn { to { opacity: .8; } }
@keyframes starDrift { to { background-position: 220px -440px; } }
.intro-floor { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; perspective: 360px; pointer-events: none; opacity: 0; animation: starsIn 1s .1s ease forwards; }
.floor-grid {
  position: absolute; inset: 0; transform: rotateX(72deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(63, 240, 210, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 240, 210, .35) 1px, transparent 1px);
  background-size: 60px 60px; animation: floor 1.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
@keyframes floor { to { background-position: 0 60px; } }
.iring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 2px solid rgba(127, 247, 228, .6); opacity: 0; animation: ringOut 2.2s .85s var(--ease-out) forwards; }
.iring.ir2 { animation-delay: 1.05s; border-color: rgba(57, 135, 229, .5); }
.iring.ir3 { animation-delay: 1.25s; border-color: rgba(235, 104, 52, .4); }
@keyframes ringOut { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(5); } }
.intro-center { position: absolute; left: 50%; top: 50%; translate: -50% -54%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.intro-logo { width: 132px; height: 132px; overflow: visible; filter: drop-shadow(0 18px 40px rgba(25, 181, 163, .45)); animation: logoPop .9s 1s var(--ease-spring) both; }
@keyframes logoPop { 0% { transform: scale(.9); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
.lg-glow { opacity: 0; animation: fadeTo .8s 1s ease forwards; }
.lg-box { fill-opacity: 0; stroke-dasharray: 380; stroke-dashoffset: 380; animation: draw .9s .2s var(--ease-out) forwards, fillIn .5s 1s ease forwards; }
.lg-a { stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .8s .55s var(--ease-out) forwards; }
.lg-shine { animation: shine 1.1s 1.35s ease forwards; transform-box: fill-box; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; stroke-opacity: .2; } }
@keyframes fadeTo { to { opacity: 1; } }
@keyframes shine { 0% { opacity: 0; transform: translateX(-30px); } 40% { opacity: .35; } 100% { opacity: 0; transform: translateX(90px); } }
.intro-word { margin-top: 26px; display: flex; font-weight: 800; font-size: clamp(22px, 4.2vw, 40px); letter-spacing: .22em; perspective: 600px; }
.intro-word span {
  display: inline-block; opacity: 0; transform: translateY(26px) rotateX(-80deg); filter: blur(6px);
  background: linear-gradient(180deg, #ffffff, #8ff5e4); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: letter .7s calc(1.05s + var(--i) * 42ms) var(--ease-spring) forwards;
}
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.intro-tag { margin-top: 8px; font-size: 13px; letter-spacing: .5em; text-transform: uppercase; color: rgba(214, 255, 247, .7); opacity: 0; animation: tagIn .7s 1.75s ease forwards; }
@keyframes tagIn { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .5em; } }
.intro-load { margin-top: 26px; width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; opacity: 0; animation: fadeTo .3s 1.6s forwards; }
.intro-load i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, transparent, #3ff0d2, transparent); animation: loadSweep 1.1s 1.6s ease-in-out infinite; }
@keyframes loadSweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.intro-skip { position: absolute; right: 22px; bottom: 22px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: rgba(232, 255, 251, .85); border-radius: 20px; padding: 7px 14px; font: inherit; font-size: 12px; cursor: pointer; backdrop-filter: blur(6px); opacity: 0; animation: fadeTo .4s .6s forwards; }
.intro-skip:hover { background: rgba(255, 255, 255, .14); }
html.app-revealing .shell, html.app-revealing .login { animation: appIn .8s var(--ease-out) both; }
@keyframes appIn { from { opacity: 0; transform: scale(.975); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.boot { min-height: 100vh; display: grid; place-items: center; }
.brand-mark.pulse { width: 54px; height: 54px; font-size: 24px; border-radius: 15px; animation: bootPulse 1.2s ease-in-out infinite; }
@keyframes bootPulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand) 12%, transparent); } }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 600; display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  --c: var(--good);
  pointer-events: auto; position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 13px 10px 16px 13px; border-radius: 16px; overflow: hidden; color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border));
  box-shadow: 0 22px 50px -14px rgba(2, 16, 15, .38), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.toast::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 55%); }
.toast.error { --c: var(--bad); } .toast.info { --c: var(--info); } .toast.warn { --c: var(--warn); }
.t-ic { position: relative; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent), 0 8px 20px -10px var(--c); }
.toast.ok .t-ic svg { animation: tickPop .5s .1s var(--ease-spring) both; }
@keyframes tickPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.t-body { position: relative; min-width: 0; padding-top: 1px; }
.t-body b { display: block; font-size: 13.5px; font-weight: 700; }
.t-msg { font-size: 12.8px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.t-x { position: relative; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.t-x:hover { background: var(--surface-3); color: var(--text); }
.t-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: left; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 35%, transparent)); animation: tbar var(--ms, 4s) linear forwards; }
@keyframes tbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-enter-active { transition: transform .6s var(--ease-spring), opacity .3s ease; }
.toast-enter-from { opacity: 0; transform: translateX(70px) scale(.9); }
.toast-leave-active { transition: transform .32s ease, opacity .25s ease; }
.toast-leave-to { opacity: 0; transform: translateX(50px) scale(.95); }
.toast-move { transition: transform .4s var(--ease-out); }
@media (max-width: 600px) { .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; } }

/* ---------------------------------------------------------------- transitions */
.page-enter-active { transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.page-leave-active { transition: opacity .16s ease, transform .16s ease; }
.page-enter-from { opacity: 0; transform: translateY(18px) scale(.992); }
.page-leave-to { opacity: 0; transform: translateY(-8px); }
.fade-enter-active, .fade-leave-active { transition: opacity .3s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.title-enter-active, .title-leave-active { transition: opacity .22s ease, transform .28s var(--ease-out); }
.title-enter-from { opacity: 0; transform: translateY(8px); }
.title-leave-to { opacity: 0; transform: translateY(-6px); }
.pop-enter-active, .pop-leave-active { transition: opacity .18s ease, transform .25s var(--ease-spring); }
.pop-enter-from, .pop-leave-to { opacity: 0; transform: translateY(-6px) scale(.96); }
.menu { transform-origin: top right; }
.menu-state { margin-left: auto; font-size: 11.5px; color: var(--muted); text-transform: capitalize; padding-left: 12px; }
.modal-bg { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-enter-active { transition: opacity .28s ease; }
.modal-enter-active .modal { transition: transform .5s var(--ease-spring), opacity .3s ease; }
.modal-enter-from { opacity: 0; }
.modal-enter-from .modal { transform: translateY(22px) scale(.95); opacity: 0; }
.collapse-enter-active, .collapse-leave-active { transition: opacity .25s ease; }
.collapse-enter-from, .collapse-leave-to { opacity: 0; }
.list-enter-active, .list-leave-active { transition: all .35s var(--ease-out); }
.list-enter-from, .list-leave-to { opacity: 0; transform: translateY(10px); }
.list-move { transition: transform .4s var(--ease-out); }

/* ---------------------------------------------------------------- reveal + tilt */
.card { transition: box-shadow .3s ease, border-color .3s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease-out) var(--d, 0ms), translate .85s var(--ease-out) var(--d, 0ms), box-shadow .3s, border-color .3s; }
.reveal.in { opacity: 1; translate: 0 0; }
.tilt, .tilt.reveal { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out), box-shadow .3s ease, opacity .7s var(--ease-out) var(--d, 0ms), translate .85s var(--ease-out) var(--d, 0ms); }
.tilt.tilting, .tilt.reveal.tilting { transition: transform .1s linear, box-shadow .3s ease, opacity .7s, translate .85s; box-shadow: var(--shadow-hover); z-index: 2; }
.glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 42%); }
.tilting .glare { opacity: 1; }
.kpi { position: relative; overflow: hidden; }
.kpi-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.kpi .value { background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- buttons + nav polish */
.btn { transition: background .2s, border-color .2s, transform .15s var(--ease-out), box-shadow .25s, color .2s; }
.btn:active:not(:disabled) { transform: scale(.965); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); border-color: transparent; box-shadow: 0 6px 18px -8px var(--brand); }
.btn.primary:hover { background: linear-gradient(135deg, var(--brand-strong), var(--brand)); box-shadow: 0 12px 26px -10px var(--brand); }
.btn.lg { height: 42px; font-size: 14.5px; border-radius: 10px; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.nav a { position: relative; transition: background .25s ease, color .2s ease, padding-left .25s var(--ease-out); }
.nav a::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #3ff0d2, var(--brand)); transform: scaleY(0); transition: transform .4s var(--ease-spring); box-shadow: 0 0 12px var(--brand); }
.nav a.active::before { transform: scaleY(1); }
.nav a:hover { padding-left: 13px; }
.nav a.active { background: linear-gradient(90deg, var(--sidebar-active), color-mix(in srgb, var(--sidebar-active) 30%, transparent)); }
.brand-mark { box-shadow: 0 6px 18px -6px rgba(25, 195, 169, .7); }
.sidebar { background: radial-gradient(400px 260px at 0% 0%, rgba(25, 181, 163, .16), transparent 70%), var(--sidebar); }
.hide-sm { display: inline; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ---------------------------------------------------------------- skeleton */
.skel-wrap { display: flex; flex-direction: column; gap: 16px; }
.skel-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.skel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.skel { height: 96px; border-radius: 14px; background: linear-gradient(100deg, var(--surface-3) 30%, color-mix(in srgb, var(--surface-3) 35%, var(--surface)) 50%, var(--surface-3) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel.tall { height: 230px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------------------------------------------------------- source switcher */
.switcher { min-width: 0; max-width: 100%; }
.sw-track { position: relative; display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: 4px; padding: 4px; border-radius: 15px; max-width: 100%;
  background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sw-glider { position: absolute; left: 0; top: 0; border-radius: 11px; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 18%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent), 0 8px 18px -10px var(--brand);
  transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), height .3s ease; }
.sw-pill { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 6px 6px 6px 11px; border-radius: 11px; cursor: pointer; min-width: 130px; max-width: 260px; color: var(--text-2); user-select: none; outline: none; transition: color .2s, background .2s; }
.sw-pill:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
.sw-pill:hover:not(.on) { background: color-mix(in srgb, var(--surface-3) 70%, transparent); }
.sw-pill.on { color: var(--text); }
.sw-pill.off .sw-text b { text-decoration: line-through; opacity: .6; }
.sw-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--surface) 70%, transparent), 0 0 10px currentColor; }
.sw-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.sw-text b { font-size: 13px; font-weight: 650; }
.sw-text small { font-size: 11px; color: var(--muted); }
.sw-more { margin-left: auto; flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.sw-more:hover { background: var(--surface-3); color: var(--text); }
.sw-menu { top: calc(100% + 6px); right: 0; min-width: 150px; z-index: 60; }
.sw-add { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; min-height: 40px; border-radius: 11px; border: 1.5px dashed var(--border-strong); background: transparent; color: var(--brand-strong); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s; }
.sw-add:hover { background: var(--brand-soft); border-color: var(--brand); }
.sw-add:active { transform: scale(.96); }
.sw-empty { display: inline-flex; align-items: center; padding: 0 8px 0 4px; white-space: nowrap; }
.danger-text { color: var(--bad) !important; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .15s var(--ease-spring); }
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--text); }

/* ---------------------------------------------------------------- login (layered parallax) */
.login .hero { position: relative; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; pointer-events: none; }
.h-aur { position: absolute; border-radius: 50%; }
.h-aur.a1 { width: 520px; height: 520px; left: -120px; top: -160px; background: radial-gradient(closest-side, rgba(25, 181, 163, .45), transparent); }
.h-aur.a2 { width: 460px; height: 460px; right: -140px; bottom: -120px; background: radial-gradient(closest-side, rgba(57, 135, 229, .32), transparent); }
.h-grid { position: absolute; inset: -40px; background-image: linear-gradient(rgba(127, 247, 228, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 247, 228, .07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; color: #eafffb; font-size: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); animation: bob 6s ease-in-out infinite alternate; }
.float-card small { display: block; opacity: .7; font-size: 11px; }
.float-card b { font-size: 15px; }
.fc-up { color: #6ef0a0; font-weight: 700; margin-left: 4px; }
.fc-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.fc-ic.ig { background: linear-gradient(135deg, #eb6834, #d94f8f); }
.fc-ic.wa { background: linear-gradient(135deg, #1baf7a, #0b7c70); }
.fc-ic.gb { background: linear-gradient(135deg, #3987e5, #1baf7a); }
.fc-ic.lock { background: linear-gradient(135deg, #8b5cf6, #3987e5); }
.fc1 { right: 7%; top: 13%; } .fc2 { right: 4%; top: 31%; animation-delay: -2s; } .fc3 { right: 9%; top: 66%; animation-delay: -4s; } .fc4 { right: 30%; bottom: 9%; animation-delay: -1s; }
@keyframes bob { from { translate: 0 -6px; } to { translate: 0 8px; } }
.h-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(127, 247, 228, .18); }
.h-ring.r1 { width: 300px; height: 300px; right: -4%; top: 26%; }
.h-ring.r2 { width: 160px; height: 160px; right: 38%; top: 6%; border-color: rgba(57, 135, 229, .22); }
@media (max-width: 1200px) { .fc2, .fc4 { display: none; } }
.login .form { position: relative; background: radial-gradient(600px 400px at 100% 0%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%), var(--surface); }
.login-card { animation: cardIn .8s .1s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 40px; }
.pw-wrap .btn { position: absolute; right: 4px; top: 50%; translate: 0 -50%; }
.sm-only { display: none; }
@media (max-width: 860px) { .sm-only { display: grid; margin-bottom: 14px; } }

/* ---------------------------------------------------------------- home hero (parallax band) */
.hero-band { position: relative; overflow: hidden; border-radius: 20px; padding: 24px 26px; min-height: 138px; color: #eafffb;
  background: linear-gradient(118deg, #04201f 0%, #0a3d39 45%, #0f7f73 100%); box-shadow: 0 24px 50px -24px rgba(4, 32, 31, .7); isolation: isolate; }
.hero-band .hb { position: absolute; pointer-events: none; z-index: -1; }
.hb-orb1 { width: 380px; height: 380px; right: -80px; top: -170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 240, 210, .45), transparent); }
.hb-orb2 { width: 280px; height: 280px; left: 30%; bottom: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(57, 135, 229, .4), transparent); }
.hb-ring { width: 180px; height: 180px; right: 9%; top: 18%; border-radius: 50%; border: 1.5px solid rgba(127, 247, 228, .25); }
.hb-ring2 { width: 90px; height: 90px; right: 30%; top: -20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14); }
.hb-grid { inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hb-spark { width: 7px; height: 7px; border-radius: 50%; background: #7ff7e4; box-shadow: 0 0 14px #3ff0d2; }
.hb-s1 { right: 22%; top: 30%; } .hb-s2 { right: 6%; bottom: 22%; width: 5px; height: 5px; } .hb-s3 { right: 42%; bottom: 18%; width: 4px; height: 4px; }
.hero-band h1 { font-size: 26px; color: #fff; }
.hero-band .muted { color: rgba(214, 255, 247, .72); }
.hero-band .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #eafffb; backdrop-filter: blur(6px); }
.hero-band .chip:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 20px; color: #fff; }
.hero-stats small { font-size: 11.5px; color: rgba(214, 255, 247, .7); }

/* ---------------------------------------------------------------- reduced motion */
html.motion-reduced *, html.motion-reduced *::before, html.motion-reduced *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
html.motion-reduced .toast .t-bar { animation-duration: var(--ms, 4s) !important; }
html.motion-reduced [style*="translate3d"] { transform: none !important; }
html.motion-reduced .tilt { transform: none !important; }
html.motion-reduced .reveal { opacity: 1; translate: none; }
