/* ============================================================================
   PREDIKT — design system
   Dark monochrome + neon mint accent. Polymarket-inspired generic prediction market.
============================================================================ */

:root {
  /* Surface — deep grayscale stack */
  --bg:           #0B0E0F;
  --surface:      #13181A;
  --surface-2:   #181F22;
  --surface-3:   #1F262A;
  --border:       #232C30;
  --border-soft:  #1A2226;

  /* Text */
  --text:        #E6F4F1;
  --text-2:      #A8B5B5;
  --text-3:      #6F7E7E;
  --text-mute:   #4D5959;

  /* Accents */
  --yes:         #27D796;     /* mint  */
  --yes-soft:    rgba(39,215,150,.12);
  --yes-line:    rgba(39,215,150,.32);
  --no:          #FF4D6A;     /* coral */
  --no-soft:     rgba(255,77,106,.10);
  --no-line:     rgba(255,77,106,.32);

  --brand:       #7CFFA0;     /* neon mint highlight */
  --warn:        #FFB547;
  --info:        #4DA8FF;
  --purple:      #A78BFA;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Type */
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
            "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", "IBM Plex Mono", ui-monospace,
            Menlo, Consolas, monospace;

  /* Shadow */
  --shadow-1: 0 1px 0 rgba(255,255,255,.02), 0 6px 18px rgba(0,0,0,.32);
  --shadow-2: 0 12px 40px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "tnum";
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

img, svg { display: block; max-width: 100%; }

/* Numeric display */
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================================
   HEADER
============================================================================ */
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,15,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.app-header__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; letter-spacing: .11em;
  font-size: 17px;
}
.brand__mark {
  width: 31px; height: 31px;
  display: block; flex: 0 0 auto;
  background: url("assets/brand/predikt-mark-v3.svg") center / contain no-repeat;
  color: transparent; font-size: 0;
  filter: none;
}
.brand__name { font-family: var(--f-sans); line-height: 1; }
.brand__name strong { color: var(--brand); }

.search {
  position: relative; max-width: 520px; width: 100%;
  justify-self: stretch;
}
.search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--f-sans); font-size: 14px;
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 38px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--yes-line); background: var(--surface-2); }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}

.app-header__right {
  display: flex; align-items: center; gap: 8px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 13.5px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-mute); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn--mint {
  background: var(--brand); color: #0B0E0F; border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(124,255,160,.22), 0 6px 14px rgba(124,255,160,.16);
}
.btn--mint:hover { background: #92ffaf; border-color: #92ffaf; color: #0B0E0F; }
.btn--yes {
  background: var(--yes-soft); color: var(--yes); border-color: var(--yes-line);
  font-weight: 700;
}
.btn--yes:hover { background: rgba(39,215,150,.22); border-color: var(--yes); color: var(--yes); }
.btn--no {
  background: var(--no-soft); color: var(--no); border-color: var(--no-line);
  font-weight: 700;
}
.btn--no:hover { background: rgba(255,77,106,.18); border-color: var(--no); color: var(--no); }

/* ============================================================================
   LIVE TICKER (running marquee)
============================================================================ */
.ticker {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--surface), transparent); }

.ticker__track {
  display: inline-flex; align-items: center; gap: 38px;
  padding: 10px 28px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.ticker__sym {
  font-family: var(--f-mono); font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  padding: 3px 8px; border-radius: var(--r-xs);
  font-size: 11.5px; letter-spacing: .04em;
}
.ticker__lbl { color: var(--text-3); font-size: 12.5px; }
.ticker__val { font-family: var(--f-mono); color: var(--text); font-weight: 600; }
.ticker__chg { font-family: var(--f-mono); font-weight: 600; font-size: 12.5px; }
.ticker__chg.up   { color: var(--yes); }
.ticker__chg.down { color: var(--no); }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================================
   HERO STRIP — quick stats
============================================================================ */
.hero {
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(1200px 320px at 80% -120px, rgba(39,215,150,.10), transparent 60%),
    radial-gradient(900px 280px at 10% -80px, rgba(124,255,160,.06), transparent 60%),
    var(--bg);
}
.hero__inner {
  max-width: 1440px; margin: 0 auto;
  padding: 56px 28px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(180deg, var(--brand) 0%, var(--yes) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-2); font-size: 16px; max-width: 560px; margin: 0;
}
.hero__metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px 18px;
}
.metric__label {
  font-size: 11.5px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
  margin-bottom: 8px;
}
.metric__val {
  font-family: var(--f-mono); font-size: 26px;
  font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
.metric__sub {
  margin-top: 6px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--yes);
}

/* ============================================================================
   TOPIC ICON ROW
============================================================================ */
.topics {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}
.topics__scroll {
  max-width: 1440px; margin: 0 auto;
  display: flex; gap: 10px;
  padding: 18px 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topics__scroll::-webkit-scrollbar { display: none; }
.topic {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px 8px 12px;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.topic:hover { background: var(--surface-2); border-color: var(--text-mute); }
.topic.is-active {
  background: var(--yes-soft);
  border-color: var(--yes-line);
  color: var(--yes);
}
.topic__icon {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: currentColor;
}
.topic__icon svg { width: 18px; height: 18px; }
.topic__count {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-3);
  background: var(--surface-3);
  padding: 1px 6px; border-radius: var(--r-xs);
}
.topic.is-active .topic__count { background: rgba(39,215,150,.20); color: var(--yes); }

/* ============================================================================
   FILTER BAR
============================================================================ */
.filterbar {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 12px;
}
.filterbar__title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0;
}
.chips {
  display: inline-flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600;
  transition: all .15s;
}
.chip:hover { border-color: var(--text-mute); color: var(--text); }
.chip.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================================================
   MARKET GRID
============================================================================ */
.grid-wrap {
  max-width: 1440px; margin: 0 auto;
  padding: 8px 28px 64px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color .15s, transform .15s, background .15s;
  position: relative;
}
.card:hover {
  border-color: var(--text-mute);
  background: #161D1F;
  transform: translateY(-1px);
}
.card__head {
  display: flex; gap: 12px; align-items: flex-start;
}
.card__avatar {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--text-2);
}
.card__avatar svg {
  width: 22px; height: 22px;
}
.card__head-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.card__q {
  font-size: 15.5px; line-height: 1.4;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}
.card__hot {
  align-self: flex-start;
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em;
  color: var(--warn);
  background: rgba(255,181,71,.10);
  border: 1px solid rgba(255,181,71,.28);
  padding: 2px 8px; border-radius: var(--r-xs);
  display: inline-flex; align-items: center; gap: 4px;
  line-height: 1.4;
}

/* Yes/No bar */
.bar {
  height: 8px;
  background: var(--no-soft);
  border-radius: var(--r-pill);
  position: relative;
  overflow: hidden;
}
.bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--yes) 0%, var(--brand) 100%);
  border-radius: var(--r-pill);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.card__pct {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 13px;
  color: var(--text-2);
}
.card__pct strong {
  font-size: 26px; color: var(--text);
  font-weight: 700; letter-spacing: -0.02em;
}
.card__pct .yes-pct { color: var(--yes); }

.card__actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.card__actions .btn { padding: 9px 12px; font-size: 13px; }

.card__foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-soft); padding-top: 12px;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--text-3); letter-spacing: 0;
}
.card__foot .vol { color: var(--text-2); }

/* multi-outcome list */
.mlist {
  display: flex; flex-direction: column; gap: 8px;
}
.mlist__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px; align-items: center;
}
.mlist__name {
  font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mlist__bar {
  width: 70px; height: 4px;
  background: var(--surface-3);
  border-radius: var(--r-pill); overflow: hidden;
}
.mlist__fill {
  height: 100%; background: var(--yes); border-radius: var(--r-pill);
}
.mlist__pct {
  font-family: var(--f-mono); font-size: 12px; color: var(--yes);
  width: 38px; text-align: right;
}
.mlist__yes {
  background: var(--yes-soft); color: var(--yes);
  border: 1px solid var(--yes-line);
  border-radius: var(--r-xs);
  padding: 3px 8px; font-size: 11px; font-weight: 700;
}

/* ============================================================================
   SECTION HEADERS
============================================================================ */
.section-head {
  max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: end;
  padding: 36px 28px 12px;
}
.section-head h2 {
  font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -0.01em;
}
.section-head a { color: var(--text-3); font-size: 13px; }
.section-head a:hover { color: var(--text); }

/* ============================================================================
   FOOTER
============================================================================ */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 48px 28px 36px;
}
.footer__inner {
  max-width: 1440px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p {
  color: var(--text-3); font-size: 13px; max-width: 320px; margin-top: 12px;
}
.footer__col h4 {
  font-size: 11.5px; color: var(--text-3); margin: 0 0 12px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: var(--text-2); font-size: 13.5px; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  max-width: 1440px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-soft); padding-top: 16px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--text-3);
}

/* ============================================================================
   MARKET DETAIL PAGE
============================================================================ */
.detail {
  max-width: 1280px; margin: 0 auto;
  padding: 36px 28px 64px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}
.crumb {
  font-family: var(--f-mono); font-size: 12px; color: var(--text-3);
  margin-bottom: 14px;
}
.crumb a:hover { color: var(--text); }
.crumb .sep { margin: 0 8px; color: var(--text-mute); }

.detail__head {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  margin-bottom: 28px;
}
.detail__avatar {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--text);
}
.detail__avatar svg { width: 28px; height: 28px; }
.detail h1 {
  font-size: 26px; font-weight: 700; margin: 0;
  letter-spacing: -0.015em; line-height: 1.2;
}
.detail__meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 10px;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--text-3);
}
.detail__meta .sep { color: var(--text-mute); }
.detail__meta b { color: var(--text-2); font-weight: 600; }

/* Probability block */
.prob {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 16px;
}
.prob__top {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 14px;
}
.prob__big {
  font-family: var(--f-mono); font-size: 56px; font-weight: 700;
  color: var(--yes); letter-spacing: -0.02em; line-height: 1;
}
.prob__big small { font-size: 22px; color: var(--text-2); margin-left: 2px; }
.prob__delta {
  font-family: var(--f-mono); font-size: 13px;
  color: var(--yes);
}
.prob__delta.down { color: var(--no); }

/* Chart */
.chartbox {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px 18px 14px;
  margin-bottom: 16px;
}
.chartbox__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.chartbox__head h3 { font-size: 13px; font-weight: 600; margin: 0; color: var(--text-2); letter-spacing: .04em; text-transform: uppercase; }
.chartbox__range {
  display: inline-flex; gap: 4px; background: var(--surface-2);
  border-radius: var(--r-sm); padding: 3px;
}
.chartbox__range button {
  background: transparent; color: var(--text-3);
  border: none; padding: 5px 10px; font-size: 12px; font-family: var(--f-mono);
  border-radius: var(--r-xs);
}
.chartbox__range button.is-active { background: var(--surface-3); color: var(--text); }
.chartbox canvas { width: 100% !important; height: 280px !important; }

/* Tabs */
.tabs {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
}
.tabs__nav button {
  background: transparent; color: var(--text-3);
  border: none; padding: 14px 18px;
  font-size: 13px; font-weight: 600;
  position: relative;
}
.tabs__nav button.is-active { color: var(--text); }
.tabs__nav button.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--brand);
  border-radius: 2px 2px 0 0;
}
.tabs__body { padding: 16px 18px; min-height: 220px; }

.orderbook {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ob-side h4 {
  font-size: 11px; color: var(--text-3); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.ob-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; padding: 6px 0;
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
}
.ob-row .px.yes { color: var(--yes); }
.ob-row .px.no  { color: var(--no);  }
.ob-row .qty { color: var(--text-3); text-align: right; }
.ob-row .tot { color: var(--text-3); text-align: right; }

.activity {
  display: flex; flex-direction: column; gap: 10px;
}
.act {
  display: grid; grid-template-columns: 24px 1fr auto;
  gap: 10px; align-items: center;
  font-size: 13px;
}
.act__dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center; font-size: 11px; color: var(--text);
  font-family: var(--f-mono); font-weight: 700;
}
.act__time {
  font-family: var(--f-mono); font-size: 11px; color: var(--text-3);
}

/* Trade panel */
.trade {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 20px;
  position: sticky; top: 80px;
}
.trade__tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-radius: var(--r-sm); padding: 4px; gap: 4px;
  margin-bottom: 18px;
}
.trade__tabs button {
  background: transparent; color: var(--text-3);
  border: none; padding: 9px; font-weight: 700; font-size: 13px;
  border-radius: var(--r-xs);
}
.trade__tabs button.is-active.yes { background: var(--yes-soft); color: var(--yes); }
.trade__tabs button.is-active.no  { background: var(--no-soft);  color: var(--no);  }

.trade__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.trade__row label { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.trade__field {
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  gap: 8px;
  margin-top: 6px;
}
.trade__field input {
  background: transparent; border: none; color: var(--text);
  font-family: var(--f-mono); font-size: 18px; font-weight: 700;
  width: 100%; outline: none; padding: 0;
}
.trade__field span { font-family: var(--f-mono); font-size: 12px; color: var(--text-3); }

.trade__quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 18px;
}
.trade__quick button {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--f-mono); font-size: 12px;
  padding: 7px 0; border-radius: var(--r-xs);
}
.trade__quick button:hover { color: var(--text); border-color: var(--text-mute); }

.trade__summary {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px;
  font-family: var(--f-mono); font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 18px;
  padding-top: 12px; border-top: 1px solid var(--border-soft);
}
.trade__summary span:nth-child(odd) { color: var(--text-3); }
.trade__cta { width: 100%; padding: 14px; font-size: 14px; font-weight: 700; }

/* Related */
.related {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 18px;
  margin-top: 16px;
}
.related h3 { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; font-weight: 600; }
.related__row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
}
.related__row:first-of-type { border-top: 0; }
.related__q { font-size: 13px; color: var(--text); }
.related__pct { font-family: var(--f-mono); color: var(--yes); font-weight: 700; font-size: 13px; }

/* ============================================================================
   MARKETS BROWSE PAGE
============================================================================ */
.browse {
  max-width: 1440px; margin: 0 auto;
  padding: 28px 28px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.sidebar h4 {
  font-size: 11px; color: var(--text-3); margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}
.sidebar__list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px;
  transition: background .15s, color .15s;
}
.sidebar__list a:hover { background: var(--surface); color: var(--text); }
.sidebar__list a.is-active {
  background: var(--surface);
  color: var(--text);
  border-left: 2px solid var(--brand);
  padding-left: 8px;
}
.sidebar__list a span { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.side-row { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-sans); color: inherit; font-size: 13.5px; }
.side-row__ic { display: inline-flex; width: 16px; height: 16px; }
.side-row__ic svg { width: 16px; height: 16px; }

.browse__main h1 {
  font-size: 30px; margin: 0 0 6px; letter-spacing: -0.02em;
}
.browse__main p { color: var(--text-3); margin: 0 0 24px; font-size: 14px; }

/* ============================================================================
   MOBILE
============================================================================ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding: 36px 24px 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .trade { position: static; }
  .browse { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 720px) {
  .app-header__inner { grid-template-columns: auto 1fr; padding: 12px 16px; gap: 12px; }
  .search { display: none; }
  .grid { grid-template-columns: 1fr; }
  .grid-wrap { padding: 8px 16px 48px; }
  .hero__inner { padding: 28px 16px 22px; }
  .hero__metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topics__scroll { padding: 14px 16px; }
  .filterbar { flex-direction: column; align-items: flex-start; padding: 20px 16px 8px; }
  .footer { padding: 32px 16px 24px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .detail { padding: 24px 16px 48px; }
  .detail h1 { font-size: 22px; }
  .prob__big { font-size: 44px; }
  .browse { padding: 20px 16px 48px; }
}
