/* ============================================================
   GAMBBIT — design system
   Dark felt-table aesthetic. Bricolage Grotesque display,
   Instrument Sans UI, Spline Sans Mono for numbers and codes.
   ============================================================ */

:root {
  --bg: #0b0d0f;
  --bg-felt: #0d1f18;
  --surface: #14171a;
  --surface-2: #1a1e23;
  --surface-3: #21262c;
  --border: #262c33;
  --border-strong: #333b44;
  --text: #e9edf1;
  --muted: #93a0ab;
  --faint: #5f6b76;
  --green: #17b877;
  --green-deep: #0e7a50;
  --gold: #e8b64c;
  --gold-deep: #b8862e;
  --up: #2ee06c;
  --down: #ff5d5d;
  --blue: #4cc9f0;
  --purple: #c77dff;
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  --font-ui: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;
  --maxw: 1240px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  /* felt-grain atmosphere */
  background-image:
    radial-gradient(1200px 500px at 50% -220px, rgba(23,184,119,.14), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(23,184,119,.35); }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.01em; }

.mono { font-family: var(--font-mono); }

/* ---------- 21+ ribbon ---------- */
.age-ribbon {
  background: #06130d;
  border-bottom: 1px solid #123527;
  color: #9fd8bd;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .02em;
}
.age-ribbon strong { color: var(--gold); font-weight: 700; }
.age-ribbon a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,15,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo svg { display: block; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
}
.logo-word .bb { color: var(--green); }

.topnav { display: flex; gap: 4px; }
.topnav a {
  padding: 7px 13px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a.active { color: #08130e; background: var(--green); }

.searchbox {
  flex: 1; max-width: 430px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px;
  color: var(--faint); font-size: 13.5px;
  transition: border-color .15s;
}
.searchbox:focus-within { border-color: var(--green); }
.searchbox input {
  background: none; border: 0; outline: 0; color: var(--text);
  font-family: inherit; font-size: 13.5px; width: 100%;
}
.searchbox input::placeholder { color: var(--faint); }

.chip-pill {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(232,182,76,.16), rgba(232,182,76,.05));
  border: 1px solid rgba(232,182,76,.4);
  color: var(--gold); border-radius: 999px;
  padding: 7px 14px; font-family: var(--font-mono);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--green), #0b3f2b 55%, var(--gold));
  border: 2px solid var(--border-strong); flex-shrink: 0;
}

/* ---------- account / auth ---------- */
.account-slot { position: relative; flex-shrink: 0; }
.signin-btn {
  border: 0; background: var(--green); color: #08130e;
  font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 8px 18px;
  transition: all .15s; white-space: nowrap;
}
.signin-btn:hover { background: #1ed48b; }
.user-pill {
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font-weight: 700; font-size: 13.5px; border-radius: 999px; padding: 8px 14px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.user-pill .caret { color: var(--faint); font-size: 10px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; z-index: 80;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow);
}
.user-menu .um-row { padding: 7px 10px; font-size: 13px; }
.um-signout {
  width: 100%; border: 0; background: var(--surface-3); color: var(--down);
  font-weight: 700; font-size: 13px; border-radius: 7px; padding: 8px; margin-top: 6px;
}
.um-signout:hover { background: rgba(255,93,93,.15); }

.auth-tabs {
  display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin-bottom: 16px;
}
.auth-tabs button {
  flex: 1; border: 0; background: none; color: var(--muted);
  padding: 8px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
}
.auth-tabs button.active { background: var(--green); color: #08130e; }

#auth-form label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 5px; }
#auth-form input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: 14px; padding: 10px 12px; outline: none;
}
#auth-form input:focus { border-color: var(--green); }
.auth-submit { width: 100%; margin-top: 14px; }
.auth-err { color: var(--down); font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  color: var(--faint); font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.provider-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 13px; font-weight: 700; font-size: 13px;
  transition: all .12s;
}
.provider-btn:hover { border-color: var(--border-strong); background: var(--surface-3); }
.provider-btn .pg {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 6px; flex-shrink: 0;
}
.provider-btn .pg svg { display: block; }
.pg-google { background: #ffffff; }
.pg-apple, .pg-x { background: #000000; }
.pg-telegram, .pg-facebook, .pg-instagram, .pg-whatsapp { background: var(--surface-3); }
.provider-btn { position: relative; }
.provider-btn.ready::after {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 6px rgba(46,224,108,.8);
}

/* ---------- CRM / live offers ---------- */
.crm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.crm-stats > div { padding: 14px 20px; border-right: 1px solid var(--border); }
.crm-stats > div:last-child { border-right: 0; }
.crm-stats .num { font-size: 22px; font-weight: 700; }
.crm-stats .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.crm-act {
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 700; margin-left: 6px;
  transition: all .12s;
}
.crm-act:hover { background: var(--surface-3); }
.crm-act.danger { color: var(--down); border-color: rgba(255,93,93,.35); }
.crm-act.danger:hover { background: rgba(255,93,93,.12); }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 6px rgba(46,224,108,.8); vertical-align: 2px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .45; } }
.offers-divider {
  display: flex; align-items: center; gap: 12px; color: var(--faint);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-mono);
  margin: 6px 0;
}
.offers-divider::before, .offers-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
@media (max-width: 640px) { .crm-stats { grid-template-columns: 1fr 1fr; } .crm-stats > div { border-bottom: 1px solid var(--border); } }

.ai-badge {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
  background: rgba(76,201,240,.15); color: var(--blue);
  padding: 1.5px 6px; border-radius: 4px; vertical-align: 1px;
}

/* ---------- layout ---------- */
.shell {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 250px minmax(0,1fr) 320px;
  gap: 22px; padding: 22px 20px 90px;
}
.shell.two-col { grid-template-columns: 250px minmax(0,1fr); }
.shell.one-col { grid-template-columns: minmax(0,1fr); max-width: 980px; }

.rail { position: sticky; top: 118px; align-self: start; display: flex; flex-direction: column; gap: 18px; }

/* ---------- cards / rails ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card-head {
  padding: 13px 16px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .01em; display: flex; align-items: center; justify-content: space-between;
}
.card-head .see-all { font-family: var(--font-ui); font-size: 12.5px; color: var(--green); font-weight: 600; }

.comm-list { list-style: none; }
.comm-list li a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  transition: background .12s;
}
.comm-list li a:hover { background: var(--surface-2); }
.comm-list .ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 14px;
  background: var(--surface-3);
}
.comm-list .members { margin-left: auto; color: var(--faint); font-size: 12px; font-family: var(--font-mono); }
.comm-list li.safe a { color: #9fe8c8; }

/* ---------- feed ---------- */
.feed-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px; width: max-content;
}
.feed-tabs button {
  border: 0; background: none; color: var(--muted);
  padding: 7px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; font-family: var(--font-ui);
  transition: all .15s;
}
.feed-tabs button.active { background: var(--green); color: #08130e; }
.feed-tabs button:not(.active):hover { color: var(--text); }

.post-card {
  display: grid; grid-template-columns: 52px minmax(0,1fr);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.votecol {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 14px 0; background: rgba(0,0,0,.18);
  border-radius: var(--radius) 0 0 var(--radius);
}
.vote-btn {
  width: 30px; height: 26px; border: 0; background: none;
  color: var(--faint); border-radius: 7px; display: grid; place-items: center;
  transition: all .12s;
}
.vote-btn:hover { background: var(--surface-3); color: var(--text); }
.vote-btn.up.on { color: var(--up); background: rgba(46,224,108,.13); }
.vote-btn.down.on { color: var(--down); background: rgba(255,93,93,.13); }
.vote-btn svg { display: block; }
.score {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--text);
}
.score.up { color: var(--up); }
.score.down { color: var(--down); }

.post-body { padding: 13px 16px 12px; min-width: 0; }
.post-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint); margin-bottom: 6px;
}
.post-meta .comm { color: var(--text); font-weight: 700; }
.post-meta .comm:hover { color: var(--green); }
.post-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  line-height: 1.32; letter-spacing: -0.012em; margin-bottom: 5px;
}
.post-title a:hover { color: var(--green); }
.post-excerpt { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.post-actions { display: flex; gap: 14px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.post-actions span { display: inline-flex; gap: 5px; align-items: center; }

/* flairs */
.flair {
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 2.5px 8px; border-radius: 5px; white-space: nowrap;
}
.flair-win        { background: rgba(46,224,108,.14); color: var(--up); }
.flair-badbeat    { background: rgba(255,93,93,.14); color: var(--down); }
.flair-strategy   { background: rgba(76,201,240,.13); color: var(--blue); }
.flair-question   { background: rgba(199,125,255,.13); color: var(--purple); }
.flair-news       { background: rgba(233,237,241,.1); color: var(--text); }
.flair-offer      { background: rgba(232,182,76,.15); color: var(--gold); }
.flair-discussion { background: rgba(23,184,119,.14); color: var(--green); }
.flair-support    { background: rgba(87,204,153,.15); color: #7fe0b4; }

/* tier badges */
.tier {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
}
.tier-gold   { background: linear-gradient(135deg, #f3cf72, #c89334); color: #241a05; }
.tier-silver { background: linear-gradient(135deg, #d9dee3, #9aa5af); color: #1a2026; }
.tier-bronze { background: linear-gradient(135deg, #d9995c, #9c6431); color: #221204; }

/* ---------- offers ---------- */
.offer-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; transition: border-color .15s, transform .15s, box-shadow .2s;
}
.offer-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.offer-card.boosted { border-color: rgba(232,182,76,.5); }
.offer-card.boosted::before {
  content: "⚡ Chip-boosted"; position: absolute; top: -10px; right: 14px;
  background: var(--gold); color: #241a05; font-size: 10.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}
.offer-op { display: flex; align-items: center; gap: 10px; }
.op-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 17px;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  color: var(--gold);
}
.offer-op .name { font-weight: 700; font-size: 14px; }
.offer-op .vert { font-size: 11.5px; color: var(--faint); }
.offer-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.offer-detail { font-size: 13px; color: var(--muted); }
.offer-states { display: flex; gap: 5px; flex-wrap: wrap; }
.state-tag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--border-strong); padding: 2px 7px; border-radius: 5px;
}
.offer-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.claim-btn {
  flex: 1; border: 0; border-radius: 10px; padding: 11px 16px;
  background: var(--green); color: #08130e;
  font-weight: 800; font-size: 14px; letter-spacing: .01em;
  transition: all .15s;
}
.claim-btn:hover { background: #1ed48b; transform: translateY(-1px); }
.claim-btn.claimed { background: var(--surface-3); color: var(--gold); border: 1px solid rgba(232,182,76,.4); }
.offer-code {
  font-family: var(--font-mono); font-size: 12px; color: var(--gold);
  background: rgba(232,182,76,.08); border: 1px dashed rgba(232,182,76,.4);
  padding: 9px 12px; border-radius: 10px; white-space: nowrap;
}
.offer-stats { display: flex; gap: 14px; font-size: 12px; color: var(--faint); }
.offer-stats .expiry { color: var(--down); font-weight: 700; font-family: var(--font-mono); }
.offer-stats .rating { color: var(--gold); font-weight: 700; }

.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row button {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13px;
  transition: all .15s;
}
.filter-row button:hover { color: var(--text); border-color: var(--border-strong); }
.filter-row button.active { background: var(--gold); border-color: var(--gold); color: #241a05; }

/* ---------- hero (subpages) ---------- */
.page-hero {
  border-radius: var(--radius);
  background:
    radial-gradient(700px 260px at 20% -80px, rgba(23,184,119,.28), transparent 70%),
    radial-gradient(500px 240px at 85% -60px, rgba(232,182,76,.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  padding: 34px 30px 30px; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-hero .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 10px; }
.page-hero p.lede { color: var(--muted); font-size: 15.5px; max-width: 620px; }

/* ---------- community banner ---------- */
.comm-banner {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--border); background: var(--surface);
}
.comm-banner .strip { height: 96px; background:
  radial-gradient(500px 180px at 15% 20%, rgba(23,184,119,.55), transparent 70%),
  radial-gradient(400px 160px at 80% 10%, rgba(232,182,76,.3), transparent 70%),
  #0d1f18; }
.comm-banner .row {
  display: flex; align-items: center; gap: 14px; padding: 0 22px 16px;
  margin-top: -26px; flex-wrap: wrap;
}
.comm-avatar {
  width: 64px; height: 64px; border-radius: 18px; font-size: 30px;
  display: grid; place-items: center;
  background: var(--surface-3); border: 3px solid var(--surface);
}
.comm-banner h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.comm-banner .sub { color: var(--faint); font-size: 13px; font-family: var(--font-mono); }
.join-btn {
  margin-left: auto; border: 0; background: var(--green); color: #08130e;
  font-weight: 800; font-size: 13.5px; border-radius: 999px; padding: 9px 22px;
  transition: all .15s;
}
.join-btn:hover { background: #1ed48b; }
.join-btn.joined { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); }

/* ---------- thread ---------- */
.thread-body p { color: #cbd4db; font-size: 15px; margin-bottom: 14px; max-width: 70ch; }
.comment {
  border-left: 2px solid var(--border-strong);
  padding: 10px 0 4px 16px; margin: 10px 0 0 0;
}
.comment.d1 { margin-left: 26px; }
.comment.d2 { margin-left: 52px; }
.comment .c-meta { font-size: 12.5px; color: var(--faint); margin-bottom: 4px; }
.comment .c-meta b { color: var(--text); }
.comment .c-text { font-size: 14px; color: #cbd4db; max-width: 72ch; }
.comment .c-actions { display: flex; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--faint); font-weight: 700; }
.comment-box {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: 14px; padding: 12px 14px; min-height: 90px; resize: vertical; outline: none;
}
.comment-box:focus { border-color: var(--green); }

/* ---------- rewards ---------- */
.econ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.econ-card { padding: 24px; }
.econ-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 6px; }
.econ-card .who { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.econ-card.players .who { color: var(--green); }
.econ-card.operators .who { color: var(--gold); }
.econ-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.econ-card li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.econ-card li .pt { color: var(--text); font-weight: 700; }
.econ-card li::before { content: "◆"; font-size: 10px; margin-top: 4px; }
.econ-card.players li::before { color: var(--green); }
.econ-card.operators li::before { color: var(--gold); }

.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb-table th {
  text-align: left; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.lb-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table tr:hover td { background: var(--surface-2); }
.lb-table .rank { font-family: var(--font-mono); color: var(--faint); width: 40px; }
.lb-table tr:nth-child(1) .rank { color: var(--gold); font-weight: 800; }
.lb-table tr:nth-child(2) .rank { color: #d9dee3; font-weight: 800; }
.lb-table tr:nth-child(3) .rank { color: #d9995c; font-weight: 800; }
.lb-table .chips-cell { font-family: var(--font-mono); color: var(--gold); font-weight: 700; text-align: right; }
.lb-table .u { font-weight: 700; }
.badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 2.5px 8px; border-radius: 5px; background: var(--surface-3); color: var(--muted);
}
.badge.Whale { background: rgba(232,182,76,.16); color: var(--gold); }
.badge.High { background: rgba(76,201,240,.13); color: var(--blue); }
.badge.Grinder { background: rgba(23,184,119,.13); color: var(--green); }

/* ---------- operators page ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.tier-card { padding: 22px; text-align: left; position: relative; }
.tier-card .tname { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 10px 0 4px; }
.tier-card .treq { font-size: 12.5px; color: var(--faint); margin-bottom: 12px; font-family: var(--font-mono); }
.tier-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tier-card li { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; }
.tier-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
.tier-card.featured { border-color: rgba(232,182,76,.5); }

.op-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; }
.op-form .full { grid-column: 1 / -1; }
.op-form label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 5px; }
.op-form input, .op-form select, .op-form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
  font-size: 14px; padding: 10px 12px; outline: none;
}
.op-form input:focus, .op-form select:focus, .op-form textarea:focus { border-color: var(--green); }
.op-form textarea { min-height: 80px; resize: vertical; }
.submit-btn {
  border: 0; border-radius: 10px; padding: 13px 22px;
  background: var(--gold); color: #241a05; font-weight: 800; font-size: 14.5px;
  transition: all .15s;
}
.submit-btn:hover { background: #f3cf72; transform: translateY(-1px); }
.form-note { font-size: 12px; color: var(--faint); }

.op-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.op-row:last-child { border-bottom: 0; }
.op-row .grow { min-width: 0; }
.op-row .name { font-weight: 700; font-size: 14px; }
.op-row .vert { font-size: 12px; color: var(--faint); }
.op-row .stat { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- composer modal + fab ---------- */
.fab {
  position: fixed; right: 22px; bottom: 24px; z-index: 70;
  border: 0; border-radius: 999px; padding: 13px 22px;
  background: var(--green); color: #08130e;
  font-family: var(--font-ui); font-weight: 800; font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(23,184,119,.35);
  transition: all .15s;
}
.fab:hover { background: #1ed48b; transform: translateY(-2px); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,7,8,.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 18px;
  animation: fadein .18s ease both;
}
@keyframes fadein { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  animation: rise .25s cubic-bezier(.2,.8,.3,1) both;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.modal .card-head { font-size: 17px; }
.modal-close {
  border: 0; background: var(--surface-3); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; font-size: 13px;
  transition: all .12s;
}
.modal-close:hover { color: var(--text); background: var(--border-strong); }

/* ---------- mobile community strip ---------- */
.comm-strip {
  display: none; gap: 8px; overflow-x: auto; padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.comm-strip::-webkit-scrollbar { display: none; }
.comm-strip a {
  flex-shrink: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); white-space: nowrap;
}
.comm-strip a:active { color: var(--text); border-color: var(--green); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--surface-3); border: 1px solid rgba(232,182,76,.5);
  color: var(--gold); font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all .25s cubic-bezier(.2,.9,.3,1.4); z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); background: #08110c;
  margin-top: 30px; padding: 34px 20px 110px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.rg-box {
  border: 1px solid #1b4632; background: rgba(23,184,119,.05);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px;
  font-size: 13px; color: #9fd8bd; line-height: 1.65;
}
.rg-box strong { color: var(--text); }
.rg-box .helpline { font-family: var(--font-mono); color: var(--gold); font-weight: 700; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-cols .col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; font-family: var(--font-mono); }
.footer-cols .col a { display: block; font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.footer-cols .col a:hover { color: var(--text); }
.fine-print { margin-top: 26px; font-size: 11.5px; color: var(--faint); line-height: 1.7; max-width: 900px; }

/* ---------- mobile bottom nav ---------- */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(11,13,15,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; text-align: center; font-size: 10.5px; font-weight: 700;
  color: var(--faint); display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.bottom-nav a .glyph { font-size: 19px; line-height: 1; }
.bottom-nav a.active { color: var(--green); }

/* ---------- load-in ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s cubic-bezier(.2,.8,.3,1) both; }
  .reveal:nth-child(2) { animation-delay: .04s; } .reveal:nth-child(3) { animation-delay: .08s; }
  .reveal:nth-child(4) { animation-delay: .12s; } .reveal:nth-child(5) { animation-delay: .16s; }
  .reveal:nth-child(6) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .chip-pill.bump { animation: bump .4s cubic-bezier(.2,.9,.3,1.6); }
  @keyframes bump { 40% { transform: scale(1.12); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 230px minmax(0,1fr); }
  .rail-right { display: none; }
}
@media (max-width: 860px) {
  .shell, .shell.two-col { grid-template-columns: minmax(0,1fr); padding-top: 16px; }
  .rail-left { display: none; }
  .topnav { display: none; }
  .searchbox { max-width: none; }
  .bottom-nav { display: flex; }
  .comm-strip { display: flex; }
  .fab { bottom: 86px; right: 16px; padding: 12px 18px; }
  .offers-grid, .econ-grid, .tier-grid { grid-template-columns: 1fr; }
  .op-form { grid-template-columns: 1fr; }
  .post-title { font-size: 15.5px; }
  .page-hero { padding: 26px 20px 22px; }
}
@media (max-width: 480px) {
  .chip-pill { padding: 6px 10px; font-size: 12px; }
  .logo-word { font-size: 19px; }
  .topbar-inner { gap: 10px; padding: 10px 14px; }
  .avatar { display: none; }
  .signin-btn, .user-pill { padding: 7px 12px; font-size: 12.5px; }
  .provider-grid { grid-template-columns: 1fr; }
  .offer-foot { flex-direction: column; align-items: stretch; }
  .offer-code { text-align: center; }
}
