:root {
  --bg: #0a0e13;
  --surface: #121820;
  --surface2: #171f2a;
  --surface3: #1c2736;
  --border: #2a3544;
  --border-light: #364556;
  --text: #eef2f7;
  --text2: #b8c5d6;
  --muted: #7d8fa3;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --brand-gold: #c4a574;
  --cta: #22a06b;
  --cta-hover: #1d8a5c;
  --cta-dim: rgba(34, 160, 107, 0.15);
  --pass: #2ea87a;
  --pass-dim: rgba(46, 168, 122, 0.12);
  --fail: #e05555;
  --fail-dim: rgba(224, 85, 85, 0.12);
  --watch: #d4a017;
  --watch-dim: rgba(212, 160, 23, 0.12);
  --track-a: #5b9bd5;
  --track-b: #2ea87a;
  --track-c: #9b87c4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: "IBM Plex Sans", -apple-system, "PingFang SC", sans-serif;
  --font-serif: "Noto Serif SC", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  overflow-x: hidden;
}

.brand-link { text-decoration: none; color: inherit; }

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 160, 107, 0.05) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
  z-index: 0;
}

.product-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 19, 0.96);
  border-bottom: 1px solid var(--border);
}

.product-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
}

.product-tab {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.product-tab:hover {
  color: var(--text2);
}

.product-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent);
}

.topbar {
  position: sticky;
  top: 44px;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 14, 19, 0.92);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e3a5f, #152a45);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-gold);
  letter-spacing: 0.04em;
}

.brand-logo-wrap,
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.brand-copy { display: flex; flex-direction: column; gap: 2px; }

.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.social-link:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface2);
}

.btn-credits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(34, 160, 107, 0.35);
}

.btn-credits:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn-credits-main { font-weight: 700; font-size: 14px; line-height: 1.2; }
.btn-credits-sub { font-size: 10px; opacity: 0.9; font-weight: 500; }

.promo-strip {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, rgba(34, 160, 107, 0.12), rgba(59, 130, 246, 0.08));
  border-bottom: 1px solid rgba(34, 160, 107, 0.25);
}

.promo-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}

.promo-badge {
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.promo-link {
  margin-left: auto;
  color: var(--cta);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.promo-link:hover { text-decoration: underline; }

.hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 48px 24px 32px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-gold);
}

.subtitle {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15px;
  max-width: 540px;
}

.value-props {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.value-props li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.value-props strong {
  color: var(--accent2);
  font-weight: 600;
  white-space: nowrap;
}

.value-props span {
  color: var(--muted);
  grid-column: 2;
}

.legal-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

.legal-note strong {
  color: var(--text2);
  font-weight: 600;
}

.invite-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.invite-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.invite-desc strong {
  color: var(--accent2);
}

.invite-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
}

.invite-stats strong {
  color: var(--brand-gold);
  font-size: 1.1rem;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  font-size: 12px;
}

.invite-link-row button {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent2);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.invite-link-row button:hover {
  background: rgba(201, 162, 39, 0.08);
}

.credits-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

.decision-memo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.decision-memo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.decision-memo-head h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
}

.decision-grade {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.decision-grade.pass { background: var(--pass-dim); color: var(--pass); }
.decision-grade.fail { background: var(--fail-dim); color: var(--fail); }
.decision-grade.watch { background: var(--watch-dim); color: var(--watch); }

.decision-oneliner {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 16px;
}

.decision-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.decision-meta {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.decision-meta label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.decision-meta val {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.decision-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.decision-block h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text2);
}

.decision-block ul {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.decision-block li { padding: 4px 0; }

.decision-foot {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.usage-line {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

.error a {
  color: var(--accent2);
  text-decoration: underline;
}

.invite-rule-note {
  font-size: 12px;
  color: var(--watch);
  line-height: 1.6;
  margin: -4px 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--watch-dim);
  border: 1px solid rgba(212, 160, 23, 0.2);
}

.tweet-templates {
  display: grid;
  gap: 12px;
}

.tweet-template-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  overflow: hidden;
}

.tweet-template-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.tweet-template-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
}

.tweet-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-tweet-copy,
.btn-tweet-post {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-tweet-copy {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
}

.btn-tweet-copy:hover {
  border-color: var(--accent);
  color: var(--accent2);
}

.btn-tweet-post {
  border: 1px solid var(--accent);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent2);
}

.btn-tweet-post:hover {
  background: rgba(59, 130, 246, 0.22);
}

.tweet-template-body {
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
  max-height: 160px;
  overflow-y: auto;
}

.search-panel {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-label:not(:first-child) { margin-top: 20px; }

.search-row {
  display: flex;
  gap: 10px;
}

.input-wrap {
  flex: 1;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-row input {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

#btnAnalyze {
  padding: 0 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
  min-width: 120px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

#btnAnalyze:hover:not(:disabled) { background: #2563eb; transform: translateY(-1px); }
#btnAnalyze:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.track-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.track-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.track-pill:hover { border-color: var(--border-light); background: var(--surface3); }

.track-pill.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.track-pill.active .pill-key { color: var(--accent2); }

.pill-key { font-weight: 700; font-size: 14px; }
.pill-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }
.track-pill.active .pill-desc { color: var(--text2); }

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.chips-label { font-size: 12px; color: var(--muted); }

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: var(--accent-dim);
}

.chip:focus-visible,
.track-pill:focus-visible,
.social-link:focus-visible,
.btn-credits:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  list-style: none;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.suggestions li:hover { background: var(--surface2); }
.suggestions li:last-child { border-bottom: none; }

.main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

.hidden { display: none !important; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.6; }
.empty-sub { font-size: 13px; margin-top: 6px; }

.loading-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 400px;
  margin: 32px auto;
}

.loading-title { font-weight: 600; font-size: 1.1rem; margin-top: 8px; }
.loading-sub { font-size: 13px; color: var(--muted); margin-top: 8px; }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error {
  background: var(--fail-dim);
  border: 1px solid var(--fail);
  color: #fecaca;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
}

.resolve-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 168, 83, 0.35);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--accent2);
}

.resolve-banner::before { content: "→"; font-weight: 700; }

.cache-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  color: #93c5fd;
}

.cache-banner a { color: var(--accent2); }

.advisory-panel {
  background: linear-gradient(145deg, var(--surface2), var(--surface));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.advisory-panel.advisory-sub {
  margin-top: 16px;
  margin-bottom: 0;
  background: var(--surface);
  border-style: dashed;
}

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

.advisory-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.advisory-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.advisory-synthesis {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 12px;
}

.advisory-pos-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
}

.position-badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.position-badge.core { background: var(--pass-dim); color: var(--pass); border: 1px solid var(--pass); }
.position-badge.standard { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border: 1px solid #60a5fa; }
.position-badge.watch { background: var(--watch-dim); color: var(--watch); border: 1px solid var(--watch); }
.position-badge.none { background: var(--fail-dim); color: var(--fail); border: 1px solid var(--fail); }

.divergence-note {
  background: rgba(167, 139, 250, 0.12);
  border-left: 3px solid var(--track-c);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text2);
}

.advisory-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.advisory-block h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.advisory-block ul {
  list-style: none;
  font-size: 14px;
  color: var(--text2);
}

.advisory-block li {
  padding: 6px 0 6px 16px;
  position: relative;
}

.advisory-block li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.advisory-block.flip li::before { content: "↻"; }

.advisory-block.notes p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.55;
}

.advisory-block.notes strong { color: var(--text2); }

.track-section {
  margin-bottom: 40px;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.track-section[data-track="A"] { --track-color: var(--track-a); }
.track-section[data-track="B"] { --track-color: var(--track-b); }
.track-section[data-track="C"] { --track-color: var(--track-c); }

.track-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--track-color, var(--accent));
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  color: var(--track-color, var(--accent));
  margin-bottom: 10px;
}

.track-tagline {
  font-size: 13px;
  color: var(--accent2);
  margin: 4px 0 2px;
  font-weight: 600;
}

.track-desc { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.track-header h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.price-tag {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.price-tag strong { color: var(--text); font-size: 1.1rem; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}

.stat label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.stat val {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  font-variant-numeric: tabular-nums;
}

.consensus-bar-wrap {
  margin-top: 16px;
}

.consensus-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.consensus-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}

.consensus-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--track-color, var(--accent)), var(--accent2));
  transition: width 0.6s ease;
}

.verdict-pill {
  align-self: start;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  max-width: 200px;
  text-align: center;
}

.verdict-pill.pass { background: var(--pass-dim); color: var(--pass); border: 1px solid var(--pass); }
.verdict-pill.fail { background: var(--fail-dim); color: var(--fail); border: 1px solid var(--fail); }
.verdict-pill.watch { background: var(--watch-dim); color: var(--watch); border: 1px solid var(--watch); }

.masters-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.masters-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn.active {
  background: var(--surface2);
  border-color: var(--border-light);
  color: var(--text);
}

.masters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.master-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.35s ease both;
}

.master-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.master-card.pass { border-left: 4px solid var(--pass); }
.master-card.fail { border-left: 4px solid var(--fail); opacity: 0.92; }

.master-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.master-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--surface2);
  color: var(--accent2);
  border: 1px solid var(--border);
}

.master-card.pass .master-avatar { background: var(--pass-dim); color: var(--pass); }
.master-card.fail .master-avatar { background: var(--fail-dim); color: var(--fail); }

.master-info { flex: 1; min-width: 0; }

.master-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

.master-score {
  display: inline-flex;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.master-card.pass .master-score { background: var(--pass-dim); color: var(--pass); }
.master-card.fail .master-score { background: var(--fail-dim); color: var(--fail); }

.master-book {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
  padding-left: 54px;
}

.master-school {
  display: inline-block;
  font-size: 11px;
  color: var(--accent2);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 6px;
  margin: 0 0 12px 54px;
}

.master-reasons {
  list-style: none;
  font-size: 13px;
  padding-left: 54px;
}

.master-reasons li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  gap: 8px;
}

.master-reasons li:last-child { border-bottom: none; }
.master-reasons .ok { color: #6ee7b7; }
.master-reasons .no { color: #fca5a5; }
.master-reasons .q { color: var(--watch); }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 24px 36px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.footer-col strong { color: var(--text2); font-size: 13px; display: block; margin-bottom: 6px; }
.footer-col p { line-height: 1.6; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-links a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

.footer-masters {
  text-align: right;
  line-height: 1.7;
  font-size: 11px;
}

/* —— 充值 / 兑换页（旧版容器；新版用 body.pay-page + pay-app.css） —— */
.pay-shell {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: clamp(20px, 4vw, 40px) auto clamp(48px, 8vw, 80px);
  padding: 0 clamp(12px, 4vw, 24px);
}

.pay-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  margin-bottom: 6px;
}

.pay-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }

.pay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 4vw, 24px);
  margin-bottom: 16px;
}

.pay-section-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.wallet-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.btn-connect-wallet {
  padding: 12px 20px;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

#wallet-status {
  font-size: 13px;
  color: var(--text2);
  flex: 1;
  min-width: 120px;
  word-break: break-all;
}

#access-status { margin-bottom: 12px; }

#access-status .pill-ok,
#access-status .pill-warn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

#access-status .pill-ok {
  background: var(--pass-dim);
  color: var(--pass);
}

#access-status .pill-warn {
  background: var(--watch-dim);
  color: var(--watch);
}

.network-banner {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 12px 0 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.network-banner-idle {
  background: var(--surface2);
}

.network-banner-ok {
  background: var(--accent-dim);
  border-color: rgba(59, 130, 246, 0.35);
}

.network-banner-warn {
  background: var(--watch-dim);
  border-color: rgba(212, 160, 23, 0.35);
}

.chain-switch-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chain-switch-label strong {
  color: var(--accent2);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.chain-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-chain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface3);
  color: var(--text2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.btn-chain:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.btn-chain.active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent2);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-chain-eth .chain-dot { background: #627eea; }
.btn-chain-bnb .chain-dot { background: #f0b90b; }
.btn-chain-base .chain-dot { background: #0052ff; }
.btn-chain-arb .chain-dot { background: #28a0f0; }
.btn-chain-pol .chain-dot { background: #8247e5; }
.btn-chain-op .chain-dot { background: #ff0420; }
.btn-chain-avax .chain-dot { background: #e84142; }
.btn-chain-other .chain-dot { background: var(--muted); }

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

.price-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  position: relative;
}

.price-card-featured {
  border-color: var(--cta);
  box-shadow: 0 0 0 1px rgba(34, 160, 107, 0.2);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.price-card-tag {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.price-usd-main {
  font-size: clamp(1.75rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--accent2);
  line-height: 1.1;
}

.price-credits-line {
  font-size: 13px;
  color: var(--text2);
  margin: 8px 0 4px;
}

.price-native {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.btn-pay-large,
.btn-pay.btn-pay-large {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-pay-large:hover:not(:disabled) {
  background: #2563eb;
}

.btn-pay-large:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--surface3);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pay-block-notice {
  font-size: 13px;
  color: var(--watch);
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--watch-dim);
}

.pay-note { font-size: 13px; color: var(--muted); line-height: 1.65; }
.pay-note strong { color: var(--text2); }
.pay-note-list { margin: 8px 0 12px 18px; }
.pay-note-list li { margin-bottom: 6px; }

#payToast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--accent);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all .25s;
  z-index: 99;
  max-width: min(90vw, 420px);
  text-align: center;
}

#payToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.identity-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.identity-rows { display: grid; gap: 14px; }

.identity-input {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
}

.identity-active {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text2);
}

.identity-active strong { color: var(--accent2); }

.btn-redeem {
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-redeem:disabled { opacity: 0.6; cursor: not-allowed; }

.redeem-balance { margin-top: 12px; font-size: 13px; color: var(--text2); }
.redeem-balance strong { color: var(--brand-gold); font-size: 1.1rem; }

.redeem-buy-cta {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(196, 165, 116, 0.45);
  background: rgba(196, 165, 116, 0.06);
}

.redeem-buy-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-gold);
  margin-bottom: 10px;
}

.redeem-buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-buy-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn-buy-tg {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent2);
}

.btn-buy-tg:hover { background: rgba(59, 130, 246, 0.25); }

.btn-buy-x {
  background: var(--surface2);
  border: 1px solid var(--border-light);
  color: var(--text2);
}

.btn-buy-x:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

.redeem-buy-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* —— 响应式 · 手机 / iPad / 桌面 / 超宽 —— */
@media (min-width: 1400px) {
  .topbar-inner, .promo-inner, .hero-inner, .main, .footer-inner {
    max-width: 1200px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .hero { padding: 40px 32px 28px; }
  .track-pills { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .topbar-inner { padding: 12px 16px; }
  .hero { padding: 36px 20px 28px; }
  .main { padding: 0 16px 48px; }
}

@media (max-width: 768px) {
  .credits-badge { display: none; }
  .decision-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-props { grid-template-columns: 1fr; }
  .track-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-header { grid-template-columns: 1fr; }
  .verdict-pill { max-width: none; }
  .search-row { flex-direction: column; }
  #btnAnalyze { width: 100%; padding: 14px; min-height: 48px; }
  .master-book, .master-school, .master-reasons { padding-left: 0; margin-left: 0; }
  .masters-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; width: 100%; }
  .social-link { min-height: 44px; padding: 10px 12px; }
  .btn-credits { min-height: 44px; }
  .brand-sub { display: none; }
  .promo-inner {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .promo-link { margin-left: 0; width: 100%; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer-masters { text-align: center; }
  .footer-links { align-items: center; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .subtitle { font-size: 14px; max-width: none; }
  .search-panel { padding: 16px; margin-top: 24px; }
  .quick-chips { flex-wrap: wrap; }
  .chip { min-height: 40px; }
  .price-grid-hero { grid-template-columns: 1fr; }
  .invite-link-row { flex-direction: column; }
  .invite-link-row button, .btn-redeem { width: 100%; }
  .redeem-buy-links { flex-direction: column; }
  .btn-buy-contact { width: 100%; }
  .tweet-template-actions { width: 100%; }
  .btn-tweet-copy, .btn-tweet-post { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding-top: 24px; padding-bottom: 20px; }
  .btn-credits-sub { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 11px; }
  .brand-text { font-size: 0.95rem; }
  .topbar-actions .social-link svg { display: none; }
  .empty-state { padding: 32px 16px; }
}

@media (max-width: 390px) {
  .track-pills { grid-template-columns: 1fr; }
  .value-props li { grid-template-columns: 1fr; gap: 2px; }
  .value-props span { grid-column: 1; }
}

@media (hover: none) and (pointer: coarse) {
  .master-card:hover { transform: none; }
  .btn-credits:hover { transform: none; }
}
