/* Pipoll — Apple-style dark UI on a human stock market.
   Near-black canvas, white highlights, soft frost, big tabular numbers.
   Render layer only — everything here is presentation. */

/* Gotham, self-hosted (fonts/ at the repo root — URL resolves against this
   stylesheet). Book=400 · Medium=500+600 (no SemiBold in the family) ·
   Bold=700 · Black=800 — the same five steps Poppins was loading from
   Google Fonts. @font-face shadows desktop-installed 'Gotham' copies. */
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Black.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-MediumItalic.otf') format('opentype');
  font-weight: 600; font-style: italic; font-display: swap;
}

:root {
  --bg: #090b0c;
  --side: #0d1012;
  --panel: #111417;
  --panel-hi: #171b1f;
  --line: rgba(255, 255, 255, 0.07);
  --line-hi: rgba(255, 255, 255, 0.16);
  --t1: #f4f7fa;
  --t2: #98a2ad;
  --t3: #646e79;
  --up: #ffffff;
  --green: #30d158;
  --green-bg: rgba(48, 209, 88, 0.14);
  --pink: #ff4b69;
  --pink-ink: #33060e;
  --pink-bg: rgba(255, 75, 105, 0.12);
  --pink-line: rgba(255, 75, 105, 0.38);
  --blue: #0a84ff;
  --font: 'Gotham', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --pad: 32px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t1);
  font: 400 13.5px/1.5 var(--font);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { flex: none; }
::selection { background: #ffffff; color: #0a0c0d; }

:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; border-radius: 6px; }

.num { font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--pink); }
/* Verification stamps on the avatar: the blue identity check takes the
   bottom corner, the goal stamp sits beside it. Hover or a touch hold
   explains either mark in plain words — one shared .vhint bubble. */
.aface { position: relative; display: inline-flex; flex: 0 0 auto; }
.vbadge { position: absolute; bottom: -3px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font: 700 9px/1 var(--font); box-shadow: 0 0 0 2px var(--panel); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.vbadge svg { width: 9px; height: 9px; }
.vb-check { right: -3px; background: var(--blue); }
.vb-auto { left: -3px; background: #7c4dff; }
.vb-photo { left: -3px; background: #ff9f2e; }
.b-row .vbadge { width: 13px; height: 13px; bottom: -2px; font-size: 7px; }
.b-row .vbadge svg { width: 7px; height: 7px; }
.uhero .vbadge { width: 24px; height: 24px; font-size: 13px; bottom: -2px; box-shadow: 0 0 0 2px var(--bg); }
.uhero .vbadge svg { width: 14px; height: 14px; }
.vhint { position: fixed; z-index: 70; max-width: 240px; padding: 7px 11px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--t1); font: 600 11.5px/1.5 var(--font); pointer-events: none; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); }

/* --------------------------------------------------------------- shell */

.shell { display: flex; min-height: 100dvh; }

.side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 236px;
  height: 100dvh;
  padding: 16px 14px;
  background: var(--side);
  border-right: 1px solid var(--line);
  flex: none;
}
.side .brand { margin: 6px 6px 18px; display: flex; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.divider { height: 1px; background: var(--line); margin: 10px 6px; }

.side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  color: var(--t2);
  font: 500 13.5px/1 var(--font);
  text-align: left;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.side-item:hover { color: var(--t1); background: rgba(255, 255, 255, 0.04); }
.side-item.on { color: var(--t1); background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.side-item.on svg { color: var(--up); }
.side-item svg { color: var(--t3); }

.side-foot { margin-top: auto; padding: 14px 8px 4px; color: var(--t3); font-size: 10.5px; line-height: 1.55; }

.main { flex: 1; min-width: 0; }

/* --------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: rgba(9, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand img { height: 42px; width: auto; }
.side .brand img { height: 45px; }
.mbrand { display: inline-flex; }

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

.ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  font: 600 12.5px/1 var(--font);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.ghost-pill:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.28); }

.auth-face {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px 0 4px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  font: 600 12.5px/1 var(--font);
  transition: background 0.16s var(--ease);
}
.auth-face:hover { background: rgba(255, 255, 255, 0.06); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--panel-hi); }
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-hi);
  color: var(--t2);
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------- ticker */

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track {
  display: inline-flex;
  gap: 30px;
  padding: 9px 0;
  white-space: nowrap;
  animation: tick 46s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tki { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--t3); }
.tki b { font: 600 12px/1 var(--font); color: var(--t1); }
.tki .num { font-variant-numeric: tabular-nums; color: var(--t2); }
.tki i { font-style: normal; font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- layout */

.app { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 56px; }

/* ------------------------------------------------------------ intro hero */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 54px 2px 32px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t3);
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.intro h1 {
  margin-top: 16px;
  max-width: 640px;
  font: 800 clamp(32px, 5.4vw, 50px)/1.04 var(--font);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cta-row { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.intro .cta-row { margin-top: 26px; justify-content: center; }
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  background: #ffffff;
  color: #0a0c0d;
  font: 700 13px/1 var(--font);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn-white:hover { opacity: 0.88; }
.btn-white:active { transform: scale(0.98); }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  font: 600 13px/1 var(--font);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.btn-line:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }

/* --------------------------------------------- explore sheet chips (shared) */

.d-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.d-empty { color: var(--t3); font-size: 12.5px; padding: 6px 2px 2px; }
/* Explore > Countries: all countries as a flat word cloud — no pill
   borders, small text, tiny counts, alphabetical. */
.d-callist {
  display: flex; flex-wrap: wrap;
  gap: 5px 16px; justify-content: center;
  padding: 4px 2px 2px;
}
.d-callist button {
  background: none; border: 0; padding: 2px 0;
  color: var(--t2); font: 500 12.5px/1.5 var(--font);
  cursor: pointer;
}
.d-callist button:hover { color: var(--t1); }

/* The countries tab's own search field — typing filters the names the
   session already holds and never fires a query — plus the invisible
   sentinel the list's next scroll page hangs on. */
.d-csearch {
  display: flex; align-items: center; gap: 8px;
  height: 40px; margin: 4px auto 14px; max-width: 460px; padding: 0 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.16s var(--ease);
}
.d-csearch svg { flex: none; color: var(--t3); }
.d-csearch input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--t1); font: 500 13px/1.4 var(--font);
}
.d-csearch input::placeholder { color: var(--t3); }
.d-csent { height: 1px; }

/* Continents, not a crawl: seven pills at rest; opening one lays out just
   that part of the world as a quiet word cloud below it. */
.d-cstack { display: flex; flex-direction: column; align-items: center; }
.d-cont {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; margin-top: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  color: var(--t1); font: 600 12.5px/1 var(--font); cursor: pointer;
  transition: border-color 0.16s var(--ease);
}
.d-cont:hover { border-color: var(--t3); }
.d-cont .chev { display: inline-flex; color: var(--t3); transition: transform 0.16s var(--ease); }
.d-cont.open { border-color: var(--t3); }
.d-cont.open .chev { transform: rotate(180deg); }
.d-cstack .d-callist { margin-top: 6px; }
.d-callist button.cty.on { color: var(--t1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- filter bar */

.fbar { display: flex; align-items: center; gap: 10px; margin: 10px 2px 2px; }
.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--t2);
  font: 600 12.5px/1 var(--font);
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
}
.fbtn:hover { background: rgba(255, 255, 255, 0.06); color: var(--t1); }
.fbtn.on { color: var(--t1); border-color: rgba(255, 255, 255, 0.38); }
.fcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink-bg);
  color: var(--pink);
  font: 700 10.5px/1 var(--font);
}
.fclear {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--t3);
  font: 600 12.5px/1 var(--font);
  transition: color 0.14s var(--ease);
}
.fclear:hover { color: var(--t1); }
.advwrap {
  margin: 12px 2px 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.frow { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.frow + .frow { border-top: 1px solid var(--line); }
.fk {
  flex: none;
  width: 74px;
  padding-top: 7px;
  color: var(--t3);
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fv { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.fv .cat-chip { height: 30px; font-size: 12px; }

/* ------------------------------------------------------------ categories */

.cat-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--panel);
  color: var(--t2);
  font: 600 12.5px/1 var(--font);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.cat-chip:hover { color: var(--t1); border-color: var(--line-hi); }
.cat-chip.on { background: #ffffff; border-color: #ffffff; color: #0a0c0d; }
.cat-chip i { font-style: normal; color: var(--t3); font: 600 11px/1 var(--font); }
.cat-chip.on i { color: rgba(10, 12, 13, 0.55); }

/* ------------------------------------------------------------- search */

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 4px 0 20px;
  padding: 0 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.16s var(--ease);
}
.search:focus-within { border-color: var(--line-hi); }
.search svg { color: var(--t3); }
/* type="search" makes WebKit paint its own clear ✕ next to the site's
   .search-clear button — two ✕ on focus. Kill the native one; ours does
   the job everywhere. */
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search input {
  flex: 1;
  height: 100%;
  background: none;
  border: 0;
  color: var(--t1);
  font: 500 13.5px/1 var(--font);
  outline: none;
}
.search input::placeholder { color: var(--t3); }
.search-clear { color: var(--t3); display: none; padding: 4px; }
.search-clear:hover { color: var(--t1); }
.search.has-q .search-clear { display: block; }

.count-line { color: var(--t3); font-size: 11.5px; margin: 0 2px 16px; letter-spacing: 0.01em; }
.count-line b { color: var(--t2); font-weight: 600; }

/* ----------------------------------------------------------------- grid */

.mrows { display: grid; grid-template-columns: repeat(auto-fill, minmax(246px, 1fr)); gap: 12px; }

.mcard {
  position: relative;
  display: block;
  padding: 17px 16px 15px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.mcard:hover { transform: translateY(-2px); background: var(--panel-hi); border-color: var(--line-hi); }

.mhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mhead .avatar, .mhead .avatar-fallback { width: 36px; height: 36px; }
.mhead-id { min-width: 0; }
.mhead-id b {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 13.5px/1.2 var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mhead-loc { margin-top: 2px; color: var(--t3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Header-right quote: the share price sits quietly beside the name, with its
   24h move under it — the market's real quote (the odds pair) lives below. */
.mhead-val { margin-left: auto; flex: none; text-align: right; }
.mval { display: block; color: var(--t2); font: 700 15px/1 var(--font); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mdelta { display: block; margin-top: 4px; font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; }
.mdelta.flat { color: var(--t3); }

/* The odds pair — this is the card's market quote, Polymarket-style. It reads
   from the same public markets docs the trade panel reads (nothing new is
   written anywhere). Every pair is colored from the start: green left for UP,
   pink right for DOWN. A member nobody has traded yet sits at the 50/50
   opening line — exactly what their profile shows — it just starts moving
   once shares trade. Tapping a side opens that member's share market with
   the trade panel preloaded on the side. */
.modds { margin: 16px 0 13px; }
.modds-bar { height: 4px; border-radius: 999px; overflow: hidden; background: rgba(255, 75, 105, 0.35); }
.modds-bar i { display: block; height: 100%; background: rgba(48, 209, 88, 0.7); }
.modds-btns { display: flex; gap: 8px; margin-top: 9px; }
.obtn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px 7px;
  border-radius: 11px;
  background: var(--green-bg);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.obtn.down { background: var(--pink-bg); }
.obtn small { font: 600 9px/1 var(--font); letter-spacing: 0.09em; color: var(--green); }
.obtn b { color: var(--green); font: 700 16px/1 var(--font); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.obtn.down small, .obtn.down b { color: var(--pink); }
.obtn.up:hover { background: rgba(48, 209, 88, 0.22); }
.obtn.down:hover { background: rgba(255, 75, 105, 0.2); }
.obtn:focus-visible { outline: 1.5px solid var(--t2); outline-offset: 1px; }

.mfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--t2);
  font-size: 11.5px;
}
.mfoot i { font-style: normal; color: var(--t3); font-variant-numeric: tabular-nums; }
.newpill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--t2);
  font: 700 9px/1 var(--font);
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------- loading */

.skel-card {
  height: 172px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-hi) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  border: 1px solid var(--line);
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -70% 0; } }

/* Skeleton mirrors: .sk bars and .sk-c circles stand in for the blocks they
   become, sized to match, so content swaps in place instead of jumping.
   Colors ride the theme's panel vars; a card's --d staggers the shimmer
   wave down a grid instead of blinking in unison. */
.sk {
  border-radius: 8px;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-hi) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.sk-c { border-radius: 50%; }
.mrows .sk { animation-delay: var(--d, 0s); }

.more-btn {
  display: block;
  margin: 24px auto 0;
  height: 44px;
  padding: 0 26px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  font: 600 13px/1 var(--font);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.more-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.28); }

/* --------------------------------------------------------------- states */

.state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 24px; text-align: center; }
.state-ico {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--t2);
}
.state h2 { font: 700 17px/1.3 var(--font); letter-spacing: -0.01em; }
.state p { color: var(--t2); font-size: 12.5px; max-width: 380px; }
.state .ghost-pill { margin-top: 6px; }
.state.err .state-ico { color: var(--pink); }

/* ----------------------------------------------------------------- lens */

.lens-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 8, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.16s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.lens-panel {
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: 80vh;
  background: #0e1113;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: lensIn 0.2s var(--ease);
}
@keyframes lensIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.lens-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.lens-head h3 { font: 700 18px/1.25 var(--font); letter-spacing: -0.015em; }
.lens-sub { margin-top: 3px; color: var(--t3); font-size: 11.5px; }
.lens-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--t2);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
  flex: none;
}
.lens-x:hover { color: var(--t1); background: rgba(255, 255, 255, 0.1); }
.lens-list {
  overflow-y: auto;
  padding: 8px 8px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.lens-list::-webkit-scrollbar { width: 8px; }
.lens-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }

.b-row {
  display: grid;
  grid-template-columns: 30px 36px 1fr auto 62px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  transition: background 0.12s var(--ease);
}
.b-row:hover { background: rgba(255, 255, 255, 0.05); }
.b-row .avatar, .b-row .avatar-fallback { width: 36px; height: 36px; border-radius: 50%; }
.b-name { min-width: 0; }
.b-name b { display: block; font: 600 13.5px/1.25 var(--font); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-name small { display: block; margin-top: 1px; color: var(--t3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-rank { text-align: center; color: var(--t3); font: 700 12px/1 var(--mono); font-variant-numeric: tabular-nums; }
.b-row.top3 .b-rank { color: var(--t1); font-size: 13px; }
.b-price { font: 600 13px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.b-pct { font: 600 12px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ user page */

.back { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 16px; color: var(--t2); font: 500 12.5px/1 var(--font); transition: color 0.16s var(--ease); }
.back:hover { color: var(--t1); }

.upage { max-width: 660px; margin: 0 auto; }

/* Broker head + charts (shared with the /app copy — its app.css holds only
   the appmode shell): the data chart takes the room a broker panel gives it
   (only on the data tab — the odds chart keeps its tighter box), and the
   finger rides both like a crosshair instead of scrolling the page. The
   tooltip math maps via the viewBox, so stretching the CSS box needs
   nothing else. */
.upage .cwrap .spark svg { height: 200px; touch-action: none; }
.upage .cwrap .spark { margin-top: 8px; }
.upage .mkt-top .spark svg { height: 200px; touch-action: none; }

/* Pricebar: the data tab's broker headline — bigger current price with its
   24h move beside it, yesterday as a quiet line beneath. Lives only above
   the data chart (never in the hero, so the share-market tab keeps its own
   cards). Dragging the chart swaps the headline to the hovered value. */
.pricebar { margin: 20px 2px 4px; }
.pricebar .pb-l { display: flex; align-items: baseline; gap: 9px; }
.pricebar .pb-v { font: 800 26px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pricebar .pb-d { font: 700 13.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.pricebar .pb-d.flat { color: var(--t3); }
.pricebar .pb-y { margin-top: 4px; color: var(--t3); font-size: 11px; }
.pricebar .pb-y b { color: var(--t2); font-size: 12px; font-weight: 700; }
@media (max-width: 940px) {
  .pricebar .pb-v { font-size: 23px; }
}

.uhero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 4px; }
.uavatar-lg { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-hi); background: var(--panel); }
.uavatar-lg.avatar-fallback { font-size: 26px; }
.uname { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 700 23px/1.2 var(--font); letter-spacing: -0.02em; }
.you-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 11px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  color: var(--t2);
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.05em;
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 13px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--t2);
  font: 500 11.5px/1 var(--font);
}
.chip em { font-style: normal; color: var(--t1); font-weight: 600; }
.chip svg { color: var(--t3); }

/* A link that wears the chip pill (the profile's Instagram tag): same quiet
   look as the meta chips, darkening on hover; opens in a new tab. */
a.chip { color: var(--t2); text-decoration: none; transition: color 0.16s var(--ease); }
a.chip:hover { color: var(--t1); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.duo-b { padding: 17px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.duo-b .dl { color: var(--t3); font: 700 9.5px/1 var(--font); letter-spacing: 0.11em; }
.duo-b .dv { margin-top: 8px; font: 800 27px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.duo-now { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.26); }
.duo-now .dl { color: var(--up); }
.duo-now .dv { color: var(--up); }
.duo-now.is-down { background: var(--pink-bg); border-color: var(--pink-line); }
.duo-now.is-down .dl, .duo-now.is-down .dv { color: var(--pink); }
/* The share-market tab's ODDS OF UP/DOWN pair: both containers colored all
   the time — green for UP, pink for DOWN — same as the home cards' pair. */
.duo-b.duo-up { background: var(--green-bg); border-color: rgba(48, 209, 88, 0.38); }
.duo-b.duo-up .dl, .duo-b.duo-up .dv { color: var(--green); }
.duo-b.duo-down { background: var(--pink-bg); border-color: var(--pink-line); }
.duo-b.duo-down .dl, .duo-b.duo-down .dv { color: var(--pink); }

.price-note { margin-top: 12px; text-align: center; color: var(--t3); font-size: 11px; }

.spark { margin: 24px 0 4px; position: relative; }
.spark svg { width: 100%; height: 116px; display: block; cursor: crosshair; }
.spark-cap { display: flex; justify-content: space-between; margin-top: 5px; color: var(--t3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.spark-x { stroke: rgba(255, 255, 255, 0.24); stroke-width: 1; stroke-dasharray: 3 4; }
.spark-tip {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  pointer-events: none;
  z-index: 3;
  padding: 5px 9px;
  background: #0d1012;
  border: 1px solid var(--line-hi);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  color: var(--t1);
  font: 600 11px/1 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------- habits */

.panel-title { color: var(--t3); font: 700 10px/1 var(--font); letter-spacing: 0.14em; margin-bottom: 4px; }
.habpanel { margin-top: 14px; }
.hb-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hb-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.hb-name { font: 600 13.5px/1.3 var(--font); letter-spacing: -0.01em; }
.hb-sub { margin-top: 2px; color: var(--t3); font-size: 11.5px; line-height: 1.45; }

/* Per-goal detail pills: green when the goal's progress photo is verified,
   muted otherwise ("manual"). */
.hb-name .hb-pv {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 0 7px;
  margin-left: 8px;
  vertical-align: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--t3);
  font: 600 9px/1 var(--font);
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.hb-name .hb-pv svg { width: 9px; height: 9px; flex: none; }
.hb-name .hb-pv.on {
  color: var(--green);
  border-color: rgba(48, 209, 88, 0.38);
  background: var(--green-bg);
}
.hb-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--t2);
  font: 700 10.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex: none;
}

/* ------------------------------------------------------------------ /you */

.narrow { max-width: 470px; margin: 0 auto; }

.panel {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.panel + .panel { margin-top: 12px; }
.panel h2 { font: 700 17px/1.25 var(--font); letter-spacing: -0.01em; }
.panel .hint { color: var(--t3); font-size: 12px; margin-top: 4px; }

.field { margin-top: 14px; }
.field label { display: block; font: 600 11px/1 var(--font); letter-spacing: 0.04em; margin-bottom: 6px; color: var(--t2); }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: var(--bg);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  color: var(--t1);
  font: 500 13.5px/1 var(--font);
  outline: none;
  transition: border-color 0.16s var(--ease);
}
.field input:focus { border-color: rgba(255, 255, 255, 0.45); }
.field select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: var(--bg);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  color: var(--t1);
  font: 500 13.5px/1 var(--font);
  outline: none;
}
.k-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.k-row .field { margin-top: 14px; }
.dep-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 14px;
  color: var(--t2);
  font-size: 11.5px;
  line-height: 1.5;
}
.dep-consent input { margin-top: 1px; accent-color: var(--pink); }
.form-err { display: none; margin-top: 10px; color: var(--pink); font-size: 12px; }
.form-err.on { display: block; }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border-radius: var(--r);
  background: #ffffff;
  color: #0a0c0d;
  font: 700 13.5px/1 var(--font);
  transition: opacity 0.16s var(--ease);
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.35; cursor: default; }

/* OAuth provider buttons (Apple / Google) above the email form */
.oauth { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05);
  color: var(--t1);
  font: 600 13.5px/1 var(--font);
  transition: background 0.16s var(--ease);
}
.oauth-btn:hover { background: rgba(255, 255, 255, 0.09); }
.oauth-btn:disabled { opacity: 0.5; cursor: default; }
.oauth-btn svg { width: 17px; height: 17px; flex: none; }
.orline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 2px;
  color: var(--t3);
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.orline::before,
.orline::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--pink-line);
  border-radius: var(--r);
  background: var(--pink-bg);
  color: var(--pink);
  font: 700 12.5px/1 var(--font);
}
.btn-ghost:disabled { opacity: 0.35; cursor: default; }

.urole { margin-top: 4px; }
.urole-head { display: flex; align-items: center; gap: 13px; }
.urole-head .avatar-lg { width: 54px; height: 54px; font-size: 17px; }
.urole-name { font: 700 16.5px/1.25 var(--font); letter-spacing: -0.01em; }
.urole-sub { color: var(--t2); font-size: 12px; margin-top: 3px; word-break: break-all; }
.urole-links { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--t2); font: 600 12.5px/1 var(--font); transition: color 0.14s var(--ease); }
.link-btn:hover { color: var(--up); }

.wallet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.balance { margin-top: 14px; font: 800 36px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.balance-cap { margin-top: 5px; color: var(--t3); font-size: 10.5px; letter-spacing: 0.08em; }
.wallet-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.wallet-actions .btn-primary { width: auto; flex: 1; margin-top: 0; min-width: 138px; }
.wallet-foot { margin-top: 13px; color: var(--t3); font-size: 11px; line-height: 1.55; }

.xlist { margin-top: 14px; border-top: 1px solid var(--line); }
.xlist .empty { color: var(--t3); font-size: 12px; padding: 13px 0 2px; }
.xi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 12px/1.3 var(--font); }
.xi:last-child { border-bottom: 0; }
.xi span:first-child { color: var(--t2); }

/* ---------------------------------------------------------------- footer */

.foot { padding: 16px 24px 30px; color: var(--t3); font-size: 11px; }
.foot .sign { font-style: italic; font-weight: 600; color: var(--t2); letter-spacing: 0.02em; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 940px) {
  .side { display: none; }
  .mbrand { display: inline-flex; }
  .intro { padding: 34px 0 22px; }
  .b-row { grid-template-columns: 26px 32px 1fr auto 56px; gap: 8px; }
  .b-row .avatar, .b-row .avatar-fallback { width: 32px; height: 32px; }
}

@media (min-width: 941px) {
  .mbrand { display: none; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .topbar { padding: 0 16px; height: 56px; }
  .brand img { height: 34px; }
  .mrows { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .mcard { padding: 14px 13px 12px; }
  .mval { font-size: 14px; }
  .mdelta { font-size: 10px; }
  .obtn b { font-size: 15px; }
  .intro { padding: 26px 0 14px; }
  .intro h1 { font-size: 31px; }
  .duo { grid-template-columns: 1fr; }
  .duo-b .dv { font-size: 24px; }
  .uname { font-size: 19px; }
  .uavatar-lg { width: 80px; height: 80px; }
  .wallet-actions .btn-primary { min-width: 100%; }
  .ticker-track { gap: 20px; }
  .lens-backdrop { padding: 12px; align-items: flex-end; }
  .lens-panel { width: 100%; max-height: 86vh; }
  .b-row { grid-template-columns: 22px 30px 1fr auto; gap: 7px; }
  .b-pct { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .skel-card, .sk { animation: none; }
  .mcard, .ghost-pill, .btn-white, .lens-backdrop, .lens-panel { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------- profile market tabs */

.ptabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 26px auto 0;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: max-content;
}
.ptab {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--t2);
  font: 600 12px/1 var(--font);
  letter-spacing: 0.02em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.ptab:hover { color: var(--t1); }
.ptab.on { background: #ffffff; color: #0a0c0d; }
.pv-hidden { display: none !important; }

/* The data chart's and the odds chart's shared range-tab row — same pill
   shape as .ptabs, just smaller and closer to its chart. */
.ptabs.ctabs { margin: 14px auto 0; padding: 3px; }
.ptabs.ctabs .ptab { height: 26px; padding: 0 12px; font-size: 11px; }

/* share-market odds panel */

.mkt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.feed { border-top: 1px solid var(--line); }
.feed-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--t2);
  min-width: 0;
}
.feed-row:last-child { border-bottom: 0; }
.sidepill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 20px;
  border-radius: var(--r-pill);
  font: 700 9.5px/1 var(--font);
  letter-spacing: 0.06em;
}
.sidepill.s-up { color: var(--green); background: var(--green-bg); }
.sidepill.s-down { color: var(--pink); background: var(--pink-bg); }
.feed-who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-who b { color: var(--t1); font-weight: 600; }
.feed-when { margin-left: auto; color: var(--t3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark-mid { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 2 5; }
.spark-cap > span:nth-child(2) { color: var(--t3); opacity: 0.7; }

/* ------------------------------------------------------- wallet live bits */

.skel-line {
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--panel) 40%, var(--panel-hi) 50%, var(--panel) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
.wstat { display: flex; gap: 24px; margin-top: 14px; flex-wrap: wrap; }
.wstat b { display: block; font: 700 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.wstat span { display: block; margin-top: 4px; color: var(--t3); font: 600 9.5px/1 var(--font); letter-spacing: 0.1em; }
.hrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border-bottom: 0; }
.hrow .avatar { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.hrow-id { min-width: 0; flex: 1; }
.hrow-name { font: 600 12.5px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow-sub { margin-top: 4px; display: flex; align-items: center; gap: 7px; color: var(--t3); font-size: 10.5px; }
.hrow-sub .sidepill { width: 30px; height: 16px; font-size: 8.5px; }
.hrow-val { text-align: right; flex: none; }
.hrow-val b { display: block; font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.hrow-val small { display: block; margin-top: 3px; font: 600 10.5px/1 var(--font); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .wstat { gap: 18px; }
  .feed-when { display: none; }
}

/* -------------------------------------------------------------- deposit */

.dep-panel { width: min(420px, 100%); }
.dep-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.dep-note { color: var(--t3); font-size: 12px; line-height: 1.55; }
.dep-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dep-chip {
  padding: 10px 16px;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--t1);
  font: 600 13.5px/1 var(--font);
  cursor: pointer;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
}
.dep-chip:hover { border-color: var(--t3); }
.dep-chip.on {
  background: #f4f7fa;
  color: #0e1113;
  border-color: transparent;
}
.dep-amt {
  display: flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  padding: 12px 14px;
}
.dep-amt span { color: var(--t3); font: 600 15px/1 var(--font); }
.dep-amt input {
  flex: 1;
  min-width: 0;
  background: none; border: none; outline: none;
  color: var(--t1);
  font: 600 17px/1.3 var(--font);
  font-variant-numeric: tabular-nums;
}
.dep-min { font-size: 11px; color: var(--t3); line-height: 1.5; }
.dep-cardsoon {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  border: 1px dashed var(--line-hi);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--t3);
  font: 600 12px/1.3 var(--font);
}
.dep-cardsoon svg { flex: none; }
.dep-test-msg { font-size: 11px; color: var(--t3); min-height: 15px; line-height: 1.4; }
.dep-usdc-h { font-size: 12px; font-weight: 600; color: var(--t1); margin-top: 14px; }
.dep-addr {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
}
.dep-addr code {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--t2);
}
.dep-copy { flex: none; }
.dep-claim { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dep-claim input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 10px 12px;
  background: none;
  color: var(--t1);
  font: 500 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
}
.dep-paysum {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line-hi);
  border-radius: 12px;
  padding: 13px 14px;
  font: 600 14px/1 var(--font);
}
.dep-paysum span { color: var(--t3); font-weight: 500; }
.dep-openwrap a.btn-primary, .dep-body .btn-primary, .dep-body .btn-ghost {
  display: flex; align-items: center; justify-content: center; width: 100%;
  text-decoration: none;
}
.dep-openwrap a.btn-primary { margin-bottom: 4px; }
/* the claim-row Claim button sits inline next to the hash field — keep it compact */
.dep-claim .btn-ghost { width: auto; flex: none; display: inline-flex; height: 38px; padding: 0 18px; }
/* deposit-wallet registration block (reuses .dep-addr/.dep-claim rows) */
.dw-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; color: var(--t3); margin-bottom: 8px; }
.dw-note { font-size: 11px; color: var(--t3); line-height: 1.5; min-height: 15px; margin-top: 8px; }
.dep-status { display: flex; align-items: center; gap: 9px; color: var(--t2); font: 500 13px/1.5 var(--font); }
.dep-status svg { flex: none; color: var(--up); animation: depPulse 1.2s var(--ease) infinite; }
.dep-status.down { color: var(--down); }
@keyframes depPulse { 50% { opacity: 0.35; } }
.dep-done-line { font-size: 14px; color: var(--t1); line-height: 1.5; }
.dep-check {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin: 6px auto 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  color: var(--green);
}
@media (prefers-reduced-motion: reduce) { .dep-status svg { animation: none; } }
/* ---- Share-market trade panel (odds tab) ---- */
.mkt-trade { margin: 14px 0; }
.mkt-trade:empty { display: none; }
.tpanel { display: flex; flex-direction: column; gap: 12px; }
.t-bal { font-size: 13px; color: var(--t2); }
.t-bal b { color: var(--t1); font-weight: 600; }
.t-add { background: none; border: none; padding: 0; color: var(--t1); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.t-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-side {
  height: 52px; border-radius: 14px; border: 1px solid var(--line-hi); background: transparent;
  color: var(--t2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; letter-spacing: .02em;
}
.t-side.on[data-side="up"] { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.t-side.on[data-side="down"] { border-color: var(--pink); color: var(--pink); background: var(--pink-bg); }
.t-side:disabled { opacity: .55; cursor: default; }
.t-amt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-hi); border-radius: 14px; padding: 12px 14px; color: var(--t3); }
.t-amt input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--t1); font: inherit; font-size: 19px; font-weight: 600; }
.t-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.t-quote { font-size: 13px; color: var(--t3); min-height: 18px; }
.t-buy { width: 100%; height: 52px; font-size: 15px; }
.t-buy:disabled { opacity: .55; cursor: default; }
.t-flash { font-size: 13px; color: var(--t2); min-height: 16px; }
.t-flash.err { color: var(--pink); }
.t-hold {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--t2);
}
.t-hold b { color: var(--t1); font-weight: 600; }
.t-p { color: var(--t3); }
.t-sells { display: flex; gap: 6px; }
.t-sellb {
  border: 1px solid var(--line-hi); background: none; color: var(--t1); border-radius: var(--r-pill);
  height: 34px; padding: 0 14px; cursor: pointer; font: inherit; font-size: 12px;
}
.t-sellb:disabled { opacity: .5; cursor: default; }

/* ---- Profile details panel ---- */
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.meta-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 255, 255, .02); font-size: 13px; min-width: 0;
}
.meta-cell .mk {
  display: flex; align-items: center; gap: 5px;
  color: var(--t3); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600;
}
.meta-cell .mk svg { opacity: .8; }
.meta-cell b { color: var(--t1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-uid { margin-top: 10px; }
.meta-uid .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ------------------------------------------------------------- help book */

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

.help-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  color: var(--t2);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.help-btn:hover { color: var(--t1); background: rgba(255, 255, 255, 0.09); }

.help-panel { width: min(480px, 100%); position: relative; }

.help-x { position: absolute; top: 14px; right: 14px; z-index: 2; }

.h-vp { overflow: hidden; touch-action: pan-y; }
.h-track { display: flex; transition: transform 0.32s var(--ease); will-change: transform; }
.h-track.dragging { transition: none; }
.h-slide {
  flex: 0 0 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 16px 26px;
  min-height: 288px;
}
.h-logo { height: 34px; margin-bottom: 2px; }
.h-ico {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--t1);
}
.h-kicker {
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t3);
}
.h-s-title { margin-top: 9px; font: 700 26px/1.12 var(--font); letter-spacing: -0.02em; max-width: 330px; }
.h-s-title.step { font-size: 19px; margin-top: 7px; }
.h-s-body { margin-top: 9px; color: var(--t2); font-size: 13px; line-height: 1.6; max-width: 302px; }

.h-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px 8px;
}
.h-nav {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  color: var(--t2); background: rgba(255, 255, 255, 0.05);
  transition: background .16s var(--ease), color .16s var(--ease), opacity .16s var(--ease);
  flex: none;
}
.h-nav:hover { color: var(--t1); background: rgba(255, 255, 255, 0.1); }
.h-nav:disabled { opacity: 0.3; pointer-events: none; }
.h-dots { display: flex; gap: 7px; }
.h-dot {
  width: 7px; height: 7px; padding: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  transition: width .25s var(--ease), background .25s var(--ease);
}
.h-dot.on { width: 20px; background: var(--t1); }
.h-done {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  border-radius: 99px;
  background: #ffffff; color: #0a0c0d;
  font: 600 12.5px/1 var(--font);
  flex: none;
}
.h-done:hover { background: #dfe5ea; }
.h-done[hidden] { display: none; }
.h-nav[hidden] { display: none; }

.h-small { padding: 2px 20px 14px; color: var(--t3); font-size: 10.5px; line-height: 1.5; text-align: center; }
.h-small a { color: var(--t2); text-decoration: underline; text-underline-offset: 2px; }
.h-small a:hover { color: var(--t1); }

/* ------------------------------------------------ compliance gate + legal */

.gate-panel { width: min(440px, 100%); }
.gate-body { padding: 26px 24px 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.gate-body h3 { font: 700 17px/1.3 var(--font); letter-spacing: -0.01em; }
.gate-body p { color: var(--t2); font-size: 12.5px; line-height: 1.55; }
.gate-body p b { color: var(--t1); }
.gate-sub { color: var(--t3); font-size: 11.5px; }
.gate-close { margin-top: 6px; }
.gate-tos { color: var(--t3); font-size: 11px; text-align: center; }
.gate-tos a { color: var(--t2); text-decoration: underline; text-underline-offset: 2px; }
.gate-tos a:hover { color: var(--t1); }
.gate-panel .state-ico { flex: none; }

.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 11px; color: var(--t2); font: 500 12.5px/1.45 var(--font); cursor: pointer; }
.consent-row input { width: 16px; height: 16px; accent-color: #ffffff; flex: none; cursor: pointer; margin-top: 1px; }
.consent-row a { color: var(--t1); text-decoration: underline; text-underline-offset: 2px; }
.consent-row a:hover { color: var(--up); }
.gate-close { align-self: stretch; }
.gate-tabs { display: flex; gap: 6px; margin-bottom: 0; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.gate-tab { appearance: none; flex: 1; border: 1px solid transparent; background: none; color: var(--t3); font: 600 12px/1 var(--font); letter-spacing: 0.02em; padding: 7px 12px; border-radius: 100px; cursor: pointer; }
.gate-tab:hover { color: var(--t2); }
.gate-tab.is-active { color: var(--t1); background: rgba(255, 255, 255, 0.08); border-color: var(--line-hi); }
.gate-view { display: flex; flex-direction: column; min-width: 0; }
.gate-view[hidden] { display: none; }
.gate-view > h3 { margin: 0 0 7px; }
.gate-view > p { margin: 0 0 13px; }
.gate-view > .gate-close { margin: 5px 0 12px; }
.gate-view > .gate-sub:last-child { margin: 0; }
.gate-view > .gate-docs { margin: 0 0 12px; }
.gate-docs { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.gate-docs li { color: var(--t2); font-size: 12.5px; line-height: 1.55; }
.gate-docs a { display: block; color: var(--t1); font-weight: 700; text-decoration: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 4px; transition: border-color 0.15s ease, background 0.15s ease; }
.gate-docs a:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, 0.04); }

/* ------------------------------------------- market landing (browse bar) */

/* one minimal control row: Explore · Filters · sort pills */
.ctrlrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 2px 12px; }
.ctrlrow .fbar { margin: 0; }
.ctrlrow .ptabs.dirseg { margin-left: auto; }
.fchev { display: inline-flex; transition: transform 0.16s var(--ease); }

/* explore sheet: By habit | By country, chips inside */
.expwrap {
  margin: 10px 2px 2px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.02);
}
.exptabs { display: inline-flex; gap: 4px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); margin-bottom: 12px; }
.exptab { height: 28px; padding: 0 14px; border: none; border-radius: var(--r-pill); background: none; color: var(--t3); font: 600 11.5px/1 var(--font); cursor: pointer; transition: background 0.16s var(--ease), color 0.16s var(--ease); }
.exptab:hover { color: var(--t1); }
.exptab.on { background: #ffffff; color: #0a0c0d; }
.expbody .d-chips { flex-wrap: wrap; }

/* infinite scroll */
.morespin { width: 18px; height: 18px; margin: 20px auto 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.12); border-top-color: var(--t2); animation: morespin 0.8s linear infinite; cursor: pointer; }
@keyframes morespin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .morespin { animation: none; } }

.ptabs.dirseg { margin: 0; }
.ptabs.dirseg .ptab { height: 30px; padding: 0 14px; }

@media (max-width: 700px) {
  .ctrlrow .ptabs.dirseg { width: 100%; margin-left: 0; }
  .ctrlrow .ptab { flex: 1; }
}
.foot a { color: var(--t2); }
.foot a:hover { color: var(--t1); }

@media (max-width: 560px) {
  .help-panel { max-height: 92vh; }
  .h-slide { padding: 16px 22px; min-height: 256px; }
}


/* ------------------------------------------------------------ share sheet */

/* The back pill and the share pill live on one row; the pill keeps the .back
   rhythm so the page top stays even. */
.pagerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sharebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  margin: 22px 0 16px;
  border-radius: 50%;
  color: var(--t2);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
  flex: none;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.sharebtn:hover { color: var(--t1); background: rgba(255, 255, 255, 0.1); }

/* Your own profile keeps its money dimmed: where other members find the
   trade panel, you find a quiet note instead — nothing promoted. */
.selfnote { padding: 12px 14px; color: var(--t3); font-size: 12px; line-height: 1.5; }

.youchip {
  margin-left: 6px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font: 800 9.5px/1 var(--font);
  letter-spacing: 0.08em;
  color: #7ce16b;
  border: 1px solid rgba(124, 225, 107, 0.35);
  background: rgba(124, 225, 107, 0.08);
  vertical-align: middle;
}

/* Story swipe: one card visible, snap-scroll between them. The canvases carry
   a checkerboard so their transparent PNG background reads as transparent. */
.ss-panel {
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  max-height: 90vh;
  background: #0e1113;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: lensIn 0.2s var(--ease);
}
.ss-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  height: min(58vh, 86vw);
  padding: 14px 14px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.ss-track::-webkit-scrollbar { height: 8px; }
.ss-track::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; }
.ss-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ss-cv {
  display: block;
  height: calc(100% - 26px);
  width: auto;
  max-width: 100%;
  border-radius: 18px;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.06) 0 25%, transparent 0 50%) 0 0 / 18px 18px;
}
.ss-cap { color: var(--t3); font: 600 11px/1.3 var(--font); letter-spacing: 0.02em; text-align: center; }
.ss-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 12px; }
.ss-dots i {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s var(--ease), width 0.15s var(--ease);
}
.ss-dots i.on { background: #fff; width: 18px; }
.ss-actions { display: flex; gap: 10px; padding: 12px 16px 16px; }
.ss-actions .btn-ghost,
.ss-actions .btn-primary { flex: 1; margin-top: 0; min-width: 0; }

/* Referral gate: what a shared ?ref=share link shows before the profile. */
.share-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 8, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.18s var(--ease);
}
.sg-panel {
  width: min(400px, 100%);
  text-align: center;
  background: #0e1113;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  padding: 30px 24px 20px;
  animation: lensIn 0.2s var(--ease);
}
.sg-logo { display: block; height: 44px; width: auto; max-width: 180px; margin: 0 auto; object-fit: contain; }
.sg-panel h2 { font: 800 22px/1.22 var(--font); letter-spacing: -0.01em; margin-top: 16px; }
.sg-sub { color: var(--t3); font-size: 12.5px; line-height: 1.55; margin-top: 8px; }
.sg-btn { width: 100%; margin-top: 18px; }
.sg-ghost { width: 100%; margin-top: 10px; }
.sg-note { margin-top: 14px; color: var(--t3); font: 600 11px/1 var(--font); letter-spacing: 0.12em; }

@media (max-width: 560px) {
  .ss-track { height: min(52vh, 92vw); padding: 12px 12px 6px; }
  .ss-actions { padding: 10px 12px 12px; }
}

/* A member page is a member's space, not the site's chrome: with no brand,
   no learn button and no signed-in chip, a strip of glass and a hairline
   would be the only content of the topbar — so the bar is gone entirely.
   The page breathes with the same amount of plain, invisible air instead:
   padding on the content, nothing to see or scroll under. */
body.memberview .topbar { display: none; }
body.memberview .app { padding-top: 36px; }
/* The page ends as it starts: air, not a cramped edge. */
body.memberview .foot { padding-bottom: 160px; }

/* --------------------------------------------------- investor watchlist */

/* Collapsed analysis panel: one header row (title + summary chips + caret).
   Chips carry the Trust / Exec / Vol numbers in their own band color, so
   the closed panel already tells the story. */
.panel.iw { display: block; margin-top: 12px; margin-bottom: 8px; }
/* Grid, not flex: the title and caret stay fixed and the chips column
   can shrink without ever wrapping the header into a tall stack. */
.iw-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; padding: 0; margin: 0; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.iw-head .panel-title { flex: 0 0 auto; }
.iw-chips {
  display: flex; gap: 6px; min-width: 0; flex-wrap: nowrap;
  justify-content: flex-end; align-items: center; overflow: hidden;
}
.iw-chip {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--t3); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px; padding: 3px 9px; white-space: nowrap;
}
.iw-chip b { font-weight: 800; }
.iw-open { flex: 0 0 auto; color: var(--t3); display: inline-flex; transition: transform 0.18s ease; }
.iw-open svg { width: 14px; height: 14px; }
.iw.iw-open .iw-open { transform: rotate(180deg); }

/* display:flex here would defeat the hidden attribute (author style beats
   the UA [hidden] rule) — the panel would render open forever. So the
   collapsed state gets its own display:none. */
.iw-body { padding: 14px 2px 6px; display: flex; flex-direction: column; gap: 16px; }
.iw-body[hidden] { display: none; }
.iw-dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.iw-dial { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.iw-dial.iw-dim .iw-num, .iw-dial.iw-dim .iw-band { color: var(--t3) !important; }
.iw-lab {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--t3); text-align: center; white-space: nowrap;
}
.iw-g { width: 92px; height: 56px; display: block; }
.iw-num { font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.iw-band { font-size: 11px; font-weight: 600; white-space: nowrap; }

.iw-rowbar { display: flex; flex-direction: column; gap: 7px; }
.iw-bar-lab {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--t3);
}
.iw-bar-note { font-size: 11px; color: var(--t3); line-height: 1.45; }
.iw-track {
  position: relative; height: 10px; border-radius: 6px;
}
.iw-track-timing {
  background: linear-gradient(90deg, #7CE16B 0%, #9FE07C 24%, #FFC24B 48%, #FF8C42 66%, #FD5E5E 100%);
}
.iw-track-range {
  background: rgba(255,255,255,0.10);
}
.iw-marker {
  position: absolute; top: -6px; width: 14px; height: 22px;
  border-radius: 7px; background: #fff;
  box-shadow: 0 0 0 3px rgba(9,11,12,0.72), 0 2px 9px rgba(0,0,0,0.5);
  transform: translateX(-50%); left: 0;
}
.iw-dot {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(9,11,12,0.72);
  transform: translate(-50%, -50%); left: 0;
}
.iw-ends {
  display: flex; justify-content: space-between;
  font-size: 10.5px; font-weight: 600; color: var(--t3);
}
.iw-tcap { font-size: 12.5px; font-weight: 700; }

@media (max-width: 560px) {
  .iw-chips { gap: 4px; }
  .iw-chip { font-size: 10px; padding: 3px 7px; }
  .iw-dials { gap: 6px; }
  .iw-num { font-size: 21px; }
}
