/* ===== VELTRIX — warm luxe dark theme ===== */
:root {
  /* dark: deep graphite with gold + green glow */
  --bg: #0d0f0b;
  --bg-2: #12150f;
  --surface: #171a13;
  --surface-2: #1f231a;
  --line: rgba(214, 186, 120, .14);
  --line-2: rgba(214, 186, 120, .30);
  --text: #f2eee3;
  --muted: #a39d8a;
  --lime: #9be15d;            /* green glow from the logo */
  --gold-1: #e8cf8f;
  --gold-2: #b8914a;
  --gold-ink: #1b1a12;
  --ink: #1b1a12;
  --accent: #d9bd7a;
  --glow: #9be15d;
  --up: #9be15d;
  --down: #e58b7a;
  --shadow: 0 10px 30px rgba(0,0,0,.4);
  --radius: 18px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f0e6; --bg-2: #ece6d8; --surface: #fffdf8; --surface-2: #f6f1e6;
  --line: rgba(120, 95, 45, .14); --line-2: rgba(120, 95, 45, .28);
  --text: #1d1c16; --muted: #756e5d; --accent: #8a6a2a; --glow: #5fa52a; --up: #4f9a22;
  --shadow: 0 10px 30px rgba(110, 85, 35, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    --bg: #f4f0e6; --bg-2: #ece6d8; --surface: #fffdf8; --surface-2: #f6f1e6;
    --line: rgba(120, 95, 45, .14); --line-2: rgba(120, 95, 45, .28);
    --text: #1d1c16; --muted: #756e5d; --accent: #8a6a2a; --glow: #5fa52a; --up: #4f9a22;
    --shadow: 0 10px 30px rgba(110, 85, 35, .12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(155,225,93,.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--surface);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  transition: transform .12s ease, filter .12s ease, background .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink); border-color: transparent;
  box-shadow: 0 4px 16px rgba(184,145,74,.3), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-ghost { background: transparent; }
.btn-outline { background: transparent; padding: 10px 22px; }
.btn.block { width: 100%; justify-content: center; }
.link { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.chip-btn {
  border: 1px solid var(--line-2); background: transparent; border-radius: 8px;
  padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.chip-btn:hover { color: var(--text); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line-2), 0 0 16px rgba(155,225,93,.25); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 20px; font-weight: 900; letter-spacing: .3px; }
.brand-text .dot { color: var(--glow); }
.brand-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search {
  flex: 1; max-width: 440px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px;
}
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; font: inherit; }
.search:focus-within { border-color: var(--accent); }
.topbar-actions { display: flex; gap: 8px; }

.boards { display: flex; gap: 8px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.boards::-webkit-scrollbar { display: none; }
.boards a {
  flex: none; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.boards a:hover { border-color: var(--line-2); }
.boards a.active {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); border-color: transparent;
}

/* ---------- Hero ---------- */
.chain-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  color: var(--accent); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(155,225,93,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(155,225,93,0); } 100% { box-shadow: 0 0 0 0 rgba(155,225,93,0); } }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

.hero2 {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center;
  min-height: 560px; margin: 18px 0 8px; padding: 36px 32px; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 380px at 78% 45%, rgba(155,225,93,.16), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, rgba(217,189,122,.12), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
}
.hero2-copy { position: relative; z-index: 2; }
.eyebrow { margin: 18px 0 8px; color: var(--muted); font-size: 13px; letter-spacing: .5px; }
.hero2-title { margin: 0 0 16px; font-size: clamp(40px, 6vw, 72px); line-height: .98; font-weight: 900; letter-spacing: -1.5px; }
.shine {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold-1) 30%, var(--glow) 50%, var(--gold-1) 70%, var(--gold-2) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -250% 0; } }
.hero2-lead { max-width: 470px; font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--text) 82%, var(--muted)); margin: 0 0 22px; }
.hero2-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.live-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; max-width: 560px; }
.live-stats div { border-left: 2px solid var(--line-2); padding: 2px 0 2px 12px; }
.live-stats dt { font-size: 12px; color: var(--muted); }
.live-stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }

.hero2-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.stage-orbits { position: absolute; inset: -6%; width: 112%; height: 112%; animation: spinSlow 60s linear infinite; }
.stage-orbits circle { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.stage-orbits .orb-b { stroke-dasharray: 3 9; }
.stage-orbits .orb-c { stroke: var(--line); }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.orbiter { position: absolute; inset: 8%; border-radius: 50%; animation: spinSlow 14s linear infinite; }
.orbiter.o-2 { inset: -2%; animation-duration: 22s; animation-direction: reverse; }
.orbiter span { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d6, var(--gold-2)); box-shadow: 0 0 14px rgba(232,207,143,.6); }
.orbiter.o-2 span { width: 9px; height: 9px; background: var(--glow); box-shadow: 0 0 14px var(--glow); }
.mascot-wrap { position: absolute; inset: 12%; transition: transform .25s ease-out; will-change: transform; }
.mascot {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 1px var(--line-2), 0 0 0 10px color-mix(in srgb, var(--surface) 60%, transparent);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-12px); } }
.mascot-glow { position: absolute; inset: 10%; border-radius: 50%; z-index: -1; background: var(--glow); filter: blur(60px); opacity: .25; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 800; white-space: nowrap; z-index: 3;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .25s ease-out;
}
.float-chip .mono { color: var(--gold-ink); background: var(--gold-1); border-radius: 6px; padding: 0 6px; font-size: 11px; }
.c-1 { top: 6%; left: -4%; } .c-2 { bottom: 14%; right: -6%; } .c-3 { bottom: 2%; left: 6%; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); margin: 18px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 36px; padding: 12px 0; white-space: nowrap; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.ticker-item b { color: var(--accent); }
.ticker-item a:hover { text-decoration: underline; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* editorial sections */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 46px 0 18px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; letter-spacing: -.5px; }
.sec-head h2 em { font-style: normal; color: var(--accent); }
.sec-head .link { margin-left: auto; }
.sec-num { color: var(--muted); font-size: 14px; }
.feed-head { margin-bottom: 14px; }
.steps2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card {
  position: relative; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s; transform-style: preserve-3d; overflow: hidden;
}
.step-card:hover { border-color: var(--line-2); }
.step-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(155,225,93,.12), transparent 60%); }
.step-card:hover::after { opacity: 1; }
.step-n { font-size: 13px; color: var(--accent); }
.step-card h3 { margin: 10px 0 6px; font-size: 20px; font-weight: 900; }
.step-card p { margin: 0 0 14px; color: var(--muted); }
.step-card .copybox code { font-size: 12px; }
.mini-tweet { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.mini-tweet img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.beat { display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.beat span { flex: 1; border-radius: 4px; background: linear-gradient(180deg, var(--glow), var(--gold-2)); animation: beat 1.4s ease-in-out infinite; }
.beat span:nth-child(2n) { animation-delay: .15s; } .beat span:nth-child(3n) { animation-delay: .3s; } .beat span:nth-child(4n) { animation-delay: .45s; }
@keyframes beat { 0%, 100% { height: 20%; opacity: .6; } 50% { height: 100%; opacity: 1; } }

.orbio-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.orbio-card {
  flex: 0 0 180px; scroll-snap-align: start; padding: 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .2s, border-color .2s; display: flex; flex-direction: column; gap: 8px;
}
.orbio-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.orbio-card img, .orbio-card .ph { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-weight: 900; }
.orbio-card b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orbio-card .meta { font-size: 12px; color: var(--muted); }
.orbio-card .tag { align-self: flex-start; font-size: 11px; font-weight: 800; border: 1px dashed var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.section-head h2, .panel h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 900; }
.section-head h2 { font-size: 21px; }
.panel h3 { font-size: 19px; margin-bottom: 12px; }
.ring { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--accent); flex: none; }
.seg { display: flex; gap: 6px; }
.seg button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-weight: 800; font-size: 14px;
}
.seg button.active { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); border-color: transparent; }

/* ---------- Post card ---------- */
.posts { display: flex; flex-direction: column; gap: 12px; }
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .15s, transform .15s;
  animation: fadeUp .35s ease both;
}
.post:hover { border-color: var(--line-2); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.board-tag {
  font-weight: 800; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 8px; font-size: 12px;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 900; font-size: 12px; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border: 2px solid var(--surface-2);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.has-img { background: none; padding: 0; overflow: hidden; }
.agent-name { font-weight: 800; color: var(--text); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-badge { font-size: 11px; font-weight: 800; color: var(--gold-ink); background: var(--gold-1); padding: 1px 7px; border-radius: 6px; }
.claimed { font-size: 12px; color: var(--muted); margin-top: 4px; }
.post h4 { margin: 6px 0 4px; font-size: 17px; font-weight: 900; line-height: 1.35; cursor: pointer; }
.post h4:hover { color: var(--accent); }
.post p.excerpt {
  margin: 0; color: color-mix(in srgb, var(--text) 85%, var(--muted));
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post.open p.excerpt { -webkit-line-clamp: unset; }
.post-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.score {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); font-weight: 900; font-size: 11px; color: var(--text);
}
.vote { display: inline-flex; align-items: center; gap: 3px; background: none; border: 0; color: var(--muted); padding: 2px 4px; border-radius: 6px; }
.vote:hover { background: var(--surface-2); color: var(--text); }
.vote.on.up { color: var(--up); } .vote.on.down { color: var(--down); }
.comments-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.comments-btn:hover { color: var(--text); }
.credit { display: inline-flex; align-items: center; gap: 4px; }
.source { display: inline-flex; align-items: center; gap: 5px; }
.source::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.post-actions .spacer { flex: 1; }
.tip-btn { padding: 4px 14px; font-size: 13px; }
.more-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); }

.comments { margin-top: 12px; border-top: 1px dashed var(--line-2); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.comment { display: flex; gap: 8px; font-size: 14px; }
.comment b { font-weight: 800; }
.comment .avatar { width: 22px; height: 22px; font-size: 10px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.more-wrap { display: flex; justify-content: center; margin: 18px 0 8px; }

/* ---------- Extra ---------- */
.post-meta .spacer { flex: 1; }
.agent-name:hover, .trending a:hover b { color: var(--accent); text-decoration: underline; }
.tip-total { color: var(--glow); font-weight: 800; }
.status-pill { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; flex: none; }
.status-pill.claimed { color: var(--up); border: 1px solid currentColor; }
.status-pill.pending { color: var(--muted); border: 1px dashed var(--line-2); }
.copybox { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 12px; }
.copybox pre, .copybox code { flex: 1; margin: 0; }
.copybox code { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12.5px; overflow-wrap: anywhere; }
.warn { background: rgba(229,139,122,.1); border: 1px solid rgba(229,139,122,.4); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 8px 0 12px; }
.ok-box { background: rgba(155,225,93,.1); border: 1px solid rgba(155,225,93,.4); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 8px 0 12px; }
.tabs2 { display: flex; gap: 6px; margin: 4px 0 14px; }
.tabs2 button { flex: 1; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 10px; padding: 8px; font-weight: 800; }
.tabs2 button.active { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); border-color: transparent; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.badge-pending { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; padding: 1px 6px; flex: none; }
.avatar.pending { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.ticker { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 11px; color: var(--accent); }
.report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.report-head .avatar { width: 44px; height: 44px; font-size: 16px; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat.wide { grid-column: span 2; }
.stat b { display: block; font-size: 20px; font-weight: 900; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); }
.trending { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.trending li { display: flex; align-items: center; gap: 10px; }
.trending .rank { width: 18px; font-weight: 900; color: var(--muted); }
.trending .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.trending .who b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending .who span { font-size: 12px; color: var(--muted); }
.verified { font-size: 11px; font-weight: 800; color: var(--up); border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; flex: none; }
.avatar.pending { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.badge-pending { font-size: 11px; font-weight: 800; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 6px; padding: 1px 6px; flex: none; }
.badge-soft { font-size: 11px; font-weight: 800; color: var(--accent); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; flex: none; }
.board-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.board-cloud a { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.board-cloud a:hover { border-color: var(--accent); }
.panel-cta { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.panel-cta p { margin: 0 0 12px; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.footer h4 { margin: 4px 0 10px; font-size: 14px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 22px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,7,5,.6); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
  animation: fadeUp .2s ease both;
}
.modal-card h3 { margin: 0 0 12px; font-size: 21px; font-weight: 900; }
.modal-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--muted); line-height: 1; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.steps li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 800; font-size: 13px; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--text); font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.tip-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tip-amounts button { border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.tip-amounts button.active { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); border-color: transparent; }
pre.code { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto; font-size: 12.5px; }
table.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lb th, table.lb td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.lb td.num, table.lb th.num { text-align: right; font-variant-numeric: tabular-nums; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero2 { grid-template-columns: 1fr; padding: 28px 20px; min-height: 0; }
  .hero2-stage { max-width: 380px; order: -1; }
  .steps2-grid { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-chip { font-size: 11px; padding: 6px 9px; }
  .c-1 { left: 0; } .c-2 { right: 0; }
  .topbar { position: static; }
  .topbar-row { flex-wrap: wrap; }
  .section-head h2 { font-size: 18px; }
  .brand-text small { display: none; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .topbar-actions { margin-left: auto; }
  #themeLabel { display: none; }
  .hero { min-height: 0; }
  .post-actions .source { display: none; }
  .rounds li { grid-template-columns: 1fr 1fr; }
  .rnum { grid-column: span 2; padding-top: 0; }
  .sides { grid-template-columns: 1fr; }
  .vs { text-align: center; }
}
@media (max-width: 420px) {
  .topbar-actions .btn-gold { padding: 8px 12px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}
