:root {
  --bg: #f5f8fb;
  --panel: #ffffff;
  --text: #13223a;
  --muted: #6d7b91;
  --line: #e3eaf2;
  --cyan: #08c7d9;
  --cyan-strong: #00a9c2;
  --green: #18d88b;
  --red: #ff5f72;
  --amber: #f7b955;
  --ink: #273854;
  --shadow: 0 20px 50px rgba(25, 48, 80, 0.08);
}

body[data-theme="dark"] {
  --bg: #090f18;
  --panel: #111a27;
  --text: #e9f2ff;
  --muted: #8fa1ba;
  --line: #223149;
  --cyan: #10d7e8;
  --cyan-strong: #58e6f2;
  --green: #20e29a;
  --red: #ff6178;
  --amber: #ffbf4d;
  --ink: #e9f2ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
a,
span,
small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

button,
input,
select {
  font: inherit;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #05c8d8, #4bd98f);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(8, 199, 217, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  min-height: 42px;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.nav-list a.active,
.nav-list a:hover {
  background: #eefcff;
  color: var(--cyan-strong);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.nav-list a.active .nav-dot {
  background: currentColor;
}

.rail-note {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.rail-note span,
.rail-note strong {
  display: block;
}

.rail-note span {
  color: var(--muted);
  font-size: 12px;
}

.rail-note strong {
  margin-top: 5px;
  color: var(--ink);
}

.shell {
  margin-left: 248px;
  min-height: 100vh;
  padding: 22px 32px 36px;
  min-width: 0;
}

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  min-width: 0;
}

.ticker {
  position: relative;
  flex: 1 1 auto;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: tickerMove 42s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.ticker b {
  color: var(--text);
}

.ticker em {
  font-style: normal;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.warn {
  color: var(--amber);
}

.auth-area,
.hero-actions,
.card-foot,
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-area {
  flex: 0 0 auto;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.floating-theme-toggle {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 80;
}

.ghost-button,
.primary-button,
.small-button {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-button {
  background: #eef3f8;
  color: var(--ink);
}

.primary-button {
  background: var(--cyan);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 199, 217, 0.24);
}

.primary-button.large,
.ghost-button.large {
  min-height: 46px;
  padding-inline: 22px;
}

.primary-button.full {
  width: 100%;
}

.small-button {
  min-height: 32px;
  padding-inline: 14px;
  background: var(--ink);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 26px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.workbench-copy {
  min-height: 420px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 250, 0.92)),
    repeating-linear-gradient(90deg, rgba(8, 199, 217, 0.06) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.workbench-copy h1 {
  max-width: 820px;
  font-size: 44px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}

.hero-badges span {
  border: 1px solid #d4e4ee;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  min-height: 32px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}

.ops-panel {
  min-width: 0;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.ops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.founder-mini {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.founder-mini img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 28%;
}

.founder-mini span,
.founder-mini strong {
  display: block;
}

.founder-mini span {
  color: var(--muted);
  font-size: 12px;
}

.founder-mini strong {
  margin-top: 4px;
  color: var(--ink);
}

.live-pill {
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 11px;
  color: #067a4a;
  background: #e4fff2;
  font-size: 12px;
  font-weight: 900;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.status-grid small,
.status-grid span {
  color: var(--muted);
}

.status-grid strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  margin: 5px 0 3px;
}

.market-board {
  border-radius: 8px;
  background: #13223a;
  color: #ffffff;
  padding: 16px;
}

.market-board .panel-head {
  margin-bottom: 8px;
}

.market-board .panel-head span {
  color: #d8e9f5;
}

.market-board .panel-head b {
  max-width: 240px;
  color: #8af0d5;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.market-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.market-row span {
  color: #d8e9f5;
  font-weight: 800;
}

.market-row strong {
  font-size: 20px;
}

.market-row em {
  font-style: normal;
  min-width: 74px;
  text-align: right;
}

.research-row {
  border-left: 4px solid var(--cyan);
}

.authority-card {
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid.lower {
  margin-top: 30px;
}

.cta-band {
  margin-top: 34px;
  border: 1px solid #dce8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-strong);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  max-width: 840px;
  font-size: 46px;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.terminal-panel,
.metric-card,
.strategy-card,
.trust-card,
.gauge-card,
.chart-panel,
.watchlist,
.signal-card,
.process-step,
.code-panel,
.auth-card,
.timeline-item,
.table-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-panel {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.founder-strip {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fdff, #fffaf0);
  padding: 12px;
}

.founder-strip img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 28%;
}

.founder-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.founder-strip strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.panel-head {
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 6px;
}

.panel-head b {
  color: var(--green);
}

.signal-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 90px 58px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.signal-row small {
  grid-column: 3;
  color: var(--muted);
}

.pair {
  font-weight: 800;
  color: var(--ink);
}

.tag {
  min-width: 46px;
  min-height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding-inline: 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag.long {
  color: #067a4a;
  background: #dcfff0;
}

.tag.short {
  color: #b12e3d;
  background: #fff0f2;
}

.tag.watch {
  color: #8b5f00;
  background: #fff5d7;
}

.tag.done {
  color: #25527d;
  background: #e7f2ff;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.metric-card {
  padding: 20px;
}

.metric-card small,
.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  font-size: 34px;
  margin: 8px 0 6px;
  color: var(--ink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.content-grid.lower {
  margin-top: 30px;
}

.section-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-title span {
  width: 10px;
  height: 36px;
  border-radius: 999px;
  background: var(--cyan);
}

.section-title h2 {
  margin-bottom: 4px;
}

.section-title p {
  color: var(--muted);
  margin-bottom: 0;
}

.strategy-list,
.feed-list,
.side-stack,
.timeline {
  display: grid;
  gap: 14px;
}

.strategy-card {
  padding: 20px;
}

.strategy-card.wide {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 0.9fr) auto;
  gap: 18px;
  align-items: center;
}

.strategy-card h2,
.strategy-card h3 {
  margin-bottom: 8px;
}

.strategy-card p,
.trust-card p,
.gauge-card p,
.signal-card p,
.process-step p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.stats-line b {
  display: block;
  font-size: 20px;
}

.trust-card,
.gauge-card {
  padding: 22px;
}

.trust-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.gauge-card strong {
  display: block;
  font-size: 48px;
  color: var(--amber);
  margin: 8px 0;
}

.gauge-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #44d982, #f3e64e, #ff6b78);
  overflow: hidden;
  margin: 10px 0 14px;
}

.gauge-bar i {
  display: block;
  height: 100%;
  border-right: 4px solid #13223a;
}

.feed-item {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  min-height: 92px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.feed-item time {
  color: var(--cyan-strong);
}

.feed-item h3 {
  margin-bottom: 6px;
}

.feed-item p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.7;
}

.status {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status.open {
  color: #067a4a;
  background: #dcfff0;
}

.status.done {
  color: #25527d;
  background: #e7f2ff;
}

.status.note {
  color: #8b5f00;
  background: #fff5d7;
}

.footer {
  margin-top: 38px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  line-height: 1.8;
}

.footer a {
  color: var(--cyan-strong);
  margin-right: 16px;
}

.auth-legal-footer,
.legal-foot {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.auth-legal-footer {
  grid-column: 1 / -1;
  margin-top: -16px;
}

.legal-foot {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.auth-legal-footer a,
.legal-foot a,
.contact-lines a {
  color: var(--cyan-strong);
}

.page-head {
  margin-bottom: 24px;
  max-width: 920px;
}

.page-head h1 {
  font-size: 38px;
  margin-bottom: 10px;
}

.page-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.data-note {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 12px;
  color: var(--cyan-strong);
  font-size: 13px;
  font-weight: 700;
}

.page-head.with-banner {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
}

.banner-asset {
  min-height: 150px;
  border-radius: 8px;
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(120deg, rgba(8, 199, 217, 0.92), rgba(24, 216, 139, 0.72)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 12px);
}

.banner-asset strong,
.banner-asset small {
  opacity: 0.92;
}

.banner-asset span {
  display: block;
  font-size: 44px;
  font-weight: 900;
  margin: 8px 0;
}

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}

.chart-panel {
  padding: 18px;
  overflow: hidden;
  min-width: 0;
}

#marketChart {
  width: 100%;
  height: auto;
  display: block;
}

.segmented {
  display: flex;
  background: #edf3f8;
  border-radius: 8px;
  padding: 3px;
}

.segmented button,
.filters button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  min-height: 30px;
  padding: 0 12px;
  cursor: pointer;
}

.segmented button.active,
.filters button.active {
  background: var(--cyan);
  color: #ffffff;
}

.watchlist {
  padding: 18px;
}

.watchlist h2 {
  margin-bottom: 14px;
}

.watch-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.watch-row:last-child {
  border-bottom: 0;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filters button {
  background: #edf3f8;
}

.strategy-grid,
.signal-grid,
.integration-grid,
.news-layout {
  display: grid;
  gap: 18px;
}

.strategy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strategy-card .card-foot {
  margin-top: 18px;
  justify-content: space-between;
}

.card-foot a {
  color: var(--cyan-strong);
  font-weight: 800;
}

.risk {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.risk.low {
  background: #e4fff2;
  color: #067a4a;
}

.risk.mid {
  background: #fff5d7;
  color: #8b5f00;
}

.risk.high {
  background: #fff0f2;
  color: #b12e3d;
}

.signal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card {
  padding: 20px;
}

.signal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.signal-card h2 {
  font-size: 20px;
  line-height: 1.45;
}

.signal-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.signal-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.signal-card dt {
  color: var(--muted);
}

.signal-card dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.integration-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  padding: 20px;
}

.process-step span {
  color: var(--cyan-strong);
  font-weight: 900;
}

.code-panel {
  margin-top: 22px;
  padding: 18px;
}

.code-panel pre {
  margin: 0;
  overflow: auto;
  background: #101c2e;
  color: #d9fff5;
  border-radius: 8px;
  padding: 18px;
  line-height: 1.7;
}

.news-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.table-panel {
  padding: 18px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

td {
  color: var(--ink);
}

.timeline-item {
  padding: 22px;
}

.timeline-item time {
  color: var(--cyan-strong);
  font-weight: 800;
}

.timeline-item h2 {
  margin: 8px 0;
}

.timeline-item a {
  color: var(--cyan-strong);
  font-weight: 800;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(8, 199, 217, 0.14), transparent 34%),
    var(--bg);
}

.auth-layout {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.7fr);
  gap: 34px;
  align-items: center;
  padding: 38px 0;
}

.auth-layout.compact {
  grid-template-columns: minmax(360px, 520px);
  justify-content: center;
}

.auth-visual h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 24px 0 16px;
}

.auth-visual p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
}

.auth-avatar {
  width: min(320px, 100%);
  aspect-ratio: 1;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 28%;
  margin-top: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.auth-proof span {
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 700;
}

.auth-card {
  padding: 28px;
}

.auth-brand.inline {
  margin-bottom: 28px;
}

.auth-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.auth-card-head h2 {
  margin: 0;
}

.auth-card-head a {
  color: var(--cyan-strong);
  font-weight: 800;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.form-note {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  margin-bottom: 0;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
  line-height: 1.8;
}

.legal-page h1 {
  font-size: 40px;
  margin-top: 36px;
}

.legal-page h2 {
  margin-top: 28px;
}

.legal-page p {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  background: #13223a;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

body[data-theme="dark"] .rail,
body[data-theme="dark"] .workbench-copy,
body[data-theme="dark"] .ops-panel,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .strategy-card,
body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .gauge-card,
body[data-theme="dark"] .chart-panel,
body[data-theme="dark"] .watchlist,
body[data-theme="dark"] .signal-card,
body[data-theme="dark"] .process-step,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .timeline-item,
body[data-theme="dark"] .table-panel,
body[data-theme="dark"] .kol-card,
body[data-theme="dark"] .live-news-item,
body[data-theme="dark"] .community-profile,
body[data-theme="dark"] .qr-card,
body[data-theme="dark"] .news-status-card,
body[data-theme="dark"] .provider-warning,
body[data-theme="dark"] .cta-band {
  background: var(--panel);
}

body[data-theme="dark"] .rail-note,
body[data-theme="dark"] .status-grid div,
body[data-theme="dark"] .hero-badges span,
body[data-theme="dark"] .ghost-button,
body[data-theme="dark"] .filters button,
body[data-theme="dark"] .news-controls button,
body[data-theme="dark"] .search-box,
body[data-theme="dark"] .kol-tabs button,
body[data-theme="dark"] .channel-map,
body[data-theme="dark"] .community-stats div,
body[data-theme="dark"] .notice-box {
  background: #0d1624;
  border-color: var(--line);
}

body[data-theme="dark"] .small-button {
  background: #10d7e8;
  color: #06111d;
}

.modal-open {
  overflow: hidden;
}

.register-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 18, 30, 0.56);
  backdrop-filter: blur(3px);
}

.gate-modal {
  width: min(360px, 100%);
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  padding: 22px;
  text-align: center;
}

.gate-modal h2 {
  margin-bottom: 12px;
}

.gate-modal p {
  color: var(--muted);
  line-height: 1.75;
}

.verify-page {
  background: var(--bg);
}

.community-layout {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: stretch;
}

.community-profile,
.qr-card {
  padding: 48px;
}

.community-profile {
  border-right: 1px solid var(--line);
}

.community-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 42px 0 24px;
}

.community-head img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 28%;
}

.community-head h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.community-head span {
  color: var(--muted);
}

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.community-stats div {
  padding: 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.community-stats div:last-child {
  border-right: 0;
}

.community-stats strong,
.community-stats span {
  display: block;
}

.community-stats strong {
  color: var(--ink);
  font-size: 22px;
}

.community-stats span {
  color: var(--muted);
  margin-top: 4px;
}

.notice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
  padding: 18px;
  margin-bottom: 24px;
}

.notice-box p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.qr-card {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 16px;
}

.qq-mark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101820;
  color: #ffffff;
  font-weight: 900;
}

.fake-qr {
  width: min(280px, 78vw);
  aspect-ratio: 1;
  border: 12px solid #ffffff;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px),
    #ffffff;
  background-size: 40px 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 18px;
}

.fake-qr span:nth-child(3n),
.fake-qr span:nth-child(4n + 1) {
  background: #111;
}

.contact-lines {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--muted);
}

.kol-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.kol-head p {
  color: var(--muted);
  line-height: 1.8;
  margin: 14px 0 0;
}

.kol-tabs,
.news-controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.kol-tabs button,
.news-controls button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.kol-tabs button.active,
.news-controls button.active {
  background: #eef3f8;
  color: var(--text);
}

.kol-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search-box {
  min-height: 44px;
  border-radius: 999px;
  background: #f2f5f8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.search-box span {
  color: var(--muted);
}

.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--text);
  width: 180px;
}

.channel-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 18px;
}

.channel-map span,
.channel-map strong {
  display: block;
}

.channel-map span {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.kol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.kol-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.kol-card-head img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 28%;
}

.kol-card-head h2 {
  font-size: 16px;
  margin: 0 0 3px;
}

.kol-card-head time {
  color: var(--muted);
  font-size: 12px;
}

.kol-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.kol-stats div {
  min-width: 0;
  text-align: center;
  border-right: 1px solid var(--line);
  padding: 0 6px;
}

.kol-stats div:last-child {
  border-right: 0;
}

.kol-stats small,
.kol-stats strong {
  display: block;
}

.kol-stats small {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.kol-stats strong {
  color: var(--text);
}

.kol-pair {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.coin {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.coin.bitcoin {
  background: #f59b23;
}

.coin.eth {
  background: #4356d8;
}

.coin.sol {
  background: #18c78f;
}

.coin.bnb {
  background: #d8a31e;
}

.webhook-line {
  border-radius: 8px;
  background: #f5f9fc;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

body[data-theme="dark"] .webhook-line {
  background: #0d1624;
}

.signal-excerpt {
  min-height: 50px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
  margin: 0 0 12px;
}

.kol-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.provider-warning {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  margin-top: 20px;
  padding: 20px;
}

.provider-warning.compact {
  margin-top: 0;
}

.provider-warning p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.news-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.news-terminal h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.news-terminal p {
  color: var(--muted);
  line-height: 1.8;
}

.news-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.news-status-card span,
.news-status-card small {
  color: var(--muted);
}

.news-status-card strong {
  color: var(--cyan-strong);
}

.news-controls {
  margin-bottom: 18px;
}

.live-news-feed {
  display: grid;
  gap: 14px;
}

.live-news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
}

.live-news-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.live-news-meta time {
  color: var(--cyan-strong);
  font-weight: 900;
}

.live-news-meta span {
  border-radius: 999px;
  background: #eaf9fb;
  color: var(--cyan-strong);
  padding: 4px 10px;
  font-weight: 800;
  font-size: 12px;
}

.live-news-meta b {
  color: var(--muted);
  font-size: 13px;
}

.live-news-item p {
  color: var(--muted);
  line-height: 1.75;
}

.live-news-item a {
  color: var(--cyan-strong);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .rail {
    width: 210px;
  }

  .shell {
    margin-left: 210px;
    padding-inline: 24px;
  }

  .hero-grid,
  .product-hero,
  .content-grid,
  .page-head.with-banner,
  .market-layout,
  .news-layout,
  .news-terminal,
  .kol-head,
  .community-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .strategy-grid,
  .signal-grid,
  .integration-grid,
  .workflow-grid,
  .kol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-card.wide {
    grid-template-columns: 1fr;
  }

  .community-profile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .rail {
    position: static;
    width: auto;
    padding: 16px;
  }

  .rail-note {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-list a {
    justify-content: center;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-dot {
    display: none;
  }

  .shell {
    margin-left: 0;
    padding: 16px;
  }

  .topbar {
    height: auto;
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .ticker {
    width: 100%;
    flex: 1 1 auto;
    padding-bottom: 2px;
  }

  .auth-area {
    justify-content: stretch;
  }

  .auth-area a {
    flex: 1;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-copy {
    min-height: auto;
    padding: 18px 0;
  }

  .workbench-copy {
    padding: 22px;
    overflow: hidden;
  }

  .hero-copy h1,
  .auth-visual h1 {
    max-width: 100%;
    font-size: 22px;
    line-height: 1.24;
    word-break: break-all;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 100%;
  }

  .primary-button.large,
  .ghost-button.large {
    padding-inline: 12px;
  }

  .auth-area .ghost-button,
  .auth-area .primary-button {
    min-width: 0;
    padding-inline: 10px;
  }

  .theme-toggle {
    flex: 0 0 auto;
  }

  .ticker-track {
    animation-duration: 28s;
  }

  .hero-grid,
  .product-hero,
  .metrics-grid,
  .strategy-grid,
  .signal-grid,
  .integration-grid,
  .workflow-grid,
  .kol-grid,
  .channel-map,
  .news-terminal,
  .admin-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .status-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 18px;
  }

  .community-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .community-profile,
  .qr-card {
    padding: 24px 16px;
  }

  .community-profile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .community-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .community-head img {
    width: 52px;
    height: 52px;
  }

  .community-head h1,
  .news-terminal h1 {
    font-size: 30px;
  }

  .community-stats,
  .kol-stats {
    grid-template-columns: 1fr;
  }

  .community-stats div,
  .kol-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 6px;
  }

  .community-stats div:last-child,
  .kol-stats div:last-child {
    border-bottom: 0;
  }

  .kol-head {
    gap: 12px;
  }

  .kol-tabs,
  .news-controls {
    gap: 8px;
  }

  .kol-tabs button,
  .news-controls button {
    flex: 1 1 130px;
    font-size: 16px;
  }

  .kol-actions {
    justify-content: stretch;
  }

  .kol-buttons {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .kol-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .kol-card-head .tag {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .terminal-panel {
    padding: 16px;
  }

  .terminal-panel,
  .metric-card,
  .strategy-card,
  .trust-card,
  .gauge-card,
  .chart-panel,
  .watchlist,
  .signal-card,
  .process-step,
  .code-panel,
  .auth-card,
  .timeline-item,
  .table-panel {
    max-width: 100%;
  }

  .signal-top,
  .stats-line,
  .card-foot,
  .panel-head {
    flex-wrap: wrap;
  }

  .signal-row,
  .feed-item {
    grid-template-columns: 1fr;
  }

  .signal-row small {
    grid-column: auto;
  }

  .page-head h1 {
    font-size: 30px;
  }

  .auth-layout {
    width: min(100% - 28px, 520px);
  }

  .auth-visual {
    display: none;
  }
}
