/* ==========================================================================
   ZELENCIO — DESIGN SYSTEM
   --------------------------------------------------------------------------
   The visual language comes straight out of the wordmark: the "Z" is built
   from sharp 45° diagonal cuts, not curves. So every surface in this UI is
   CHAMFERED rather than rounded — corners are sliced, never softened. That
   single decision is what makes the site look like the logo instead of like
   every other exchange template.

   The second motif is the light streak beneath the wordmark: a thin cyan
   gradient rule that marks active state and section boundaries.

   Both themes are fully defined. Light is the default, as specified.
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────────
   Space Grotesk: engineered, slightly irregular — carries the brand voice.
   Inter: workhorse body face, superb at small sizes.
   JetBrains Mono: tabular figures for prices, so digits never jitter.
   Noto Sans: fallback covering CJK / Arabic / Devanagari for translation.   */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ==========================================================================
   TOKENS
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg:            #ffffff;
  --bg-sunk:       #f4f7fb;
  --bg-raised:     #ffffff;
  --bg-inset:      #eef3f9;

  --ink:           #0a1628;
  --ink-2:         #3d4f6b;
  --ink-3:         #6b7f9e;
  --ink-faint:     #9aabc4;

  --line:          #dde5f0;
  --line-soft:     #eaeff7;

  --brand:         #00b8dd;
  --brand-bright:  #00d4ff;
  --brand-deep:    #0088a8;
  --brand-wash:    #e6faff;

  --accent:        #7c3aed;
  --up:            #00a86b;
  --down:          #e5384f;
  --warn:          #d97706;

  --shadow-sm: 0 1px 2px rgba(10,22,40,.06), 0 2px 8px rgba(10,22,40,.04);
  --shadow-md: 0 2px 6px rgba(10,22,40,.07), 0 12px 28px rgba(10,22,40,.07);
  --shadow-lg: 0 8px 20px rgba(10,22,40,.10), 0 24px 56px rgba(10,22,40,.10);

  --hero-bg: linear-gradient(160deg, #f7fbff 0%, #eaf4fb 45%, #e3f6fc 100%);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:            #050b18;
  --bg-sunk:       #030710;
  --bg-raised:     #0b1526;
  --bg-inset:      #101d33;

  --ink:           #e8f0fb;
  --ink-2:         #a9bcd8;
  --ink-3:         #7189ab;
  --ink-faint:     #4d637f;

  --line:          #1b2b45;
  --line-soft:     #142236;

  --brand:         #00d4ff;
  --brand-bright:  #4ce3ff;
  --brand-deep:    #00a6cc;
  --brand-wash:    #06283a;

  --accent:        #a78bfa;
  --up:            #00d18f;
  --down:          #ff5c72;
  --warn:          #fbbf24;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.55);

  --hero-bg: linear-gradient(160deg, #050b18 0%, #071726 50%, #04212f 100%);
  color-scheme: dark;
}

:root {
  --font-display: 'Space Grotesk', 'Inter', 'Noto Sans', system-ui, sans-serif;
  --font-body:    'Inter', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --w-page: 1240px;
  --w-text: 760px;

  --r-sm: 4px;
  --r-md: 8px;

  /* The signature: a 45° slice on opposing corners, echoing the Z. */
  --cut-sm: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  --cut-md: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-lg: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: #001018; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   TYPE
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.075rem; }

p  { color: var(--ink-2); }

/* Eyebrow: small caps label with the light-streak motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand));
}

.lead { font-size: 1.075rem; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: .84rem; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--sunk { background: var(--bg-sunk); }

.section-head { margin-bottom: 38px; max-width: 640px; }
.section-head p { margin-top: 10px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.row  { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ==========================================================================
   BUTTONS — chamfered, never rounded
   ========================================================================== */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #00121a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  clip-path: var(--cut-sm);
  transition: transform .18s var(--ease), filter .18s var(--ease);
  white-space: nowrap;
}
.btn:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn--lg    { padding: 15px 32px; font-size: 1rem; clip-path: var(--cut-md); }
.btn--sm    { padding: 8px 16px; font-size: .84rem; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-deep); }
.btn--dark  { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--block { width: 100%; }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  clip-path: var(--cut-md);
  padding: 24px;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); border-color: var(--brand); }
.card--flat { box-shadow: none; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 7px; }
.card__body  { color: var(--ink-2); font-size: .92rem; }

/* Feature card with the streak motif on hover */
.feature {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  clip-path: var(--cut-md);
  padding: 28px 24px;
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.feature::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), transparent);
  transition: width .4s var(--ease);
}
.feature:hover { border-color: var(--brand); transform: translateY(-3px); }
.feature:hover::after { width: 100%; }

.feature__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--brand-wash);
  color: var(--brand-deep);
  clip-path: var(--cut-sm);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  font-size: .74rem; font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: .01em;
  background: var(--bg-inset);
  color: var(--ink-2);
  clip-path: polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px);
}
.badge--brand { background: var(--brand-wash); color: var(--brand-deep); }
.badge--up    { background: color-mix(in srgb, var(--up) 14%, transparent);   color: var(--up); }
.badge--down  { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.badge--warn  { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }

.chip {
  padding: 7px 15px;
  font-size: .86rem; font-weight: 500;
  background: var(--bg-inset);
  color: var(--ink-2);
  clip-path: var(--cut-sm);
  transition: background .18s, color .18s;
  cursor: pointer;
}
.chip:hover, .chip.is-active { background: var(--brand); color: #00121a; }

/* ==========================================================================
   HEADER  —  slim bar + dropdown submenus + slide-out menu
   --------------------------------------------------------------------------
   The language picker and theme toggle used to sit in the bar, which made it
   overflow on phones. They now live in the slide-out menu, so the bar holds
   only what a visitor needs at a glance: logo, nav, sign-up, menu.
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 300;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 62px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 28px; width: auto; }

/* ── Desktop nav ─────────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .16s;
}
.nav__link::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 1px; height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand-deep); font-weight: 600; }

/* Dropdown */
.nav__drop { position: relative; }
.nav__caret { transition: transform .22s var(--ease); opacity: .6; }
.nav__drop:hover .nav__caret,
.nav__drop.is-open .nav__caret { transform: rotate(180deg); opacity: 1; }

.nav__panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 236px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  clip-path: var(--cut-md);
  box-shadow: var(--shadow-lg);
  padding: 7px;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__drop:hover .nav__panel,
.nav__drop.is-open .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__panel-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  clip-path: var(--cut-sm);
  transition: background .15s;
}
.nav__panel-item:hover { background: var(--bg-inset); }
.nav__panel-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand-deep);
  clip-path: var(--cut-sm); font-size: .95rem;
}
.nav__panel-text strong {
  display: block; font-size: .89rem; font-weight: 600;
  font-family: var(--font-display); color: var(--ink);
}

/* ── Right-hand actions ──────────────────────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-2);
  clip-path: var(--cut-sm);
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--bg-inset); color: var(--brand-deep); }

.avatar--sm {
  width: 32px; height: 32px; font-size: .74rem;
  overflow: hidden; flex-shrink: 0;
}
.avatar--sm img { width: 100%; height: 100%; object-fit: cover; }

/* The menu button is always visible — it is the only route to language,
   theme, and the full sitemap. */
.menu-btn { display: grid; }

/* ── Slide-out menu ──────────────────────────────────────────────────────── */
.menu-scrim {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(6,14,26,.5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s;
}
.menu-scrim.is-open { opacity: 1; visibility: visible; }

.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 401;
  width: min(370px, 88vw);
  background: var(--bg-raised);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -20px 0 60px rgba(6,14,26,.16);
}
.menu-panel.is-open { transform: translateX(0); }

.menu-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.menu-panel__body {
  flex: 1; overflow-y: auto;
  padding: 14px 16px 40px;
  overscroll-behavior: contain;
}

.menu-auth { display: grid; gap: 9px; margin-bottom: 20px; }

.menu-link {
  display: block;
  padding: 12px 12px;
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
  clip-path: var(--cut-sm);
  transition: background .15s, color .15s;
}
.menu-link:hover { background: var(--bg-inset); color: var(--brand-deep); }
.menu-link--sub { font-size: .89rem; font-weight: 400; color: var(--ink-2); padding-left: 22px; }

.menu-group { border-bottom: 1px solid var(--line-soft); }
.menu-group:last-of-type { border-bottom: 0; }
.menu-group__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px;
  font-size: .95rem; font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  text-align: left;
}
.menu-group__head svg { transition: transform .24s var(--ease); opacity: .55; }
.menu-group.is-open .menu-group__head svg { transform: rotate(180deg); opacity: 1; }
.menu-group__body {
  max-height: 0; overflow: hidden;
  transition: max-height .28s var(--ease);
}
.menu-group.is-open .menu-group__body { max-height: 620px; }

/* Settings block inside the menu */
.menu-settings {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.menu-settings__label {
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px; margin-bottom: 12px;
}
.menu-setting {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 12px;
  font-size: .9rem; color: var(--ink-2);
}
.menu-setting--stack { flex-direction: column; align-items: stretch; gap: 10px; }

.seg { display: inline-flex; background: var(--bg-inset); clip-path: var(--cut-sm); padding: 3px; }
.seg__btn {
  padding: 6px 14px; font-size: .82rem; font-weight: 500;
  color: var(--ink-3); clip-path: var(--cut-sm);
  transition: background .16s, color .16s;
}
.seg__btn.is-active { background: var(--brand); color: #00121a; font-weight: 600; }

.lang-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-height: 260px; overflow-y: auto;
  padding-right: 4px;
}
.lang-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  font-size: .82rem; color: var(--ink-2);
  background: var(--bg-inset);
  clip-path: var(--cut-sm);
  text-align: left;
  transition: background .15s, color .15s;
}
.lang-chip:hover { background: var(--brand-wash); color: var(--brand-deep); }
.lang-chip.is-active { background: var(--brand); color: #00121a; font-weight: 600; }
.lang-chip img { width: 18px; height: 13px; object-fit: cover; flex-shrink: 0; }
.lang-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Google's own translate bar stays hidden — we use our own picker.
   The mount element is moved off-screen instead of display:none, because the
   widget refuses to initialise inside a hidden element. */
#google_translate_element { position: absolute; left: -9999px; top: -9999px; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt { display: none !important; }
body { top: 0 !important; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--hero-bg);
  padding-block: clamp(60px, 9vw, 108px);
  overflow: hidden;
}
/* Ambient diagonal rays echoing the wordmark's cut angle */
.hero::before {
  content: '';
  position: absolute; inset: -40% -10% auto auto;
  width: 780px; height: 780px;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--brand) 7%, transparent) 0 2px,
      transparent 2px 26px);
  transform: rotate(8deg);
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 30%, transparent 78%);
}
.hero__inner {
  position: relative;
  display: grid; gap: 46px;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--brand-deep), var(--brand-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero__stats {
  display: flex; gap: 34px; flex-wrap: wrap;
  margin-top: 42px; padding-top: 26px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.hero__stat b {
  display: block;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
}
.hero__stat span { font-size: .78rem; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }

/* ==========================================================================
   TICKER — the live coin strip
   ========================================================================== */

.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-raised);
  overflow: hidden;
  padding-block: 11px;
}
.ticker__track {
  display: flex; gap: 34px; width: max-content;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.ticker__item { display: flex; align-items: center; gap: 8px; font-size: .87rem; white-space: nowrap; }
.ticker__item img { width: 19px; height: 19px; border-radius: 50%; }
.ticker__sym { font-weight: 600; font-family: var(--font-display); }
.ticker__px  { font-family: var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ticker__chg { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; }
.up   { color: var(--up); }
.down { color: var(--down); }

/* ==========================================================================
   MARKET TABLE
   ========================================================================== */

.table-wrap {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  clip-path: var(--cut-md);
  overflow-x: auto;
}
.table { min-width: 620px; }
.table th {
  text-align: left; padding: 13px 18px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-inset);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: .91rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-inset); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }

.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.coin-cell b { font-family: var(--font-display); font-weight: 600; display: block; line-height: 1.25; }
.coin-cell span { font-size: .78rem; color: var(--ink-3); }

/* ==========================================================================
   STEPS — numbered because the order genuinely matters
   ========================================================================== */

.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700;
  color: color-mix(in srgb, var(--brand) 34%, transparent);
  letter-spacing: -.04em;
}
.step h4 { margin-bottom: 7px; }

/* ==========================================================================
   REWARDS / REFERRAL
   ========================================================================== */

.reward-hero {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 16%, var(--bg-raised)),
    var(--bg-raised) 62%);
  border: 1px solid var(--line);
  clip-path: var(--cut-lg);
  padding: 30px;
}
.reward-balance {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  letter-spacing: -.03em; line-height: 1;
  color: var(--ink);
}
.reward-balance small { font-size: .34em; color: var(--ink-3); margin-left: 8px; font-weight: 500; }

/* Milestone ladder — a real vertical sequence, so the rail encodes order */
.ladder { position: relative; padding-left: 34px; }
.ladder::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.rung { position: relative; padding: 16px 0; }
.rung::before {
  content: ''; position: absolute; left: -28px; top: 22px;
  width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--line);
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
}
.rung.is-done::before  { background: var(--up);    border-color: var(--up); }
.rung.is-ready::before { background: var(--brand); border-color: var(--brand);
                         box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.rung__card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-raised); border: 1px solid var(--line);
  clip-path: var(--cut-sm); padding: 16px 18px;
}
.rung.is-ready .rung__card { border-color: var(--brand); }
.rung__reward {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  color: var(--brand-deep); margin-left: auto; white-space: nowrap;
}

/* Progress */
.bar { height: 6px; background: var(--bg-inset); overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright)); transition: width .5s var(--ease); }

/* Check-in strip */
.checkin { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.checkin__day {
  text-align: center; padding: 13px 6px;
  background: var(--bg-raised); border: 1px solid var(--line);
  clip-path: var(--cut-sm);
}
.checkin__day.is-done { background: var(--brand-wash); border-color: var(--brand); }
.checkin__day b { display: block; font-family: var(--font-mono); font-size: .95rem; color: var(--brand-deep); }
.checkin__day span { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* History rows */
.history-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.history-row:last-child { border-bottom: 0; }
.avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  clip-path: var(--cut-sm); object-fit: cover;
  background: var(--brand-wash); color: var(--brand-deep);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
}
.history-row__amt { margin-left: auto; text-align: right; }
.history-row__amt b { font-family: var(--font-mono); color: var(--up); display: block; }
.history-row__amt span { font-size: .76rem; color: var(--ink-3); }

/* ==========================================================================
   FORMS
   ========================================================================== */

.field { margin-bottom: 17px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  font-family: var(--font-display);
}
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-raised);
  border: 1.5px solid var(--line);
  color: var(--ink);
  clip-path: var(--cut-sm);
  transition: border-color .18s;
  font-size: .93rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); }
.textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.field__error { font-size: .8rem; color: var(--down); margin-top: 6px; }

.alert {
  padding: 13px 16px; font-size: .89rem;
  clip-path: var(--cut-sm); margin-bottom: 18px;
  border-left: 3px solid var(--brand);
  background: var(--brand-wash); color: var(--ink);
}
.alert--ok   { border-left-color: var(--up);   background: color-mix(in srgb, var(--up) 10%, transparent); }
.alert--bad  { border-left-color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); }
.alert--warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* ==========================================================================
   ARTICLE / PROSE
   ========================================================================== */

.prose { max-width: var(--w-text); font-size: 1rem; line-height: 1.78; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p  { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 7px; color: var(--ink-2); }
.prose a  { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 22px 0; clip-path: var(--cut-md); }
.prose blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px; margin: 20px 0;
  color: var(--ink-2); font-style: italic;
}
.prose code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--bg-inset); padding: 2px 6px;
}
.prose pre {
  background: var(--bg-inset); padding: 16px;
  overflow-x: auto; clip-path: var(--cut-sm); margin-bottom: 16px;
}
.prose table { margin-bottom: 18px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }

/* ==========================================================================
   BREADCRUMB · EMPTY · SKELETON
   ========================================================================== */

.crumb { display: flex; gap: 8px; font-size: .83rem; color: var(--ink-3); margin-bottom: 18px; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand-deep); }
.crumb span { color: var(--ink-faint); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty__icon { font-size: 2.4rem; margin-bottom: 12px; opacity: .5; }
.empty h3 { color: var(--ink-2); margin-bottom: 7px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-inset) 25%, var(--line-soft) 50%, var(--bg-inset) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--bg-sunk); border-top: 1px solid var(--line); padding-block: 54px 26px; margin-top: 60px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr repeat(auto-fit, minmax(150px, 1fr)); }
.footer-brand p { font-size: .89rem; margin: 14px 0 18px; max-width: 320px; }
.footer-col h5 {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 15px;
}
.footer-col a { display: block; padding: 5px 0; font-size: .89rem; color: var(--ink-3); transition: color .16s; }
.footer-col a:hover { color: var(--brand-deep); }
.social { display: flex; gap: 9px; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--bg-raised); border: 1px solid var(--line);
  clip-path: var(--cut-sm); color: var(--ink-2); transition: all .18s;
}
.social a:hover { border-color: var(--brand); color: var(--brand-deep); }
.footer-base {
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .83rem; color: var(--ink-3);
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hide-sm { display: none !important; }
    .checkin { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .hero__stats { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { padding: 11px 20px; }
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.tc{text-align:center}.tr{text-align:right}
.hide{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* Divider used on the sign-in and sign-up cards */
.or-line {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  color: var(--ink-3); font-size: .8rem;
}
.or-line::before, .or-line::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Theme-aware logo ──────────────────────────────────────────────────────
   Your wordmark is white, so it disappears on a light page. Both versions are
   in the HTML and CSS shows the right one — no flash, no JavaScript.
   Upload the light-background version in Admin -> Appearance.
   ────────────────────────────────────────────────────────────────────────── */
/* Exactly one logo is ever visible. The white wordmark is unreadable on a
   light page and the dark one is unreadable on a dark page, so the pair is
   swapped by theme rather than shown together. */
.logo-light { display: none !important; }
.logo-dark  { display: block !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="light"] .logo-dark  { display: none !important; }

/* ── Collapsible footer ────────────────────────────────────────────────────
   Two columns on wide screens, single stacked accordion on phones, so a long
   footer stops pushing the page down forever.
   ────────────────────────────────────────────────────────────────────────── */
.footer-col__head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 15px;
  text-align: left; cursor: default;
}
.footer-col__head svg { display: none; transition: transform .24s var(--ease); opacity: .5; }
.footer-col__body { display: block; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 24px; }

  .footer-col { border-bottom: 1px solid var(--line-soft); }
  .footer-col__head {
    padding: 15px 2px; margin-bottom: 0; cursor: pointer;
  }
  .footer-col__head svg { display: block; }
  .footer-col.is-open .footer-col__head svg { transform: rotate(180deg); }

  .footer-col__body {
    max-height: 0; overflow: hidden;
    transition: max-height .28s var(--ease);
  }
  .footer-col.is-open .footer-col__body { max-height: 500px; padding-bottom: 12px; }
}

/* Two-across on medium screens so the footer is wide, not endlessly tall */
@media (min-width: 761px) and (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
}

/* ── Motion ────────────────────────────────────────────────────────────────
   Restrained on purpose: things fade and lift a little as they arrive, and
   numbers count up once. Nothing loops, nothing bounces — a trading site that
   fidgets reads as unserious, and constant motion is exhausting to sit with.
   All of it is disabled under prefers-reduced-motion.
   ────────────────────────────────────────────────────────────────────────── */

@keyframes zel-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes zel-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes zel-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* The light streak under the wordmark, echoed as a slow sweep across the hero */
.hero__sheen {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero__sheen::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 22%;
  background: linear-gradient(90deg, transparent,
              color-mix(in srgb, var(--brand) 12%, transparent), transparent);
  animation: zel-sweep 9s ease-in-out infinite;
}

.hero h1        { animation: zel-rise .7s var(--ease) both; }
.hero .lead     { animation: zel-rise .7s var(--ease) .1s both; }
.hero__cta      { animation: zel-rise .7s var(--ease) .2s both; }
.hero__stats    { animation: zel-rise .7s var(--ease) .3s both; }
.hero__art      { animation: zel-rise .8s var(--ease) .15s both; }

/* Price cells settle in rather than snapping */
[data-price-for], [data-change-for] { transition: color .3s ease; }

.count-up { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero__sheen::after { animation: none; }
  .hero h1, .hero .lead, .hero__cta, .hero__stats, .hero__art { animation: none; }
}

/* ==========================================================================
   ANNOUNCEMENTS
   ========================================================================== */

/* ── Menu strip — sits above the navigation ─────────────────────────────── */
.ann-menu { position: relative; z-index: 320; }
.ann-menu__item { font-size: .87rem; border-bottom: 1px solid var(--line-soft); }
.ann-menu__inner {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 22px; flex-wrap: wrap;
}
.ann-menu__msg { color: inherit; opacity: .85; flex: 1; min-width: 140px; }
.ann-menu__link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ann-menu__close {
  margin-left: auto; font-size: 1.15rem; line-height: 1;
  opacity: .55; padding: 0 4px; color: inherit;
}
.ann-menu__close:hover { opacity: 1; }

.ann--info    { background: color-mix(in srgb, var(--brand) 14%, var(--bg)); color: var(--ink); }
.ann--success { background: color-mix(in srgb, var(--up) 14%, var(--bg));    color: var(--ink); }
.ann--warning { background: color-mix(in srgb, var(--warn) 18%, var(--bg));  color: var(--ink); }
.ann--danger  { background: color-mix(in srgb, var(--down) 15%, var(--bg));  color: var(--ink); }

/* ── Toast — slides in over the page, closable ──────────────────────────── */
.ann-toast {
  position: fixed; z-index: 420;
  right: 22px; bottom: 22px;
  width: min(340px, calc(100vw - 44px));
  background: var(--bg-raised);
  border: 1px solid var(--line);
  clip-path: var(--cut-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(130%);
  transition: transform .45s var(--ease);
}
.ann-toast.is-open { transform: translateY(0); }

.ann-toast__slide { display: none; position: relative; }
.ann-toast__slide.is-on { display: block; }
.ann-toast__slide img { width: 100%; max-height: 190px; object-fit: cover; }
.ann-toast__hit { position: absolute; inset: 0; z-index: 2; }
.ann-toast__body { padding: 16px 18px 18px; }
.ann-toast__body strong { font-family: var(--font-display); font-size: .98rem; display: block; }
.ann-toast__body p { font-size: .86rem; margin-top: 5px; }

.ann-toast__close {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: rgba(8,16,28,.6); color: #fff;
  font-size: 1rem; line-height: 1; border-radius: 50%;
  backdrop-filter: blur(4px);
}
.ann-toast__close:hover { background: rgba(8,16,28,.85); }

.ann-toast__dots {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3;
}
.ann-toast__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.ann-toast__dot.is-on { background: var(--brand); width: 16px; border-radius: 3px; }

@media (max-width: 560px) {
  .ann-toast { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ── Policy prompt ──────────────────────────────────────────────────────── */
.ann-policy {
  position: fixed; inset: 0; z-index: 460;
  background: rgba(6,14,26,.62); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .3s var(--ease);
}
.ann-policy.is-open { opacity: 1; }
.ann-policy__box {
  width: 100%; max-width: 520px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  clip-path: var(--cut-lg);
  overflow: hidden;
  transform: translateY(14px);
  transition: transform .35s var(--ease);
}
.ann-policy.is-open .ann-policy__box { transform: none; }

/* Manual pairing code, for phones that cannot scan reliably */
.pair-code {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.pair-code__digits {
  font-family: var(--font-mono);
  font-size: 1.65rem; font-weight: 700;
  letter-spacing: .34em; text-indent: .34em;
  color: var(--brand-deep);
  background: var(--bg-inset);
  padding: 9px 16px;
  clip-path: var(--cut-sm);
}

/* Phone visitors cannot scan their own screen, so they get the code path */
.qr-phone-note {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 18px; text-align: center;
  background: var(--bg-inset); clip-path: var(--cut-sm);
}
.qr-phone-note p { max-width: 34ch; }

.pair-code__steps {
  margin: 12px 0 0; padding-left: 20px;
  text-align: left; font-size: .84rem; color: var(--ink-soft);
  line-height: 1.8;
}
.pair-code__digits { cursor: pointer; user-select: all; }

/* The QR must be black-on-white whatever the page theme is doing. A QR
   rendered on a dark surface, or inverted, will not scan. */
.qr-box {
  background: #fff !important;
  padding: 14px;
  border-radius: 10px;
  display: inline-block;
  line-height: 0;
}
.qr-box img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }

/* ── Inside the Android app ────────────────────────────────────────────────
   The app already has its own header and back button, and the user is already
   signed in. Showing our nav, sign-up and footer on top of that is confusing
   and gives them a way to navigate out of the app into a browser.
   ────────────────────────────────────────────────────────────────────────── */
body.in-app .site-header,
body.in-app .site-footer,
body.in-app .ann-menu,
body.in-app .ann-toast { display: none !important; }

body.in-app { padding-top: 0 !important; }
body.in-app main { padding-top: 18px; }

/* Content gets the full width — no desktop-sized margins on a phone screen */
body.in-app .wrap { padding-inline: 16px; }

/* The code path sits under the QR as an equal option, not a footnote */
.pair-code__or {
  position: relative; width: 100%; text-align: center;
  margin: 4px 0 12px;
}
.pair-code__or::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--line-soft);
}
.pair-code__or span {
  position: relative; background: var(--bg); padding: 0 12px;
  font-size: .78rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em;
}

/* The code path sits under the QR as an equal option, not a footnote */
.pair-code {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 18px; width: 100%;
}
.pair-code__or {
  position: relative; width: 100%; text-align: center; margin-bottom: 12px;
}
.pair-code__or::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--line-soft);
}
.pair-code__or span {
  position: relative; background: var(--bg-card, var(--bg)); padding: 0 12px;
  font-size: .74rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .09em;
}
.pair-code__digits {
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .26em; text-indent: .26em;
  color: var(--brand-deep);
  background: var(--bg-inset);
  padding: 11px 18px;
  clip-path: var(--cut-sm);
  cursor: pointer; user-select: all;
}
.pair-code__steps {
  margin: 12px 0 0; padding-left: 20px; text-align: left;
  font-size: .82rem; color: var(--ink-soft); line-height: 1.75;
}

/* ══════════════════════════════════════════════════════════════════════════
   SUPPORT CHAT
   ══════════════════════════════════════════════════════════════════════════ */
.chat {
  max-height: 420px; overflow-y: auto;
  padding: 14px; margin-top: 14px;
  background: var(--bg-inset);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg { display: flex; }
.msg--out { justify-content: flex-end; }
.msg--in  { justify-content: flex-start; }

.msg__bubble {
  max-width: 76%; padding: 9px 13px;
  font-size: .88rem; line-height: 1.5;
  word-break: break-word; border-radius: 14px;
}
.msg--out .msg__bubble {
  background: var(--brand); color: #001018;
  border-bottom-right-radius: 4px;
}
.msg--in .msg__bubble {
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 4px;
}
.msg__who  { font-size: .7rem; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.msg__time { font-size: .64rem; opacity: .6; margin-top: 3px; text-align: right; }

.tk-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.tk-row:hover { border-color: var(--brand); }

.modal { display: none; position: fixed; inset: 0; z-index: 400;
         background: rgba(4,10,18,.8); padding: 20px; overflow-y: auto; }
.modal.is-open { display: grid; place-items: center; }
.modal__box { background: var(--bg-card); border: 1px solid var(--line-soft);
              border-radius: 12px; padding: 22px; max-width: 460px; width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   FLOATING SUPPORT WIDGET
   Fixed position so it follows the visitor across pages, which is the whole
   point — a widget that resets on navigation is a contact form that moves.
   ══════════════════════════════════════════════════════════════════════════ */
.sup-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--brand); color: #001018;
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.sup-fab:hover   { transform: scale(1.06); }
.sup-fab.is-open { transform: rotate(90deg) scale(.92); }

.sup-fab__badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--down); color: #fff;
  border: 2px solid var(--bg);
  border-radius: 11px;
  font-size: 11px; font-weight: 700;
}

.sup-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 901;
  width: 360px; max-width: calc(100vw - 36px);
  height: 520px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.sup-panel__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--brand); color: #001018;
}
.sup-panel__head strong { font-size: .95rem; }
.sup-x {
  margin-left: auto; background: none; border: 0;
  font-size: 17px; cursor: pointer; color: inherit; opacity: .75;
}
.sup-x:hover { opacity: 1; }

.sup-body {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 9px;
}

.sup-msg { display: flex; }
.sup-msg--out { justify-content: flex-end; }
.sup-msg--in  { justify-content: flex-start; }

.sup-bubble {
  max-width: 82%; padding: 9px 13px;
  font-size: .87rem; line-height: 1.5;
  word-break: break-word; border-radius: 14px;
  white-space: pre-wrap;
}
.sup-msg--out .sup-bubble {
  background: var(--brand); color: #001018;
  border-bottom-right-radius: 4px;
}
.sup-msg--in .sup-bubble {
  background: var(--bg-inset); color: var(--ink);
  border-bottom-left-radius: 4px;
}
.sup-who { font-size: .68rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }

.sup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sup-chip {
  padding: 7px 12px; font-size: .78rem;
  background: var(--bg-inset); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 16px;
  cursor: pointer; transition: border-color .15s;
}
.sup-chip:hover { border-color: var(--brand); }

.sup-guest { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }

.sup-foot {
  display: flex; gap: 8px; padding: 11px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-inset);
}
.sup-input {
  flex: 1; padding: 10px 12px; font-size: .87rem;
  background: var(--bg-card); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 9px;
}
.sup-input:focus { outline: none; border-color: var(--brand); }

.sup-send {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 9px;
  background: var(--brand); color: #001018;
  font-size: 15px; cursor: pointer;
}

.sup-rate { padding: 11px; border-top: 1px solid var(--line-soft); }
.sup-stars { display: flex; gap: 5px; justify-content: center; }
.sup-star {
  background: none; border: 0; cursor: pointer;
  font-size: 25px; line-height: 1; color: var(--line-soft);
  transition: color .12s, transform .12s;
}
.sup-star:hover, .sup-star:hover ~ .sup-star { color: #f5b301; }
.sup-stars:hover .sup-star { color: #f5b301; }
.sup-stars .sup-star:hover ~ .sup-star { color: var(--line-soft); }

@media (max-width: 480px) {
  .sup-panel {
    right: 0; bottom: 0; width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh; border-radius: 0;
  }
  .sup-fab { right: 14px; bottom: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COMMUNITY
   Two columns on desktop, one on mobile. Sized so a post card is the same
   visual weight as the app's.
   ══════════════════════════════════════════════════════════════════════════ */
.cwrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 70px;
  align-items: start;
}
/*
 * A grid item defaults to min-width:auto, which means it refuses to shrink
 * below its content. The coin ticker is one long non-wrapping row, so it
 * pushed this column — and the whole page — wider than the screen, which is
 * why the community page rendered zoomed out on a phone.
 *
 * min-width:0 lets the column shrink, and the ticker scrolls inside it
 * instead of stretching everything around it.
 */
.cmain { min-width: 0; }
.cside { min-width: 0; }

@media (max-width: 940px) {
  .cwrap { grid-template-columns: 1fr; padding: 10px 10px 60px; gap: 0; }
  .cside { display: none; }
}

/* ── Avatars ─────────────────────────────────────────────────────────────── */
.cav {
  flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #001018; font-weight: 800; text-decoration: none;
}
.cav img { width: 100%; height: 100%; object-fit: cover; }
.cav--xs { width: 28px; height: 28px; font-size: .72rem; }
.cav--sm { width: 38px; height: 38px; font-size: .85rem; }
.cav--md { width: 46px; height: 46px; font-size: 1rem; }
.cav--xl { width: 92px; height: 92px; font-size: 2.1rem; border: 4px solid var(--bg); }

.ctick { color: #1d9bf0; flex-shrink: 0; }

/* ── Coin ticker ─────────────────────────────────────────────────────────── */
.cticker {
  display: flex; gap: 8px;
  overflow-x: auto;
  /* Both of these are needed. Without max-width the flex row still defines
     the parent's width, and overflow-x has nothing to clip. */
  max-width: 100%;
  min-width: 0;
  padding-bottom: 10px; margin-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cticker::-webkit-scrollbar { display: none; }
.ctick {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 9px 14px; border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  font-size: .84rem;
}
.ctick img { width: 20px; height: 20px; border-radius: 50%; }
.ctick__chg { font-weight: 700; font-size: .78rem; }
.ctick__chg.is-up   { color: var(--up); }
.ctick__chg.is-down { color: var(--down); }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.ctabs {
  display: flex; gap: 4px; overflow-x: auto;
  max-width: 100%; min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
  position: sticky; top: 0; z-index: 6;
  background: var(--bg);
  scrollbar-width: none;
}
.ctabs::-webkit-scrollbar { display: none; }
.ctab {
  padding: 14px 14px; white-space: nowrap;
  font-size: .95rem; font-weight: 700;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .15s;
}
.ctab:hover { color: var(--ink); }
.ctab.is-active { color: var(--ink); border-bottom-color: #1d9bf0; }

.chead { padding: 16px 0 14px; }
.chead__title { font-size: 1.4rem; font-weight: 800; }
.chead__icon  { margin-right: 5px; }

/* ── Topics ──────────────────────────────────────────────────────────────── */
.ctopicgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
              gap: 9px; margin-bottom: 16px; }
.ctopic {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s;
}
.ctopic:hover { border-color: var(--brand); }
.ctopic__icon { font-size: 1.2rem; }
.ctopic__name { font-weight: 700; font-size: .88rem; }

.ctopiclist { display: flex; flex-wrap: wrap; gap: 6px; }
.ctopicchip {
  display: inline-block; padding: 7px 12px; border-radius: 18px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  background: var(--bg-inset); color: var(--ink);
  border: 1px solid var(--line-soft); text-decoration: none;
  transition: all .15s;
}
.ctopicchip:hover  { border-color: var(--brand); }
.ctopicchip.is-on  { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }

/* ── Composer ────────────────────────────────────────────────────────────── */
.ccompose {
  display: flex; gap: 12px; padding: 16px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 16px; margin-bottom: 14px;
}
.ccompose__text {
  width: 100%; border: 0; background: none; resize: none;
  color: var(--ink); font-size: 1.08rem; line-height: 1.55;
  font-family: inherit; padding: 9px 0; min-height: 44px;
}
.ccompose__text:focus { outline: none; }
.ccompose__text::placeholder { color: var(--ink-soft); }

.pc-panel {
  padding: 12px; margin: 8px 0;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft); border-radius: 12px;
}

.ccompose__bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 11px; border-top: 1px solid var(--line-soft);
}
.ccompose__tools { display: flex; gap: 3px; }
.ctool {
  width: 36px; height: 36px; border: 0; border-radius: 9px;
  background: none; cursor: pointer; font-size: 1.05rem;
  color: var(--ink-soft); transition: background .15s, color .15s;
}
.ctool:hover  { background: var(--bg-inset); color: var(--ink); }
.ctool.is-on  { background: rgba(29,155,240,.16); color: #1d9bf0; }

.csent { display: flex; gap: 5px; }
.csentbtn {
  padding: 7px 12px; font-size: .78rem; font-weight: 700;
  border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-soft);
  color: var(--ink-soft); transition: all .15s;
}
.csentbtn--bull:hover, .csentbtn--bull.is-on {
  border-color: var(--up); background: rgba(34,197,94,.14); color: var(--up);
}
.csentbtn--bear:hover, .csentbtn--bear.is-on {
  border-color: var(--down); background: rgba(239,68,68,.14); color: var(--down);
}

/* ── Post card ───────────────────────────────────────────────────────────── */
.cpost {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.cpost__pin { font-size: .78rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 9px; }

.cpost__head { display: flex; gap: 12px; align-items: flex-start; }
.cpost__who  { flex: 1; min-width: 0; }
.cpost__l1   { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.cpost__name { font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none; }
.cpost__name:hover { text-decoration: underline; }
.cpost__dot, .cpost__time { font-size: .84rem; color: var(--ink-soft); }
.cpost__l2   { font-size: .78rem; color: var(--ink-soft); margin-top: 1px; }

.cfollow {
  flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  background: #1d9bf0; color: #fff; border: 0;
  transition: opacity .15s;
}
.cfollow:hover { opacity: .88; }
.cfollow.is-on { background: none; color: var(--ink); border: 1px solid var(--line); }

.cmore {
  flex-shrink: 0; width: 30px; height: 30px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font-size: 1.1rem; line-height: 1;
  border-radius: 50%;
}
.cmore:hover { background: var(--bg-inset); }
.cmore--box { width: 38px; height: 38px; border: 1px solid var(--line-soft); }

.csentag {
  display: inline-block; margin-top: 9px;
  padding: 3px 10px; border-radius: 13px;
  font-size: .74rem; font-weight: 700;
}
.csentag--bullish { background: rgba(34,197,94,.16); color: var(--up); }
.csentag--bearish { background: rgba(239,68,68,.16); color: var(--down); }

.cpost__body {
  margin-top: 10px; font-size: 1rem; line-height: 1.62;
  word-break: break-word; color: var(--ink);
}
.cpost__body.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 6;
  -webkit-box-orient: vertical; overflow: hidden;
}
.creadall {
  background: none; border: 0; padding: 3px 0; cursor: pointer;
  color: #1d9bf0; font-weight: 600; font-size: .9rem; font-family: inherit;
}

.ccoins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ccoin {
  padding: 5px 11px; border-radius: 9px;
  font-size: .82rem; font-weight: 800; font-family: var(--font-mono);
  background: rgba(34,197,94,.13); color: var(--up); text-decoration: none;
}
.ccoin:hover { background: rgba(34,197,94,.24); }

/* ── Article card ────────────────────────────────────────────────────────── */
.cart {
  display: block; margin-top: 11px; text-decoration: none; color: inherit;
  border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden;
  transition: border-color .15s;
}
.cart:hover { border-color: var(--brand); }
.cart__cover { width: 100%; height: 190px; object-fit: cover; display: block; }
.cart__body  { padding: 14px; }
.cart__badge {
  display: inline-block; padding: 3px 9px; border-radius: 7px;
  font-size: .68rem; font-weight: 700; margin-bottom: 8px;
  background: var(--bg-inset); color: var(--ink-soft);
}
.cart__title   { font-size: 1.08rem; font-weight: 800; margin: 0 0 6px; line-height: 1.35; }
.cart__excerpt { font-size: .88rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.cart__meta    { display: block; margin-top: 9px; font-size: .76rem; color: var(--ink-soft); }

/* ── Poll ────────────────────────────────────────────────────────────────── */
.cpoll { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.cpollopt {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line-soft); border-radius: 11px;
  background: none; cursor: pointer; text-align: left;
  font-size: .9rem; font-family: inherit; color: var(--ink);
  transition: border-color .15s;
}
.cpollopt:hover:not(:disabled) { border-color: #1d9bf0; }
.cpollopt:disabled { cursor: default; }
.cpollopt.is-mine  { border-color: #1d9bf0; }
.cpollopt__fill {
  position: absolute; inset: 0 auto 0 0;
  background: rgba(29,155,240,.16);
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.cpollopt.is-mine .cpollopt__fill { background: rgba(29,155,240,.3); }
.cpollopt__text { position: relative; flex: 1; font-weight: 600; }
.cpollopt__pct  { position: relative; font-weight: 800; font-size: .86rem; }
.cpoll__meta    { font-size: .78rem; color: var(--ink-soft); padding-top: 3px; }

/* ── Chart, GIF, media ───────────────────────────────────────────────────── */
.cchart { margin-top: 11px; border: 1px solid var(--line-soft);
          border-radius: 13px; overflow: hidden; }
.cchart__head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; background: var(--bg-inset); font-size: .86rem;
}
.cchart__tf {
  padding: 2px 8px; border-radius: 6px; font-size: .72rem;
  background: var(--bg-card); color: var(--ink-soft);
}
.cchart img { width: 100%; display: block; cursor: zoom-in; }
.cgif { width: 100%; margin-top: 11px; border-radius: 13px; display: block; }

.cmedia { display: grid; gap: 3px; margin-top: 11px; border-radius: 13px; overflow: hidden; }
.cmedia--1 { grid-template-columns: 1fr; }
.cmedia--2, .cmedia--3, .cmedia--4 { grid-template-columns: 1fr 1fr; }
.cmedia img { width: 100%; height: 100%; min-height: 155px; max-height: 330px;
              object-fit: cover; cursor: zoom-in; display: block; }
.cmedia--1 img { max-height: 440px; }

.ctopicbar {
  display: flex; align-items: center; gap: 6px;
  margin-top: 11px; padding: 11px 15px; border-radius: 12px;
  background: var(--bg-inset); text-decoration: none;
  color: var(--ink-soft); font-size: .87rem;
}
.ctopicbar strong { color: #1d9bf0; }
.ctopicbar__arrow { margin-left: auto; font-size: 1.1rem; }

/* ── Reactions ───────────────────────────────────────────────────────────── */
.creacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.creact {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 18px;
  background: none; border: 1px solid var(--line-soft);
  cursor: pointer; font-size: .84rem; font-family: inherit;
  color: var(--ink); transition: all .15s;
}
.creact:hover  { border-color: var(--ink-soft); }
.creact.is-mine{ border-color: var(--up); background: rgba(34,197,94,.13); }
.creact__i { font-size: .95rem; line-height: 1; }
.creact__n { font-weight: 700; }
.creact__plus { color: var(--ink-soft); padding: 6px 11px; }

.creactadd { position: relative; }
.cpicker {
  position: absolute; bottom: calc(100% + 7px); left: 0; z-index: 30;
  display: flex; gap: 3px; padding: 7px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 14px; box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.cpick {
  width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; font-size: 1.15rem;
  transition: background .15s, transform .12s;
}
.cpick:hover { background: var(--bg-inset); transform: scale(1.15); }

/* ── Footer stats ────────────────────────────────────────────────────────── */
.cpost__foot {
  display: flex; gap: 22px; align-items: center;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}
.cstat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--ink-soft);
}
.cstat--btn { background: none; border: 0; padding: 0; cursor: pointer;
              font-family: inherit; transition: color .15s; }
.cstat--btn:hover { color: #1d9bf0; }
.cstat--btn.is-on { color: var(--up); font-weight: 700; }

/* ── Comments ────────────────────────────────────────────────────────────── */
.ccomments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.ccomment  { display: flex; gap: 9px; padding: 8px 0; }
.ccomment__name { font-size: .85rem; display: block; }
.ccomment__text { font-size: .89rem; line-height: 1.5; word-break: break-word; }
.ccommentbox    { display: flex; gap: 7px; margin-top: 10px; }
.cinput {
  flex: 1; padding: 10px 15px; font-size: .88rem;
  background: var(--bg-inset); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 20px;
}
.cinput:focus { outline: none; border-color: #1d9bf0; }
.csend {
  padding: 0 17px; border: 0; border-radius: 20px;
  background: #1d9bf0; color: #fff; font-weight: 700;
  font-size: .84rem; cursor: pointer;
}
.ccommentcard {
  display: block; padding: 14px; margin-bottom: 9px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 13px; text-decoration: none; color: inherit;
}

/* ── Profile ─────────────────────────────────────────────────────────────── */
.cprof { margin-bottom: 14px; }
.cprof__cover {
  height: 165px; border-radius: 16px 16px 0 0;
  background: linear-gradient(120deg, #123, var(--brand-deep));
  background-size: cover; background-position: center;
}
.cprof__top {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 18px; margin-top: -46px;
}
.cprof__acts { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; }
.cprof__body { padding: 14px 18px 0; }
.cprof__name { font-size: 1.45rem; font-weight: 800; margin: 0; }
.cprof__handle { color: var(--ink-soft); font-size: .95rem; }
.cprof__bio  { margin-top: 11px; font-size: .95rem; line-height: 1.6; }
.cprof__links {
  display: flex; flex-wrap: wrap; gap: 13px;
  margin-top: 11px; font-size: .87rem;
}
.cprof__links a { color: #1d9bf0; text-decoration: none; }
.cprof__stats { display: flex; gap: 22px; margin-top: 14px; }
.cprof__stats a { text-decoration: none; color: var(--ink-soft); font-size: .89rem; }
.cprof__stats strong { color: var(--ink); font-size: 1.05rem; margin-right: 4px; }

.cprof__tabs {
  display: flex; gap: 4px; margin-top: 18px;
  border-bottom: 1px solid var(--line-soft); overflow-x: auto;
  scrollbar-width: none;
}
.cprof__tabs::-webkit-scrollbar { display: none; }
.cprof__tab {
  padding: 14px 16px; white-space: nowrap;
  font-size: .93rem; font-weight: 700;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 2.5px solid transparent;
}
.cprof__tab.is-active { color: var(--ink); border-bottom-color: #1d9bf0; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.cside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.ccard {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 16px;
}
.ccard--quiet { background: none; border-style: dashed; }
.ccard__title { font-size: .98rem; font-weight: 800; margin: 0 0 12px; }

.ctrend {
  display: flex; gap: 11px; align-items: center;
  padding: 9px 0; text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.ctrend:last-child { border-bottom: 0; }
.ctrend__rank { width: 20px; text-align: center; flex-shrink: 0;
                font-weight: 800; color: var(--ink-soft); opacity: .5; }
.ctrend__tag  { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); }
.ctrend__n    { font-size: .76rem; color: var(--ink-soft); }
.ctrend:hover .ctrend__tag { color: #1d9bf0; }

.csugg { display: flex; gap: 10px; align-items: center;
         padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.csugg:last-child { border-bottom: 0; }
.csugg__name { display: block; font-weight: 700; font-size: .87rem;
               color: var(--ink); text-decoration: none;
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csugg__meta { font-size: .76rem; color: var(--ink-soft); }
.csugg__btn {
  flex-shrink: 0; padding: 7px 15px; border-radius: 18px;
  font-size: .79rem; font-weight: 700; cursor: pointer;
  background: #1d9bf0; color: #fff; border: 0;
}
.csugg__btn.is-on { background: none; color: var(--ink); border: 1px solid var(--line); }

.cjoin, .cempty {
  padding: 28px; text-align: center; margin-bottom: 14px;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 16px;
}

/* ── Options sheet ───────────────────────────────────────────────────────── */
.csheet {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(4,10,18,.7);
  display: none; align-items: flex-end; justify-content: center;
}
.csheet.is-open { display: flex; }
.csheet__box {
  width: 100%; max-width: 520px;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 12px 0 26px;
  animation: sheetUp .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.csheet__grip {
  width: 42px; height: 4px; margin: 0 auto 14px;
  background: var(--line); border-radius: 2px;
}
.csheet__title { text-align: center; font-size: 1rem; margin: 0 0 10px; }
.csheet__row {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 16px 24px;
  background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-family: inherit; color: var(--ink);
  text-align: left;
}
.csheet__row:hover { background: var(--bg-inset); }
.csheet__row--warn { color: var(--down); }

.czoom {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(4,10,18,.95);
  display: none; place-items: center; padding: 22px; cursor: zoom-out;
}
.czoom.is-open { display: grid; }
.czoom img { max-width: 100%; max-height: 100%; object-fit: contain; }

.feed-tag, .feed-at { color: #1d9bf0; font-weight: 600; text-decoration: none; }
.feed-coin { color: var(--up); font-weight: 700; text-decoration: none; }
.feed-tag:hover, .feed-at:hover, .feed-coin:hover { text-decoration: underline; }

/* ── Article reader ──────────────────────────────────────────────────────── */
.careader {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 16px; overflow: hidden; margin-bottom: 12px;
}
.careader__cover { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.careader__title {
  font-size: 1.75rem; font-weight: 800; line-height: 1.25;
  margin: 0; padding: 22px 22px 0;
}
.careader__by {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
}
.careader__body {
  padding: 22px; font-size: 1.05rem; line-height: 1.75;
  word-break: break-word;
}
@media (max-width: 600px) {
  .careader__title { font-size: 1.4rem; padding: 18px 16px 0; }
  .careader__body  { padding: 18px 16px; font-size: 1rem; }
  .careader__by    { padding: 14px 16px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAUNCH HUB
   ══════════════════════════════════════════════════════════════════════════ */
.lh-hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, rgba(29,155,240,.09), transparent 70%);
  border-bottom: 1px solid var(--line-soft);
}
.lh-hero__title { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin: 10px 0 0; }
.lh-hero__sub   { font-size: 1.05rem; color: var(--ink-soft); max-width: 620px; margin-top: 12px; }
.lh-hero__acts  { gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 600px) { .lh-hero__title { font-size: 1.75rem; } }

/* The warning is meant to be read, so it is not styled like a footnote */
.lh-warn {
  margin-top: 22px; padding: 15px 18px;
  background: rgba(245,179,1,.1);
  border-left: 3px solid #f5b301;
  border-radius: 0 10px 10px 0;
  font-size: .9rem; line-height: 1.6; max-width: 680px;
}
.lh-warn strong { display: block; margin-bottom: 3px; }

.lh-note {
  padding: 13px 16px; border-radius: 10px;
  background: var(--bg-inset);
  font-size: .87rem; line-height: 1.6;
}
.lh-note--warn { background: rgba(245,179,1,.1); border-left: 3px solid #f5b301; }

.lh-panel {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
.lh-panel h3 { font-size: 1.05rem; margin: 0 0 4px; }
.lh-panel--owner { border-color: var(--brand); }

.lh-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 13px;
}
.lh-card {
  display: block; padding: 17px; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 14px; transition: border-color .15s, transform .15s;
}
.lh-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.lh-card__head { display: flex; gap: 11px; align-items: center; }
.lh-card__logo {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px; object-fit: cover;
  background: var(--bg-inset);
}
.lh-card__logo--none {
  display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; font-family: var(--font-mono);
  color: var(--brand-deep);
}
.lh-card__stats {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px;
  padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .82rem;
}
.lh-card__stats span { display: flex; flex-direction: column; gap: 1px; }
.lh-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Status pills — colour carries the stage at a glance */
.lh-status {
  padding: 4px 11px; border-radius: 14px; white-space: nowrap;
  font-size: .72rem; font-weight: 700;
  background: var(--bg-inset); color: var(--ink-soft);
}
.lh-status--live       { background: rgba(34,197,94,.17);  color: var(--up); }
.lh-status--approved,
.lh-status--scheduled,
.lh-status--pre_market { background: rgba(29,155,240,.17); color: #1d9bf0; }
.lh-status--rejected,
.lh-status--suspended  { background: rgba(239,68,68,.17);  color: var(--down); }
.lh-status--more_info  { background: rgba(245,179,1,.17);  color: #f5b301; }

.lh-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 13px; }
.lh-type {
  padding: 20px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 14px;
}
.lh-type__icon { font-size: 2rem; margin-bottom: 8px; }

.lh-empty, .lh-gate {
  padding: 30px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 14px;
}
.lh-gate { text-align: left; }

.lh-req {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; margin-top: 9px; text-decoration: none; color: inherit;
  background: var(--bg-inset); border-radius: 11px;
}
.lh-req:hover { background: var(--bg-card); }
.lh-req__x  { color: var(--down); font-weight: 800; }
.lh-req__go { color: var(--ink-soft); font-size: 1.2rem; }

.lh-checklist { display: flex; flex-direction: column; gap: 9px; }
.lh-check { display: flex; gap: 10px; font-size: .89rem; line-height: 1.5; }
.lh-check span:first-child { color: var(--up); font-weight: 800; flex-shrink: 0; }

/* Wizard */
.lh-wizhead {
  position: sticky; top: 0; z-index: 8;
  padding: 14px 0; margin-bottom: 14px;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.lh-progress { height: 5px; border-radius: 3px; background: var(--bg-inset); overflow: hidden; }
.lh-progress__bar {
  height: 100%; background: var(--brand);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.lh-stepline {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 6px; font-size: .8rem;
}
.lh-nav { display: flex; gap: 9px; align-items: center; padding: 18px 0 40px; }

.lh-readonly { display: flex; flex-direction: column; }
.lh-ro {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem;
}
.lh-ro:last-child { border-bottom: 0; }

.lh-cb {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 0; font-size: .9rem; line-height: 1.5; cursor: pointer;
}
.lh-cb input { margin-top: 3px; flex-shrink: 0; }
.req { color: var(--down); }

/* Supply calculator */
.lh-supply {
  padding: 16px; border-radius: 12px; margin-top: 12px;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
  transition: border-color .2s;
}
.lh-supply.is-over { border-color: var(--down); }
.lh-supply__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; font-size: .9rem;
}
.lh-supply__row--total {
  border-top: 1px solid var(--line-soft); margin-top: 5px; padding-top: 11px;
  font-size: 1rem;
}
.lh-supply__row--total strong { color: var(--brand-deep); }
.lh-supply__err {
  margin-top: 10px; padding: 9px 12px; border-radius: 8px;
  background: rgba(239,68,68,.13); color: var(--down);
  font-size: .84rem; font-weight: 600;
}

.lh-bar {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  margin-top: 12px; background: var(--bg-card); gap: 1px;
}
.lh-bar__seg { background: var(--brand); min-width: 2px; transition: width .3s; }
.lh-bar__seg:nth-child(2n)  { background: var(--brand-deep); }
.lh-bar__seg:nth-child(3n)  { background: #1d9bf0; }
.lh-bar__seg:nth-child(4n)  { background: #7c5cff; }
.lh-bar__seg--free { background: var(--line) !important; }

.lh-allocs { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; }
.lh-alloc {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.lh-alloc:last-child { border-bottom: 0; }
.lh-alloc__label { flex: 1; min-width: 0; font-size: .9rem; }
.lh-alloc__input { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.lh-alloc__input .input { width: 160px; text-align: right; }
.lh-alloc__input .input.is-bad { border-color: var(--down); }
.lh-alloc__pct {
  width: 56px; text-align: right; font-size: .82rem;
  color: var(--ink-soft); font-family: var(--font-mono);
}
@media (max-width: 560px) {
  .lh-alloc { flex-direction: column; align-items: stretch; gap: 7px; }
  .lh-alloc__input .input { width: 100%; }
}

.lh-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  border-radius: 5px; font-size: .66rem; font-weight: 700;
  background: var(--bg-inset); color: var(--ink-soft);
}

.lh-invoice { margin-top: 14px; }
.lh-invoice__row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.lh-invoice__row--total {
  border-bottom: 0; border-top: 2px solid var(--line); margin-top: 4px;
  font-size: 1.1rem; font-weight: 700;
}

/* Project page */
.lh-phead { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.lh-phead__logo {
  width: 68px; height: 68px; flex-shrink: 0;
  border-radius: 16px; object-fit: cover; background: var(--bg-inset);
}
.lh-phead__logo--none {
  display: grid; place-items: center;
  font-weight: 800; font-family: var(--font-mono); color: var(--brand-deep);
}
.lh-phead__name { font-size: 1.6rem; font-weight: 800; margin: 0; }
.lh-sym {
  padding: 3px 9px; border-radius: 7px; font-size: .8rem; font-weight: 700;
  background: var(--bg-inset); color: var(--ink-soft);
}
.lh-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; }
.lh-links a { color: var(--brand-deep); text-decoration: none; }

.lh-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.lh-badge {
  padding: 6px 12px; border-radius: 18px; font-size: .78rem; font-weight: 600;
  background: var(--bg-inset); color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}
.lh-badge.is-on    { background: rgba(34,197,94,.13); color: var(--up); border-color: var(--up); }
.lh-badge--bad     { background: rgba(239,68,68,.13); color: var(--down); border-color: var(--down); }

.lh-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lh-table td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.lh-table td.num { text-align: right; white-space: nowrap; }
.lh-table__top td    { font-weight: 700; border-bottom: 2px solid var(--line); }
.lh-table__total td  { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }

.lh-timeline { display: flex; flex-direction: column; }
.lh-tl { display: flex; gap: 13px; padding: 11px 0; }
.lh-tl__dot {
  width: 9px; height: 9px; flex-shrink: 0; margin-top: 5px;
  border-radius: 50%; background: var(--brand);
}
.lh-tl.is-warn .lh-tl__dot { background: #f5b301; }

.lh-owneracts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px; margin-top: 12px;
}
.lh-act {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: 11px; text-decoration: none; color: inherit;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
}
.lh-act:hover { border-color: var(--brand); }

.lh-blockers { margin: 8px 0 0; padding-left: 20px; font-size: .86rem; line-height: 1.7; }
.lh-list { margin: 10px 0 0; padding-left: 20px; font-size: .9rem; line-height: 1.8; }

.lh-steps { display: flex; flex-direction: column; gap: 4px; }
.lh-step { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.lh-step:last-child { border-bottom: 0; }
.lh-step__n {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #001018; font-weight: 800; font-size: .84rem;
}
.lh-disclaimer {
  margin-top: 34px; padding: 20px;
  border: 1px dashed var(--line); border-radius: 12px;
}

/* ── Community header and search ─────────────────────────────────────────── */
.chdr { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.chdr__title { font-size: 1.5rem; font-weight: 800; margin: 0; flex-shrink: 0; }
.chdr__search {
  flex: 1; display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 22px; cursor: pointer;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: .87rem; font-family: inherit;
  text-align: left; transition: border-color .15s;
}
.chdr__search:hover { border-color: var(--brand); }
.chdr__search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.csearch {
  position: fixed; inset: 0; z-index: 750;
  background: rgba(4,10,18,.8);
  display: none; justify-content: center; align-items: flex-start;
  padding: 6vh 16px 16px;
}
.csearch.is-open { display: flex; }
.csearch__box {
  width: 100%; max-width: 620px; max-height: 82vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.csearch__bar {
  display: flex; align-items: center; gap: 11px; padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.csearch__icon { font-size: 1.05rem; }
.csearch__input {
  flex: 1; border: 0; background: none; outline: none;
  color: var(--ink); font-size: 1.02rem; font-family: inherit;
}
.csearch__x {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-soft); font-size: 1.05rem;
}
.csearch__tabs {
  display: flex; gap: 4px; padding: 10px 14px; overflow-x: auto;
  border-bottom: 1px solid var(--line-soft); scrollbar-width: none;
}
.csearch__tabs::-webkit-scrollbar { display: none; }
.csearch__tab {
  padding: 7px 13px; border-radius: 16px; white-space: nowrap; cursor: pointer;
  background: none; border: 1px solid var(--line-soft);
  color: var(--ink-soft); font-size: .8rem; font-weight: 600; font-family: inherit;
}
.csearch__tab.is-active { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }

.csearch__body { flex: 1; overflow-y: auto; padding: 8px 0 14px; }
.csearch__hint { padding: 30px 18px; text-align: center; color: var(--ink-soft); font-size: .88rem; }
.csearch__group {
  padding: 12px 18px 6px; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
}
.csearch__row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 18px; text-decoration: none; color: inherit;
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; text-align: left;
}
.csearch__row:hover { background: var(--bg-inset); }
.csearch__ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 50%; background: var(--bg-inset); font-size: .95rem;
}
.csearch__ic img { width: 100%; height: 100%; object-fit: cover; }
.csearch__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.csearch__txt strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csearch__sub { font-size: .78rem; color: var(--ink-soft);
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csearch__tick { color: #1d9bf0; }

/* ── Onboarding walkthrough ──────────────────────────────────────────────── */
.conboard {
  position: fixed; inset: 0; z-index: 780;
  background: rgba(4,10,18,.9);
  display: grid; place-items: center; padding: 18px; overflow-y: auto;
}
.conboard[hidden] { display: none; }
.conboard__box {
  width: 100%; max-width: 460px; padding: 28px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 18px;
}
.conboard__art { font-size: 3rem; text-align: center; margin-bottom: 10px; }
.conboard__box h2 { font-size: 1.4rem; margin: 0 0 8px; }
.conboard__box > .conboard__step > p { font-size: .93rem; line-height: 1.6; color: var(--ink-soft); }
.conboard__list { margin: 16px 0; padding-left: 20px; font-size: .9rem; line-height: 1.9; }

.conboard__av { display: flex; align-items: center; gap: 14px; margin: 16px 0 18px; }
.conboard__user { display: flex; align-items: center; gap: 7px; }
.conboard__user > span { font-size: 1.05rem; color: var(--ink-soft); }

.conboard__link { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.conboard__linkicon {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--bg-inset); font-size: .9rem;
}
.conboard__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.conboard__chip {
  padding: 9px 15px; border-radius: 20px; cursor: pointer;
  background: none; border: 1px solid var(--line-soft);
  color: var(--ink); font-size: .84rem; font-family: inherit;
  transition: all .15s;
}
.conboard__chip.is-on { background: #1d9bf0; border-color: #1d9bf0; color: #fff; }
.conboard__skip { display: block; margin: 14px auto 0; }

.conboard__dots { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.conboard__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background .2s;
}
.conboard__dot.is-on { background: var(--brand); }

@media (max-width: 480px) {
  .chdr__title { font-size: 1.25rem; }
  .chdr__search span { display: none; }
  .chdr__search { flex: 0 0 auto; padding: 10px; border-radius: 50%; }
  .conboard__box { padding: 22px 18px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH — code entry and authenticator setup

   This block was lost when an earlier edit cut CSS by line number. That is
   why the six code boxes stacked vertically instead of sitting in a row.
   ══════════════════════════════════════════════════════════════════════════ */
.step-head { text-align: center; margin-bottom: 22px; }
.step-head__icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 26px; border-radius: 50%;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
}
.step-head strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }

/* Six boxes across, always. A single grid row so they cannot wrap. */
.otp-row {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 4px;
  width: 100%;
}
.otp-box {
  width: 100%; min-width: 0;
  height: 58px; padding: 0;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--ink);
  background: var(--bg-inset);
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-box:focus {
  outline: none; border-color: var(--brand);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0,212,255,.14);
}
.otp-box.is-filled { border-color: var(--brand); }

.code-input {
  text-align: center; font-size: 1.4rem;
  letter-spacing: .5em; text-indent: .5em;
  font-family: var(--font-mono, monospace);
}

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand-deep); font-weight: 600;
  font-family: inherit; font-size: inherit;
}
.linklike:hover:not(:disabled) { text-decoration: underline; }
.linklike:disabled { color: var(--ink-soft); cursor: default; }

@media (max-width: 400px) {
  .otp-row { gap: 5px; }
  .otp-box { height: 50px; font-size: 1.25rem; border-radius: 8px; }
}

/* ── Authenticator setup ─────────────────────────────────────────────────── */
.auth-steps { counter-reset: astep; }
.auth-step {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.auth-step:last-child { border-bottom: 0; }
.auth-step__n {
  width: 30px; height: 30px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #001018;
  font-weight: 800; font-size: .85rem;
}
.auth-step__body { flex: 1; min-width: 0; }
.auth-step__body strong { display: block; margin-bottom: 4px; }

.auth-apps { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.auth-app {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: 12px; text-decoration: none;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
  color: inherit; transition: border-color .15s;
}
.auth-app:hover { border-color: var(--brand); }
.auth-app__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--bg-card); font-size: 1.3rem;
}
.auth-app__go { margin-left: auto; color: var(--ink-soft); font-size: 1.2rem; }

.auth-qr {
  display: grid; place-items: center; padding: 18px;
  background: #fff; border-radius: 14px; margin: 14px 0;
}
.auth-qr img { width: 190px; height: 190px; display: block; }

.auth-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: 11px;
  background: var(--bg-inset); border: 1px dashed var(--line);
  margin-top: 10px;
}
.auth-secret code {
  flex: 1; min-width: 0; font-size: .95rem; letter-spacing: .1em;
  word-break: break-all; font-family: var(--font-mono, monospace);
  color: var(--brand-deep);
}
.auth-secret button {
  flex-shrink: 0; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: #001018; border: 0;
  font-weight: 700; font-size: .8rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH STEPS — code entry and authenticator setup

   This block was deleted by accident when I removed the old feed styles by
   line number. That is why the six code boxes rendered stacked full-width
   instead of in a row: the class existed in the HTML with no rule behind it.
   ══════════════════════════════════════════════════════════════════════════ */
.step-head { text-align: center; margin-bottom: 22px; }
.step-head__icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 26px; border-radius: 50%;
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
}
.step-head strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }

/* Six boxes in a row. A typo is obvious at a glance, and it is what people
   expect a code to look like. */
.otp-row {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 6px 0 8px;
  width: 100%;
}
.otp-box {
  width: 100%;
  min-width: 0;              /* or a long grid child refuses to shrink */
  aspect-ratio: 1 / 1.2;
  padding: 0;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: var(--ink);
  background: var(--bg-inset);
  border: 1.5px solid var(--line-soft);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
  -moz-appearance: textfield;
}
.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-box:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-card);
}
.otp-box.is-filled { border-color: var(--brand); }

.code-input {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .5em;
  text-indent: .5em;
  font-family: var(--font-mono, monospace);
}

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brand-deep); font-weight: 600;
  font-family: inherit; font-size: inherit;
}
.linklike:hover:not(:disabled) { text-decoration: underline; }
.linklike:disabled { color: var(--ink-soft); cursor: default; }

/* ── Authenticator setup ─────────────────────────────────────────────────── */
.auth-steps { display: flex; flex-direction: column; gap: 2px; margin: 18px 0; }
.auth-step {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.auth-step:last-child { border-bottom: 0; }
.auth-step__n {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #001018;
  font-weight: 800; font-size: .8rem;
}
.auth-step__body { flex: 1; min-width: 0; }
.auth-step__body strong { display: block; margin-bottom: 4px; }

.auth-apps { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 11px; }
.auth-app {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-radius: 11px;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 600;
  transition: border-color .15s;
}
.auth-app:hover { border-color: var(--brand); }
.auth-app__icon { font-size: 1.2rem; }

.auth-qr {
  display: grid; place-items: center;
  padding: 18px; margin: 14px 0;
  background: #fff; border-radius: 14px;
}
.auth-qr img { display: block; width: 190px; height: 190px; }

.auth-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; margin-top: 10px;
  background: var(--bg-inset); border: 1px dashed var(--line);
  border-radius: 11px;
}
.auth-secret__key {
  flex: 1; min-width: 0;
  font-family: var(--font-mono, monospace);
  font-size: .95rem; font-weight: 700; letter-spacing: .08em;
  word-break: break-all; color: var(--brand-deep);
}
.auth-secret__copy {
  flex-shrink: 0; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: var(--brand); color: #001018; border: 0;
  font-weight: 700; font-size: .8rem; font-family: inherit;
}

@media (max-width: 380px) {
  .otp-row { gap: 5px; }
  .otp-box { font-size: 1.15rem; }
  .auth-qr img { width: 160px; height: 160px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   OVERFLOW GUARD

   A single unbroken string — a wallet address, a long URL, a base32 key —
   can widen the whole document and leave the page zoomed out on a phone with
   a horizontal scrollbar. These stop that at the root rather than needing a
   fix on every element that might one day contain one.
   ══════════════════════════════════════════════════════════════════════════ */
html, body { max-width: 100%; overflow-x: hidden; }

.cpost__body, .ccomment__text, .cart__excerpt,
.lh-ro strong, .auth-secret__key, .mono {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qr-loading, .qr-failed {
  padding: 22px 16px; text-align: center;
  font-size: .85rem; line-height: 1.55; color: var(--ink-soft);
}
.qr-failed { color: var(--down); }

/* Applicant-type field groups. Only the set matching the chosen type shows. */
.lh-typefields[hidden] { display: none; }
.lh-typefields .lh-note { margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   DIALOGS — replacing the browser's own
   ══════════════════════════════════════════════════════════════════════════ */
.zdlg {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4,10,18,.75);
  opacity: 0; transition: opacity .18s;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.zdlg.is-open { opacity: 1; }
.zdlg__box {
  width: 100%; max-width: 400px; padding: 26px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.5);
  transform: translateY(14px) scale(.97);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
  text-align: center;
}
.zdlg.is-open .zdlg__box { transform: none; }
.zdlg__box--danger { border-color: rgba(239,68,68,.4); }
.zdlg__icon  { font-size: 2.4rem; margin-bottom: 12px; }
.zdlg__title { font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; }
.zdlg__body  { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.zdlg__input {
  width: 100%; margin-top: 16px; padding: 13px 15px;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
  border-radius: 11px; color: var(--ink); font-size: .95rem; font-family: inherit;
}
.zdlg__input:focus { outline: none; border-color: var(--brand); }
.zdlg__input--tall { resize: vertical; min-height: 90px; }
.zdlg__acts { display: flex; gap: 9px; margin-top: 22px; }
.zdlg__btn {
  flex: 1; padding: 13px 18px; border-radius: 11px; cursor: pointer;
  background: none; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: .9rem; font-family: inherit;
  transition: background .15s, opacity .15s;
}
.zdlg__btn:hover { background: var(--bg-inset); }
.zdlg__btn--primary {
  background: var(--brand); border-color: var(--brand); color: #001018;
}
.zdlg__btn--primary:hover { opacity: .9; background: var(--brand); }
.zdlg__btn--danger {
  background: var(--down); border-color: var(--down); color: #fff;
}
.zdlg__btn--danger:hover { opacity: .9; background: var(--down); }
@media (max-width: 420px) {
  .zdlg__acts { flex-direction: column-reverse; }
  .zdlg__box  { padding: 22px 18px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LAUNCH HUB — wizard, picks, logo, dashboard
   ══════════════════════════════════════════════════════════════════════════ */
.lh-steptabs {
  display: flex; gap: 5px; margin-top: 10px;
  overflow-x: auto; scrollbar-width: none;
}
.lh-steptabs::-webkit-scrollbar { display: none; }
.lh-steptab {
  flex-shrink: 0; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: .78rem; font-weight: 700; text-decoration: none;
  background: var(--bg-inset); color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}
.lh-steptab.is-done   { background: rgba(34,197,94,.15); color: var(--up); border-color: var(--up); }
.lh-steptab.is-active { background: var(--brand); color: #001018; border-color: var(--brand); }

/* Radio-style choices */
.lh-choices { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.lh-choice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border-radius: 13px; cursor: pointer;
  background: var(--bg-inset); border: 1.5px solid var(--line-soft);
  transition: border-color .15s, background .15s;
}
.lh-choice:hover { border-color: var(--ink-soft); }
.lh-choice.is-on { border-color: var(--brand); background: rgba(0,209,255,.07); }
.lh-choice input { margin-top: 3px; flex-shrink: 0; }
.lh-choice > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* Network and venue pickers */
.lh-picks { display: flex; flex-direction: column; gap: 8px; }
.lh-pick {
  display: flex; gap: 13px; align-items: center;
  padding: 14px 16px; border-radius: 13px; cursor: pointer;
  background: var(--bg-inset); border: 1.5px solid var(--line-soft);
  transition: border-color .15s, background .15s;
}
.lh-pick:hover  { border-color: var(--ink-soft); }
.lh-pick.is-on  { border-color: var(--brand); background: rgba(0,209,255,.07); }
.lh-pick__box   { position: absolute; opacity: 0; pointer-events: none; }
.lh-pick__icon  { font-size: 1.35rem; flex-shrink: 0; }
.lh-pick__body  { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lh-pick__price {
  flex-shrink: 0; font-weight: 800; font-size: .88rem;
  font-family: var(--font-mono); color: var(--brand-deep);
}
.lh-pick__tick {
  flex-shrink: 0; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #001018; font-weight: 800; font-size: .78rem;
  opacity: 0; transform: scale(.6); transition: all .15s;
}
.lh-pick.is-on .lh-pick__tick { opacity: 1; transform: none; }

.lh-runningtotal {
  margin-top: 16px; padding: 15px 17px; border-radius: 12px;
  background: var(--bg-inset); border: 1px dashed var(--line);
  font-size: .92rem;
}
.lh-runningtotal strong { color: var(--brand-deep); }

/* Logo */
.lh-logo { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; }
.lh-logo__preview {
  width: 92px; height: 92px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 16px; background: var(--bg-inset);
  border: 1px dashed var(--line);
}
.lh-logo__preview img { width: 100%; height: 100%; object-fit: contain; }
.lh-logo__empty {
  font-size: .7rem; color: var(--ink-soft); text-align: center; padding: 6px;
}
.lh-logo__actions {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  gap: 9px; align-items: flex-start;
}
.lh-logo__actions .input { width: 100%; }
.field__hint.is-good { color: var(--up); }
.field__hint.is-bad  { color: var(--down); }

/* Invoice */
.lh-invoice__note {
  display: block; font-size: .78rem; color: var(--ink-soft);
  margin-top: 3px; line-height: 1.5; max-width: 42ch;
}
.lh-invoice__row--sub {
  border-bottom: 0; border-top: 1px solid var(--line-soft);
  margin-top: 4px; font-weight: 700;
}
.lh-balance {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 14px 16px; border-radius: 11px;
  background: var(--bg-inset); font-size: .92rem;
}
.lh-balance.is-short strong { color: var(--down); }
.lh-note--good {
  background: rgba(34,197,94,.09); border-left: 3px solid var(--up);
}

/* Dashboard */
.lh-count {
  display: inline-block; min-width: 19px; padding: 1px 6px;
  border-radius: 10px; font-size: .7rem; font-weight: 800; text-align: center;
  background: var(--bg-inset); color: var(--ink-soft);
}
.lh-count.is-unread { background: var(--down); color: #fff; }

.lh-mine {
  padding: 17px; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: 15px;
}
.lh-mine__head { display: flex; gap: 13px; align-items: flex-start; }
.lh-mine__logo {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px; object-fit: cover; background: var(--bg-inset);
}
.lh-mine__logo--none {
  display: grid; place-items: center;
  font-weight: 800; font-size: .78rem; font-family: var(--font-mono);
  color: var(--brand-deep);
}
.lh-mine__stats {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 13px;
  padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: .84rem;
}
.lh-mine__stats span { display: flex; flex-direction: column; gap: 1px; }

.lh-notice {
  padding: 15px 17px; margin-bottom: 10px;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line); border-radius: 0 13px 13px 0;
}
.lh-notice.is-unread     { background: rgba(0,209,255,.05); }
.lh-notice--good         { border-left-color: var(--up); }
.lh-notice--warn         { border-left-color: #f5b301; }
.lh-notice--bad          { border-left-color: var(--down); }
.lh-notice__head {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}
.lh-notice__proj { font-size: .8rem; color: var(--ink-soft); }

/* Dashboard: filter, wallet, price preview */
.lh-filter { margin: 16px 0 12px; }
.lh-filter .input { width: 100%; }

.lh-wallet { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.lh-wallet summary {
  cursor: pointer; font-size: .87rem; font-weight: 700;
  color: var(--brand-deep); list-style: none;
}
.lh-wallet summary::-webkit-details-marker { display: none; }
.lh-wallet summary::before { content: '▸ '; }
.lh-wallet[open] summary::before { content: '▾ '; }
.lh-wallet__body { padding-top: 10px; }

.lh-choice__icon { font-size: 1.4rem; flex-shrink: 0; }

.lh-price {
  margin-top: 16px; padding: 16px 18px; border-radius: 13px;
  background: var(--bg-inset); border: 1px solid var(--line-soft);
}
.lh-price__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; font-size: .9rem;
}
.lh-price__row--big {
  border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px;
  font-size: 1.05rem;
}
.lh-price__row--big strong { color: var(--brand-deep); }
.lh-price__cap {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: .82rem; color: var(--ink-soft);
}
.lh-when[hidden] { display: none; }

/* Google sign-in */
.btn--google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
}
.btn--google:hover { background: #f7f8f8; }
.lg-or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--ink-soft); font-size: .82rem;
}
.lg-or::before, .lg-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line-soft);
}

/* Adding and removing allocation rows */
.lh-addalloc { display: flex; gap: 9px; margin-top: 14px; align-items: center; }
.lh-addalloc .input { flex: 1; min-width: 0; }
.lh-alloc__x {
  flex-shrink: 0; width: 28px; height: 28px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: none; color: var(--ink-soft); font-size: .8rem;
}
.lh-alloc__x:hover { background: rgba(239,68,68,.15); color: var(--down); }

/* A pointer to the dashboard from the Launch Hub landing page */
.lh-mybar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 22px;
  background: var(--bg-card); border: 1px solid var(--brand);
  border-radius: 14px; text-decoration: none; color: inherit;
}
.lh-mybar:hover { background: var(--bg-inset); }
.lh-mybar__icon { font-size: 1.5rem; }
.lh-mybar strong { display: block; }
.lh-mybar__go { font-size: 1.4rem; color: var(--ink-soft); }
.lh-del:hover { border-color: var(--down); color: var(--down); }

/* ── Dashboard navigation ────────────────────────────────────────────────── */
.lh-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin: 18px 0 20px;
}
.lh-navcard {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 13px; border-radius: 13px;
  text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  transition: border-color .15s, transform .15s, background .15s;
}
.lh-navcard:hover { transform: translateY(-2px); border-color: var(--ink-soft); }
.lh-navcard__icon  { font-size: 1.05rem; opacity: .85; }
.lh-navcard__n     { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.lh-navcard__label { font-size: .76rem; color: var(--ink-soft); line-height: 1.3; }
.lh-navcard.is-empty .lh-navcard__n { color: var(--ink-soft); opacity: .45; }

.lh-navcard.is-active { background: var(--bg-inset); border-color: var(--brand); }
.lh-navcard--warn:not(.is-empty)  .lh-navcard__n { color: #f5b301; }
.lh-navcard--info:not(.is-empty)  .lh-navcard__n { color: #1d9bf0; }
.lh-navcard--good:not(.is-empty)  .lh-navcard__n { color: var(--up); }
.lh-navcard--bad:not(.is-empty)   .lh-navcard__n { color: var(--down); }
.lh-navcard--alert:not(.is-empty) .lh-navcard__n { color: var(--brand-deep); }

.lh-navcard__dot {
  position: absolute; top: 10px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--down);
  box-shadow: 0 0 0 3px var(--bg-card);
}
@media (max-width: 420px) {
  .lh-nav { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .lh-navcard { padding: 12px 10px; }
  .lh-navcard__n { font-size: 1.3rem; }
}
