/* TAG design system. One stylesheet for the home page, the site pages and /links.
   Read DESIGN.md first. Order: tokens, base, type, components, shell, home sections, site pages, motion. */

@font-face { font-family: 'Geist'; src: url('/learn/fonts/geist-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  /* colour: one teal-tinted family, teal is the only loud colour, purple is its second note */
  --bg: #04080a;
  --bg-raise: #070d10;
  --surface: #0b1316;
  --surface-2: #111b1f;
  --surface-3: #18242a;
  --line: rgba(214, 240, 243, .08);
  --line-2: rgba(214, 240, 243, .15);
  --text: #eaf7f8;
  --text-2: #a9babd;
  --muted: #7f9396;
  --teal: #7ecfd6;
  --teal-hi: #a6e6eb;
  --teal-lo: #56b3bd;
  --purple: #b794d4;
  --up: #5fd49a;
  --down: #ef6b6b;
  --gold: #e9c46a;
  --teal-rgb: 126, 207, 214;
  --purple-rgb: 183, 148, 212;
  --grad-text: linear-gradient(96deg, var(--teal-hi) 0%, var(--teal) 38%, var(--purple) 100%);
  --grad-btn: linear-gradient(180deg, var(--teal-hi), var(--teal-lo));

  /* type */
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-hero: clamp(3.25rem, 14.4vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4.6vw, 3.5rem);
  --fs-h3: 1.375rem;
  --fs-lede: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .78125rem; /* 12.5px, the floor for anything meant to be read */

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --section: clamp(64px, 8vw, 108px);
  --gutter: 20px;
  --maxw: 1180px;

  /* radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 18px 50px rgba(0, 0, 0, .5);
  --sh-3: 0 40px 100px rgba(0, 0, 0, .6);
  --glow: 0 0 80px rgba(var(--teal-rgb), .14);

  /* motion */
  --d-fast: .15s; --d-med: .3s; --d-slow: .7s;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.2, .85, .25, 1.1);
}
@media (min-width: 900px) {
  :root { --fs-hero: clamp(4.25rem, 6.7vw, 6.5rem); --gutter: 32px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(var(--teal-rgb), .3); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type ---------- */
.h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1; letter-spacing: -.04em; text-wrap: balance; margin-top: 14px; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 640px; margin-top: 18px; text-wrap: pretty; }
.eyebrow { font-size: var(--fs-sm); font-weight: 500; color: var(--teal); letter-spacing: 0; }
.muted { color: var(--muted); }
.note { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--teal); }
.sec { padding: var(--section) 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .h2 { margin-top: 10px; }
.sec-head .lede { margin-top: 16px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- 4. Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-md); font: 600 1rem/1.2 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform var(--d-fast) ease, filter var(--d-med) ease, background var(--d-med) ease, border-color var(--d-med) ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-btn); color: #04080a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .5), 0 10px 34px rgba(var(--teal-rgb), .18); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: rgba(214, 240, 243, .04); border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { background: rgba(214, 240, 243, .08); border-color: rgba(214, 240, 243, .26); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-sm); border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--teal); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.tlink::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--d-med) var(--ease); }
.tlink:hover::after { transform: translateX(3px) rotate(45deg); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color var(--d-med) ease; }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: rgba(var(--teal-rgb), .3); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 500; padding: 4px 10px; border-radius: var(--r-pill); color: var(--teal); background: rgba(var(--teal-rgb), .08); border: 1px solid rgba(var(--teal-rgb), .22); white-space: nowrap; }
.pill.warn { color: var(--gold); background: rgba(233, 196, 106, .08); border-color: rgba(233, 196, 106, .25); }
.pill.quiet { color: var(--text-2); background: rgba(214, 240, 243, .05); border-color: var(--line-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(95, 212, 154, .16); flex: none; }
.coin { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line-2); font-size: .75rem; font-weight: 700; color: var(--text-2); }
.coin img { width: 100%; height: 100%; object-fit: cover; }
.coin.ex { background: linear-gradient(140deg, rgba(var(--teal-rgb), .5), rgba(var(--purple-rgb), .5)); color: #04080a; border: 0; }

/* a multiple (25×) in the site's gradient */
.mult { font-weight: 700; letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.tabs { display: inline-flex; padding: 4px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 500 var(--fs-sm) var(--font); cursor: pointer; }
.tabs button.on, .tabs button.active { background: var(--surface-3); color: var(--text); }
.tabs.is-busy { opacity: .6; pointer-events: none; }

.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { text-align: left; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

/* dot field: the one background idea. A quiet grid of dots, lit where it matters. */
.dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(214, 240, 243, .2) 1px, transparent 1.5px); background-size: 26px 26px; }

/* ---------- 5. Shell: nav, sheet, footer, bars ---------- */
.tn { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 32px; padding: 0 var(--gutter); background: rgba(4, 8, 10, 0); border-bottom: 1px solid transparent; transition: background var(--d-med) ease, border-color var(--d-med) ease; }
.tn.solid, .tn.scrolled { background: rgba(4, 8, 10, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.tn-logo { display: inline-flex; align-items: center; min-height: 44px; }
.tn-logo img { height: 30px; width: auto; }
.tn-links { display: flex; gap: 26px; }
.tn-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2); font-size: .9375rem; transition: color var(--d-med); }
.tn-links a:hover, .tn-links a[aria-current] { color: var(--text); }
.tn-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.tn-login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(214, 240, 243, .03); color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; transition: border-color var(--d-med), color var(--d-med); }
.tn-login:hover { border-color: rgba(var(--teal-rgb), .5); color: var(--teal-hi); }
.tn-member { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(214, 240, 243, .04); color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.tn-member i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tn-member.is-on { border-color: rgba(var(--teal-rgb), .45); background: rgba(var(--teal-rgb), .1); color: var(--teal-hi); }
.tn-member.is-on i { background: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .18); }
.tn-login[hidden], .tn-member[hidden], .tn-join[hidden], .tn-sheet-acts [hidden] { display: none; }
.tn-sheet-acts { display: grid; gap: 10px; margin-top: 24px; flex: none; }
.tn-sheet-acts .btn { margin-top: 0; }
.tn-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(214, 240, 243, .04); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.tn-sheet { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; overflow-y: auto; }
.tn-sheet.open { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.tn-sheet-top { display: flex; align-items: center; justify-content: space-between; height: 44px; flex: none; }
.tn-sheet nav { display: flex; flex-direction: column; margin-top: 20px; }
.tn-sheet nav a { text-decoration: none; font-size: 1.625rem; font-weight: 650; letter-spacing: -.025em; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tn-sheet nav a[aria-current] { color: var(--teal); }
.tn-sheet nav a.sub { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); }
.tn-sheet .btn { margin-top: 24px; flex: none; }
@media (max-width: 960px) { .tn-links, .tn-right .hide-m { display: none; } .tn-burger { display: inline-flex; } }

.tf { border-top: 1px solid var(--line); padding: 64px var(--gutter) 36px; }
.tf-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.tf-brand img { height: 34px; width: auto; }
.tf-brand p { margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); max-width: 260px; }
.tf h2 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; color: var(--text); }
.tf-in a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .9375rem; }
.tf-in a:hover { color: var(--teal); }
.tf-legal { max-width: var(--maxw); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .tf { padding-top: 48px; } .tf-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .tf-brand { grid-column: 1 / -1; } }

/* sticky join bar (phones) on site pages, and the partner dock on home */
.joinbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(4, 8, 10, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.joinbar.on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.joinbar .btn { flex: 1; }
@media (max-width: 760px) { .joinbar { display: flex; } body.has-joinbar { padding-bottom: 72px; } }

.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px; background: rgba(11, 19, 22, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--sh-2); transform: translate(-50%, 140%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; }
.dock.on { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.dock a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text); white-space: nowrap; }
.dock a:hover { background: rgba(214, 240, 243, .06); }
.dock a.join { background: var(--grad-btn); color: #04080a; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.dock img { width: 18px; height: 18px; object-fit: contain; }
.dock button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 1.125rem; cursor: pointer; border-radius: 12px; }
.dock button:hover { color: var(--text); }
@media (max-width: 560px) { .dock { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateY(160%); justify-content: space-between; } .dock.on { transform: none; } .dock a { padding: 0 12px; } .dock a.join { flex: 1; justify-content: center; } }

/* page head on site pages */
.phead { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); margin-top: -64px; padding-top: calc(64px + clamp(48px, 8vw, 96px)); }
.phead .dots { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000, transparent 70%); }
.phead::before { content: ''; position: absolute; right: -10%; top: -40%; width: 70%; height: 130%; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .13), transparent 70%); pointer-events: none; }
.phead .wrap { position: relative; z-index: 1; }
.phead .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 560px) { .phead .ctas .btn { flex: 1 1 100%; } }

/* ---------- 6. Home ---------- */

/* 6.1 hero: copy left, the live scan board right. Phones: board directly under the buttons. */
.hero { position: relative; margin-top: -64px; padding: calc(64px + 20px) 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .dots { -webkit-mask-image: radial-gradient(ellipse 60% 75% at 74% 46%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 60% 75% at 74% 46%, #000 0%, transparent 72%); }
.hero-bg::before { content: ''; position: absolute; left: 44%; top: 6%; width: 62%; height: 88%; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .2), rgba(var(--teal-rgb), .05) 55%, transparent 72%); }
.hero-bg::after { content: ''; position: absolute; left: 62%; top: 42%; width: 48%; height: 70%; background: radial-gradient(closest-side, rgba(var(--purple-rgb), .16), transparent 70%); }
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero-kicker { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; }
.hero-title { font-size: var(--fs-hero); font-weight: 700; line-height: .94; letter-spacing: -.05em; margin-top: 10px; }
.hero-title span { display: block; padding-bottom: .06em; }
.hero-sub { font-size: 1.0625rem; line-height: 1.5; color: var(--text-2); margin-top: 16px; max-width: 34em; text-wrap: pretty; }
.hero-sub b { color: var(--text); font-weight: 500; }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 24px; margin-top: 16px; font-size: var(--fs-sm); color: var(--text-2); }
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof b { color: var(--text); font-weight: 600; }
.proof .off { background: var(--muted); box-shadow: none; width: 5px; height: 5px; }

.stage { position: relative; min-width: 0; }
.board { position: relative; border-radius: var(--r-xl); padding: 18px; background: linear-gradient(180deg, rgba(24, 36, 42, .92), rgba(11, 19, 22, .96)); border: 1px solid var(--line-2); box-shadow: var(--sh-3), var(--glow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.board-top span { display: inline-flex; align-items: center; gap: 8px; }
.board-top b { color: var(--text); font-weight: 500; }
.lead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 18px; }
.lead .coin { width: 56px; height: 56px; font-size: 1rem; }
.lead-name { min-width: 0; }
.lead-name b { display: block; font-size: 1.375rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-name small { display: block; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-x { font-size: clamp(3rem, 12vw, 4.25rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; padding-right: .04em; }
.ladder { margin-top: 18px; }
.ladder-track { position: relative; height: 10px; border-radius: 6px; background: rgba(214, 240, 243, .07); }
.ladder-fill { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, var(--teal-lo), var(--teal) 45%, var(--purple)); transform-origin: left center; transform: scaleX(0); transition: transform 1.5s var(--ease); box-shadow: 0 0 18px rgba(var(--teal-rgb), .35); }
.board.live .ladder-fill { transform: none; }
.ladder-track i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--bg); border-radius: 1px; }
.ladder-ticks { position: relative; height: 18px; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.ladder-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ladder-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 4px; }
.ladder-ends p { display: flex; flex-direction: column; }
.ladder-ends p + p { text-align: right; }
.ladder-ends small { font-size: var(--fs-xs); color: var(--muted); }
.ladder-ends b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.rows { margin-top: 14px; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rows .coin { width: 32px; height: 32px; }
.rows p { min-width: 0; }
.rows b { display: block; font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.rows em { font-style: normal; font-weight: 650; font-size: 1.125rem; letter-spacing: -.02em; color: var(--teal-hi); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; min-height: 44px; margin: 4px 0 -8px; font-size: var(--fs-xs); color: var(--muted); }
.board-foot b { color: var(--text-2); font-weight: 500; }
.board-foot .tlink { font-size: var(--fs-sm); }
.board .sk { display: block; border-radius: 6px; background: rgba(214, 240, 243, .07); color: transparent !important; -webkit-text-fill-color: transparent; user-select: none; }
.board.is-loading .lead-x { opacity: .25; }
.ex-tag { font-size: var(--fs-xs); font-weight: 500; color: var(--gold); border: 1px solid rgba(233, 196, 106, .3); background: rgba(233, 196, 106, .08); border-radius: var(--r-pill); padding: 2px 8px; white-space: nowrap; }


@media (min-width: 900px) {
  .hero { padding: calc(64px + clamp(28px, 6vh, 72px)) 0 clamp(48px, 8vh, 88px); }
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(660px, calc(100vh - 220px)); }
  .hero-kicker { font-size: .9375rem; }
  .hero-title { margin-top: 14px; }
  .hero-sub { font-size: var(--fs-lede); margin-top: 24px; }
  .hero-ctas { display: flex; gap: 12px; margin-top: 32px; }
  .hero-ctas .btn { min-height: 54px; padding: 14px 30px; font-size: 1.0625rem; }
  .proof { margin-top: 22px; }
  .board { padding: 26px; }
  .lead { margin-top: 24px; gap: 18px; }
  .lead .coin { width: 64px; height: 64px; }
  .lead-name b { font-size: 1.625rem; }
  .lead-x { font-size: clamp(4rem, 6.4vw, 5.75rem); }
  .ladder { margin-top: 24px; }
  .rows { margin-top: 20px; }
  .rows li { padding: 13px 0; }
}

/* 6.2 partner strip */
.partners { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.partners .wrap { display: flex; align-items: center; justify-content: center; gap: 6px 22px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.partners p { font-size: var(--fs-sm); color: var(--muted); }
.partners a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); transition: color var(--d-med); }
.partners a:hover { color: var(--teal-hi); }
.partners img { height: 18px; width: auto; }
.partners code { font: inherit; color: var(--teal); }
@media (max-width: 640px) { .partners .wrap { gap: 0 18px; padding-top: 12px; padding-bottom: 6px; } .partners p { flex: 0 0 100%; text-align: center; font-size: var(--fs-xs); } }

/* 6.3 inside TAG: two surfaces side by side, the Discord and the Terminal token page. Stacked on phones. */
.how .dots { -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 62%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 50% 62%, #000, transparent 75%); opacity: .7; }
.how-stage { display: grid; gap: 36px; max-width: 560px; margin: 0 auto; }
.how-col { min-width: 0; display: flex; flex-direction: column; }
.how-col .panel { flex: 1; }
.how-tag { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 12px; }
.how-tag small { font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.panel { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); overflow: hidden; }

.dc-meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); flex-wrap: wrap; }
.dc-meta b { font-weight: 600; }
.dc-time { color: var(--muted); font-size: var(--fs-xs); }

/* Terminal token page, rebuilt in code */
.tm-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.tm-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; letter-spacing: .08em; color: var(--text); }
.tm-brand img { width: 16px; height: 16px; object-fit: contain; }
.tm-nav { display: none; gap: 14px; }
.tm-dep { margin-left: auto; padding: 4px 12px; border-radius: var(--r-pill); background: rgba(95, 212, 154, .16); color: var(--up); font-weight: 600; }
.tm-token { display: flex; align-items: center; gap: 12px; padding: 14px; }
.tm-name { min-width: 0; flex: 1; }
.tm-name b { display: block; font-size: 1rem; font-weight: 650; }
.tm-name small, .tm-mc small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tm-mc { text-align: right; }
.tm-mc b { display: block; font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.tm-chart { position: relative; height: 150px; margin: 0 14px; border-radius: 12px; background: var(--bg-raise); border: 1px solid var(--line); overflow: hidden; }
.tm-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-chart span { position: absolute; left: 10px; top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.tm-chart rect, .tm-chart line { opacity: 0; transition: opacity .25s ease; transition-delay: calc(var(--i) * 14ms); }
.play .tm-chart rect, .play .tm-chart line { opacity: 1; }
.tm-h { padding: 16px 14px 8px; font-size: var(--fs-sm); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tm-h img { height: 16px; width: auto; }
.tm-h small { margin-left: auto; font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px; }
.tm-t { padding: 10px 8px; border-radius: 10px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .4s ease, background .4s ease; }
.tm-t b { display: block; font-size: 1rem; font-weight: 650; color: var(--text-2); transition: color .4s ease; }
.tm-t small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tm-t.lit { border-color: rgba(95, 212, 154, .3); background: rgba(95, 212, 154, .06); }
.tm-t.lit b { color: var(--up); }
.tm-t.lit[data-ok="0"] { border-color: rgba(233, 196, 106, .32); background: rgba(233, 196, 106, .06); }
.tm-t.lit[data-ok="0"] b { color: var(--gold); }
.checks { padding: 0 14px 6px; }
.checks li { position: relative; padding: 9px 0 9px 30px; font-size: var(--fs-sm); line-height: 1.4; color: var(--text-2); border-bottom: 1px solid var(--line); transition: color .3s ease; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ''; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); transition: background .3s ease, border-color .3s ease; }
.checks li::after { content: ''; position: absolute; left: 6px; top: 13px; width: 5px; height: 9px; border-right: 2px solid #04080a; border-bottom: 2px solid #04080a; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-spring); }
.checks li.done { color: var(--text); }
.checks li.done::before { background: var(--teal); border-color: var(--teal); }
.checks li.done::after { transform: rotate(45deg) scale(1); }
.tm-fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--bg-raise); }
.tm-fees p { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--muted); }
.tm-fees b { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.tm-fees p:last-child b { color: var(--up); }

/* the Discord, rebuilt: who shared which coin is shown, what they wrote is not */
.chan { padding: 14px 18px 16px; display: flex; flex-direction: column; height: 100%; }
.chan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chan-msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0 4px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease-spring); }
.chan-msg.in { opacity: 1; transform: none; }
.chan-msg > .coin { width: 34px; height: 34px; color: var(--muted); }
.chan-reply { position: relative; margin-left: 46px; padding: 10px 0 2px; grid-template-columns: 26px 1fr; gap: 10px; }
.chan-reply::before { content: ''; position: absolute; left: -29px; top: -4px; width: 20px; height: 26px; border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); border-bottom-left-radius: 10px; }
.chan-reply > .coin { width: 26px; height: 26px; font-size: .625rem; }
.chan-reply + .chan-msg:not(.chan-reply) { margin-top: 14px; border-top: 1px solid var(--line); }
.chan-coin { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; }
.chan-coin .coin { width: 22px; height: 22px; font-size: .5625rem; }
.chan-text { margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.chan-text + .chan-text { margin-top: 2px; }
.chan-coin small { margin-left: 4px; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.chan-coin + .chan-text { margin-top: 8px; }
.chan-day { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); }
.chan-day::before, .chan-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.chan-h + .chan-day { margin-top: 12px; }
.chan-day + .chan-msg { padding-top: 10px; }
.real-tag { color: var(--teal-hi); border-color: rgba(var(--teal-rgb), .35); background: rgba(var(--teal-rgb), .08); }
.dc-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.chan-reply > .dc-av { width: 26px; height: 26px; }
.chan-msg > .dc-init { color: var(--text-2); font-weight: 600; }
.chan-msg > .dc-bot { color: var(--teal); background: rgba(var(--teal-rgb), .1); border-color: rgba(var(--teal-rgb), .3); }
.dc-bot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dc-app { font-size: .625rem; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; background: rgba(var(--purple-rgb), .22); color: #d9c6ec; }
.dc-at { padding: 0 3px; border-radius: 4px; background: rgba(var(--teal-rgb), .14); color: var(--teal-hi); font-weight: 500; }
.chan-win { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); border-left: 0; box-shadow: inset 2px 0 0 rgba(var(--teal-rgb), .0); }
.chan-win .mult { font-size: 1.25em; margin: 0 1px; vertical-align: -.04em; }
.chan-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: var(--fs-sm); color: var(--text-2); }
.chan-foot svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2; flex: none; }
.how-note { margin: 28px auto 0; text-align: center; max-width: 560px; }

@media (min-width: 1024px) {
  .how-stage { max-width: none; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 28px; align-items: stretch; }
  .how-terminal .panel { box-shadow: var(--sh-3), var(--glow); }
  .tm-nav { display: flex; }
  .tm-chart { height: 200px; }
  .tm-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .tm-t { padding: 9px 2px; }
  .tm-t b { font-size: .9375rem; }
  .checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-bottom: 10px; }
  .checks li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* 6.4 bento: what members use */
.bento { display: grid; gap: 16px; }
.bc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bc-eye { font-size: var(--fs-sm); color: var(--teal); font-weight: 500; }
.bc h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.15; margin-top: 6px; text-wrap: balance; }
.bc-lede { font-size: .9375rem; color: var(--text-2); margin-top: 10px; max-width: 46ch; }
.bc-demo { margin-top: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bc-foot { font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; }
.bc .tlink { margin-top: 8px; margin-bottom: -10px; align-self: flex-start; }
.bc .checks { display: block; }

.mods { margin-top: 16px; justify-content: flex-start; }
.mods li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .5s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.mods li:last-child { border-bottom: 0; }
.play .mods li { opacity: 1; transform: none; }
.mods b { min-width: 38px; text-align: center; font-size: var(--fs-xs); font-weight: 600; padding: 3px 8px; border-radius: 8px; color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); border: 1px solid rgba(var(--teal-rgb), .22); }
.mods span { min-width: 0; font-size: .9375rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mods small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

.ch { position: relative; border-radius: 14px; padding: 14px; background: rgba(4, 8, 10, .5); border: 1px solid var(--line); }
.ch-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.ch-line { display: flex; align-items: center; gap: 10px; margin-top: 12px; filter: blur(2.5px); }
.ch-line s { display: block; }
.ch-line i { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); flex: none; }
.ch-line s { height: 10px; border-radius: 5px; background: rgba(214, 240, 243, .12); width: var(--w); }
.ch-lock { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(11, 19, 22, .95); border: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.ch-lock svg { width: 15px; height: 15px; fill: none; stroke: var(--teal); stroke-width: 2; }


.bento-rail { display: contents; }
.rail-dots { display: none; }
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bc-acad { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bc { padding: 26px; }
  .bc-acad, .bc-vet, .bc-calls { grid-column: span 4; }
}

/* 6.5 member wins: the window and three real counts on the left, the top five as log bars on the right */
.wins-grid { display: grid; gap: 18px; }
.wins-side { min-width: 0; }
.wins-side .sec-head { margin-bottom: 22px; }
.wins-side .tabs { display: flex; }
.wins-side .tabs button { flex: 1; }
.wins-status { min-height: 18px; margin-top: 18px; color: var(--muted); font-weight: 500; }
.wins-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.wins-stats p { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.wins-stats b { font-size: 1.875rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.wins-stats small { font-size: var(--fs-xs); line-height: 1.35; color: var(--muted); }
@media (min-width: 1024px) {
  .wins-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 20px; align-items: start; }
  .wins-side { grid-column: 1; grid-row: 1; }
  .wins-grid .bars { grid-column: 2; grid-row: 1 / span 2; }
  .wins-grid .wins-foot { grid-column: 1; grid-row: 2; flex-direction: column; align-items: flex-start; margin-top: 0; }
  .wins-side .tabs { display: inline-flex; }
  .wins-side .tabs button { flex: none; }
  .wins-stats { grid-template-columns: 1fr; gap: 0; margin-top: 6px; }
  .wins-stats p { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .wins-stats b { min-width: 2.6em; font-size: 2.75rem; }
  .wins-stats small { font-size: .9375rem; color: var(--text-2); }
}
.sx-empty { padding: 28px 16px; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
/* top five as bars on one shared log scale */
.bars { --num: 5.25rem; position: relative; padding: 18px 16px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.bars-axis { position: relative; height: 18px; margin-right: var(--num); color: var(--muted); font-size: var(--fs-xs); }
.bars-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.bars-axis span:first-child { transform: none; }
.ranks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ranks .coin { width: 34px; height: 34px; }
.ranks .tk { min-width: 0; }
.ranks .tk b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks .tk small { display: block; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranks .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-width: 0; background-image: linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: calc((100% - var(--num)) / var(--decades, 2)) 100%; background-repeat: repeat-x; background-clip: content-box; padding: 6px 0; }
.ranks .bar i { flex: 0 0 calc(var(--w) * (100% - var(--num))); height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--teal-lo), var(--teal) 45%, var(--purple)); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.ranks.in .bar i { transform: none; }
.ranks .mult { font-size: 1.5rem; padding-right: .05em; }
.bars-note { margin-top: 10px; text-align: center; color: var(--muted); font-size: var(--fs-xs); }
@media (min-width: 700px) {
  .bars { padding: 22px 28px 16px; --name: 216px; }
  .bars-axis { margin-left: calc(var(--name) + 20px); }
  .ranks li { grid-template-columns: auto calc(var(--name) - 46px) minmax(0, 1fr); gap: 12px 16px; padding: 10px 0; border-top: 0; }
  .ranks .bar { grid-column: auto; padding: 14px 0; }
  .ranks .mult { font-size: 1.75rem; }
}
.wins-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 14px; }

/* 6.6 start trading */
.trade-grid { display: grid; gap: 16px; }
.ref-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--d-med) ease, transform var(--d-med) var(--ease); }
.ref-card:hover { border-color: rgba(var(--teal-rgb), .32); transform: translateY(-2px); }
.ref-card.lead-card { background: radial-gradient(120% 80% at 0% 0%, rgba(var(--teal-rgb), .1), transparent 60%), var(--surface); border-color: rgba(var(--teal-rgb), .26); }
.ref-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ref-top img { height: 32px; width: auto; }
.ref-card h3 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; margin-top: 18px; }
.ref-card > p { font-size: .9375rem; color: var(--text-2); margin-top: 8px; flex: 1; }
.ref-card .tlink { margin-top: 10px; margin-bottom: -10px; }
@media (min-width: 860px) { .trade-grid { grid-template-columns: repeat(3, 1fr); } }

/* 6.7 pricing: what you get on the left, the two plans on the right */
.price-grid { display: grid; gap: 16px; }
.gets { display: grid; gap: 0; }
.gets li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.gets li:first-child { border-top: 1px solid var(--line); }
.gets svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(var(--teal-rgb), .08); border: 1px solid rgba(var(--teal-rgb), .2); fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gets h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.gets p { font-size: .9375rem; color: var(--text-2); }
.plans { display: grid; gap: 16px; align-content: start; }
.plan { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.best { border-color: rgba(var(--teal-rgb), .4); background: radial-gradient(130% 80% at 50% 0%, rgba(var(--teal-rgb), .12), transparent 62%), var(--surface); box-shadow: var(--glow); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; color: var(--text-2); }
.plan-price { font-size: 3.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-top: 14px; }
.plan-price small { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-note { font-size: .9375rem; color: var(--text-2); margin-top: 10px; }
.plan ul { margin-top: 14px; display: grid; gap: 8px; }
.plan ul li { position: relative; padding-left: 26px; font-size: .9375rem; color: var(--text-2); }
.plan ul li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 6px; height: 11px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); }
.plan .btn { margin-top: 22px; }
.plan-note s { color: var(--muted); }
.plan-hero { grid-column: 1 / -1; }
.plan-off { opacity: .5; filter: grayscale(1); box-shadow: none; }
.plan-off .plan-price s { text-decoration-thickness: 3px; text-decoration-color: rgba(214, 240, 243, .55); }
.plan-paused { pointer-events: none; cursor: default; }

/* /pay: three steps in one card, what you get beside it */
.pay-page { position: relative; overflow: hidden; margin-top: -64px; padding: calc(64px + clamp(36px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); }
.pay-page .dots { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 18%, #000, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 78% 18%, #000, transparent 72%); }
.pay-page::before { content: ''; position: absolute; right: -12%; top: -10%; width: 70%; height: 90%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .14), rgba(var(--teal-rgb), .04) 55%, transparent 74%); }
.pay-page::after { content: ''; position: absolute; right: 4%; top: 30%; width: 44%; height: 60%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--purple-rgb), .1), transparent 70%); }
.pay-grid { position: relative; z-index: 1; display: grid; gap: 28px; grid-template-areas: "head" "side" "gets"; }
.pay-head { grid-area: head; }
.pay-head .h1 { margin-top: 10px; }
.pay-side { grid-area: side; min-width: 0; }
.pay-gets { grid-area: gets; }
.pay-gets .h3 { margin-bottom: 14px; }
@media (min-width: 960px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); grid-template-rows: auto 1fr; grid-template-areas: "head side" "gets side"; column-gap: clamp(48px, 7vw, 104px); row-gap: 40px; align-items: start; }
  .pay-side { position: sticky; top: 88px; }
}
.pay-card { position: relative; border-radius: var(--r-lg); padding: 22px; background: radial-gradient(120% 70% at 50% 0%, rgba(var(--teal-rgb), .1), transparent 60%), var(--surface); border: 1px solid rgba(var(--teal-rgb), .3); box-shadow: var(--glow); }
.pay-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; counter-reset: s; }
.pay-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); text-align: center; }
.pay-steps li:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 1px; background: var(--line); }
.pay-steps i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 600; font-size: .8125rem; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); }
.pay-steps li.on { color: var(--text); }
.pay-steps li.on i { border-color: var(--teal); color: var(--bg); background: var(--teal); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .15); }
.pay-steps li.done { color: var(--text-2); }
.pay-steps li.done i { border-color: rgba(var(--teal-rgb), .5); color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); }
.pay-steps li.done:not(:last-child)::after { background: rgba(var(--teal-rgb), .5); }
.pay-box { display: grid; gap: 16px; }
.pay-box > * { margin: 0; }
.pay-copy { color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.pay-copy b { color: var(--text); font-weight: 500; }
.pay-center { text-align: center; }
.pay-aside { font-size: .875rem; color: var(--muted); text-align: center; }
.pay-link { background: none; border: 0; font: inherit; color: var(--teal-hi); cursor: pointer; min-height: 44px; }
.pay-plan { padding: 16px 18px; border-radius: 14px; background: rgba(4, 8, 10, .55); border: 1px solid var(--line); }
.pay-plan.is-free { border-color: rgba(var(--teal-rgb), .35); }
.pay-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9375rem; color: var(--text-2); }
.pay-plan-top b { font-weight: 600; color: var(--text); }
.pay-price { margin-top: 6px; font-size: 2.75rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.pay-price small { margin-left: 8px; font-size: .9375rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pay-who { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pay-av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(88, 101, 242, .18); color: #c9cdfb; font-weight: 600; position: relative; overflow: hidden; }
.pay-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pay-warn { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 196, 120, .4); background: rgba(255, 196, 120, .07); }
.pay-warn p { color: #ffd9a8; font-size: .9375rem; }
.pay-who p { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pay-who small { font-size: .75rem; color: var(--muted); }
.pay-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-switch { min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: .875rem; color: var(--teal-hi); cursor: pointer; }
.pay-have { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--teal-hi); }
.pay-have .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }
.btn .ic { margin-right: 8px; }
.btn-lg { min-height: 56px; font-size: 1.0625rem; }
.btn-discord { color: #fff; background: #5865f2; border: 1px solid #6b77f5; box-shadow: 0 8px 24px -10px rgba(88, 101, 242, .7); }
.btn-discord:hover { background: #4752c4; }
.btn-discord .ic { width: 22px; height: 22px; }
.pay-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-tile { display: grid; justify-items: start; justify-content: stretch; align-content: start; gap: 2px; min-width: 0; white-space: normal; min-height: 92px; padding: 14px 16px; text-align: left; border-radius: 14px; background: rgba(4, 8, 10, .55); border: 1px solid var(--line); color: var(--text); font-weight: 400; }
.pay-tile:hover { border-color: rgba(var(--teal-rgb), .5); background: rgba(var(--teal-rgb), .06); }
.pay-tile b { font-weight: 600; font-size: 1rem; }
.pay-tile small { font-size: .8125rem; color: var(--muted); }
.pay-pick-price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.04em; }
.pay-send { display: grid; gap: 16px; }
@media (min-width: 520px) { .pay-send { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.pay-fields { display: grid; gap: 10px; min-width: 0; }
.pay-field { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pay-field > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pay-field small { font-size: .75rem; color: var(--muted); }
.pay-field b { font-size: 1.125rem; font-weight: 600; }
.pay-field code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; word-break: break-all; color: var(--text); }
.pay-copybtn { flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.pay-copybtn .ic { margin: 0; width: 18px; height: 18px; }
.pay-copybtn.ok { color: var(--teal-hi); border-color: rgba(var(--teal-rgb), .5); }
.pay-timer { font-size: .8125rem; color: var(--muted); text-align: center; }
.pay-qr { margin: 0; display: grid; justify-items: center; gap: 6px; }
.pay-qr img { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 8px; }
.pay-qr figcaption { font-size: .75rem; color: var(--muted); }
.pay-ex { border-top: 1px solid var(--line); padding-top: 12px; }
.pay-ex summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: .9375rem; color: var(--text-2); list-style: none; }
.pay-ex summary::-webkit-details-marker { display: none; }
.pay-ex summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); }
.pay-ex[open] summary::after { content: '\2212'; }
.pay-ex[open] { display: grid; gap: 10px; }
.pay-ex label { font-size: .875rem; color: var(--text-2); }
.pay-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.pay-input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.pay-input[aria-invalid="true"] { border-color: rgba(255, 140, 120, .6); }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .875rem; color: var(--text-2); }
.pay-status.is-stopped { color: var(--muted); }
.pay-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--teal-rgb), .25); border-top-color: var(--teal); animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-done-mark { justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--bg); background: var(--teal); box-shadow: 0 0 0 8px rgba(var(--teal-rgb), .14), 0 12px 32px -12px rgba(var(--teal-rgb), .8); }
.pay-done-mark .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.pay-done-h { text-align: center; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.pay-list { display: grid; gap: 6px; color: var(--text-2); font-size: .9375rem; }
.pay-steps[hidden] { display: none; }
.pay-label { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-top: 4px !important; }
.pay-member { padding: 16px 18px; border-radius: 14px; background: rgba(var(--teal-rgb), .06); border: 1px solid rgba(var(--teal-rgb), .3); display: grid; gap: 12px; }
.pay-member-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-member-top b { font-size: 1.125rem; font-weight: 600; }
.pill-off { color: var(--muted); border-color: var(--line); background: transparent; }
.pay-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .9375rem; }
.pay-facts dt { color: var(--muted); }
.pay-facts dd { margin: 0; color: var(--text); text-align: right; }
.pay-aside a { color: var(--teal-hi); }
.pay-list b { color: var(--text); font-weight: 600; }
.pay-note, .pay-err { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; font-size: .9375rem; }
.pay-card .pay-err { margin: 0 0 16px; }
.pay-note { color: var(--teal-hi); border: 1px solid rgba(var(--teal-rgb), .35); background: rgba(var(--teal-rgb), .06); }
.pay-err { color: #ffb4a8; border: 1px solid rgba(255, 139, 122, .4); background: rgba(255, 139, 122, .07); }
.pay-fine { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .pay-spin { animation: none; } }
/* /pay, 30 Nov: confirm step, "Paying for", the activation moment */
.pay-test { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto 18px; padding: 10px var(--gutter); color: var(--gold); font-size: .875rem; }
.pay-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -10px 0 -6px -6px; padding: 0 6px; background: none; border: 0; font: 500 .875rem var(--font); color: var(--text-2); cursor: pointer; border-radius: 10px; }
.pay-back .ic { width: 18px; height: 18px; }
.pay-back:hover { color: var(--text); }
.pay-mini { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pay-mini p { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: .9375rem; color: var(--text-2); background: rgba(4, 8, 10, .55); }
.pay-mini p + p { border-top: 1px solid var(--line); }
.pay-mini b { color: var(--text); font-weight: 600; }
.pay-tile { position: relative; }
.pay-tile.is-chosen { border-color: rgba(var(--teal-rgb), .55); background: rgba(var(--teal-rgb), .07); }
.pay-tile-tag { position: absolute; top: 12px; right: 12px; font-size: .6875rem; font-weight: 600; color: var(--teal-hi); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; justify-content: stretch; min-height: 76px; padding: 14px 16px; text-align: left; white-space: normal; border-radius: 14px; background: rgba(4, 8, 10, .55); border: 1px solid var(--line); color: var(--text); font-weight: 400; }
.pay-method:hover { border-color: rgba(var(--teal-rgb), .5); background: rgba(var(--teal-rgb), .06); }
.pay-method b { font-weight: 600; font-size: 1rem; }
.pay-method small { grid-column: 2; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.pay-method-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); border: 1px solid rgba(var(--teal-rgb), .2); }
.pay-method-ic.is-text { font-size: .6875rem; font-weight: 700; letter-spacing: .02em; }
.pay-method.is-quiet .pay-method-ic { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.pay-method.is-busy { opacity: .6; }
.btn.is-busy { cursor: progress; }
.btn.is-busy .pay-spin { margin-right: 10px; border-color: rgba(4, 8, 10, .25); border-top-color: #04080a; }

.pay-confirm { border-radius: 16px; padding: 18px 18px 6px; background: rgba(4, 8, 10, .6); border: 1px solid var(--line-2); }
.pay-confirm-top { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pay-confirm-top small { font-size: .8125rem; color: var(--muted); }
.pay-confirm-plan { font-size: 1.875rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pay-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; font-size: .9375rem; }
.pay-sum dt, .pay-sum dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.pay-sum dt { color: var(--muted); padding-right: 16px; }
.pay-sum dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; }
.pay-sum dt:last-of-type, .pay-sum dd:last-of-type { border-bottom: 0; }
.pay-sum dd.is-strong { font-weight: 600; }
.pay-sum dd.is-good { color: var(--teal-hi); }
.pay-sum dd.is-amount { white-space: nowrap; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--teal-hi); }
.pay-confirm .pay-timer { padding: 0 0 12px; }
.pay-timer.is-gone { color: var(--gold); }
.pay-fine-print { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.pay-fine-print .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--teal); }

.pay-for { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(100deg, rgba(var(--teal-rgb), .12), rgba(var(--purple-rgb), .08)); border: 1px solid rgba(var(--teal-rgb), .4); }
.pay-for p { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.pay-for small { font-size: .75rem; color: var(--text-2); }
.pay-for b { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.pay-for-meta { font-size: .8125rem; color: var(--text-2); white-space: nowrap; }
.pay-for-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(var(--teal-rgb), .5); animation: pay-pulse 2s var(--ease) infinite; }
@keyframes pay-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), .55); } 70% { box-shadow: 0 0 0 10px rgba(var(--teal-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--teal-rgb), 0); } }
.pay-field.is-big b { white-space: nowrap; font-size: clamp(1.0625rem, 4.6vw, 1.3125rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--teal-hi); }
.pay-goal { display: grid; gap: 8px; }
.pay-goal-top { font-size: .9375rem; color: var(--text-2); }
.pay-goal-top b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.pay-goal-sub { font-size: .8125rem; color: var(--muted); }
.pay-bar { position: relative; height: 8px; border-radius: var(--r-pill); background: rgba(214, 240, 243, .07); overflow: hidden; }
.pay-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-lo), var(--teal-hi) 60%, var(--purple)); box-shadow: 0 0 16px rgba(var(--teal-rgb), .45); transition: width 1.1s var(--ease); }
.wl-txt code, .pay-wchip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.pay-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.pay-actions .pay-link { font-size: .875rem; color: var(--text-2); }
.pay-actions .pay-link:hover { color: var(--text); }

.pay-ring { justify-self: center; width: 157px; height: 157px; margin: -22px 0; overflow: visible; }
.pay-ring circle { fill: none; stroke-width: 6; }
.pay-ring-track { stroke: rgba(var(--teal-rgb), .12); }
.pay-ring-fill { stroke: url(#pr); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 60px 60px; }
.pay-ring-check { fill: none; stroke: var(--teal-hi); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 0; }
.is-celebrating .pay-ring-fill { animation: pay-ring 1s var(--ease) both; }
.is-celebrating .pay-ring-check { animation: pay-check .5s .85s var(--ease-spring) both; }
.is-celebrating .pay-done-h, .is-celebrating .pay-done-sum { animation: pay-rise .6s 1s var(--ease) both; }
@keyframes pay-ring { from { stroke-dashoffset: 327; } to { stroke-dashoffset: 0; } }
@keyframes pay-check { from { stroke-dashoffset: 70; } to { stroke-dashoffset: 0; } }
@keyframes pay-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pay-done-h { font-size: clamp(1.625rem, 4vw, 2rem); line-height: 1.15; }
.pay-done-h .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pay-done-sum { padding: 4px 16px; border-radius: 14px; background: rgba(4, 8, 10, .55); border: 1px solid var(--line); }

/* membership page */
.mem { position: relative; z-index: 1; display: grid; gap: 22px; }
.mem-head { display: grid; gap: 18px; align-items: end; }
.mem-head .h1 { margin-top: 10px; }
.mem-head .lede { margin-top: 12px; }
.mem-who .pay-who { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 8, 10, .5); }
@media (min-width: 900px) { .mem-head { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); } }
.mem-body { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .mem-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.mem-main, .mem-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
/* phones: one column in the order a member reads it */
@media (max-width: 959px) {
  .mem-body { display: flex; flex-direction: column; align-items: stretch; }
  .mem-main, .mem-side { display: contents; }
  .mem-paying { order: 1; } .mem-status { order: 2; } .mem-balance { order: 3; } .mem-wallets { order: 4; } .mem-topup { order: 5; } .mem-history { order: 6; } .mem-help { order: 7; }
}
.mem-card { position: relative; display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: box-shadow var(--d-med) ease, border-color var(--d-med) ease; scroll-margin-top: 96px; }
.mem-card.is-flash { border-color: rgba(var(--teal-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .12); }
.mem-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mem-h { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.mem-sub { font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
.mem-card > .btn { justify-self: start; }
.mem-card .btn .ic { width: 18px; height: 18px; }
.mem-status { position: relative; display: grid; gap: 12px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mem-status.is-on { border-color: rgba(var(--teal-rgb), .3); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--teal-rgb), .12), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(var(--purple-rgb), .08), transparent 60%), var(--surface); box-shadow: var(--glow); }
.mem-plan { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mem-plan b { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -.04em; }
.mem-left { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.mem-left b { font-size: clamp(3rem, 9vw, 4.25rem); font-weight: 700; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mem-left span { font-size: 1.0625rem; color: var(--text-2); }
.mem-until { font-size: .9375rem; color: var(--text-2); }
.mem-until b { color: var(--text); font-weight: 600; }
.mem-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.mem-acts .pay-link { padding: 0 8px; color: var(--text-2); }
.mem-status .mem-acts .btn { flex: 1 1 150px; }
.mem-paying { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: radial-gradient(120% 120% at 0% 0%, rgba(var(--teal-rgb), .1), transparent 60%), var(--surface); border: 1px solid rgba(var(--teal-rgb), .4); }
.mem-paying .pay-for { background: none; border: 0; padding: 0; }
.mem-money b { font-size: clamp(2.25rem, 6vw, 2.75rem); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.mem-safe { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.mem-safe .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }
.wl-list { display: grid; gap: 8px; }
.wl-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(4, 8, 10, .5); border: 1px solid var(--line); }
.wl-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); }
.wl-ic .ic { width: 18px; height: 18px; }
.wl-txt { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.wl-txt small { font-size: .75rem; color: var(--muted); }
.wl-unlink { min-height: 44px; padding: 0 8px; background: none; border: 0; font: 500 .8125rem var(--font); color: var(--muted); cursor: pointer; }
.wl-unlink:hover { color: var(--down); }
.wl-ask { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; color: var(--text-2); }
.wl-ask span { flex: 1 1 200px; }
.hist-list { display: grid; }
.hist-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 36px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: 0; }
.hist-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--up); background: rgba(95, 212, 154, .1); }
.hist-row.is-out .hist-ic { color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); }
.hist-ic .ic { width: 16px; height: 16px; }
.hist-txt { display: grid; gap: 2px; min-width: 0; }
.hist-txt b { font-weight: 500; font-size: .9375rem; }
.hist-txt small, .hist-amt small { font-size: .75rem; color: var(--muted); }
.hist-amt { display: grid; justify-items: end; gap: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-txt small { overflow-wrap: anywhere; }
.hist-amt b { font-weight: 600; font-size: .9375rem; }
.hist-row:not(.is-out) .hist-amt b { color: var(--up); }
.hist-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); border: 1px solid var(--line); }
.hist-link:hover { color: var(--teal-hi); border-color: rgba(var(--teal-rgb), .5); }
.hist-link .ic { width: 16px; height: 16px; }
.hist-link.is-none { border: 0; }
.mem-faq { display: grid; }
.mem-faq details { border-bottom: 1px solid var(--line); }
.mem-faq details:last-child { border-bottom: 0; }
.mem-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: .9375rem; font-weight: 500; }
.mem-faq summary::-webkit-details-marker { display: none; }
.mem-faq summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); transition: transform var(--d-med) var(--ease); }
.mem-faq details[open] summary::after { transform: rotate(45deg); }
.mem-faq details div { padding: 0 0 16px; display: grid; gap: 8px; font-size: .9375rem; line-height: 1.6; color: var(--text-2); }
.mem-faq a { color: var(--teal-hi); }

/* link-a-wallet sheet: a centred dialog on desktop, a bottom sheet on phones */
.mem-sheet { margin: auto; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: radial-gradient(120% 50% at 50% 0%, rgba(var(--teal-rgb), .1), transparent 60%), var(--surface); color: var(--text); box-shadow: var(--sh-3); overflow: auto; }
.mem-sheet::backdrop { background: rgba(2, 5, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mem-sheet[open] { animation: sheet-in .35s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .mem-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}
.mem-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0 22px; }
.mem-sheet-head h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.mem-sheet-x { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.mem-sheet-x .ic { width: 18px; height: 18px; }
.mem-sheet-body { display: grid; gap: 16px; padding: 16px 22px 24px; }
@media (prefers-reduced-motion: reduce) {
  .pay-for-dot, .is-celebrating .pay-ring-fill, .is-celebrating .pay-ring-check, .is-celebrating .pay-done-h, .is-celebrating .pay-done-sum, .mem-sheet[open] { animation: none; }
  .pay-bar i { transition: none; }
}

.offer { margin-top: 16px; font-size: .9375rem; color: var(--text-2); }
.offer a { color: var(--teal-hi); font-weight: 600; text-decoration: none; }
.offer a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .price-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 56px; align-items: start; } }

/* 6.8 FAQ */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.faq-q i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform var(--d-med) var(--ease), background var(--d-med); }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--text); }
.faq-q i::after { transform: rotate(90deg); transition: transform var(--d-med) var(--ease); }
.faq-item.is-open .faq-q i { background: rgba(var(--teal-rgb), .12); border-color: rgba(var(--teal-rgb), .4); }
.faq-item.is-open .faq-q i::after { transform: none; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-med) var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 48px 24px 0; color: var(--text-2); max-width: 64ch; }
.faq-a a { color: var(--teal); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* 6.9 closing: the dot field lights up under the pointer */
.closing { position: relative; overflow: hidden; padding: clamp(96px, 16vw, 200px) 0; text-align: center; border-top: 1px solid var(--line); --mx: 50%; --my: 60%; touch-action: pan-y; }
.closing .dots { opacity: .5; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 80%); }
.closing .dots.lit { opacity: .75; background-image: radial-gradient(var(--teal-hi) 1.3px, transparent 1.8px); -webkit-mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000, transparent 100%); mask-image: radial-gradient(circle 190px at var(--mx) var(--my), #000, transparent 100%); }
.closing-glow { position: absolute; left: var(--mx); top: var(--my); width: 620px; height: 620px; margin: -310px 0 0 -310px; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .2), rgba(var(--purple-rgb), .1) 50%, transparent 72%); pointer-events: none; }
.closing .wrap { position: relative; }
.closing-title { font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 700; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.closing .lede { margin: 22px auto 0; }
.closing-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.closing-hint { margin-top: 28px; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 560px) { .closing-ctas .btn { flex: 1 1 100%; } }

/* ---------- 7. Site pages ---------- */
.page { padding-bottom: 72px; }

/* /guides */
.inshort ul { margin: 10px 0 0 18px; display: grid; gap: 6px; color: var(--text); list-style: disc; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 40px 0 24px; }
.cover { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.cover-art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; display: flex; align-items: flex-end; padding: 14px; border: 1px solid rgba(var(--c), .3); background: radial-gradient(120% 80% at 20% 0%, rgba(var(--c), .5), rgba(var(--c), 0) 60%), radial-gradient(90% 60% at 100% 100%, rgba(var(--purple-rgb), .22), transparent 70%), var(--surface); transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) ease; }
.cover-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000); mask-image: linear-gradient(180deg, transparent 30%, #000); }
.cover-art b { position: relative; font-size: 3.25rem; font-weight: 700; letter-spacing: -.05em; line-height: .9; color: #fff; }
.cover-art i { position: absolute; right: 12px; top: 12px; width: 26px; height: 30px; background: url('/assets/logo-128.png') center/contain no-repeat; opacity: .8; }
.cover:hover .cover-art { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(var(--c), .18); }
.cover-name { display: block; font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.cover-sub { display: block; font-size: var(--fs-xs); color: var(--muted); }
.mod { padding: 40px 0 8px; }
.mod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lessons a { display: grid; grid-template-columns: 32px 1fr auto; gap: 14px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background var(--d-med) ease; border-radius: 10px; }
.lessons a:hover { background: rgba(var(--teal-rgb), .04); }
.ln { font-weight: 600; color: var(--teal); padding-top: 1px; }
.lt { display: flex; flex-direction: column; gap: 3px; } .lt b { font-weight: 600; font-size: 1.03rem; letter-spacing: -.01em; } .lt small { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.lm { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; padding-top: 3px; }
@media (max-width: 560px) { .covers { grid-template-columns: repeat(2, 1fr); } .cover-art b { font-size: 2.75rem; } }

/* /leaderboard */
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 16px; } .lb-stats p { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; } .lb-stats small { font-size: var(--fs-xs); color: var(--muted); } .lb-stats b { font-size: 1.625rem; font-weight: 700; letter-spacing: -.03em; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pod { position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); opacity: 0; transform: translateY(22px); transition: opacity .4s ease, transform .55s var(--ease-spring); min-width: 0; }
.pod.in { opacity: 1; transform: none; }
.pod::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, rgba(var(--m), .16), rgba(var(--m), 0) 70%); pointer-events: none; }
.pod em { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: var(--fs-xs); color: #1b1606; background: var(--medal); }
.pod-top { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; min-width: 0; } .pod-top > div { min-width: 0; } .pod-top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; } .pod-top b { font-size: 1.125rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod-top small { display: block; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-x { position: relative; font-size: 2.75rem; font-weight: 700; letter-spacing: -.045em; margin-top: 10px; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pod-path { position: relative; font-size: var(--fs-sm); color: var(--text-2); }
.tok { display: flex; align-items: center; gap: 10px; min-width: 0; } .tok img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; } .tok b { display: block; } .tok small { color: var(--muted); font-size: var(--fs-xs); display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx { color: var(--teal-hi); font-weight: 600; }
.soon { margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.soon-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); } .soon-rows em { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: #1b1606; background: linear-gradient(#f6dc7c, #d9a93b); } .soon-rows li:nth-child(2) em { background: linear-gradient(#e6e8e1, #a9ada4); } .soon-rows li:nth-child(3) em { background: linear-gradient(#e7b07a, #b9773f); } .soon-rows s { flex: 1; max-width: 160px; height: 9px; border-radius: 6px; background: rgba(214, 240, 243, .08); }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; } .lb-stats { gap: 8px; } .lb-stats p { padding: 12px; } .lb-stats b { font-size: 1.25rem; } .lb-page .tbl th:nth-child(3), .lb-page .tbl td:nth-child(3), .lb-page .tbl th:nth-child(6), .lb-page .tbl td:nth-child(6) { display: none; } .lb-page .tbl th, .lb-page .tbl td { padding: 12px 10px; } .tok small { max-width: 110px; } .soon { grid-template-columns: 1fr; } }

/* /compare */
.cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp table { min-width: 720px; }
.cmp th[scope="row"] { font-size: .9375rem; font-weight: 600; color: var(--text); width: 26%; }
.cmp td { color: var(--text-2); font-size: .9375rem; }
.cmp .us { background: rgba(var(--teal-rgb), .05); color: var(--text); }
.cmp thead .us { color: var(--teal-hi); font-size: var(--fs-sm); font-weight: 600; }
.yes { color: var(--teal); font-weight: 700; margin-right: 4px; } .no { color: var(--muted); margin-right: 4px; }
.cmp-hint { display: none; margin-bottom: 8px; }
.cmp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.card.hl { border-color: rgba(var(--teal-rgb), .35); background: radial-gradient(120% 70% at 50% 0%, rgba(var(--teal-rgb), .08), transparent 60%), var(--surface); }
@media (max-width: 860px) { .cmp-cards { grid-template-columns: 1fr; } .cmp-hint { display: block; } }

/* ---------- 7b. Phones ----------
   One job per screen, less chrome, less scrolling. Everything here is at or below 699px. */
@media (max-width: 699px) {
  :root { --section: 40px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head.center { text-align: left; margin-left: 0; }
  .sec-head.center .lede { margin-left: 0; }
  .lede { margin-top: 12px; }

  /* nav: logo and menu only. The hero and the dock carry Join. */
  .tn { height: 56px; }
  .tn-join { display: none; }
  .tn-login, .tn-member { min-height: 36px; padding: 0 12px; font-size: .875rem; }
  .hero { margin-top: -56px; padding-top: calc(56px + 16px); }
  .phead { margin-top: -56px; }
  html { scroll-padding-top: 68px; }

  /* hero: the glow sits behind the board, not beside the headline */
  .hero-bg::before { left: -20%; top: 46%; width: 140%; height: 62%; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .16), rgba(var(--teal-rgb), .05) 55%, transparent 74%); }
  .hero-bg::after { left: 30%; top: 62%; width: 100%; height: 46%; }
  .hero-bg .dots { -webkit-mask-image: radial-gradient(ellipse 90% 46% at 50% 70%, #000 0%, transparent 78%); mask-image: radial-gradient(ellipse 90% 46% at 50% 70%, #000 0%, transparent 78%); }

  /* inside TAG */
  .how-stage { gap: 28px; }
  .how-tag { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 10px; }
  .chan { padding: 12px 14px 14px; }
  .chan-msg { padding-top: 12px; }
  .chan-reply { padding-top: 8px; }
  .tm-chart { height: 132px; }
  .how-note { text-align: left; margin-top: 18px; }

  /* what members use: a swipe rail of the four cards */
  .bento { gap: 12px; }
  .bc { padding: 18px; }
  .bento-rail { display: flex; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bento-rail::-webkit-scrollbar { display: none; }
  .bento-rail .bc { flex: 0 0 86%; scroll-snap-align: start; }
  .rail-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(214, 240, 243, .2); transition: background .2s ease, width .2s ease; }
  .rail-dots i.on { width: 18px; border-radius: 3px; background: var(--teal); }

  /* member wins */
  .wins-grid { gap: 14px; }

  /* start trading: one compact card each, logo left */
  .trade-grid { gap: 10px; }
  .ref-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .ref-top { display: contents; }
  .ref-top img { grid-row: 1 / span 2; width: 40px; height: 40px; object-fit: contain; align-self: start; }
  .ref-top .pill { position: absolute; right: 14px; top: 14px; }
  .ref-card h3 { grid-column: 2; margin-top: 0; font-size: 1.1875rem; padding-right: 104px; }
  .ref-card > p { grid-column: 2; margin-top: 4px; font-size: .875rem; line-height: 1.45; }
  .ref-card .tlink { grid-column: 2; margin-top: 4px; }

  /* pricing: the plans first (best value on top), then what you get */
  .price-grid { gap: 28px; }
  .plans { order: -1; gap: 10px; }
  .plan { padding: 20px; }
  .plan.best { order: -1; }
  .plan-price { font-size: 3.25rem; }
  .plan:not(.best) { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; padding: 16px 16px 16px 20px; }
  .plan:not(.best) .plan-top { grid-column: 1; }
  .plan:not(.best) .plan-price { grid-column: 1; font-size: 1.75rem; margin-top: 2px; }
  .plan:not(.best) .plan-price small { font-size: .875rem; }
  .plan:not(.best) .plan-note { grid-column: 1; font-size: .875rem; margin-top: 2px; }
  .plan:not(.best) .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; margin-top: 0 !important; padding: 12px 22px; }
  .plans.plans-free { grid-template-columns: 1fr 1fr; }
  .plans-free .plan-off { display: block; padding: 14px 16px; }
  .plans-free .plan-off .plan-price { margin-top: 6px; }
  .plans-free .plan-off .plan-price small { display: block; margin: 4px 0 0; }
  .plans-free .plan-off .plan-paused { display: none; }
  .gets li { padding: 14px 0; }

  /* FAQ, closing, footer */
  .faq-q { padding: 18px 0; }
  .faq-a p { padding-right: 12px; }
  .closing { padding: 80px 0 104px; }
  .tf { padding: 40px var(--gutter) 96px; }
  .tf-in { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; gap: 22px 20px; }
  .tf-in > div:nth-child(2) { grid-column: 1; grid-row: 2 / span 2; }
  .tf-in > div:nth-child(3) { grid-column: 2; grid-row: 2; }
  .tf-in > div:nth-child(4) { grid-column: 2; grid-row: 3; }
  .tf-legal { margin-top: 28px; }
}

/* ---------- 8. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chan-msg, .mods li, .pod, .tm-chart rect, .tm-chart line { opacity: 1 !important; transform: none !important; }
  .ranks .bar i { transform: none !important; }
  .ladder-fill { transform: none !important; }
}

/* /admin: owner-only membership admin */
.adm { position: relative; overflow: hidden; margin-top: -64px; padding: calc(64px + 40px) 0 96px; min-height: 70vh; }
.adm > .dots { -webkit-mask-image: radial-gradient(ellipse 55% 45% at 85% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 55% 45% at 85% 0%, #000, transparent 70%); }
.adm::before { content: ''; position: absolute; right: -10%; top: -20%; width: 60%; height: 60%; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--teal-rgb), .1), transparent 72%); }
.adm > .wrap { position: relative; z-index: 1; }
.adm-gate { max-width: 420px; margin: 48px auto 0; display: grid; gap: 16px; text-align: center; }
.adm-gate-h { font-size: 2.25rem; font-weight: 700; letter-spacing: -.04em; }
.adm-gate-msg, .adm-copy { color: var(--text-2); font-size: .9375rem; line-height: 1.55; }
.adm-loading, .adm-empty, .adm-muted { color: var(--muted); font-size: .9375rem; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-title { margin-top: 6px; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.adm-title .grad, .adm-stat b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.adm-me { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .9375rem; }
.adm-linkbtn { background: none; border: 0; padding: 0 2px; min-height: 44px; font: inherit; color: var(--teal-hi); cursor: pointer; }
.adm-tabs { display: flex; gap: 4px; margin: 20px 0 24px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { flex: none; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.adm-tab.on { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.adm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #f0a35e; color: #1a0f05; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.adm-badge[hidden] { display: none; }
.adm-badge.is-teal { background: var(--teal); color: var(--bg); }
.adm-h2 { font-size: 1.125rem; font-weight: 600; margin: 28px 0 12px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.adm-stat { display: grid; gap: 4px; text-align: left; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; }
button.adm-stat { cursor: pointer; }
.adm-stat b { font-size: 2.5rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.adm-stat { transition: border-color var(--d-med) ease, transform var(--d-fast) ease; }
button.adm-stat:active { transform: translateY(1px); }
.adm-stat span { color: var(--text-2); font-size: .9375rem; }
.adm-stat.is-warn { border-color: rgba(240, 163, 94, .5); background: rgba(240, 163, 94, .07); }
.adm-stat.is-warn b { background: none; -webkit-text-fill-color: #ffd9a8; color: #ffd9a8; }
.adm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.adm-plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.adm-plan:hover, .adm-stat:hover { border-color: rgba(var(--teal-rgb), .45); }
.adm-plan b { font-size: 1.125rem; }
.adm-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; font-size: .75rem; font-weight: 600; white-space: nowrap; color: var(--text-2); background: rgba(214, 240, 243, .06); border: 1px solid var(--line); }
.adm-chip-lifetime { color: #e9d6ff; background: rgba(var(--purple-rgb), .16); border-color: rgba(var(--purple-rgb), .45); }
.adm-chip-free, .adm-chip-weekly, .adm-chip-monthly { color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); border-color: rgba(var(--teal-rgb), .35); }
.adm-chip-gift, .adm-chip-test { color: #ffd9a8; background: rgba(240, 163, 94, .08); border-color: rgba(240, 163, 94, .35); }
.adm-chip-revoked { color: #ffb4a8; background: rgba(255, 139, 122, .08); border-color: rgba(255, 139, 122, .4); }
.adm-search { margin-bottom: 12px; }
.adm-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.adm-filter { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: none; color: var(--text-2); font: inherit; font-size: .875rem; cursor: pointer; }
.adm-filter.on { color: var(--bg); background: var(--teal); border-color: var(--teal); font-weight: 600; }
.adm-list { display: grid; gap: 6px; }
.adm-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: .9375rem; cursor: pointer; }
.adm-row:hover { border-color: rgba(var(--teal-rgb), .45); }
.adm-row-head { background: none; border-color: transparent; min-height: 0; padding-top: 0; padding-bottom: 0; color: var(--muted); font-size: .8125rem; cursor: default; }
.adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-who > span:last-child { display: grid; min-width: 0; }
.adm-who b, .adm-who code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-who code, .adm-dhead code, .adm-cand-n small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--muted); }
.adm-av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--teal-rgb), .12); color: var(--teal-hi); font-weight: 600; font-size: .875rem; position: relative; overflow: hidden; }
.adm-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-dhead .adm-av { width: 44px; height: 44px; font-size: 1.125rem; }
.adm-plancell { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.adm-plancell small { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.adm-until { color: var(--text-2); }
.adm-role { font-size: .75rem; font-weight: 600; white-space: nowrap; }
.adm-role.is-ok { color: var(--teal-hi); } .adm-role.is-off { color: var(--muted); } .adm-role.is-bad { color: #ffb4a8; }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: var(--text-2); font-size: .875rem; }
@media (max-width: 699px) {
  .adm-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who plan" "until role"; row-gap: 6px; }
  .adm-row > :nth-child(1) { grid-area: who; } .adm-row > :nth-child(2) { grid-area: plan; justify-items: end; }
  .adm-row > :nth-child(3) { grid-area: until; font-size: .8125rem; } .adm-row > :nth-child(4) { grid-area: role; justify-self: end; }
  .adm-row-head { display: none; }
}
body.adm-locked { overflow: hidden; }
.adm-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .6); display: flex; justify-content: flex-end; }
.adm-drawer[hidden] { display: none; }
.adm-panel { position: relative; width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: 24px 22px 48px; }
.adm-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 1; }
.adm-dbody { display: grid; gap: 18px; }
.adm-dhead { display: flex; align-items: center; gap: 12px; padding-right: 52px; flex-wrap: wrap; }
.adm-dhead h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.03em; }
.adm-dhead > div { display: grid; min-width: 0; flex: 1; }
.adm-warns { display: grid; gap: 8px; }
.adm-warn { padding: 10px 14px; border-radius: 10px; color: #ffd9a8; background: rgba(240, 163, 94, .08); border: 1px solid rgba(240, 163, 94, .4); font-size: .9375rem; }
.adm-note { color: var(--muted); font-size: .875rem; }
.adm-facts dd { text-align: right; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-danger { color: #fff; background: #c2483a; border: 1px solid #d9604f; }
.btn-danger:hover { background: #a83b2f; }
.adm-sec { border-top: 1px solid var(--line); padding-top: 10px; }
.adm-sec summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; list-style: none; }
.adm-sec summary::-webkit-details-marker { display: none; }
.adm-sec summary::after { content: '+'; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 1.25rem; }
.adm-sec[open] summary::after { content: '\2212'; }
.adm-count { font-size: .75rem; color: var(--muted); font-weight: 500; }
.adm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid rgba(214, 240, 243, .05); font-size: .875rem; color: var(--text-2); }
.adm-line b { color: var(--text); font-weight: 600; }
.adm-ext { color: var(--teal-hi); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 8px; color: var(--text-2); font-size: .9375rem; cursor: pointer; }
.adm-cands { display: grid; gap: 6px; }
.adm-cand { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.adm-cand[hidden] { display: none; }
.adm-cand input, .adm-check input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.adm-cand-n { flex: 1; display: grid; min-width: 0; }
.adm-cand-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-bulkbar { position: sticky; bottom: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(11, 19, 22, .92); border: 1px solid rgba(var(--teal-rgb), .35); backdrop-filter: blur(8px); }
@media (max-width: 599px) { .adm-bulkbar { grid-template-columns: 1fr; } }
.adm-results { display: grid; gap: 6px; margin-top: 12px; }
.adm-reviews { display: grid; gap: 10px; }
.adm-review { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.adm-review .adm-line { border: 0; padding: 0; }
.adm-audit .adm-line { padding: 10px 0; }
.adm-dlg { width: min(440px, calc(100% - 32px)); padding: 22px; border-radius: 16px; background: var(--surface); color: var(--text); border: 1px solid rgba(var(--teal-rgb), .3); }
.adm-dlg::backdrop { background: rgba(0, 0, 0, .65); }
.adm-dlg form { display: grid; gap: 14px; }
.adm-dlg-h { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.adm-dlg-p { color: var(--text-2); font-size: .9375rem; line-height: 1.5; }
.adm-dlg-l { display: grid; gap: 6px; font-size: .875rem; color: var(--text-2); }
.adm-dlg-row { display: flex; justify-content: flex-end; gap: 8px; }
.adm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--surface); border: 1px solid rgba(var(--teal-rgb), .45); color: var(--text); font-size: .9375rem; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .8); }
.adm-toast[hidden] { display: none; }

/* /admin, 30 Nov: payments to credit, the credit sheet and the DM preview */
.adm-paylist { display: grid; gap: 10px; }
.adm-paylist > .btn { justify-self: start; }
.adm-pay { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.adm-pay-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-pay-usd { display: grid; gap: 2px; }
.adm-pay-usd b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.adm-pay-usd span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-pay-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8125rem; color: var(--text-2); }
.adm-pay-meta code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.adm-sheet { width: min(520px, calc(100vw - 32px)); }
.adm-sheet .mem-sheet-x { font-size: 1.5rem; line-height: 1; }
.adm-sheet .pay-input { min-height: 48px; }
.adm-sugg { display: grid; gap: 4px; }
.adm-sugg:empty { display: none; }
.adm-sugg-o { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.adm-sugg-o:hover { border-color: rgba(var(--teal-rgb), .5); }
.adm-sugg-o code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; color: var(--muted); }
.adm-picked { display: flex; align-items: center; gap: 10px; }
.adm-picked:empty { display: none; }
.adm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.adm-seg-o { min-height: 44px; padding: 6px 8px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font: 500 .875rem var(--font); line-height: 1.2; cursor: pointer; }
.adm-seg-o.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), .35); }
.adm-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9375rem; color: var(--text); cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-switch i { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background var(--d-med) ease; }
.adm-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform var(--d-med) var(--ease), background var(--d-med) ease; }
.adm-switch input:checked + i { background: var(--teal-lo); border-color: var(--teal); }
.adm-switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.adm-switch input:focus-visible + i { outline: 2px solid var(--teal); outline-offset: 2px; }
.adm-preview { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); transition: opacity var(--d-med) ease; }
.adm-preview.is-loading { opacity: .55; }
.adm-outcome { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(214, 240, 243, .04); border: 1px solid var(--line-2); }
.adm-outcome.is-on { background: rgba(var(--teal-rgb), .08); border-color: rgba(var(--teal-rgb), .4); }
.adm-outcome b { font-size: 1.0625rem; }
.adm-outcome.is-on b { color: var(--teal-hi); }
.adm-outcome span { font-size: .875rem; color: var(--text-2); }
/* Discord look, for the preview only */
.dc { padding: 14px 12px; border-radius: 12px; background: #313338; color: #dbdee1; font: 400 .9375rem/1.375 'gg sans', 'Noto Sans', var(--font); transition: opacity var(--d-med) ease; }
.dc.is-off { opacity: .35; }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.dc-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0b1316; color: #eaf7f8; font: 700 1.125rem Georgia, serif; }
.dc-main { display: grid; gap: 6px; min-width: 0; }
.dc-name { display: flex; align-items: center; gap: 6px; }
.dc-name b { color: #f2f3f5; font-weight: 600; }
.dc-name small { font-size: .75rem; color: #949ba4; }
.dc-app { padding: 0 4px; border-radius: 3px; background: #5865f2; color: #fff; font-size: .625rem; font-weight: 600; line-height: 15px; }
.dc-embed { display: grid; gap: 8px; max-width: 432px; padding: 10px 14px 14px 12px; border-radius: 4px; background: #2b2d31; border-left: 4px solid #272931; }
.dc-title { color: #f2f3f5; font-weight: 600; font-size: 1rem; }
.dc-desc { font-size: .875rem; }
.dc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dc-field { grid-column: 1 / -1; display: grid; gap: 2px; font-size: .875rem; }
.dc-field.is-inline { grid-column: auto; }
.dc-field b { color: #f2f3f5; font-weight: 600; font-size: .8125rem; }
.dc-img { width: 100%; max-height: 100px; object-fit: cover; border-radius: 4px; }
.dc-img.is-missing { display: grid; place-items: center; height: 60px; background: #1e1f22; color: #949ba4; font-size: .75rem; }
.dc-foot { font-size: .75rem; color: #b5bac1; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 14px; border-radius: 3px; background: #4e5058; color: #fff; font-size: .875rem; font-weight: 500; }
.dc-btn i { font-style: normal; font-size: .75rem; opacity: .8; }
@media (max-width: 439px) { .dc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- The wallet you pay from (30 Nov 2026) ---------- */
.pay-wform { display: grid; gap: 10px; }
.pay-wrow { position: relative; display: flex; align-items: stretch; }
.pay-input-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: -.01em; padding-right: 76px; }
.pay-input-mono::placeholder { font-family: var(--font, inherit); letter-spacing: 0; color: var(--muted); }
.pay-paste { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--teal-hi); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.pay-paste:hover { border-color: rgba(var(--teal-rgb), .5); }
.pay-whint { font-size: .8125rem; color: var(--muted); }
.pay-whint.is-bad { color: #ffb4a8; }
.pay-whint a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pay-own { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 196, 120, .35); background: rgba(255, 196, 120, .06); }
.pay-own .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #ffd08a; }
.pay-own b { display: block; font-weight: 600; color: #ffe2b8; font-size: .9375rem; }
.pay-own p { margin-top: 4px; font-size: .875rem; line-height: 1.5; color: var(--text-2); }
.pay-wchip, .pay-from { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 8, 10, .5); }
.pay-wchip p, .pay-from p { flex: 1; min-width: 0; display: grid; gap: 3px; line-height: 1.3; }
.pay-wchip small, .pay-from small { font-size: .75rem; color: var(--muted); }
.pay-wchip code { justify-self: start; }
.pay-from { border-color: rgba(var(--teal-rgb), .35); background: radial-gradient(120% 120% at 0% 0%, rgba(var(--teal-rgb), .1), transparent 60%), rgba(4, 8, 10, .5); }
.pay-from code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875rem; color: var(--text); overflow-wrap: anywhere; }
.pay-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 8, 10, .55); }
.pay-seg-b { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease); }
.pay-seg-b.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--teal-rgb), .45), 0 6px 16px -10px rgba(var(--teal-rgb), .6); }
.pay-fine { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.pay-sendline { display: grid; justify-items: end; gap: 2px; }
.pay-sendline b { font-weight: 600; }
.pay-sendline > span > span { color: var(--muted); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .pay-seg-b { transition: none; } }

/* ---------- Academy access on the guides list (30 Nov 2026) ---------- */
.cover-access { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--text); background: rgba(4, 8, 10, .6); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cover-access.is-free { color: var(--teal-hi); border-color: rgba(var(--teal-rgb), .45); }
.lock { width: 12px; height: 12px; flex: none; }
.lm { display: inline-flex; align-items: center; gap: 8px; }
.l-lock { display: inline-flex; color: var(--muted); }
.l-lock .lock { width: 13px; height: 13px; }
.l-free { padding: 1px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 600; color: var(--teal-hi); background: rgba(var(--teal-rgb), .1); border: 1px solid rgba(var(--teal-rgb), .35); }
html.is-member .cover-access, html.is-member .l-lock, html.is-member .l-free { display: none; }
