/* VANTU · product pages design system
   Ported from the landing: black ground, cream ink, Instrument Serif display,
   Almarai body, warm grade-* accents. */

:root {
  --ink-0: #f2f0e4;
  --ink-1: #dedbc8;
  --ink-2: rgba(225, 224, 204, 0.72);
  --ink-3: rgba(225, 224, 204, 0.45);
  --ink-4: rgba(225, 224, 204, 0.26);

  --bg-0: #000;
  --bg-1: #0d0d0c;
  --bg-2: #151515;
  --bg-3: #1c1b19;

  --line-1: rgba(225, 224, 204, 0.1);
  --line-2: rgba(225, 224, 204, 0.18);

  --sand: #cda378;
  --copper: #b77f4f;
  --rust: #9b6035;
  --olive: #8d6a31;
  --burn: #8a3a00;

  --up: #86b17a;
  --down: #c0674f;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shell: 1320px;
  --nav-h: 58px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: Almarai, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain, straight from the landing's mood */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

::selection {
  background: var(--sand);
  color: #12100c;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ── Shell ─────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Top navigation ────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--ink-0);
}

.brand em {
  font-style: normal;
  font-family: Almarai, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--ink-0);
  background: rgba(225, 224, 204, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--ink-0);
  background: rgba(225, 224, 204, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}

.chain-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-1);
  color: #000;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.25s, gap 0.25s;
}

.btn:hover {
  opacity: 0.88;
  gap: 11px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-1);
  font-weight: 400;
}

.btn-ghost:hover {
  background: rgba(225, 224, 204, 0.06);
  opacity: 1;
}

/* ── Page head ─────────────────────────────────────────── */

.page-head {
  padding: 54px 0 30px;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.page-head h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  color: var(--ink-0);
}

.page-head .lede {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ── Stat strip ────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 30px 0;
  background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat {
  padding: 18px 20px;
  background: var(--bg-1);
}

.stat dt {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat dd {
  margin: 7px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink-0);
}

.stat small {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ── Panels ────────────────────────────────────────────── */

.panel {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-1);
}

.panel-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  color: var(--ink-0);
}

.panel-body {
  padding: 20px;
}

/* ── Filters ───────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--line-2);
  color: var(--ink-0);
}

.chip[aria-pressed="true"] {
  background: var(--ink-1);
  border-color: var(--ink-1);
  color: #000;
}

.search {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 8px 14px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-0);
  font-family: inherit;
  font-size: 13px;
}

.search::placeholder {
  color: var(--ink-4);
}

.search:focus {
  outline: none;
  border-color: var(--sand);
}

/* ── Tables ────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  /* .table-wrap is a scroll container (overflow-x: auto), so a sticky th resolves
     against it, not the page. top:0 keeps the header at the table top instead of
     being pushed down by the nav offset and overlapping the first row. */
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 11px 12px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-1);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  white-space: nowrap;
}

table.data th.sortable {
  cursor: pointer;
  user-select: none;
}

table.data th.sortable:hover {
  color: var(--ink-0);
}

table.data th[aria-sort]:not([aria-sort="none"]) {
  color: var(--sand);
}

table.data th.r,
table.data td.r {
  text-align: right;
}

table.data td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(225, 224, 204, 0.055);
  color: var(--ink-2);
  vertical-align: middle;
}

table.data tbody tr:hover td {
  background: rgba(225, 224, 204, 0.035);
}

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

.mono-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: var(--bg-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sand);
}

/* Real company marks. Most are dark glyphs drawn for white paper, so they sit on a
   cream chip rather than straight on the black ground. .mono-mark stays the
   fallback for anything with no pinned logo, coins included. */
.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 8px;
  background: #ece9dc;
  box-shadow: 0 0 0 1px var(--line-1);
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tick b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-0);
}

.tick span {
  display: block;
  line-height: 1.3;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--ink-3);
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line-1);
  border-radius: 5px;
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.tag.pair {
  border-color: rgba(205, 163, 120, 0.4);
  color: var(--sand);
}

.tag.live {
  border-color: rgba(134, 177, 122, 0.4);
  color: var(--up);
}

.tag.soon {
  border-color: rgba(225, 224, 204, 0.18);
  color: var(--ink-3);
}

/* ── Cards ─────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  color: var(--ink-0);
}

.card p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.legs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 0 0;
}

.leg {
  display: grid;
  grid-template-columns: 18px 58px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

/* Small mark in a basket leg. Coins have no pinned logo, so the empty variant
   holds the column and the row still lines up. */
.leg-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #ece9dc;
  object-fit: contain;
  padding: 1.5px;
}

.leg-mark-empty {
  background: rgba(225, 224, 204, 0.08);
}

.leg b {
  font-weight: 700;
  color: var(--ink-0);
}

.leg .bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(225, 224, 204, 0.09);
  overflow: hidden;
}

.leg .bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper), var(--sand));
}

.leg .pc {
  text-align: right;
  color: var(--ink-2);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.card-foot .val {
  margin-right: auto;
}

.card-foot .val span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card-foot .val b {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-0);
}

.note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--rust);
  background: rgba(155, 96, 53, 0.07);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ── Prose (docs) ──────────────────────────────────────── */

.prose {
  max-width: 74ch;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.prose h2 {
  margin: 52px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-1);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  color: var(--ink-0);
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-0);
}

.prose p {
  margin: 0 0 15px;
}

.prose ul {
  margin: 0 0 15px;
  padding-left: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink-0);
  font-weight: 700;
}

.prose code,
code.addr {
  padding: 1px 6px;
  border: 1px solid var(--line-1);
  border-radius: 5px;
  background: var(--bg-2);
  font-family: "Courier New", monospace;
  font-size: 11.5px;
  color: var(--sand);
  word-break: break-all;
}

.prose pre {
  margin: 0 0 15px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-1);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* Definition rows shared by docs parameter blocks */
.rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 0 0 20px;
}

.row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(110px, auto) minmax(180px, 1.6fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-1);
  font-size: 13px;
}

.row:last-child {
  border-bottom: 0;
}

.row dt {
  color: var(--ink-0);
  font-weight: 700;
}

.row .v {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px;
  color: var(--sand);
  white-space: nowrap;
}

.row dd {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

/* Table of contents rail */
.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1000px) {
  .docs-layout {
    grid-template-columns: 210px 1fr;
  }
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
  display: none;
  font-size: 12.5px;
}

@media (min-width: 1000px) {
  .toc {
    display: block;
  }
}

.toc p {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line-1);
  color: var(--ink-3);
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover,
.toc a.on {
  color: var(--ink-0);
  border-left-color: var(--sand);
}

/* ── Footer ────────────────────────────────────────────── */

.foot {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 46px 0 34px;
  border-top: 1px solid var(--line-1);
}

.foot-in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 16px;
}

.foot h4 {
  margin-bottom: 12px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.foot a {
  display: block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.foot a:hover {
  color: var(--ink-0);
}

.foot-note {
  max-width: var(--shell);
  margin: 34px auto 0;
  padding: 18px 16px 0;
  border-top: 1px solid var(--line-1);
  font-size: 11.5px;
  color: var(--ink-4);
}

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
}

/* Under ~860px the brand plus the Launch button eat the whole bar, so the links
   drop to their own full-width row instead of being scrolled out of sight. */
@media (max-width: 860px) {
  .brand em {
    display: none;
  }
  .nav-in {
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
  }
  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .page-head {
    padding: 34px 0 22px;
  }
  .stat dd {
    font-size: 25px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ── Coin cards (explore) ──────────────────────────────
   Same anatomy as the donor's: mark + identity + watchlist star, a stacked weight
   bar over the leg chips, a three-up metric row, the pair line and curve progress. */

:root {
  /* Categorical slots for basket legs. Muted enough to sit on black together. */
  --c1: #cda378;
  --c2: #7fa8c9;
  --c3: #8fb87a;
  --c4: #c98a6b;
  --c5: #a892c4;
  --c6: #d4b95e;
  --c7: #6fb3a8;
  --c8: #c47b8f;
}

.coin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.coin-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

/* Whole card is one link; the star sits above it. */
.coin-hit {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.coin-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 16px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-1);
}

.coin-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 13px;
  background: #ece9dc;
  box-shadow: 0 0 0 1px var(--line-1);
  overflow: hidden;
  font-family: Almarai, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #8a6a45;
}

.coin-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.coin-id {
  min-width: 0;
  flex: 1;
}

.coin-id h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Almarai, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}

.coin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.1);
  font-size: 10px;
  color: var(--ink-2);
  white-space: nowrap;
}

.pill-grad {
  background: rgba(134, 177, 122, 0.16);
  color: var(--up);
}

.star {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: -2px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-4);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.star:hover {
  background: rgba(225, 224, 204, 0.08);
  color: var(--ink-1);
}

.star[aria-pressed="true"] {
  color: var(--sand);
}

.star svg {
  width: 14px;
  height: 14px;
}

.coin-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px 16px 16px;
}

/* Stacked weight bar */
.wbar {
  display: flex;
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.09);
  overflow: hidden;
}

.wbar span {
  height: 100%;
}

.wlegs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--ink-3);
}

.wleg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.wleg b {
  font-weight: 400;
  color: var(--ink-2);
}

.wleg-mark {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 5px;
  background: #ece9dc;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  color: #8a6a45;
}

.wleg-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

/* Three-up metric row */
.coin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.coin-stats > div:nth-child(2) {
  text-align: center;
}

.coin-stats > div:nth-child(3) {
  text-align: right;
}

.coin-stats dt {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.coin-stats dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-0);
}

.coin-stats dd.muted {
  font-weight: 400;
  color: var(--ink-3);
}

.coin-stats dd.up {
  color: var(--up);
}

.coin-stats dd.down {
  color: var(--down);
}

.coin-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.coin-pair b {
  font-weight: 400;
  color: var(--ink-2);
}

.eth-mark {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 4px;
  vertical-align: -4px;
  border-radius: 5px;
  background: rgba(225, 224, 204, 0.09);
  box-shadow: 0 0 0 1px var(--line-1);
}

.coin-prog {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.coin-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}

.coin-prog-top b {
  font-weight: 700;
  color: var(--ink-1);
}

.pbar {
  height: 5px;
  width: 100%;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.09);
  overflow: hidden;
}

.pbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink-1);
}

/* ── Coin page ─────────────────────────────────────────── */

.coin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 0 24px;
}

.coin-hero .coin-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  font-size: 20px;
}

.coin-hero-id {
  min-width: 0;
  flex: 1 1 260px;
}

.coin-hero-id h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  color: var(--ink-0);
}

.coin-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.coin-price {
  flex: 0 0 auto;
  text-align: right;
}

.coin-price b {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-0);
}

.coin-price span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.coin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1000px) {
  .coin-grid {
    grid-template-columns: 1.45fr 1fr;
  }
}

/* Compact label/value rows used across the coin panels */
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(225, 224, 204, 0.055);
  font-size: 13px;
}

.kv:last-child {
  border-bottom: 0;
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink-0);
  text-align: right;
}

.kv dd small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-4);
}

.coin-quad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line-1);
  border-bottom: 1px solid var(--line-1);
}

.coin-quad > div {
  padding: 14px 16px;
  background: var(--bg-1);
}

.coin-quad dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.coin-quad dd {
  margin: 6px 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  color: var(--ink-0);
}

.coin-quad dd small {
  display: block;
  margin-top: 3px;
  font-family: Almarai, sans-serif;
  font-size: 11px;
  color: var(--ink-4);
}

.grad-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(225, 224, 204, 0.09);
  overflow: hidden;
  margin: 4px 0 10px;
}

.grad-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--sand));
}

.side-buy {
  color: var(--up);
}

.side-sell {
  color: var(--down);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--ink-0);
}

/* X profile link, in the top bar and in the footer's brand block */
.x-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid var(--line-1);
  border-radius: 50%;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.x-icon:hover {
  color: var(--ink-0);
  border-color: var(--line-2);
  background: rgba(225, 224, 204, 0.06);
}

.x-icon svg {
  width: 13px;
  height: 13px;
}

/* Live contract chip in the top bar; click copies the full address */
.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(205, 163, 120, 0.42);
  border-radius: 999px;
  background: rgba(205, 163, 120, 0.08);
  color: var(--sand);
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.ca-chip:hover {
  background: rgba(205, 163, 120, 0.16);
  border-color: var(--sand);
}

.ca-chip span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.ca-chip b {
  font-weight: 700;
}

@media (max-width: 860px) {
  .ca-chip {
    display: none;
  }
}

/* Brand mark next to the wordmark */
.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

.foot .brand-mark {
  width: 24px;
  height: 24px;
}

/* Status line under the live launch button */
.launch-status {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.launch-status.ok {
  color: var(--up);
}

.launch-status.err {
  color: var(--down);
}

.launch-status a {
  color: var(--sand);
  text-decoration: underline;
}

.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
