:root {
  --bg: #05070c;
  --ink: #f6f8ff;
  --muted: #98a4b8;
  --soft: #d4dbea;
  --line: rgba(255, 255, 255, .12);
  --panel: rgba(12, 16, 25, .78);
  --panel-strong: rgba(18, 24, 36, .92);
  --green: #39d98a;
  --yellow: #ffd166;
  --red: #ff5c70;
  --blue: #69a7ff;
  --cyan: #38e8ff;
  --violet: #b58cff;
  --radius: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .48);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --ease-soft: cubic-bezier(.45, 0, .15, 1);
  --mx: 0;
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px),
    linear-gradient(115deg, transparent, rgba(56,232,255,.08), transparent 46%, rgba(255,92,112,.06), transparent);
  filter: blur(.2px);
  animation: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(125deg, #05070c 0%, #09111e 35%, #130d1c 66%, #06130f 100%),
    linear-gradient(90deg, rgba(56,232,255,.08), transparent 38%, rgba(255,92,112,.07) 68%, transparent);
  background-size: 170% 170%, 220% 220%;
  animation: ambientBreath 46s var(--ease-soft) infinite alternate;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: -30%;
  opacity: .46;
  background:
    conic-gradient(from 150deg at 46% 48%, rgba(56,232,255,.18), transparent 16%, rgba(181,140,255,.12) 32%, transparent 46%, rgba(255,92,112,.11) 60%, transparent 76%, rgba(57,217,138,.12), rgba(56,232,255,.18)),
    linear-gradient(115deg, transparent 0 14%, rgba(255,255,255,.035) 22%, transparent 30% 58%, rgba(56,232,255,.06) 70%, transparent 80%),
    repeating-linear-gradient(105deg, rgba(255,255,255,.024) 0 1px, transparent 1px 84px);
  background-size: 155% 155%, 190% 190%, 100% 100%;
  filter: blur(72px) saturate(112%);
  transform: translate3d(calc(var(--mx) * 24px), calc(var(--my) * 18px), 0) rotate(-8deg) scale(1.08);
  animation: auroraFlow 58s var(--ease-soft) infinite alternate;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  will-change: transform, background-position;
}

.ambient::after {
  content: none;
}

.beam {
  position: absolute;
  height: 230px;
  width: 112vw;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .11;
  background: linear-gradient(90deg, transparent, rgba(56,232,255,.22), rgba(181,140,255,.14), transparent);
  transform: rotate(-18deg);
  animation: beamTravel 86s linear infinite alternate;
  will-change: transform;
}
.beam-a { top: 8%; left: -38%; }
.beam-b {
  top: 52%;
  right: -42%;
  opacity: .09;
  background: linear-gradient(90deg, transparent, rgba(255,92,112,.18), rgba(57,217,138,.13), transparent);
  animation-duration: 96s;
  animation-delay: -7s;
}
.beam-c {
  bottom: -3%;
  left: 4%;
  opacity: .08;
  background: linear-gradient(90deg, transparent, rgba(105,167,255,.2), rgba(56,232,255,.08), transparent);
  animation-duration: 104s;
  animation-delay: -12s;
}

.data-line {
  position: absolute;
  width: 1px;
  height: 54vh;
  top: -10vh;
  background: linear-gradient(180deg, transparent, rgba(56,232,255,.42), transparent);
  filter: blur(1px);
  opacity: .035;
  animation: none;
}
.line-a { left: 32%; }
.line-b { left: 78%; animation-delay: -2.4s; animation-duration: 7.2s; }

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.shell::before {
  content: "";
  position: fixed;
  left: 300px;
  top: 0;
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(56,232,255,.7), transparent);
  opacity: .4;
  animation: edgePulse 7s var(--ease-soft) infinite;
  pointer-events: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  overflow: auto;
  border-right: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(180deg, rgba(5,7,12,.92), rgba(9,13,22,.82)),
    repeating-linear-gradient(180deg, transparent 0 48px, rgba(255,255,255,.025) 49px);
  backdrop-filter: blur(24px);
  box-shadow: 18px 0 70px rgba(0,0,0,.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: riseIn 1s var(--ease) both;
}

.logo {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 0 34px rgba(56, 232, 255, .34), 0 0 0 1px rgba(255,255,255,.1);
  animation: logoHover 7s var(--ease-soft) infinite;
}

.brand h1, .brand p { margin: 0; }
.brand h1 { font-size: 19px; font-weight: 900; }
.brand p { color: var(--muted); font-size: 12px; margin-top: 3px; }

.nav { display: grid; gap: 9px; margin-bottom: 18px; }
.nav-btn {
  position: relative;
  min-height: 46px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--soft);
  text-align: left;
  padding: 0 14px;
  background: rgba(255,255,255,.045);
  border: 1px solid transparent;
  transition: transform .9s var(--ease-soft), border-color .9s var(--ease-soft), background .9s var(--ease-soft), color .9s var(--ease-soft), box-shadow .9s var(--ease-soft);
}
.nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-55%);
  background: linear-gradient(90deg, transparent, rgba(56,232,255,.09), rgba(255,255,255,.055), transparent);
  transition: transform 1.45s var(--ease-soft), opacity .9s var(--ease-soft);
}
.nav-btn:hover { transform: translateX(1px); border-color: rgba(56,232,255,.22); color: #fff; background: rgba(255,255,255,.06); }
.nav-btn:hover::before { opacity: 1; transform: translateX(55%); }
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(56,232,255,.18), rgba(105,167,255,.12), rgba(255,92,112,.08));
  border-color: rgba(56,232,255,.32);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 14px 40px rgba(56,232,255,.08);
}

.side-card, .mini-item, .panel, .result-card, .score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(26px) saturate(118%);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 16px;
  animation: riseIn 1.05s var(--ease) .05s both;
}
.side-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.side-card b {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.history-mini { display: grid; gap: 8px; margin-top: 18px; }
.mini-item {
  padding: 11px;
  color: var(--soft);
  font-size: 12px;
  background: rgba(255,255,255,.04);
  animation: riseIn .86s var(--ease) both;
}

.main { min-width: 0; padding: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero > div:first-child, .hero-score, .panel, .result-card {
  position: relative;
  overflow: hidden;
}

.hero > div:first-child {
  min-height: 178px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13,18,30,.9), rgba(20,16,29,.76)),
    repeating-linear-gradient(90deg, transparent 0 76px, rgba(255,255,255,.035) 77px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  animation: heroEnter 1.12s var(--ease) both;
}
.hero > div:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .7;
  background:
    linear-gradient(112deg, transparent 0 22%, rgba(56,232,255,.16) 24%, transparent 28% 62%, rgba(255,92,112,.11) 65%, transparent 69%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.035) 35px);
  transform: translateX(-12%);
  animation: heroCircuit 18s var(--ease-soft) infinite;
}
.hero > div:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--red), var(--green), transparent);
  animation: borderRun 9s var(--ease-soft) infinite;
}

.eyebrow {
  position: relative;
  margin: 0 0 11px;
  color: var(--cyan);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(56,232,255,.42);
}
.hero h2 {
  position: relative;
  max-width: 920px;
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 14px 45px rgba(0,0,0,.38);
}

.hero-score {
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18,24,36,.86), rgba(11,14,22,.86)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(56,232,255,.045) 23px);
  box-shadow: var(--shadow);
  animation: heroEnter 1.12s var(--ease) .08s both;
}
.hero-score span { color: var(--muted); font-size: 12px; }
.hero-score strong {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tab { display: none; animation: tabIn .82s var(--ease) both; }
.tab.active { display: block; }

.workgrid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel, .result-card {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(18,24,36,.86), rgba(10,14,22,.76)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255,255,255,.025) 55px);
  transition: transform .58s var(--ease), border-color .58s var(--ease), box-shadow .58s var(--ease), background .58s var(--ease);
}
.panel::before, .result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0 22%, rgba(56,232,255,.11) 28%, transparent 34%);
  transform: translateX(-40%);
  transition: opacity .58s var(--ease);
  pointer-events: none;
}
.panel:hover, .result-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56,232,255,.23);
  box-shadow: 0 28px 88px rgba(0,0,0,.52), 0 0 0 1px rgba(56,232,255,.06);
}
.panel:hover::before, .result-card:hover::before {
  opacity: 1;
  animation: panelSweep 2.4s var(--ease);
}

.panel-head { margin-bottom: 18px; position: relative; }
.panel-head h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.panel-head p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}
input, textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  border-radius: var(--radius);
  padding: 13px 14px;
  outline: none;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: rgba(212,219,234,.47); }
input:focus, textarea:focus {
  border-color: rgba(56,232,255,.62);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 4px rgba(56,232,255,.1), 0 14px 34px rgba(0,0,0,.22);
  transform: translateY(-.5px);
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { grid-template-columns: 18px 1fr; align-items: center; color: var(--muted); }
.toggle input { width: 18px; height: 18px; accent-color: var(--cyan); }

.primary {
  position: relative;
  width: 100%;
  min-height: 50px;
  overflow: hidden;
  border-radius: var(--radius);
  color: #041014;
  font-weight: 900;
  background: linear-gradient(115deg, var(--cyan), var(--green), #dffcff, var(--cyan));
  background-size: 240% 100%;
  box-shadow: 0 18px 46px rgba(56,232,255,.2), inset 0 1px 0 rgba(255,255,255,.48);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: buttonFlow 8s linear infinite;
}
.primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 35%;
  transform: rotate(18deg);
  background: rgba(255,255,255,.45);
  filter: blur(10px);
  animation: buttonShine 5.4s var(--ease-soft) infinite;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 24px 70px rgba(56,232,255,.3); }
.primary:active { transform: translateY(0); }

.result-stack { display: grid; gap: 14px; min-width: 0; }
.empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18,24,36,.5), rgba(8,11,18,.45)),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255,255,255,.035) 27px);
  animation: riseIn .95s var(--ease) both;
}
.empty h3 { margin: 14px 0 6px; font-size: 19px; }
.empty p { margin: 0; max-width: 430px; color: var(--muted); line-height: 1.55; }
.pulse {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(56,232,255,.36);
  background: conic-gradient(from 0deg, rgba(56,232,255,.08), rgba(56,232,255,.9), rgba(255,92,112,.45), rgba(56,232,255,.08));
  animation: radarSpin 2.2s linear infinite;
}
.pulse::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0d1320;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(56,232,255,.18);
  animation: radarWave 2.2s var(--ease) infinite;
}

.summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  animation: riseIn .95s var(--ease) both;
}
.score-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20,27,42,.9), rgba(11,15,24,.9)),
    repeating-linear-gradient(135deg, transparent 0 24px, rgba(255,255,255,.035) 25px);
}
.ring {
  --deg: 0deg;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111827 0 56%, transparent 57%),
    conic-gradient(var(--color) var(--deg), rgba(255,255,255,.08) 0);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--color) 30%, transparent));
}
.ring strong { font-size: 34px; font-weight: 900; }
.score-card p { margin: 10px 0 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  padding: 13px;
  transform: translateY(6px);
  opacity: 0;
  animation: cardPop .95s var(--ease) forwards;
  transition: transform .62s var(--ease), border-color .62s var(--ease), background .62s var(--ease);
}
.metric:nth-child(2) { animation-delay: .04s; }
.metric:nth-child(3) { animation-delay: .08s; }
.metric:nth-child(4) { animation-delay: .12s; }
.metric:nth-child(5) { animation-delay: .16s; }
.metric:nth-child(6) { animation-delay: .2s; }
.metric:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--color) 38%, white 0%); background: rgba(255,255,255,.065); }
.metric .bar { height: 7px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); margin: 10px 0; }
.metric .bar span { display: block; height: 100%; width: 0; background: var(--color); box-shadow: 0 0 18px color-mix(in srgb, var(--color) 42%, transparent); transition: width 1.65s var(--ease); }
.metric b { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.metric p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.38; }

.result-card { animation: riseIn .95s var(--ease) both; }
.result-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 900; }
.section-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-kicker h3 { margin: 0; }
.section-kicker span { color: var(--cyan); font-size: 12px; font-weight: 900; }

.weak-list, .fix-list, .history-list { display: grid; gap: 10px; }
.weak, .fix, .history-row, .ideal-block, .signal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255,255,255,.045);
  line-height: 1.45;
  transition: transform .56s var(--ease), border-color .56s var(--ease), background .56s var(--ease);
}
.weak:hover, .fix:hover, .history-row:hover, .ideal-block:hover, .signal-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56,232,255,.24);
  background: rgba(255,255,255,.062);
}
.weak b, .fix b { color: var(--soft); }
.weak span, .history-row span { color: var(--muted); }

.operator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.signal-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
}
.signal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent, var(--cyan));
  box-shadow: 0 0 18px var(--accent, var(--cyan));
}
.signal-card small {
  display: block;
  color: var(--accent, var(--cyan));
  font-weight: 900;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", Consolas, monospace;
}
.signal-card b { display: block; margin-bottom: 7px; color: #fff; }
.signal-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

.ideal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ideal-block.wide { grid-column: 1 / -1; }
.ideal-block h4 { margin: 0 0 8px; color: var(--cyan); font-size: 14px; }
.ideal-block p, .ideal-block li { color: var(--soft); line-height: 1.52; }
.ideal-block p { margin: 0; }
.ideal-block ul { margin: 0; padding-left: 18px; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 7px 9px;
  border-radius: 99px;
  background: rgba(105,167,255,.13);
  border: 1px solid rgba(105,167,255,.2);
  color: #dbe8ff;
  font-size: 12px;
  transition: transform .56s var(--ease), border-color .56s var(--ease), background .56s var(--ease);
}
.tag:hover { transform: translateY(-1px); border-color: rgba(56,232,255,.35); }

.loading {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 18%, rgba(56,232,255,.12), transparent 24%),
    radial-gradient(circle at 58% 82%, rgba(57,217,138,.1), transparent 34%),
    linear-gradient(135deg, rgba(18,24,36,.58), rgba(12,10,18,.42)),
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(255,255,255,.035) 39px);
}
.loading::before {
  content: "";
  position: absolute;
  width: min(640px, 88%);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(56,232,255,.16), transparent 34%),
    conic-gradient(from 0deg, rgba(56,232,255,.16), rgba(255,92,112,.12), rgba(57,217,138,.12), rgba(56,232,255,.16));
  filter: blur(48px);
  transform: translate(-50%, -50%) scale(.9);
  animation: loadingGlow 6s var(--ease-soft) infinite;
}
.loading::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 36%;
  height: 100%;
  transform: skewX(-18deg) translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(56,232,255,.11), transparent);
  animation: loadingSweep 3.4s var(--ease-soft) infinite;
}
.loader-orb {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 28px rgba(56,232,255,.24));
  animation: loaderFloat 4.8s var(--ease-soft) infinite;
}
.loader-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(12,18,30,.95) 0 39%, transparent 40%),
    conic-gradient(from 0deg, transparent 0 8%, var(--cyan) 12%, transparent 22% 38%, rgba(255,92,112,.76) 45%, transparent 56% 72%, var(--green) 80%, transparent 92% 100%);
  animation: loaderSpin 1.15s linear infinite;
}
.loader-orb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 28px rgba(56,232,255,.16), 0 0 24px rgba(56,232,255,.12);
}
.orbit {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(56,232,255,.12);
  border-top-color: rgba(56,232,255,.96);
  border-right-color: rgba(56,232,255,.34);
  box-shadow: 0 0 18px rgba(56,232,255,.12);
  animation: orbitSpin 1.6s linear infinite;
}
.orbit::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(56,232,255,.95), 0 0 34px rgba(56,232,255,.4);
  transform: translateX(-50%);
}
.orbit-b {
  inset: 18px;
  border-color: rgba(255,92,112,.1);
  border-top-color: rgba(255,92,112,.9);
  border-left-color: rgba(255,92,112,.34);
  animation-duration: 2.25s;
  animation-direction: reverse;
}
.orbit-b::after {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255,92,112,.86), 0 0 34px rgba(255,92,112,.34);
}
.orbit-c {
  inset: -8px;
  border-color: rgba(57,217,138,.09);
  border-top-color: rgba(57,217,138,.78);
  border-bottom-color: rgba(57,217,138,.26);
  animation-duration: 3.1s;
}
.orbit-c::after {
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(57,217,138,.8), 0 0 30px rgba(57,217,138,.28);
}
.loader-core {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #dffcff, var(--cyan) 22%, rgba(56,232,255,.18) 48%, #0b1320 52%);
  box-shadow: 0 0 26px rgba(56,232,255,.52), inset 0 0 14px rgba(255,255,255,.22);
  animation: corePulse 2.6s var(--ease-soft) infinite;
}
.loader-core::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.55), transparent 28%);
  mix-blend-mode: screen;
  animation: loaderSpin .9s linear infinite reverse;
}
.loading-copy {
  display: grid;
  gap: 11px;
  justify-items: center;
}
.loading .loading-copy h3 { margin: 0; font-size: 20px; }
.loading .loading-copy p { margin: 0; max-width: 540px; }
.scan-rail {
  position: relative;
  width: min(560px, 88%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 18px rgba(0,0,0,.28);
}
.scan-rail span {
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  box-shadow: 0 0 22px rgba(56,232,255,.45);
  animation: railSweep 2.5s var(--ease-soft) infinite;
}
.loading-steps {
  width: min(640px, 92%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.loading-step {
  position: relative;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px 0 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(214,223,238,.78);
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 850;
  animation: stepGlow 2.4s var(--ease-soft) infinite;
  animation-delay: var(--delay);
}
.loading-step::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(56,232,255,.55);
}
.typing {
  position: relative;
}
.typing::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(56,232,255,.55);
  animation: caretBlink 1.05s steps(2, end) infinite;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(16,20,31,.94);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }

@keyframes ambientBreath {
  0% {
    background-position: 0% 18%, 0% 50%;
    filter: saturate(1) brightness(1);
  }
  50% {
    background-position: 58% 42%, 72% 35%;
    filter: saturate(1.02) brightness(1);
  }
  100% {
    background-position: 100% 78%, 100% 50%;
    filter: saturate(1) brightness(1);
  }
}
@keyframes auroraFlow {
  0% {
    background-position: 0 0, 0 0, 0 0;
    transform: translate3d(calc(var(--mx) * 10px - 18px), calc(var(--my) * 8px - 10px), 0) rotate(-7deg) scale(1.04);
  }
  50% {
    background-position: 76% 22%, 18% 78%, 80px 120px;
    transform: translate3d(calc(var(--mx) * 14px + 10px), calc(var(--my) * 10px + 6px), 0) rotate(-3deg) scale(1.08);
  }
  100% {
    background-position: 100% 92%, 84% 16%, 160px 60px;
    transform: translate3d(calc(var(--mx) * 12px - 8px), calc(var(--my) * 9px + 12px), 0) rotate(-9deg) scale(1.05);
  }
}
@keyframes beamTravel {
  0% { transform: translate3d(-8%, -6px, 0) rotate(-18deg) scaleX(.98); }
  100% { transform: translate3d(12%, 10px, 0) rotate(-16deg) scaleX(1.02); }
}
@keyframes edgePulse {
  0%, 100% { opacity: .18; }
  50% { opacity: .56; }
}
@keyframes logoHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes heroEnter {
  from { transform: translateY(10px) scale(.992); opacity: 0; filter: blur(4px); }
  to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes heroCircuit {
  0%, 100% { transform: translateX(-12%); opacity: .38; filter: blur(0); }
  50% { transform: translateX(10%); opacity: .72; filter: blur(3px); }
}
@keyframes borderRun {
  0%, 100% { transform: translateX(-24%); opacity: .55; }
  50% { transform: translateX(24%); opacity: 1; }
}
@keyframes tabIn {
  from { transform: translateY(8px); opacity: 0; filter: blur(4px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes panelSweep {
  from { transform: translateX(-45%); }
  to { transform: translateX(120%); }
}
@keyframes buttonFlow {
  from { background-position: 0 0; }
  to { background-position: 240% 0; }
}
@keyframes buttonShine {
  0%, 55% { transform: translateX(0) rotate(18deg); opacity: 0; }
  70% { opacity: .45; }
  100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
}
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}
@keyframes radarWave {
  from { transform: scale(.75); opacity: .55; }
  to { transform: scale(1.25); opacity: 0; }
}
@keyframes riseIn {
  from { transform: translateY(8px); opacity: 0; filter: blur(4px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes cardPop {
  from { transform: translateY(6px); opacity: 0; filter: blur(3px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}
@keyframes loadingGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(.86) rotate(0deg); opacity: .55; }
  50% { transform: translate(-50%, -50%) scale(1.03) rotate(24deg); opacity: .9; }
}
@keyframes loadingSweep {
  0% { transform: skewX(-18deg) translateX(-120%); opacity: 0; }
  18% { opacity: .55; }
  72% { opacity: .28; }
  100% { transform: skewX(-18deg) translateX(420%); opacity: 0; }
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.02); }
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes corePulse {
  0%, 100% { transform: scale(.92); opacity: .78; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes railSweep {
  0% { transform: translateX(-105%) scaleX(.72); opacity: .25; }
  38% { opacity: 1; }
  100% { transform: translateX(270%) scaleX(1.08); opacity: .3; }
}
@keyframes stepGlow {
  0%, 100% {
    color: rgba(214,223,238,.62);
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
  }
  50% {
    color: #fff;
    border-color: rgba(56,232,255,.28);
    background: rgba(56,232,255,.08);
    box-shadow: 0 0 24px rgba(56,232,255,.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .shell::before { display: none; }
  .sidebar { position: relative; height: auto; }
  .workgrid, .hero { grid-template-columns: 1fr; }
  .hero h2 { font-size: 38px; }
}

@media (max-width: 760px) {
  .main, .sidebar { padding: 16px; }
  .two, .summary, .cards, .ideal-grid, .operator-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 30px; }
  .hero > div:first-child { min-height: auto; }
  .loading { min-height: 430px; padding: 30px 18px; }
  .loader-orb { width: 96px; height: 96px; }
  .loading-steps { grid-template-columns: 1fr; max-width: 280px; }
}
