:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --card: rgba(17, 27, 48, 0.78);
  --card-strong: #111b30;
  --line: rgba(255, 255, 255, 0.10);
  --text: #edf3ff;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --gold: #d8b15f;
  --gold-2: #f3d58c;
  --blue: #4ea1ff;
  --cyan: #6ee7f9;
  --green: #39d98a;
  --red: #ff6673;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 8%, rgba(78, 161, 255, .22), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(216, 177, 95, .18), transparent 26%),
    linear-gradient(180deg, #060913 0%, #080c16 46%, #05070d 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.page { padding: 118px 0 64px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, .76);
  border-bottom: 1px solid var(--line);
}

.navbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #7c5c22 50%, var(--blue));
  box-shadow: 0 12px 30px rgba(216, 177, 95, .18);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #07101d;
  letter-spacing: -1px;
}
.brand-text strong { display: block; font-size: 15px; letter-spacing: .4px; }
.brand-text span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: .18s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: .18s ease;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.09); }
.btn-primary {
  color: #08111f;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(216, 177, 95, .20);
}
.btn-primary:hover { background: linear-gradient(135deg, #ffe3a1, #e0b95f); }
.btn-blue {
  color: #07101d;
  background: linear-gradient(135deg, #8dd4ff, var(--blue));
  border-color: transparent;
}
.btn-danger { background: rgba(255, 102, 115, .13); border-color: rgba(255, 102, 115, .32); color: #ffd7dc; }
.btn-sm { padding: 9px 13px; font-size: 13px; }

.hero {
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 126px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 76px 0 auto auto;
  width: 56vw;
  height: 56vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(78, 161, 255, .17), transparent 58%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(216, 177, 95, .28);
  background: rgba(216, 177, 95, .08);
  color: var(--gold-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: -3px;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--gold-2) 42%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: #b7c3d7;
  font-size: 18px;
  line-height: 1.85;
  max-width: 680px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: "✓"; color: var(--green); font-weight: 900; }

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 27, 48, .86), rgba(11, 18, 32, .86));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 36%);
  pointer-events: none;
}
.hero-terminal { padding: 20px; }
.terminal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  border-radius: 18px;
  padding: 18px;
}
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; font-size: 28px; margin-top: 8px; letter-spacing: -1px; }
.stat-card small { color: var(--muted-2); }
.performance-line {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 18px;
}
.line-header { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.bar-chart { display: flex; align-items: end; gap: 8px; height: 150px; }
.bar-chart i { flex: 1; min-width: 10px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--gold), rgba(78,161,255,.65)); opacity: .9; }

.section { padding: 78px 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-title { max-width: 760px; }
.kicker { color: var(--gold-2); text-transform: uppercase; letter-spacing: 1.4px; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -1.8px; margin-bottom: 12px; }
.section-title p, .muted { color: var(--muted); line-height: 1.75; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  background: rgba(17, 27, 48, .72);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
}
.card h3 { margin-bottom: 10px; font-size: 20px; }
.card p { color: var(--muted); line-height: 1.72; }
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(216, 177, 95, .12);
  color: var(--gold-2);
  margin-bottom: 18px;
  font-weight: 900;
}

.pool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pool-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 27, 48, .86), rgba(10, 16, 29, .86));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.23);
}
.pool-head { padding: 20px; border-bottom: 1px solid var(--line); }
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(78, 161, 255, .28);
  background: rgba(78, 161, 255, .10);
  color: #bddfff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}
.badge.gold { border-color: rgba(216,177,95,.32); background: rgba(216,177,95,.11); color: var(--gold-2); }
.badge.green { border-color: rgba(57,217,138,.32); background: rgba(57,217,138,.10); color: #b5ffd9; }
.badge.red { border-color: rgba(255,102,115,.32); background: rgba(255,102,115,.10); color: #ffd1d7; }
.pool-head h3 { margin: 14px 0 8px; }
.pool-body { padding: 20px; }
.metric-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.metric-list li { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); border-bottom: 1px dashed rgba(255,255,255,.10); padding-bottom: 9px; }
.metric-list strong { color: var(--text); }
.progress { height: 9px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 999px; }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 26px; align-items: center; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(216,177,95,.14); color: var(--gold-2); font-weight: 900; }
.step h3 { margin: 4px 0 6px; }
.step p { color: var(--muted); line-height: 1.7; }

.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
th { color: #b7c3d7; font-size: 12px; text-transform: uppercase; letter-spacing: .9px; }
td { color: #d9e4f7; }
tr:hover td { background: rgba(255,255,255,.025); }
.positive { color: var(--green); font-weight: 800; }
.negative { color: var(--red); font-weight: 800; }

.auth-wrap { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 118px 0 64px; }
.auth-card { width: min(520px, calc(100% - 40px)); padding: 28px; }
.form-grid { display: grid; gap: 14px; }
.field label { display: block; color: #b7c3d7; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
.input:focus, textarea:focus, select:focus { border-color: rgba(216,177,95,.55); box-shadow: 0 0 0 4px rgba(216,177,95,.08); }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.7; }

.app-shell { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding-top: 100px; }
.sidebar { position: sticky; top: 94px; align-self: start; border: 1px solid var(--line); background: rgba(17,27,48,.72); border-radius: var(--radius); padding: 16px; }
.sidebar a { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-radius: 14px; color: var(--muted); margin-bottom: 4px; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.07); color: var(--text); }
.sidebar small { color: var(--muted-2); }
.content { min-width: 0; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dashboard-grid .stat-card { min-height: 132px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); }
.timeline-item small { color: var(--muted); }
.copy-box { display: flex; gap: 10px; }
.copy-box input { flex: 1; }

.notice {
  border: 1px solid rgba(216,177,95,.25);
  background: rgba(216,177,95,.08);
  color: #ffe3a1;
  border-radius: 18px;
  padding: 16px 18px;
  line-height: 1.7;
}
.risk-box {
  border: 1px solid rgba(255,102,115,.30);
  background: rgba(255,102,115,.08);
  color: #ffd9dd;
  border-radius: 18px;
  padding: 18px;
  line-height: 1.8;
}

.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer a { color: #b7c3d7; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(7, 11, 20, .96);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid, .split, .app-shell { grid-template-columns: 1fr; }
  .cards, .pool-grid, .dashboard-grid, .two-col { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .navbar { height: 70px; }
  .brand-text span { display: none; }
  .nav-actions .btn:not(.mobile-toggle) { display: none; }
  .hero { min-height: auto; padding-top: 112px; }
  .hero h1 { letter-spacing: -2px; }
  .lead { font-size: 16px; }
  .cards, .pool-grid, .dashboard-grid, .two-col, .stats-grid { grid-template-columns: 1fr; }
  .section-header, .dashboard-head, .footer-grid { align-items: start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .copy-box { flex-direction: column; }
}


/* =========================
   V2 Layout Polish
   ========================= */

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  background: rgba(7, 11, 20, .82);
}

.navbar {
  height: 80px;
}

.nav-links a {
  letter-spacing: .15px;
}

.hero {
  min-height: 860px;
  padding: 146px 0 86px;
}

.hero-grid {
  gap: 58px;
}

.eyebrow {
  padding: 9px 16px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-title {
  margin: 28px 0 22px;
  line-height: 1.08;
  letter-spacing: -3.6px;
}

.hero-title-en,
.hero-title-zh {
  display: block;
}

.hero-title-en {
  font-size: clamp(54px, 7.4vw, 94px);
  line-height: 1.02;
}

.hero-title-zh {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.18;
  letter-spacing: -2.2px;
  color: #f3f7ff;
  text-shadow: 0 18px 60px rgba(78, 161, 255, .14);
  margin-top: 6px;
}

.lead {
  font-size: 19px;
  line-height: 2;
  letter-spacing: .3px;
  color: #c4d0e4;
}

.hero-actions {
  margin: 34px 0 20px;
}

.btn {
  min-height: 46px;
  letter-spacing: .15px;
}

.btn-primary,
.btn-blue {
  box-shadow:
    0 16px 34px rgba(0, 0, 0, .22),
    0 18px 38px rgba(216, 177, 95, .16);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 20px 0 18px;
}

.hero-proof div {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  border-radius: 18px;
  padding: 14px 15px;
}

.hero-proof strong {
  display: block;
  color: var(--gold-2);
  font-size: 18px;
  letter-spacing: -.4px;
}

.hero-proof span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.trust-row {
  gap: 12px 18px;
  max-width: 700px;
}

.trust-row span {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  padding: 8px 11px;
  border-radius: 999px;
}

.panel {
  box-shadow:
    0 34px 90px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-terminal {
  padding: 22px;
  transform: translateY(10px);
}

.stat-card,
.card,
.pool-card {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.card:hover,
.pool-card:hover,
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,177,95,.24);
  background: rgba(20, 32, 56, .82);
}

.stat-card strong {
  font-size: 30px;
}

.section {
  padding: 88px 0;
}

.section-title p,
.card p,
.step p,
.muted {
  font-size: 15.5px;
}

.cards {
  gap: 22px;
}

.card {
  padding: 26px;
}

.icon {
  width: 48px;
  height: 48px;
}

.split {
  gap: 44px;
}

.steps {
  gap: 18px;
}

.step {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 20px;
  padding: 16px;
}

.step-num {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.risk-box,
.notice {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.footer {
  background: rgba(0,0,0,.10);
}

.page .section-title h2,
.dashboard-head h2,
.auth-card h2 {
  line-height: 1.18;
}

@media (max-width: 1100px) {
  .nav-links a {
    padding: 9px 9px;
    font-size: 13px;
  }
  .hero-title-en {
    font-size: clamp(50px, 7vw, 82px);
  }
  .hero-title-zh {
    font-size: clamp(42px, 5.6vw, 72px);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-terminal {
    transform: none;
  }
}

@media (max-width: 680px) {
  .navbar {
    height: 70px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-title {
    letter-spacing: -2px;
  }

  .hero-title-en {
    font-size: clamp(46px, 13vw, 64px);
    line-height: 1.04;
  }

  .hero-title-zh {
    font-size: clamp(36px, 10.5vw, 52px);
    line-height: 1.22;
    letter-spacing: -1.4px;
    margin-top: 8px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .trust-row span {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .card {
    padding: 22px;
  }
}


/* =========================
   V3 Content & Platform Polish
   ========================= */

.section-tight { padding-top: 34px; }

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 22px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tabs button {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  color: #08111f;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.status-strip span {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.status-strip strong {
  display: block;
  color: var(--gold-2);
  margin-bottom: 4px;
}

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

.flow-grid-3 { grid-template-columns: repeat(3, 1fr); }

.flow-card {
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(17,27,48,.72), rgba(10,16,29,.72));
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.flow-card span {
  display: inline-flex;
  min-width: 42px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(216,177,95,.12);
  color: var(--gold-2);
  font-weight: 900;
  margin-bottom: 14px;
}

.flow-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.flow-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}

.allocation-list {
  display: grid;
  gap: 12px;
}

.allocation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
}

.allocation-row strong { display: block; }
.allocation-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.allocation-row em { font-style: normal; color: var(--gold-2); font-weight: 900; }

.metric-list li strong {
  text-align: right;
}

.auth-card h3 { margin-top: 0; }

.footer-links a {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .status-strip,
  .flow-grid,
  .flow-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .status-strip,
  .flow-grid,
  .flow-grid-3 { grid-template-columns: 1fr; }
  .allocation-row { align-items: flex-start; flex-direction: column; }
  .filter-tabs button { flex: 1; }
}


/* =========================
   V4 System Spec + Hero No-Wrap Fix
   ========================= */

.hero-title {
  max-width: 1080px;
}

.hero-title-en,
.hero-title-zh {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.hero-title-en {
  font-size: clamp(54px, 6.4vw, 88px);
  line-height: 1.04;
}

.hero-title-zh {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 1.2;
  margin-top: 10px;
}

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

.spec-card {
  border: 1px solid var(--line);
  background: rgba(17, 27, 48, .72);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
}

.spec-card h3 {
  margin-bottom: 10px;
}

.spec-card p,
.spec-card li {
  color: var(--muted);
  line-height: 1.72;
}

.spec-card ul,
.spec-card ol {
  margin-bottom: 0;
  padding-left: 20px;
}

.schema-table {
  min-width: 960px;
}

.code-block {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  padding: 18px;
  overflow-x: auto;
  color: #d9e4f7;
  line-height: 1.65;
  font-size: 13px;
}

.flow-list {
  display: grid;
  gap: 12px;
}

.flow-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 16px;
}

.flow-item strong {
  display: block;
  margin-bottom: 4px;
}

.flow-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(216,177,95,.14);
  color: var(--gold-2);
  font-weight: 900;
}

@media (max-width: 980px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-en {
    font-size: clamp(48px, 8.8vw, 78px);
  }

  .hero-title-zh {
    font-size: clamp(38px, 7.8vw, 62px);
  }
}

@media (max-width: 680px) {
  .hero-title {
    max-width: 100%;
  }

  .hero-title-en {
    font-size: clamp(36px, 10.8vw, 50px);
    letter-spacing: -2px;
  }

  .hero-title-zh {
    font-size: clamp(28px, 8.8vw, 42px);
    letter-spacing: -1.2px;
  }

  .spec-card {
    padding: 20px;
  }
}


/* =========================
   V5 Data Layer & Hero Fit Fix
   ========================= */

.hero-grid {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
}

.hero-title {
  max-width: 100%;
}

.hero-title-en,
.hero-title-zh {
  max-width: none;
  white-space: nowrap;
}

.hero-title-en {
  font-size: clamp(48px, 5.1vw, 74px);
  line-height: 1.03;
  letter-spacing: -2.8px;
}

.hero-title-zh {
  font-size: clamp(40px, 4.9vw, 64px);
  line-height: 1.16;
  letter-spacing: -1.8px;
}

.lead {
  max-width: 720px;
}

@media (max-width: 1200px) {
  .hero-title-en {
    font-size: clamp(46px, 5vw, 68px);
  }

  .hero-title-zh {
    font-size: clamp(38px, 4.6vw, 58px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-en,
  .hero-title-zh {
    white-space: normal;
  }
}

.mock-data-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78,161,255,.22);
  background: rgba(78,161,255,.08);
  color: #bddfff;
  font-size: 12px;
  font-weight: 800;
}


/* =========================
   V6 Dynamic Data Rendering
   ========================= */

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.pool-grid:empty,
tbody:empty {
  min-height: 120px;
}

.data-source-note {
  border: 1px solid rgba(78, 161, 255, .22);
  background: rgba(78, 161, 255, .08);
  color: #bddfff;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.7;
  font-size: 14px;
}

.table-card table tbody tr:last-child td {
  border-bottom: 0;
}

.allocation-row em {
  min-width: max-content;
}

@media (max-width: 680px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V7 API Layer
   ========================= */

.mock-data-chip.api-connected {
  border-color: rgba(57,217,138,.28);
  background: rgba(57,217,138,.10);
  color: #b5ffd9;
}

.api-card {
  border: 1px solid rgba(78, 161, 255, .22);
  background: rgba(78, 161, 255, .08);
  border-radius: 20px;
  padding: 18px;
  color: #bddfff;
  line-height: 1.75;
}

.endpoint-list {
  display: grid;
  gap: 12px;
}

.endpoint-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 14px;
}

.endpoint-item code {
  color: var(--gold-2);
}

@media (max-width: 680px) {
  .endpoint-item {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V9 Auth Layer
   ========================= */

.sidebar-button {
  width: 100%;
  border: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--muted);
  margin-bottom: 4px;
  background: transparent;
  cursor: pointer;
}

.sidebar-button:hover {
  background: rgba(255,255,255,.07);
  color: var(--text);
}

.sidebar-button small {
  color: var(--muted-2);
}

code {
  color: var(--gold-2);
}


/* =========================
   V10 Login Fallback & Hero Fit
   ========================= */

/* Desktop hero was still too tight on 1366-1440px widths.
   This version gives the title a safer max width and lets the right panel breathe. */
.hero {
  padding: 132px 0 84px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .78fr);
  gap: clamp(28px, 3.2vw, 54px);
}

.hero-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.hero-title-en,
.hero-title-zh {
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.hero-title-en {
  font-size: clamp(46px, 4.65vw, 70px);
  line-height: 1.08;
  letter-spacing: -2.35px;
}

.hero-title-zh {
  font-size: clamp(38px, 4.25vw, 58px);
  line-height: 1.22;
  letter-spacing: -1.55px;
  margin-top: 12px;
}

.hero-terminal {
  max-width: 100%;
}

.lead {
  max-width: 760px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.95;
}

/* Login/register feedback blocks */
.auth-card .risk-box,
.auth-card .notice {
  margin-top: 16px;
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 34px;
  }

  .hero-title {
    max-width: 700px;
  }

  .hero-title-en {
    font-size: clamp(44px, 4.45vw, 64px);
    letter-spacing: -2.1px;
  }

  .hero-title-zh {
    font-size: clamp(36px, 4.1vw, 54px);
  }

  .hero-terminal {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-title-en,
  .hero-title-zh {
    white-space: normal;
  }

  .hero-title-en {
    font-size: clamp(48px, 7.5vw, 76px);
  }

  .hero-title-zh {
    font-size: clamp(40px, 6.6vw, 64px);
  }
}

@media (max-width: 680px) {
  .hero-title-en {
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1.1;
  }

  .hero-title-zh {
    font-size: clamp(30px, 8.6vw, 44px);
    line-height: 1.22;
  }
}


/* =========================
   Production V12 Layout
   Keeps V10-style two-column hero with safer sizing.
   ========================= */

.hero {
  min-height: 780px;
  padding: 124px 0 78px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr) !important;
  gap: clamp(34px, 4vw, 64px);
  align-items: center;
}

.hero-title {
  max-width: 820px;
  margin: 26px 0 22px;
}

.hero-title-en,
.hero-title-zh {
  display: block;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}

.hero-title-en {
  font-size: clamp(48px, 4.8vw, 76px);
  line-height: 1.08;
  letter-spacing: -2.2px;
}

.hero-title-zh {
  font-size: clamp(38px, 4.15vw, 60px);
  line-height: 1.22;
  letter-spacing: -1.3px;
  margin-top: 12px;
}

.lead {
  max-width: 780px;
  font-size: clamp(17px, 1.18vw, 19px);
  line-height: 1.95;
}

.hero-terminal {
  width: min(640px, 100%);
  transform: none;
  justify-self: end;
}

.hero-terminal .stat-card {
  padding: 16px;
}

.hero-terminal .stat-card strong {
  font-size: clamp(24px, 2.2vw, 32px);
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }

  .hero-terminal {
    justify-self: start;
    width: min(720px, 100%);
  }

  .hero-title-en,
  .hero-title-zh {
    white-space: normal;
    width: auto;
  }
}

@media (max-width: 680px) {
  .hero-title-en {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-title-zh {
    font-size: clamp(30px, 8.5vw, 44px);
  }
}


/* =========================
   V23 Hero Strategy Copy
   ========================= */

.hero-title-strategy {
  max-width: 900px;
}

.hero-title-strategy .hero-title-en {
  font-size: clamp(44px, 4.1vw, 66px);
  line-height: 1.22;
  letter-spacing: -1.5px;
  white-space: normal;
  width: auto;
}

.hero-title-strategy .hero-title-zh {
  font-size: clamp(28px, 2.55vw, 42px);
  line-height: 1.45;
  letter-spacing: -0.8px;
  margin-top: 18px;
  white-space: normal;
  width: auto;
}

.hero-title-strategy + .lead {
  max-width: 820px;
  line-height: 2;
}


/* =========================
   V24 Home Refresh
   ========================= */

.hero-title-compact .hero-title-en {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.14;
  white-space: nowrap;
}

.hero-title-compact .hero-title-zh {
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.34;
  letter-spacing: -0.4px;
  margin-top: 14px;
  white-space: nowrap;
}

.about-cards .card {
  min-height: 190px;
}

.about-cards .card h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.section-title-wide {
  max-width: 980px;
}

.why-grid .flow-card {
  height: 100%;
}

.why-grid .flow-card strong {
  line-height: 1.45;
}

.why-cta {
  margin-top: 28px;
}

.why-cta h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.why-cta p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 860px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 28px;
  align-items: center;
}

.contact-copy h2 {
  margin-bottom: 16px;
}

.contact-copy p {
  max-width: 760px;
  line-height: 1.8;
}

.contact-panel {
  padding: 34px;
}

.contact-panel h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.contact-panel p {
  color: var(--muted);
  line-height: 1.82;
}

.contact-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-btn {
  min-height: 56px;
  font-size: 16px;
}

.footer-grid-stacked {
  align-items: flex-start;
  flex-direction: column;
}

.footer-brand-block {
  max-width: 980px;
  display: grid;
  gap: 10px;
}

.footer-brand-block strong {
  color: var(--text);
  font-size: 18px;
}

.footer-disclaimer-title {
  color: var(--text);
  font-weight: 800;
  margin-top: 4px;
}

.footer-brand-block small {
  display: block;
  color: var(--muted);
  line-height: 1.85;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .hero-title-compact .hero-title-en,
  .hero-title-compact .hero-title-zh {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-title-compact .hero-title-en {
    font-size: clamp(34px, 9.2vw, 46px);
  }

  .hero-title-compact .hero-title-zh {
    font-size: clamp(22px, 5.8vw, 28px);
  }

  .contact-panel {
    padding: 24px;
  }
}


/* =========================
   V25 Home Structure Update
   ========================= */
.contact-layout-expanded {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  gap: 44px;
}

.contact-copy h2 {
  max-width: 680px;
}

.contact-copy p {
  max-width: 700px;
}

.contact-panel-rich {
  padding: 40px 42px;
}

.contact-channel + .contact-channel {
  margin-top: 26px;
}

.contact-channel-title {
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-telegram-link,
.contact-email-link {
  display: inline-block;
  color: #8cc8ff;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
}

.contact-telegram-link:hover,
.contact-email-link:hover {
  color: #b3dcff;
}

.contact-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.contact-list li + li {
  margin-top: 8px;
}

.contact-note {
  color: var(--muted);
  line-height: 1.85;
  margin-top: 6px;
}

.contact-actions-single {
  margin-top: 28px;
}

.contact-actions-single .contact-btn {
  min-width: 220px;
}

.risk-box-lines {
  line-height: 2;
}

.footer-grid-simple {
  gap: 0;
}

.footer-grid-simple .footer-brand-block {
  max-width: 1120px;
}

.footer-grid-simple .footer-brand-block small {
  max-width: 1120px;
}

@media (max-width: 980px) {
  .contact-layout-expanded {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .contact-telegram-link,
  .contact-email-link {
    font-size: 20px;
    word-break: break-word;
  }

  .contact-panel-rich {
    padding: 24px;
  }
}

/* =========================
   V26 Hero Rotation + Home Strategy Overview
   ========================= */
.hero-rotator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.hero-rotator-bar small {
  color: var(--muted);
  font-size: 12px;
}

.section-strategy-overview .pool-grid {
  margin-top: 8px;
}

.contact-channel-primary {
  margin-bottom: 28px;
}

.contact-telegram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8dd4ff, var(--blue));
  color: #07101d;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 20px 42px rgba(78, 161, 255, .22);
  margin-bottom: 12px;
}

.contact-telegram-cta:hover {
  filter: brightness(1.05);
}

.contact-note-compact {
  margin-top: 0;
  font-size: 14px;
}

.contact-channel-title-secondary {
  font-size: 16px;
}

.contact-email-secondary {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.inline-link {
  color: #8cc8ff;
  text-decoration: none;
}

.inline-link:hover {
  color: #b3dcff;
}

.contact-disclaimer {
  margin-top: 26px;
}

@media (max-width: 680px) {
  .hero-rotator-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-telegram-cta {
    width: 100%;
    font-size: 20px;
    text-align: center;
  }
}


/* =========================
   V27 Strategy Display Compact
   ========================= */

.hero-terminal .stat-card strong {
  font-size: clamp(24px, 2.15vw, 34px);
  white-space: nowrap;
}

.hero-terminal .stat-card span {
  line-height: 1.45;
}

.hero-terminal .stat-card small:empty {
  display: none;
}

.section-strategy-overview .pool-head h3,
.page .pool-head h3 {
  margin-top: 0;
}

.section-strategy-overview .pool-head,
.page .pool-head {
  padding-top: 24px;
}

.filter-tabs:has(button:only-child) {
  pointer-events: none;
}

@media (max-width: 1180px) {
  .hero-terminal .stat-card strong {
    font-size: clamp(22px, 3.2vw, 30px);
  }
}

@media (max-width: 680px) {
  .hero-terminal .stat-card strong {
    font-size: 24px;
  }
}


/* =========================
   V29 Public Nav Anchors
   ========================= */

html {
  scroll-behavior: smooth;
}

#why-us,
#contact-us {
  scroll-margin-top: 110px;
}

.site-header .nav-links {
  gap: 28px;
}

.site-header .nav-links a[href*="#"] {
  color: var(--muted);
}

.site-header .nav-links a[href*="#"]:hover {
  color: var(--text);
}

/* =========================
   V30 Register Risk Modal
   ========================= */

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 18, .78);
  backdrop-filter: blur(10px);
}

.risk-confirm-modal {
  width: min(720px, 100%);
  padding: 34px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .45);
}

.risk-confirm-modal h3 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 10px 0 18px;
}

.risk-confirm-content {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 28px;
}

[data-form-result].risk-box,
[data-form-result].notice {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .risk-confirm-modal {
    padding: 24px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}


/* =========================
   V32 Member Data Isolation UI
   ========================= */

[data-admin-only][hidden] {
  display: none !important;
}

[data-require-auth] .mock-data-chip:not(.api-connected) {
  opacity: .75;
}


/* =========================
   V33 Home Daily Profit Summary
   ========================= */

.data-source-note-multi {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  line-height: 1.65;
  max-width: 720px;
}

.data-source-note-multi div:first-child {
  color: var(--text);
  font-weight: 800;
}

.data-source-note-multi div:not(:first-child) {
  color: var(--muted);
}

.data-source-note-multi .profit-positive {
  color: #39e68c;
  font-weight: 800;
}

.data-source-note-multi .profit-negative {
  color: #ff6b8a;
  font-weight: 800;
}

.data-source-note-multi .profit-empty {
  color: var(--muted);
}

@media (max-width: 680px) {
  .data-source-note-multi {
    font-size: 14px;
    padding: 14px 16px;
  }
}


/* =========================
   V34 Member Center Polish
   ========================= */

.table-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-select {
  min-width: 112px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
}

.table-select option {
  background: #111827;
  color: #eaf2ff;
}

.admin-two-col {
  align-items: flex-start;
}

.admin-two-col .table-card {
  overflow-x: auto;
}

.badge.pending,
.badge.waiting {
  border-color: rgba(216,177,95,.35);
  background: rgba(216,177,95,.12);
  color: var(--gold-2);
}

.badge.verified,
.badge.completed {
  border-color: rgba(57,217,138,.32);
  background: rgba(57,217,138,.10);
  color: #b5ffd9;
}

.badge.suspended,
.badge.rejected {
  border-color: rgba(255,102,115,.32);
  background: rgba(255,102,115,.10);
  color: #ffd1d7;
}

.mock-data-chip {
  letter-spacing: .04em;
}

@media (max-width: 920px) {
  .table-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-select {
    width: 100%;
  }
}


/* =========================
   V36 Member Page Polish
   ========================= */

.kicker .mock-data-chip {
  margin-left: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.status-strip.status-strip-plain {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 0 0 18px;
}

.status-strip.status-strip-plain > span {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
}

.status-strip.status-strip-plain strong {
  display: inline;
  margin-right: 8px;
  margin-bottom: 0;
  color: var(--gold-2);
}

.risk-box-formal p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.8;
}

[data-deposit-intent-form] [data-form-result] {
  margin-top: 12px;
}

@media (max-width: 680px) {
  .status-strip.status-strip-plain {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
