:root {
  --bg: #05060a;
  --ink: #f7f2e8;
  --soft: #a8b1c0;
  --muted: #707b8e;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --panel: rgba(13, 17, 26, 0.72);
  --panel-2: rgba(20, 27, 42, 0.74);
  --cyan: #69e6c2;
  --blue: #8fb8ff;
  --violet: #9b8cff;
  --gold: #e7c47a;
  --red: #ff5c68;
  --ease: cubic-bezier(0.18, 0.88, 0.25, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--mx, 70%) var(--my, 20%), rgba(105, 230, 194, 0.12), transparent 24rem),
    radial-gradient(ellipse at 30% 0%, rgba(155, 140, 255, 0.16), transparent 42rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    #05060a;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; }

.app-shell { min-height: 100vh; padding: 18px; }

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(260px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 14, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark,
.mini-score {
  display: grid;
  place-items: center;
  border: 1px solid rgba(105, 230, 194, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.24), transparent 24%), linear-gradient(145deg, rgba(105,230,194,.16), rgba(143,184,255,.08)), #0d141b;
  color: var(--cyan);
  font-weight: 900;
}

.brand-mark { width: 46px; height: 46px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); }

.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.main-nav button,
.member-chip,
.nav-btn,
.session-tabs button {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d9dee8;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.main-nav button:hover,
.main-nav button.active,
.member-chip:hover,
.nav-btn:hover,
.session-tabs button:hover,
.session-tabs button.active {
  border-color: rgba(105, 230, 194, 0.56);
  background: rgba(105, 230, 194, 0.1);
  color: var(--cyan);
  transform: translateY(-1px);
}

.main-nav button.locked::after {
  content: "锁";
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-left: 6px;
  place-items: center;
  border-radius: 50%;
  background: rgba(231, 196, 122, 0.13);
  color: var(--gold);
  font-size: 11px;
}

.member-chip { min-width: 126px; color: var(--gold); font-weight: 800; }

.page,
.screen { display: none; opacity: 0; transform: translateY(10px) scale(.985); }
.page.active,
.screen.active { display: block; animation: pageIn 620ms var(--ease) both; }

.hero-stage {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  gap: 28px;
  min-height: calc(100vh - 118px);
  align-items: center;
}

.hero-copy { padding: 36px 16px 36px 34px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.hero-copy h1, .section-copy h1, .workspace-head h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
}
.lead, .section-copy p, .workspace-head p {
  max-width: 620px;
  margin: 20px 0 30px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions, .hero-proof, .session-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-action, .ghost-action {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(105, 230, 194, .48);
  border-radius: 8px;
  background: linear-gradient(135deg, #7bf0cb, #8fb8ff);
  color: #05070b;
  font-weight: 900;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.ghost-action { background: rgba(255,255,255,.045); color: var(--ink); border-color: rgba(231,196,122,.38); }
.primary-action:hover, .ghost-action:hover { transform: translateY(-2px); box-shadow: 0 16px 46px rgba(105, 230, 194, .16); }

.hero-proof { margin-top: 34px; }
.hero-proof span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.hero-proof b { color: var(--cyan); }

.product-window,
.workspace,
.pricing-stage,
.orb-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.018)), rgba(8,11,18,.82);
  box-shadow: 0 28px 80px rgba(0,0,0,.44);
  overflow: hidden;
}

.product-window {
  min-height: 690px;
  padding: 18px;
}

.product-window::before,
.workspace::before,
.pricing-stage::before,
.orb-stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 120deg, transparent, rgba(105,230,194,.13), transparent, rgba(155,140,255,.12), transparent);
  animation: auroraSpin 18s linear infinite;
  opacity: .76;
  pointer-events: none;
}

.window-bar, .market-tape, .console-grid { position: relative; z-index: 1; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 38px; color: var(--muted); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.window-bar b { margin-left: 8px; font-size: 12px; }
.market-tape { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 16px; }
.market-tape span { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.18); color: var(--cyan); font-weight: 800; }
.console-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 260px 180px; gap: 14px; }
.decision-panel, .signal-panel, .order-panel, .assistant-panel, .pricing-card, .pricing-preview, .score-panel, .trade-path, .replay-panel, .lesson-focus, .lesson-list, .membership-card, .metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 9, 15, .58);
  backdrop-filter: blur(14px);
}
.decision-panel, .order-panel, .assistant-panel { padding: 22px; }
.decision-panel strong { display: block; margin: 20px 0 14px; color: var(--cyan); font-size: 62px; line-height: 1; }
.decision-panel small, .order-panel small, .assistant-panel span, .pricing-preview span, .score-panel span, .replay-panel span, .membership-card span { color: var(--gold); font-weight: 900; }
.decision-panel p, .order-panel p, .assistant-panel p { color: var(--soft); line-height: 1.65; }
.confidence { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.confidence i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.signal-panel { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; }
.signal-panel div { display: grid; align-content: center; padding: 18px; background: rgba(255,255,255,.035); }
.signal-panel span { color: var(--muted); }
.signal-panel b { color: var(--cyan); font-size: 38px; }
.order-panel h2 { margin: 12px 0; font-size: 36px; }
.assistant-panel { display: grid; align-content: center; }

.pricing-stage { min-height: calc(100vh - 118px); padding: 42px; }
.section-copy { position: relative; z-index: 1; }
.section-copy h1 { font-size: clamp(38px, 5vw, 64px); }
.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.pricing-card {
  min-height: 300px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}
.pricing-card:hover, .pricing-card.active { transform: translateY(-6px); border-color: rgba(105,230,194,.58); background: rgba(18, 28, 44, .74); }
.pricing-card span { color: var(--gold); font-size: 12px; font-weight: 900; }
.pricing-card strong { display: block; margin: 18px 0 10px; color: var(--cyan); font-size: 58px; }
.pricing-card b { display: block; font-size: 24px; }
.pricing-card em, .pricing-card i { display: block; margin-top: 12px; color: var(--soft); font-style: normal; line-height: 1.6; }
.pricing-preview { position: relative; z-index: 1; margin-top: 14px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pricing-preview strong { color: var(--ink); font-size: 28px; }
.pricing-preview p { margin: 0; color: var(--soft); }

.workspace { min-height: calc(100vh - 118px); padding: 28px; }
.workspace-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.workspace-head h1 { font-size: clamp(32px, 4.4vw, 56px); }
.progress-chip { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan); background: rgba(255,255,255,.035); }
.review-grid, .academy-grid, .account-grid { position: relative; z-index: 1; display: grid; gap: 14px; }
.review-grid { grid-template-columns: .75fr 1fr .9fr; min-height: 560px; }
.score-panel, .replay-panel, .lesson-focus, .membership-card { padding: 28px; }
.score-panel strong, .replay-panel strong { display: block; color: var(--cyan); font-size: 96px; line-height: 1; margin: 24px 0; }
.score-panel p, .replay-panel p { color: var(--soft); line-height: 1.7; }
.trade-path { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 14px; }
.review-node { min-height: 140px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); text-align: left; padding: 16px; cursor: pointer; transition: transform 220ms ease, border-color 220ms ease; }
.review-node:hover { transform: translateY(-4px); border-color: rgba(105,230,194,.48); }
.review-node b { color: var(--gold); font-size: 30px; }
.review-node span, .review-node em { display: block; }
.review-node em { margin-top: 8px; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.45; }
.replay-list { display: grid; gap: 8px; margin-top: 18px; }
.replay-list div { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.replay-list b { color: var(--gold); }
.replay-list i { color: #dce3ed; font-style: normal; }

.academy-grid { grid-template-columns: .82fr 1.18fr; }
.lesson-focus { min-height: 520px; display: grid; align-content: center; }
.lesson-focus span { color: var(--gold); font-weight: 900; }
.lesson-focus h2 { margin: 18px 0; color: var(--cyan); font-size: 56px; }
.lesson-focus p { max-width: 430px; color: var(--soft); font-size: 18px; line-height: 1.7; }
.lesson-progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.lesson-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.lesson-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding: 14px; }
.lesson-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); padding: 18px; text-align: left; cursor: pointer; transition: transform 220ms ease, border-color 220ms ease; }
.lesson-card:hover, .lesson-card.active { transform: translateY(-4px); border-color: rgba(105,230,194,.52); }
.lesson-card span { color: var(--gold); font-weight: 900; }
.lesson-card strong { display: block; margin: 12px 0; font-size: 24px; }
.lesson-card em { color: var(--soft); font-style: normal; }

.account-grid { grid-template-columns: .8fr 1.2fr; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.auth-status-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.auth-status-panel div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}
.auth-status-panel span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.auth-status-panel strong {
  display: block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.membership-card { min-height: 520px; display: grid; align-content: center; }
.membership-card strong { display: block; margin: 20px 0; color: var(--cyan); font-size: clamp(44px, 5vw, 74px); }
.membership-card em { color: var(--soft); font-style: normal; }
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.metric-card { padding: 24px; display: grid; align-content: center; min-height: 250px; }
.metric-card span { color: var(--muted); }
.metric-card strong { color: var(--cyan); font-size: 62px; }
.metric-card b { color: var(--soft); }

.stage-head { min-height: 28px; margin-bottom: 10px; text-align: center; color: var(--muted); }
.radar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.radar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.radar-tools span {
  color: var(--muted);
  font-size: 13px;
}
.stage-head p, .analysis-nav p, h1 { margin: 0; }
.orb-stage { min-height: calc(100vh - 168px); }
.orb-stage::before { opacity: .32; }
.orb-layer { position: absolute; inset: 0; }

.core-orb, .index-orb, .result-orb, .param-orb, .detail-orb {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 26%, rgba(255,255,255,.18), transparent 22%), radial-gradient(circle at 50% 56%, rgba(105,230,194,.12), transparent 54%), linear-gradient(145deg, rgba(24,31,44,.96), rgba(7,10,15,.98));
  box-shadow: inset 0 0 28px rgba(255,255,255,.04), 0 18px 55px rgba(0,0,0,.32);
  text-align: center;
  cursor: pointer;
  transition: transform 520ms var(--ease), width 520ms var(--ease), height 520ms var(--ease), left 520ms var(--ease), top 520ms var(--ease), opacity 260ms ease, box-shadow 260ms ease, border-color 260ms ease, filter 260ms ease;
}
.core-orb, .result-orb { animation: coreBreathe 6.4s ease-in-out infinite; }
.index-orb, .param-orb { animation: orbFloat var(--float-duration, 7s) ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.core-orb:hover, .index-orb:hover, .result-orb:hover, .param-orb:hover { border-color: rgba(105,230,194,.66); filter: brightness(1.08); transform: translate(-50%, -50%) scale(1.06); }
.core-orb { left: 50%; top: 50%; width: 220px; height: 220px; padding: 28px; transform: translate(-50%, -50%); }
.core-orb strong { color: var(--cyan); font-size: 34px; }
.core-orb span, .core-orb em, .orb-note, .orb-sub { color: var(--muted); font-size: 12px; font-style: normal; }
.index-orb { width: var(--size); height: var(--size); left: var(--x); top: var(--y); padding: 14px; transform: translate(-50%, -50%); cursor: grab; touch-action: none; user-select: none; }
.index-orb.is-pressing {
  border-color: rgba(231, 196, 122, .52);
}
.index-orb.is-dragging {
  z-index: 20;
  animation: none;
  cursor: grabbing;
  filter: brightness(1.14);
  transition: box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
  box-shadow: inset 0 0 36px rgba(105,230,194,.12), 0 0 54px rgba(105,230,194,.24), 0 26px 70px rgba(0,0,0,.46);
}
.market-stage.is-customizing .index-orb:not(.is-dragging) {
  opacity: .42;
}
.index-orb.negative { border-color: rgba(255,92,104,.38); background: radial-gradient(circle at 35% 26%, rgba(255,255,255,.15), transparent 22%), radial-gradient(circle at 50% 56%, rgba(255,92,104,.11), transparent 54%), linear-gradient(145deg, rgba(38,23,28,.98), rgba(7,10,15,.98)); }
.index-symbol { color: var(--cyan); font-size: 24px; font-weight: 900; }
.index-score { font-size: 22px; font-weight: 800; }
.index-signal, .index-change { color: var(--muted); font-size: 12px; line-height: 1.35; }
.index-change.up { color: var(--cyan); }
.index-change.down { color: var(--red); }
.analysis-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 12px; }
.analysis-nav h1 { margin-top: 3px; color: var(--ink); font-size: 34px; }
.analysis-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.analysis-stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(105,230,194,.1), transparent 24%),
    radial-gradient(circle at 18% 24%, rgba(231,196,122,.07), transparent 18%),
    linear-gradient(135deg, rgba(7,10,18,.92), rgba(20,20,34,.82)),
    rgba(8,11,18,.84);
}
.analysis-stage::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(105,230,194,.09);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 120px rgba(143,184,255,.025),
    inset 0 0 70px rgba(105,230,194,.035);
}
.analysis-hud {
  position: absolute;
  z-index: 3;
  width: 190px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,9,14,.46);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.analysis-hud span,
.analysis-hud em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.analysis-hud strong {
  display: block;
  margin: 5px 0;
  color: var(--cyan);
  font-size: 26px;
}
.hud-left {
  left: 24px;
  top: 24px;
}
.hud-right {
  right: 24px;
  top: 24px;
}
.analysis-scanline {
  position: absolute;
  left: -20%;
  top: 0;
  z-index: 2;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(105,230,194,.07), transparent);
  pointer-events: none;
  animation: scanSweep 9s linear infinite;
}
.result-orb { left: 50%; top: 50%; width: 250px; height: 250px; padding: 26px; transform: translate(-50%, -50%); }
.result-orb strong { color: var(--cyan); font-size: 58px; line-height: .95; }
.result-orb b { color: #fff; font-size: 17px; }
.param-orb { width: 132px; height: 132px; left: var(--x); top: var(--y); padding: 13px; transform: translate(-50%, -50%); cursor: grab; touch-action: none; user-select: none; }
.param-orb.is-pressing {
  border-color: rgba(231,196,122,.52);
}
.param-orb.is-dragging {
  z-index: 20;
  animation: none;
  cursor: grabbing;
  filter: brightness(1.14);
  transition: box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
  box-shadow: inset 0 0 36px rgba(105,230,194,.12), 0 0 54px rgba(105,230,194,.24), 0 26px 70px rgba(0,0,0,.46);
}
.analysis-stage.is-customizing .param-orb:not(.is-dragging) {
  opacity: .34;
}
.analysis-stage.is-customizing .result-orb {
  opacity: .56;
}
.param-orb b { color: var(--gold); font-size: 28px; }
.param-orb strong { font-size: 14px; }
.param-orb span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.param-orb.is-dimmed { opacity: .24; }
.detail-orb { left: var(--from-x, 50%); top: var(--from-y, 50%); width: 132px; height: 132px; padding: 18px; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.2); overflow: hidden; }
.detail-orb.active { left: 50%; top: 50%; width: min(560px, 78vw); height: min(560px, 78vw); padding: 48px; opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); border-color: rgba(105,230,194,.62); box-shadow: inset 0 0 60px rgba(255,255,255,.05), 0 0 62px rgba(105,230,194,.18), 0 30px 90px rgba(0,0,0,.48); }
.detail-orb h2 { margin: 0; color: var(--cyan); font-size: 40px; }
.detail-score { margin: 8px 0 14px; font-size: 78px; font-weight: 900; line-height: .95; }
.detail-orb p { max-width: 390px; margin: 0 auto 14px; color: #d9dee8; line-height: 1.55; }
.detail-steps, .detail-data { display: grid; gap: 7px; max-width: 390px; margin: 0 auto; }
.detail-steps { margin-bottom: 12px; }
.detail-steps div, .detail-data div { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; min-height: 28px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.04); font-size: 12px; }
.detail-data div { grid-template-columns: 1fr auto; }
.detail-steps b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--gold); color: #080b12; }
.detail-data strong { color: var(--cyan); }

.mini-player { position: fixed; right: 18px; bottom: 18px; z-index: 44; display: grid; grid-template-columns: 26px 48px minmax(180px,244px) auto; align-items: center; gap: 10px; width: min(560px, calc(100vw - 36px)); min-height: 64px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(7,9,14,.72); box-shadow: 0 18px 48px rgba(0,0,0,.42); backdrop-filter: blur(18px); transition: width 360ms var(--ease), grid-template-columns 360ms var(--ease), transform 360ms var(--ease); }
.mini-player::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, rgba(105,230,194,.12), transparent 32%, rgba(143,184,255,.1)); opacity: .68; pointer-events: none; }
.mini-player > * { position: relative; z-index: 1; }
.mini-player.compact { grid-template-columns: 26px 48px auto; width: 210px; }
.mini-player.compact .mini-copy,
.mini-player.compact .mini-slots { display: none; }
.mini-toggle, .mini-btn, .mini-tool { border: 1px solid var(--line); background: rgba(255,255,255,.045); cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease; }
.mini-toggle, .mini-btn { width: 26px; height: 26px; border-radius: 50%; }
.mini-btn { width: 34px; height: 34px; color: var(--cyan); }
.mini-tool { min-height: 30px; padding: 6px 10px; border-radius: 999px; color: #d9dee8; font-size: 12px; font-weight: 800; }
.mini-toggle:hover, .mini-btn:hover, .mini-tool:hover { transform: translateY(-1px); border-color: rgba(105,230,194,.52); color: var(--cyan); background: rgba(105,230,194,.09); }
.mini-score { width: 48px; height: 48px; }
.mini-copy { min-width: 0; }
.mini-copy strong { display: block; font-size: 17px; }
.mini-copy span { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.mini-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.mini-track { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.mini-track i { display: block; width: 70%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--blue)); transition: width 360ms var(--ease); }
.mini-slots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.mini-slot { min-height: 84px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; }
.mini-slot b, .mini-slot span, .mini-slot em { display: block; }
.mini-slot b { color: var(--gold); font-size: 10px; line-height: 1; }
.mini-slot strong { display: block; margin: 8px 0 5px; color: var(--cyan); font-size: 18px; line-height: 1.05; overflow-wrap: anywhere; }
.mini-slot span { color: #dce3ed; font-size: 12px; line-height: 1.2; }
.mini-slot em { margin-top: 4px; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.25; overflow-wrap: anywhere; }

.transition-orb { position: fixed; left: var(--tx, 50%); top: var(--ty, 50%); z-index: 60; width: var(--ts, 120px); height: var(--ts, 120px); border: 1px solid rgba(105,230,194,.42); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(105,230,194,.84), rgba(143,184,255,.32) 45%, rgba(5,7,11,.98) 75%); box-shadow: 0 0 80px rgba(105,230,194,.36), inset 0 0 44px rgba(255,255,255,.08); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.4); }
.transition-orb.active { animation: portalExpand 760ms var(--ease) both; }

.mini-editor-overlay, .auth-overlay, .lock-overlay { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.72); backdrop-filter: blur(10px); }
.mini-editor-overlay { z-index: 82; }
.auth-overlay { z-index: 83; }
.mini-editor-overlay.active, .auth-overlay.active, .lock-overlay.active { display: grid; animation: fadeIn 220ms ease both; }
.mini-editor-dialog { position: relative; width: min(760px, 94vw); padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)), #080b12; box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.mini-editor-dialog h2 { margin: 0; color: var(--ink); font-size: 34px; }
.mini-editor-dialog p:not(.eyebrow) { color: var(--soft); line-height: 1.7; }
.mini-editor-fields { display: grid; gap: 10px; margin: 20px 0; }
.mini-editor-row { display: grid; grid-template-columns: .8fr .8fr 1fr; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); }
.mini-editor-row legend { padding: 0 8px; color: var(--gold); font-size: 12px; font-weight: 900; }
.mini-editor-row label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.mini-editor-row input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(3,5,9,.72); color: var(--ink); outline: 0; }
.mini-editor-row input:focus { border-color: rgba(105,230,194,.58); box-shadow: 0 0 0 3px rgba(105,230,194,.1); }
.mini-editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.auth-dialog { position: relative; width: min(520px, 94vw); padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)), #080b12; box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.auth-dialog h2 { margin: 0; color: var(--ink); font-size: 36px; }
.auth-dialog p:not(.eyebrow) { color: var(--soft); line-height: 1.7; }
.auth-form { display: grid; gap: 12px; margin-top: 18px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.auth-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(3,5,9,.72); color: var(--ink); outline: 0; }
.auth-form input:focus { border-color: rgba(105,230,194,.58); box-shadow: 0 0 0 3px rgba(105,230,194,.1); }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.auth-notice { min-height: 22px; color: var(--gold); font-size: 13px; }
.lock-dialog { position: relative; width: min(460px, 92vw); min-height: 360px; padding: 38px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), #080b12; text-align: center; box-shadow: 0 28px 90px rgba(0,0,0,.7); }
.lock-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.045); cursor: pointer; }
.lock-mark { display: grid; width: 92px; height: 92px; margin: 0 auto 18px; place-items: center; border: 1px solid rgba(231,196,122,.34); border-radius: 50%; color: var(--gold); font-weight: 900; }
.lock-dialog h2 { color: var(--ink); }
.lock-dialog p { color: var(--soft); line-height: 1.7; }

@keyframes pageIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes portalExpand { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 28% { opacity: 1; } 76% { opacity: .9; transform: translate(-50%,-50%) scale(9.2); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(11); } }
@keyframes orbFloat { 0%,100% { translate: 0 0; } 35% { translate: 0 -8px; } 70% { translate: 5px 4px; } }
@keyframes coreBreathe { 0%,100% { box-shadow: inset 0 0 28px rgba(255,255,255,.04), 0 18px 55px rgba(0,0,0,.32); } 50% { box-shadow: inset 0 0 38px rgba(105,230,194,.09), 0 0 42px rgba(143,184,255,.12), 0 18px 55px rgba(0,0,0,.34); } }
@keyframes auroraSpin { to { transform: rotate(360deg); } }
@keyframes scanSweep { to { left: 120%; } }

@media (max-width: 1100px) {
  .topbar, .hero-stage, .review-grid, .academy-grid, .account-grid, .auth-status-panel { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; }
  .pricing-grid, .market-tape, .console-grid, .lesson-list, .metric-grid { grid-template-columns: 1fr; }
  .product-window { min-height: auto; }
}

@media (max-width: 820px) {
  .app-shell { padding: 12px; }
  .topbar { top: 8px; }
  .hero-copy { padding: 24px 4px 18px; }
  .hero-copy h1 { font-size: 38px; }
  .pricing-stage, .workspace { padding: 18px; }
  .orb-stage { min-height: 720px; }
  .core-orb, .result-orb { width: 178px; height: 178px; }
  .result-orb strong { font-size: 42px; }
  .index-orb { width: calc(var(--size) * .78); height: calc(var(--size) * .78); }
  .param-orb { width: 96px; height: 96px; padding: 9px; }
  .analysis-nav { grid-template-columns: 1fr; }
  .detail-orb.active { width: min(510px, 92vw); height: min(510px, 92vw); padding: 28px; }
  .detail-orb h2 { font-size: 30px; }
  .detail-score { font-size: 56px; }
  .mini-player { right: 10px; bottom: 10px; width: min(420px, calc(100vw - 20px)); grid-template-columns: 28px 54px auto; }
  .mini-copy, .mini-slots { display: none; }
  .mini-actions { justify-content: flex-end; }
  .mini-editor-dialog { padding: 24px; }
  .mini-editor-row { grid-template-columns: 1fr; }
}
