:root {
  --bg: #0a0a0b;
  --surface: #131314;
  --surface-low: #1c1b1c;
  --surface-mid: #201f20;
  --surface-high: #2a2a2b;
  --text: #e5e2e3;
  --muted: #bbc9cf;
  --outline: #3c494e;
  --primary: #00d1ff;
  --primary-soft: #a4e6ff;
  --success: #3cffc0;
  --warning: #e9ddff;
  --danger: #ffb4ab;
  --radius: 8px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 209, 255, .13), transparent 28rem),
    radial-gradient(circle at 86% 22%, rgba(203, 181, 255, .1), transparent 24rem),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
  background-position: center center, center center, 0 0, 0 0, center center;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}
.mono { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
.shell { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(19, 19, 20, .84);
  backdrop-filter: blur(16px);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 255, .32);
  background: rgba(255, 255, 255, .04);
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(0, 209, 255, .38);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 600;
}
.nav-links a { position: relative; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--primary);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  transition: .2s ease;
}
.icon-btn:hover {
  color: var(--primary);
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}
.mobile-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { border-color: rgba(0, 209, 255, .65); box-shadow: 0 0 20px rgba(0, 209, 255, .14); }
.btn:active { transform: scale(.98); }
.btn.primary {
  color: #001f28;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 20px rgba(0, 209, 255, .28);
}
.btn.ghost {
  color: var(--primary);
  border-color: rgba(0, 209, 255, .55);
  background: transparent;
}

main { padding-top: 72px; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 52px;
  padding: 64px 0 48px;
}
.hero-centered {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  min-height: min(820px, calc(100vh - 72px));
  padding: 92px 0 76px;
}
.hero-copy {
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 0;
}
.page-hero {
  padding: 132px 0 56px;
  border-bottom: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 209, 255, .22);
  border-radius: 4px;
  color: var(--primary);
  background: rgba(0, 209, 255, .08);
  font: 700 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  margin-top: 24px;
  max-width: 860px;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}
.page-hero h1 { font-size: clamp(42px, 5vw, 72px); }
.lead {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}
.explain {
  max-width: 780px;
  margin-top: 18px;
  color: #d8e6eb;
  font-size: 16px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-actions .btn {
  min-width: 168px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}
.hero-actions .brand-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}
.hero-actions .brand-discord {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
}
.hero-actions .brand-discord .brand-icon { color: #fff; }
.hero-actions .brand-discord:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, .1), 0 0 22px rgba(88, 101, 242, .28);
}
.social-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.social-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
}
.social-strip a:hover { color: var(--primary); border-color: rgba(0, 209, 255, .48); }
.social-icons a {
  width: 78px;
  min-height: 76px;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 4px 2px;
  border-radius: 0;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.social-icons a:hover {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}
.social-icons .material-symbols-outlined {
  font-size: 22px;
}
.social-icons .mono {
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
}
.brand-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}
.social-icons .brand-icon {
  width: 26px;
  height: 26px;
}
.social-icon-frame {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px rgba(0, 0, 0, .18);
  transition: .22s ease;
}
.social-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}
.social-icons a:hover .social-label {
  color: var(--text);
}
.social-icons .brand-youtube {
  color: #ff0033;
}
.social-icons .brand-youtube:hover {
  color: #ff0033;
}
.social-icons .brand-x {
  color: #ffffff;
}
.social-icons .brand-x:hover {
  color: #ffffff;
}
.social-icons .brand-telegram {
  color: #26a5e4;
}
.social-icons .brand-telegram:hover {
  color: #26a5e4;
}
.social-icons .brand-youtube .social-icon-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
}
.social-icons .brand-x .social-icon-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
}
.social-icons .brand-telegram .social-icon-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
}
.social-icons .brand-youtube:hover .social-icon-frame {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .24);
}
.social-icons .brand-x:hover .social-icon-frame {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .24);
}
.social-icons .brand-telegram:hover .social-icon-frame {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 24px rgba(0, 0, 0, .24);
}
.social-icons .brand-youtube .social-label { color: #ff6b82; }
.social-icons .brand-x .social-label { color: rgba(255, 255, 255, .78); }
.social-icons .brand-telegram .social-label { color: #7bcaf0; }
.social-icons .brand-youtube:hover .social-label { color: #ff8fa0; }
.social-icons .brand-x:hover .social-label { color: #ffffff; }
.social-icons .brand-telegram:hover .social-label { color: #9fdbf6; }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 720px;
}
.metric, .card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(12px);
}
.metric { padding: 18px; }
.metric strong {
  display: block;
  color: var(--primary);
  font: 800 27px/1 "JetBrains Mono", monospace;
}
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.card {
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 209, 255, .5);
  box-shadow: 0 0 22px rgba(0, 209, 255, .14);
}
.card.highlight {
  border-color: rgba(0, 209, 255, .75);
  box-shadow: 0 0 26px rgba(0, 209, 255, .2);
}

.intel-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(0, 209, 255, .22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  box-shadow: 0 0 36px rgba(0, 209, 255, .12);
}
.intel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("cyber_style_5/screen.png");
  background-size: cover;
  background-position: center top;
  opacity: .22;
  filter: saturate(1.1) contrast(1.12);
}
.panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 22px;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.signal-feed { display: grid; gap: 12px; margin-top: auto; }
.feed-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(10, 10, 11, .68);
}
.rank { color: var(--primary); font: 800 18px/1 "JetBrains Mono", monospace; }
.feed-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

.section { padding: 88px 0; border-top: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.section-title { max-width: 800px; }
.kicker {
  margin-bottom: 12px;
  color: var(--primary);
  font: 700 12px/1 "JetBrains Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.08; }
.section-copy { margin-top: 14px; color: var(--muted); line-height: 1.7; }
.grid { display: grid; gap: 24px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-body { padding: 56px 0 88px; }

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 209, 255, .22);
  border-radius: 4px;
  color: var(--primary);
  background: rgba(0, 209, 255, .08);
  font: 700 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.module-card, .plan, .rebate-card, .kol-card, .support-card, .risk-box { padding: 26px; }
.module-card h3, .plan h3, .rebate-card h3, .kol-card h3, .support-card h3 { margin-top: 16px; font-size: 24px; }
.module-card p, .rebate-card p, .kol-card p, .support-card p, .plan-note { margin-top: 12px; color: var(--muted); line-height: 1.65; }
.price { margin-top: 16px; color: var(--primary); font: 800 clamp(34px, 4vw, 48px)/1 "JetBrains Mono", monospace; }
.price small { color: var(--muted); font-size: 14px; font-weight: 500; }
.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.45;
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list .material-symbols-outlined { margin-top: 1px; color: var(--success); font-size: 18px; }

.exchange-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.exchange-card.active {
  outline: 2px solid rgba(0, 209, 255, .42);
  outline-offset: 3px;
}
.exchange-logo {
  width: 178px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0 14px;
  overflow: hidden;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}
.exchange-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gate-logo img {
  width: 190px;
  max-width: none;
  height: auto;
}
.binance-logo img {
  width: 104%;
  height: auto;
}
.okx-logo img {
  width: 78%;
  height: 78%;
}
.bybit-logo img {
  width: 88%;
  height: 88%;
}
.exchange-logo span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font: 900 18px/1 "Inter", sans-serif;
}
.exchange-logo strong { font-size: 18px; }
.exchange-card h3 { margin-top: 10px; }
.gate-logo { background: #0067ff; }
.binance-logo { background: #0b0e11; }
.okx-logo { background: #fff; }
.gate-card {
  border-color: rgba(35, 203, 167, .42);
  box-shadow: 0 0 24px rgba(35, 203, 167, .12);
}
.binance-card {
  border-color: rgba(240, 185, 11, .46);
  box-shadow: 0 0 24px rgba(240, 185, 11, .11);
}
.okx-card {
  border-color: rgba(255, 255, 255, .32);
  box-shadow: 0 0 24px rgba(255, 255, 255, .08);
}
.bybit-logo {
  background: #fff;
}
.bybit-card {
  border-color: rgba(247, 166, 0, .42);
  box-shadow: 0 0 24px rgba(247, 166, 0, .1);
}
.exchange-card.unavailable {
  cursor: default;
  opacity: .86;
}

.calculator { padding: 28px; position: sticky; top: 96px; }
.calc-platform {
  margin-top: 10px;
  color: var(--muted);
}
.calc-platform strong { color: var(--primary); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.field label span { color: var(--primary); font-weight: 800; }
.field label {
  color: var(--muted);
  font: 700 11px/1 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(0, 0, 0, .34);
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 209, 255, .12);
}
input[type="range"] { accent-color: var(--primary); padding: 0; }
.calc-output { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.calc-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.calc-row strong { color: var(--text); }
.calc-row.final { color: var(--primary); font-size: 20px; font-weight: 800; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
}
.searchbox input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }
.chip {
  height: 42px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  font-weight: 700;
}
.chip.active { color: #001f28; border-color: var(--primary); background: var(--primary); }
.avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #001f28;
  border: 1px solid rgba(0, 209, 255, .42);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  font: 800 20px/1 "JetBrains Mono", monospace;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kol-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.kol-profile .avatar {
  width: 58px;
  height: 58px;
}
.kol-info {
  min-width: 0;
}
.kol-info h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.kol-info .mono {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-size: 12px;
}
.kol-info p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.kol-performance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.kol-performance div {
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
}
.kol-performance span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.kol-performance strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font: 800 18px/1 "JetBrains Mono", monospace;
}
.kol-card-link,
.rank-card-link {
  color: inherit;
  text-decoration: none;
}
.kol-card-link {
  display: block;
}
.rank-card-link {
  display: grid;
}
.meta-list { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.meta-row span:last-child { color: var(--text); text-align: right; }

.rank-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.rank-card .score { color: var(--primary); font: 800 28px/1 "JetBrains Mono", monospace; text-align: right; }
.rank-analyst,
.rank-table-analyst {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rank-analyst .avatar,
.rank-table-analyst .avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}
.terminal { overflow: hidden; }
.terminal-title {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  font: 700 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 15px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); text-align: left; }
th { color: var(--muted); background: rgba(0, 0, 0, .22); font: 700 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: 14px; }
tr:hover td { background: rgba(0, 209, 255, .045); }

.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; opacity: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); transition: opacity .25s ease; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 980px);
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  border-left: 1px solid rgba(255, 255, 255, .1);
  background: var(--surface);
  transition: transform .28s ease;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .22); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.drawer-profile .avatar {
  width: 58px;
  height: 58px;
}
.drawer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
.statbox { padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: rgba(255, 255, 255, .035); }
.statbox span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.statbox strong { color: var(--primary); font: 800 24px/1 "JetBrains Mono", monospace; }
.bars { height: 190px; display: flex; align-items: end; gap: 8px; padding: 16px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 6px; background: rgba(0, 0, 0, .24); }
.bars i { flex: 1; min-width: 12px; border-top: 2px solid var(--primary); background: rgba(0, 209, 255, .12); box-shadow: 0 -10px 22px rgba(0, 209, 255, .08); }
.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  margin-bottom: 12px;
}
.chart-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
}
.chart-toggle button {
  min-width: 52px;
  height: 30px;
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-weight: 800;
}
.chart-toggle button.active {
  color: #001f28;
  background: var(--primary);
}
.drawer-history-title {
  margin-top: 26px;
}
.strategy-history {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .18);
}
.strategy-history table {
  min-width: 920px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}
.detail-profile {
  display: flex;
  align-items: center;
  gap: 22px;
}
.detail-avatar {
  width: 92px;
  height: 92px;
  font-size: 32px;
}
.detail-score-card {
  padding: 24px;
  text-align: center;
}
.detail-score-card .score {
  margin-top: 18px;
  color: var(--primary);
  font: 800 48px/1 "JetBrains Mono", monospace;
}
.detail-score-card p {
  margin-top: 10px;
  color: var(--muted);
}
.detail-layout {
  display: grid;
  gap: 24px;
}
.detail-stats .statbox {
  padding: 22px;
}
.detail-chart-card {
  padding: 26px;
}
.detail-chart-card h2 {
  margin-top: 12px;
}
.detail-history-card .strategy-history {
  margin: 0;
  border: 0;
  border-radius: 0;
}
.sync-note p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.sync-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.sync-flow div {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
}
.sync-flow strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: #001f28;
  border-radius: 50%;
  background: var(--primary);
}
.sync-flow span {
  color: var(--text);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(12px);
  border: 1px solid rgba(0, 209, 255, .45);
  border-radius: 6px;
  color: var(--text);
  background: rgba(19, 19, 20, .94);
  box-shadow: 0 0 24px rgba(0, 209, 255, .16);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

footer { padding: 44px 0; border-top: 0; color: var(--muted); background: rgba(0, 0, 0, .24); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }

.admin-hero .lead { max-width: 860px; }
.admin-hero .shell {
  padding-left: 8px;
  padding-right: 8px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.admin-layout.shell {
  width: min(100% - 48px, var(--max));
}
.admin-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 14px;
}
.admin-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-weight: 800;
  text-align: left;
}
.admin-tab.active {
  color: #001f28;
  border-color: var(--primary);
  background: var(--primary);
}
.admin-tab .material-symbols-outlined { font-size: 20px; }
.admin-main { min-width: 0; }
.admin-panel { display: none; }
.admin-panel.active { display: grid; gap: 24px; }
.admin-panel > .card:not(.terminal),
.admin-note {
  padding: 28px;
}
.admin-panel .terminal {
  border-radius: 8px;
}
.admin-panel .terminal .table-scroll {
  padding: 10px 16px 18px;
}
.admin-panel .terminal table {
  min-width: 720px;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-head h3, .admin-note h3 { margin-top: 12px; font-size: 24px; }
.admin-form {
  display: grid;
  gap: 18px;
}
.admin-avatar-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}
.avatar-preview {
  width: 76px;
  height: 76px;
  font-size: 26px;
}
.form-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.field select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(0, 0, 0, .34);
  padding: 12px 14px;
  outline: none;
}
.admin-list { display: grid; gap: 14px; }
.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
}
.admin-item h3 { margin-top: 10px; font-size: 22px; }
.admin-item p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.admin-kol-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.admin-kol-summary .avatar {
  width: 58px;
  height: 58px;
}
.admin-item-meta {
  display: grid;
  gap: 6px;
  min-width: 120px;
  color: var(--muted);
  font: 700 12px/1.25 "JetBrains Mono", monospace;
  text-align: right;
}

@media (max-width: 1100px) {
  .hero, .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator { position: static; }
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-hero-grid { grid-template-columns: 1fr; }
  .sync-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-item { grid-template-columns: 1fr; }
  .admin-item-meta { text-align: left; }
  .intel-panel, .panel-content { min-height: 480px; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 0;
    background: rgba(19, 19, 20, .96);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; }
  .nav-links a.active::after { display: none; }
  .mobile-toggle { display: grid; }
  .nav-actions .icon-btn { display: none; }
  .nav-actions .mobile-toggle { display: grid; }
  .brand span:last-child { font-size: 15px; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .section-head { display: block; }
  .metrics-strip, .four-col { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, var(--max)); }
  .admin-layout.shell { width: min(100% - 28px, var(--max)); }
  .admin-panel > .card:not(.terminal),
  .admin-note {
    padding: 20px;
  }
  .admin-side {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .admin-avatar-field {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 16px;
  }
  .admin-head {
    display: grid;
  }
  .admin-item {
    padding: 18px;
  }
  .admin-kol-summary {
    align-items: flex-start;
  }
  .detail-profile {
    align-items: flex-start;
    flex-direction: column;
  }
  .sync-flow { grid-template-columns: 1fr; }
  .nav { height: 66px; }
  main { padding-top: 66px; }
  .nav-links { top: 66px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .searchbox { min-width: 100%; }
  .toolbar .chip { flex: 1 1 calc(50% - 8px); }
  .feed-item, .rank-card { grid-template-columns: 1fr; }
  .feed-item .mono, .rank-card .score { text-align: left; }
  .drawer-stats { grid-template-columns: 1fr; }
}
