/* ============================================================
   CoinDaily - Australian Crypto Data Terminal
   v1 design system. Institutional, terminal-grade, restrained.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600&family=IBM+Plex+Sans:wght@500;600;700&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  /* Surfaces - neutral near-black, no blue cast */
  --bg:        #0A0A0B;
  --bg-2:      #0D0D0F;
  --panel:     #111113;
  --panel-2:   #161618;
  --elevated:  #1B1C1F;
  --hairline:  rgba(255,255,255,0.065);
  --hairline-2:rgba(255,255,255,0.035);

  /* Text - dimmed, lower contrast */
  --tx-hi:  #CBCFD4;
  --tx:     #9AA0A8;
  --tx-mid: #6E747D;
  --tx-dim: #4E545D;
  --tx-faint:#363A41;

  /* Accent - institutional amber (the terminal signature) */
  --amber:    #C99A4B;
  --amber-hi: #D9AC5E;
  --amber-dim:#7A5E2E;

  /* Semantic - muted, not neon */
  --up:    #4F9E7C;
  --down:  #BE5E6C;
  --up-bg:  rgba(79,158,124,0.12);
  --down-bg:rgba(190,94,108,0.12);
  --info:  #5B7DA8;

  --r-sm: 3px;
  --r:    4px;
  --r-lg: 5px;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; position: relative; }

.up   { color: var(--up); }
.down { color: var(--down); }
.muted{ color: var(--tx-mid); }

/* ---------- Utility bar ---------- */
.util {
  border-bottom: 1px solid var(--hairline-2);
  background: var(--bg-2);
  font-size: 11px;
  color: var(--tx-mid);
}
.util .wrap { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.util-left { display: flex; align-items: center; gap: 18px; }
.util-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--up); display: inline-block; }
.util-right { display: flex; align-items: center; gap: 16px; }
.util a:hover { color: var(--tx-hi); }

.ccy-toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.ccy-toggle button { padding: 2px 9px; font-family: var(--mono); font-size: 10.5px; color: var(--tx-dim); transition: .12s; }
.ccy-toggle button.active { background: var(--amber); color: #100B02; font-weight: 600; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Header / nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 0; color: #E8EAEE; }   /* Lockup A: tokens mark + Space Grotesk lowercase */
.brand-mark { display: block; width: 21px; height: 21px; margin-left: -2.4px; margin-right: 2.6px; }   /* margins crop the mark's internal padding -> 5px (0.27em) optical gap */
.brand-name { font-family: "Space Grotesk", var(--sans); }
.brand-name { font-weight: 500; font-size: 18.5px; color: #E8EAEE; letter-spacing: -0.025em; text-transform: lowercase; }
.brand-name .au { color: var(--amber); }
.brand-tag { font-family: var(--mono); font-size: 9px; color: var(--tx-dim); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 2px; }

nav.main { display: flex; align-items: center; gap: 2px; }
nav.main a {
  padding: 7px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--tx-mid);
  font-weight: 500; transition: .12s;
}
nav.main a:hover { color: var(--tx-hi); }
nav.main a .tag { font-size: 8px; color: var(--amber); vertical-align: super; margin-left: 2px; }

/* nav dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item > a .caret { width: 7px; height: 7px; stroke: currentColor; fill: none; stroke-width: 2; opacity: .6; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 6px; margin-top: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .14s; z-index: 60;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown .dh { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); padding: 7px 11px 5px; }
.dropdown a { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 6px; font-size: 13px; color: var(--tx-mid); font-weight: 500; }
.dropdown a:hover { background: var(--panel-2); color: var(--tx-hi); }
.dropdown a img { width: 17px; height: 17px; border-radius: 50%; object-fit: cover; }
.dropdown a .dd-ic { width: 17px; height: 17px; display: grid; place-items: center; color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 9px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px;
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r);
  color: var(--tx-dim); font-size: 12px; min-width: 200px; transition: .12s;
}
.search:hover { border-color: rgba(255,255,255,0.12); }
.search kbd {
  margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--tx-dim);
  border: 1px solid var(--hairline); border-radius: 3px; padding: 0 5px;
}
.btn {
  height: 32px; padding: 0 14px; border-radius: var(--r); font-weight: 600; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 6px; transition: .12s; white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #100B02; }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { border: 1px solid var(--hairline); color: var(--tx); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.18); background: var(--panel-2); }

/* ---------- Ticker strip ---------- */
.ticker {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-2);
  overflow: hidden; position: relative; height: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}
.ticker-track { display: flex; align-items: center; height: 100%; width: max-content; animation: scroll 90s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk {
  display: flex; align-items: center; gap: 7px; padding: 0 17px; height: 100%;
  white-space: nowrap; position: relative;
}
a.tk { text-decoration: none; color: inherit; transition: background .14s; }
a.tk:hover { background: rgba(255,255,255,.04); }
a.tk:hover .tk-sym { color: var(--tx-hi); }
.tk + .tk::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 10px; background: var(--hairline);
}
.tk-sym { font-weight: 600; font-size: 11px; color: var(--tx-mid); letter-spacing: .02em; }
.tk-px  { font-family: var(--mono); font-size: 11.5px; color: var(--tx-hi); font-weight: 500; }
.tk-ch  { font-family: var(--mono); font-size: 10.5px; font-weight: 500; opacity: .9; }
.tk-ch.up { color: #5f9277; }
.tk-ch.down { color: #ad6670; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- shared asset toggle (below H1) ---------- */
.asset-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 16px 0 2px; }
.asset-tabs a { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 7px; font-size: 13px; color: var(--tx-mid); font-weight: 500; border: 1px solid transparent; transition: .12s; }
.asset-tabs a:hover { color: var(--tx-hi); background: var(--panel-2); }
.asset-tabs a.active { color: var(--amber); border-color: rgba(201,154,75,.3); background: rgba(201,154,75,.06); }
.asset-tabs a img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; background: #16171b; }

/* ---------- Hero ---------- */
.hero { padding: 50px 0 36px; position: relative; border-bottom: 1px solid var(--hairline-2); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: 10.5px; color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase;
  padding-left: 11px; border-left: 2px solid var(--amber-dim); margin-bottom: 22px;
}
.hero h1 {
  font-size: 44px; line-height: 1.06; letter-spacing: -0.025em; color: var(--tx-hi);
  font-weight: 600; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--amber); }
.hero p.lede { font-size: 15.5px; line-height: 1.6; color: var(--tx-mid); max-width: 510px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 10px; margin-bottom: 30px; }
.hero-cta .btn { height: 40px; padding: 0 18px; font-size: 13.5px; }
.hero-stats { display: flex; gap: 24px; padding-top: 20px; border-top: 1px solid var(--hairline-2); }
.hero-stat .v { font-family: var(--mono); font-size: 15px; color: var(--tx-hi); font-weight: 500; letter-spacing: -0.01em; }
.hero-stat .l { font-size: 9.5px; color: var(--tx-dim); margin-top: 3px; text-transform: uppercase; letter-spacing: .07em; }

/* Hero market snapshot - clean institutional data box */
.snapshot {
  background: var(--panel);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden;
}
.snapshot-head { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--hairline); }
.snapshot-title { font-size: 11px; font-weight: 600; color: var(--tx-hi); text-transform: uppercase; letter-spacing: .12em; }
.snapshot-head .badge-live { border: none; padding: 0; }
.go-key {
  margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 13px;
  background: var(--amber); color: #100B02; font-family: var(--mono); font-weight: 700;
  font-size: 11px; letter-spacing: .14em; border-radius: var(--r-sm); transition: .12s;
}
.go-key:hover { background: var(--amber-hi); }
.snapshot-row {
  display: grid; grid-template-columns: 1fr auto auto 12px; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--hairline-2); font-size: 13px;
  color: inherit; text-decoration: none; transition: background .12s;
}
.snapshot-row:last-child { border-bottom: none; }
.snapshot-row:hover { background: rgba(255,255,255,0.03); }
.snapshot-row:hover .lab b { color: var(--amber); }
.snapshot-row:hover .snap-arrow { opacity: 1; color: var(--amber); transform: translateX(2px); }
.snapshot-row:hover .lab { color: var(--tx-hi); }
.snapshot-row .lab { color: var(--tx); font-weight: 500; transition: color .12s; }
.snapshot-row .lab b { color: var(--tx-hi); font-weight: 600; transition: color .12s; }
.snapshot-row .val { font-family: var(--mono); font-size: 13.5px; color: var(--tx-hi); text-align: right; letter-spacing: -0.01em; padding: 2px 6px; border-radius: 5px; }
.snapshot-row .chg { text-align: right; min-width: 80px; }
.snapshot-row .chgv { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; display: inline-block; letter-spacing: -0.01em; }
.snapshot-row .chgv.up { color: var(--up); background: var(--up-bg); }
.snapshot-row .chgv.down { color: var(--down); background: var(--down-bg); }
.snapshot-row .chgv.tag { color: var(--tx-dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 3px 0; background: none; }
.snapshot-row .snap-arrow { font-family: var(--mono); font-size: 13px; color: var(--tx-dim); opacity: .5; transition: .14s; text-align: right; }
/* tick flash - a live "ticking" highlight when a value updates */
@keyframes cd-flash-up { from { background: rgba(46,230,163,0.001); } 10% { background: rgba(79,158,124,0.28); } to { background: transparent; } }
@keyframes cd-flash-down { from { background: rgba(255,90,110,0.001); } 10% { background: rgba(190,94,108,0.28); } to { background: transparent; } }
.snapshot-row .val.flash-up { animation: cd-flash-up 1.2s ease-out; }
.snapshot-row .val.flash-down { animation: cd-flash-down 1.2s ease-out; }
.coin-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: #fff; opacity: .92; flex-shrink: 0; }
img.coin-ic { object-fit: cover; background: #16171b; opacity: 1; }
.lab-ic { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; vertical-align: -3px; margin-right: 8px; background: #16171b; }
.lab-pair { display: inline-flex; align-items: center; margin-right: 8px; vertical-align: -3px; }
.lab-pair img { width: 13px; height: 13px; border-radius: 50%; background: #16171b; }
.lab-pair img + img { margin-left: -5px; box-shadow: 0 0 0 1.5px #0F1217; }
.spark { height: 22px; }

/* ---------- Section scaffolding ---------- */
section.block { padding: 26px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.sec-head h2 { font-size: 18px; color: var(--tx-hi); font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 10px; }
.sec-head .sub { font-size: 12.5px; color: var(--tx-dim); margin-top: 5px; }
.sec-head a.more { font-size: 12.5px; color: var(--amber); font-weight: 500; }
.sec-head a.more:hover { color: var(--amber-hi); }

.kicker { font-family: var(--mono); font-size: 10px; color: var(--amber); letter-spacing: .18em; text-transform: uppercase; display: block; margin-bottom: 7px; }

.badge-live { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px; color: var(--up); letter-spacing: .12em; border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 2px 6px; }
.badge-live::before { content:""; width: 5px; height: 5px; border-radius: 50%; background: var(--up); animation: pulse 2.4s infinite; }
.badge-sample { font-family: var(--mono); font-size: 9px; color: var(--tx-dim); letter-spacing: .12em; border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 2px 6px; }

/* ---------- Stat cards row ---------- */
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.stat {
  background: var(--panel);
  padding: 14px 15px; transition: .12s; position: relative;
}
.stat:hover { background: var(--panel-2); }
.stat .l { font-size: 10.5px; color: var(--tx-dim); display: flex; align-items: center; gap: 6px; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-family: var(--mono); font-size: 18px; color: var(--tx-hi); font-weight: 500; letter-spacing: -0.01em; }
.stat .d { font-family: var(--mono); font-size: 11px; margin-top: 6px; }

/* Fear & greed gauge */
.fg-bar { height: 4px; border-radius: 2px; margin-top: 10px; background: linear-gradient(90deg,#9C4A55,#9C8A45,#3E7A60); position: relative; opacity: .85; }
.fg-bar i { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--tx-hi); border-radius: 1px; }

/* ---------- Main grid (screener + side panels) ---------- */
.grid-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }

.panel {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); background: var(--bg-2); }
.panel-head h3 { font-size: 13px; color: var(--tx-hi); font-weight: 600; padding-left: 9px; border-left: 2px solid var(--amber-dim); letter-spacing: -0.005em; }
.panel-head .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tabs { display: flex; gap: 1px; background: var(--hairline-2); border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.tabs button { padding: 4px 10px; font-size: 11px; color: var(--tx-dim); font-weight: 500; background: var(--panel); transition: .12s; }
.tabs button.active { color: var(--amber); }
.tabs button:hover { color: var(--tx); }

/* Screener table */
table.screener { width: 100%; border-collapse: collapse; }
.screener thead th {
  text-align: right; font-size: 10px; color: var(--tx-dim); font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}
.screener thead th:nth-child(1), .screener thead th:nth-child(2) { text-align: left; }
.screener tbody td { padding: 11px 14px; border-bottom: 1px solid var(--hairline-2); text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--tx); }
.screener tbody tr:last-child td { border-bottom: none; }
.screener tbody tr:hover { background: rgba(255,255,255,0.018); }
.screener td.rank { color: var(--tx-dim); text-align: left; width: 32px; }
.screener td.asset { text-align: left; }
/* ---- breadcrumbs (global, single source of truth) ---- */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--tx-dim); padding: 0 0 14px; }
.crumb a { color: var(--tx-dim); text-decoration: none; transition: color .12s; }
.crumb a:hover { color: var(--amber); }
.crumb .sep { color: var(--tx-faint); user-select: none; }

.asset-cell { display: flex; align-items: center; gap: 10px; }
.asset-link { text-decoration: none; color: inherit; display: inline-flex; }
tr.clickable { cursor: pointer; transition: background .12s; }
tr.clickable:hover { background: rgba(255,255,255,.03); }
.asset-cell .s { font-weight: 600; color: var(--tx-hi); font-family: var(--sans); }
.asset-cell .n { font-size: 10.5px; color: var(--tx-dim); font-family: var(--sans); }
.chip { display: inline-block; font-size: 12px; font-family: var(--mono); }
.chip.up { color: var(--up); }
.chip.down { color: var(--down); }

/* Homepage live price board */
.board-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 14px; background: var(--panel); scrollbar-width: thin; }
.board-wrap .screener { min-width: 660px; }
.board-wrap .screener thead th { background: var(--panel); position: sticky; top: 0; }
.board-wrap .screener tbody tr:last-child td { border-bottom: none; }
.screener tr.clickable { cursor: pointer; }

/* Homepage exchange comparison cards */
.exch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.exch-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 17px; text-decoration: none; transition: .15s; }
.exch-card:hover { border-color: rgba(201,154,75,.35); background: var(--panel-2); transform: translateY(-1px); }
.exch-cat { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); font-weight: 600; }
.exch-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--tx-hi); }
.exch-name img { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.exch-score { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--up); background: rgba(79,158,124,.12); border-radius: 5px; padding: 2px 7px; }
.exch-card p { font-size: 11.5px; line-height: 1.46; color: var(--tx-mid); margin: 2px 0 0; flex: 1; }
.exch-go { font-family: var(--mono); font-size: 11px; color: var(--tx-dim); font-weight: 600; margin-top: 2px; }
.exch-card:hover .exch-go { color: var(--amber); }
@media (max-width: 900px) { .exch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .exch-grid { grid-template-columns: 1fr; } }

/* Side stacked panels */
.side { display: flex; flex-direction: column; gap: 16px; }

/* ETF flow rows */
.flow-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hairline-2); }
.flow-row:last-child { border-bottom: none; }
a.flow-row { cursor: pointer; transition: .12s; }
a.flow-row:hover { background: rgba(255,255,255,0.025); }
a.flow-row:hover .flow-asset .s { color: var(--amber); }
.flow-asset { display: flex; align-items: center; gap: 10px; min-width: 86px; }
.flow-asset .s { font-weight: 600; color: var(--tx-hi); }
.flow-bars { flex: 1; height: 30px; display: flex; align-items: center; opacity: .85; }
.flow-net { font-family: var(--mono); font-size: 13px; text-align: right; min-width: 88px; font-weight: 600; }
.flow-sub { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); text-align: right; }

/* Liquidations */
.liq-top { display: flex; gap: 14px; padding: 15px 16px; border-bottom: 1px solid var(--hairline-2); }
.liq-big { flex: 1; }
.liq-big .v { font-family: var(--mono); font-size: 21px; font-weight: 500; color: var(--tx-hi); }
.liq-big .l { font-size: 10.5px; color: var(--tx-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.liq-split { height: 6px; border-radius: 3px; overflow: hidden; display: flex; margin: 4px 0 14px; }
.liq-split .long { background: var(--up); }
.liq-split .short { background: var(--down); }
.liq-legend { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; padding: 0 16px 15px; }

/* Exchange ranking rows */
.ex-row { display: grid; grid-template-columns: 20px 1.4fr 1fr 1fr; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hairline-2); font-size: 12.5px; }
.ex-row:last-child { border-bottom: none; }
.ex-row .rk { color: var(--tx-dim); font-family: var(--mono); }
.ex-name { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--tx-hi); }
.ex-logo { width: 18px; height: 18px; border-radius: var(--r-sm); display: grid; place-items: center; font-family: var(--mono); font-size: 8.5px; font-weight: 700; opacity: .92; flex-shrink: 0; }
img.ex-logo { object-fit: cover; background: #16171b; opacity: 1; }
.ex-row .num { text-align: right; }

/* Treasuries */
.tre-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--hairline-2); font-size: 12.5px; }
.tre-row:last-child { border-bottom: none; }
.tre-co { display: flex; align-items: center; gap: 10px; }
.tre-co .nm { font-weight: 600; color: var(--tx-hi); }
.tre-co .tk { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); }
.tre-row .num { text-align: right; font-family: var(--mono); }

/* Macro grid */
.macro-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.macro-cell { padding: 13px 16px; border-bottom: 1px solid var(--hairline-2); border-right: 1px solid var(--hairline-2); }
.macro-cell:nth-child(even) { border-right: none; }
.macro-cell .l { font-size: 10.5px; color: var(--tx-dim); display: flex; align-items: center; gap: 7px; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.macro-cell .cc { font-family: var(--mono); font-size: 9px; color: var(--amber); border: 1px solid var(--hairline); border-radius: 2px; padding: 0 3px; letter-spacing: .04em; }
.macro-cell .v { font-family: var(--mono); font-size: 16px; color: var(--tx-hi); font-weight: 500; }
.macro-cell .d { font-family: var(--mono); font-size: 10.5px; margin-top: 4px; }

/* ---------- Home: market verdict ---------- */
.verdict { background: linear-gradient(120deg, var(--panel-2), var(--panel)); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 18px 22px; display: flex; align-items: center; gap: 18px; }
.verdict .vmark { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); border-left: 2px solid var(--amber-dim); padding-left: 11px; white-space: nowrap; }
.verdict .vstate { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.verdict .vtext { font-size: 15.5px; line-height: 1.5; color: var(--tx-hi); font-weight: 500; letter-spacing: -0.01em; }
.verdict .vtext b { font-weight: 600; }

/* ---------- Home: health-check grid ---------- */
.hc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 12px 15px 12px; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: .14s; }
.hc-card:hover { border-color: rgba(255,255,255,.16); background: var(--panel-2); transform: translateY(-2px); }
/* glanceable state: left accent + faint tint */
.hc-card.s-good { box-shadow: inset 3px 0 0 var(--up); background: linear-gradient(96deg, rgba(79,158,124,.06), var(--panel) 52%); }
.hc-card.s-caution { box-shadow: inset 3px 0 0 var(--down); background: linear-gradient(96deg, rgba(190,94,108,.06), var(--panel) 52%); }
.hc-card.s-neutral { box-shadow: inset 3px 0 0 var(--amber-dim); background: linear-gradient(96deg, rgba(201,154,75,.045), var(--panel) 52%); }
.hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.hc-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-mid); display: flex; align-items: center; gap: 7px; }
.hc-label .dot { width: 5px; height: 5px; border-radius: 50%; }
.hc-state { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.hc-state.up { color: var(--up); background: var(--up-bg); }
.hc-state.down { color: var(--down); background: var(--down-bg); }
.hc-state.neutral { color: var(--amber); background: rgba(201,154,75,.12); }
.hc-signal { display: flex; align-items: baseline; gap: 8px; }
.hc-val { font-family: var(--mono); font-size: 21px; font-weight: 600; color: var(--tx-hi); letter-spacing: -0.02em; line-height: 1; }
.hc-tag { font-family: var(--mono); font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.hc-tag.up { color: var(--up); background: var(--up-bg); } .hc-tag.down { color: var(--down); background: var(--down-bg); }
.hc-tag.neutral { color: var(--amber); background: rgba(201,154,75,.12); }
/* viz: the small chart, pushed to the card's foot so all cards align */
.hc-viz { margin-top: auto; padding-top: 10px; height: 20px; display: flex; align-items: flex-end; }
.hc-viz > * { width: 100%; }
.hc-card .spark { width: 100%; height: 20px; }
.hc-meter { height: 6px; border-radius: 4px; position: relative; align-self: center; }
.hc-meter.fg { background: linear-gradient(90deg, #BE5E6C, #D98A5B 30%, #C9A24B 50%, #7FA86B 70%, #4F9E7C); opacity: .9; }
.hc-meter.mvrv { background: linear-gradient(90deg, #4F9E7C, #C9A24B 50%, #BE5E6C); opacity: .9; }
.hc-meter i { position: absolute; top: -3.5px; width: 2.5px; height: 13px; background: #fff; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 1.5px rgba(10,13,18,.55); }
.hc-stack { height: 7px; border-radius: 4px; overflow: hidden; display: flex; align-self: center; }
.hc-stack .b { background: var(--amber); } .hc-stack .o { background: var(--tx-faint); }
.hc-split { height: 6px; display: flex; gap: 2px; align-self: center; }
.hc-split .lo { background: var(--up); border-radius: 3px; } .hc-split .sh { background: var(--down); border-radius: 3px; }
.hc-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; width: 100%; }
.hc-bars i { flex: 1; border-radius: 1px; min-height: 2px; }
.hc-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; color: var(--tx-faint); }

/* ---------- Home: movers ---------- */
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-col { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.mv-head { padding: 12px 16px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--hairline); font-family: var(--mono); letter-spacing: .04em; }
.mv-head.up { color: var(--up); } .mv-head.down { color: var(--down); }
.mv-row { display: grid; grid-template-columns: 26px 1fr auto auto; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--hairline-2); font-size: 13px; color: inherit; text-decoration: none; transition: .12s; }
.mv-row:last-child { border-bottom: none; } .mv-row:hover { background: rgba(255,255,255,.02); }
.mv-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #16171b; }
.mv-row .s { font-weight: 600; color: var(--tx-hi); }
.mv-row .px { font-family: var(--mono); color: var(--tx-mid); font-size: 12px; text-align: right; }
.mv-row .ch { font-family: var(--mono); font-size: 12px; text-align: right; min-width: 64px; }

/* ---------- Home: latest news strip ---------- */
.home-news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hn-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: .14s; min-height: 128px; }
.hn-card:hover { border-color: rgba(255,255,255,.18); background: var(--panel-2); transform: translateY(-2px); }
.hn-body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px; }
.hn-img { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--hairline); }
.hn-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.hn-card:hover .hn-img img { transform: scale(1.05); }
.hn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hn-src { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.hn-src .dot { width: 6px; height: 6px; border-radius: 50%; }
.hn-time { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); white-space: nowrap; }
.hn-title { font-size: 13px; font-weight: 600; color: var(--tx-hi); line-height: 1.4; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hn-go { font-size: 10.5px; color: var(--amber); margin-top: auto; padding-top: 11px; font-weight: 500; }
.hn-load { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--tx-dim); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hn-load .spin { width: 15px; height: 15px; border: 2px solid var(--hairline); border-top-color: var(--amber); border-radius: 50%; animation: nsspin .7s linear infinite; display: inline-block; }
@keyframes nsspin { to { transform: rotate(360deg); } }

@media (max-width: 1000px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } .home-news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .hc-grid, .movers { grid-template-columns: 1fr; } .home-news { grid-template-columns: 1fr; } .verdict { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Research / blog ---------- */
.research-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.art {
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; transition: .14s; display: flex; flex-direction: column;
}
.art:hover { border-color: rgba(255,255,255,0.14); }
.art-img { height: 150px; background: var(--bg-2); position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.art.feat .art-img { height: 210px; }
.art-img::before {
  content:""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--hairline-2) 1px, transparent 1px), linear-gradient(90deg, var(--hairline-2) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
.art-img::after {
  content:""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(201,154,75,0.05));
  border-top: 1px solid var(--amber-dim); opacity: .5;
  clip-path: polygon(0 60%, 14% 48%, 28% 64%, 42% 38%, 56% 52%, 70% 30%, 84% 44%, 100% 22%, 100% 100%, 0 100%);
}
.art-cat { position: absolute; top: 11px; left: 11px; z-index: 1; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); background: var(--bg); color: var(--amber); border: 1px solid var(--hairline); }
.art-body { padding: 15px 16px; flex: 1; display: flex; flex-direction: column; }
.art h4 { font-size: 14.5px; color: var(--tx-hi); font-weight: 600; line-height: 1.38; margin-bottom: 8px; letter-spacing: -0.005em; }
.art.feat h4 { font-size: 18px; }
.art p { font-size: 12.5px; color: var(--tx-mid); line-height: 1.55; margin-bottom: 14px; }
.art-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--tx-dim); }
.art-meta .au-by { color: var(--tx); font-weight: 500; }
.art-meta .dot { color: var(--tx-faint); }

/* ---------- Newsletter ---------- */
.news {
  background: var(--panel);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 34px 38px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: center;
}
.news h3 { font-size: 23px; color: var(--tx-hi); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 10px; }
.news p { font-size: 13.5px; color: var(--tx-mid); line-height: 1.6; }
.news .badge { font-family: var(--mono); font-size: 10px; color: var(--amber); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 13px; display: block; }
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-input { display: flex; gap: 9px; }
.news-input input {
  flex: 1; height: 42px; padding: 0 14px; background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--r); color: var(--tx-hi); font-size: 13.5px; font-family: var(--sans);
}
.news-input input:focus { outline: none; border-color: var(--amber-dim); }
.news-input .btn { height: 42px; padding: 0 20px; }
.news small { font-size: 11px; color: var(--tx-dim); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--hairline); margin-top: 26px; padding: 44px 0 28px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; margin-bottom: 34px; }
.foot-brand p { font-size: 12.5px; color: var(--tx-mid); line-height: 1.6; margin: 14px 0; max-width: 280px; }
.foot-soc { display: flex; gap: 8px; }
.foot-soc a { height: 28px; min-width: 34px; padding: 0 9px; border: 1px solid var(--hairline); border-radius: var(--r-sm); display: grid; place-items: center; color: var(--tx-mid); transition: .12s; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.foot-soc a:hover { color: var(--tx-hi); border-color: rgba(255,255,255,0.18); }
.foot-col h5 { font-size: 10.5px; color: var(--tx-dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; font-size: 12.5px; color: var(--tx-mid); padding: 5px 0; transition: .12s; }
.foot-col a:hover { color: var(--tx-hi); }
.foot-bottom { border-top: 1px solid var(--hairline-2); padding-top: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.foot-bottom p { font-size: 11.5px; color: var(--tx-dim); line-height: 1.6; max-width: 760px; }
.foot-bottom .reg { font-size: 11px; color: var(--tx-faint); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 16px; }
.foot-legal a { font-size: 11.5px; color: var(--tx-mid); }
.foot-legal a:hover { color: var(--tx-hi); }

/* ---------- Utility ---------- */
.icn-sm { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.divider { height: 1px; background: var(--hairline); margin: 0; border: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-main { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .research-grid { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 33px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; padding: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .search { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
}

/* ============ home: institutional flows duo (ETF + treasury) ============ */
.flows-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.fd-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.fd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fd-title { display: flex; align-items: baseline; gap: 9px; }
.fd-title b { font-size: 14px; font-weight: 650; color: var(--tx-hi); }
.fd-sub2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-dim); }
.fd-flag { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(201,154,75,.4); border-radius: var(--r); padding: 2px 6px; }
.fd-tabs { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 7px; padding: 2px; }
.fd-tabs button { appearance: none; background: transparent; border: 0; color: var(--tx-dim); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; padding: 4px 9px; border-radius: 5px; cursor: pointer; transition: color .15s, background .15s; }
.fd-tabs button:hover { color: var(--tx); }
.fd-tabs button.active { background: rgba(201,154,75,.14); color: var(--amber); }
.fd-chart svg { width: 100%; height: auto; display: block; }
.fd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fd-stat { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 8px 10px; min-width: 0; }
.fd-stat .k { display: block; font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-dim); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-stat .v { font-family: var(--mono); font-size: 13px; color: var(--tx-hi); white-space: nowrap; }
.fd-stat .v.up { color: var(--up); }
.fd-stat .v.down { color: var(--down); }
.fd-stat small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--tx-mid); margin-top: 2px; }
.fd-strip-wrap { display: flex; flex-direction: column; gap: 6px; }
.fd-strip { display: flex; height: 10px; border-radius: 5px; overflow: hidden; border: 1px solid var(--hairline); background: var(--bg-2); }
.fd-strip i { display: block; height: 100%; min-width: 2px; cursor: crosshair; }
.fd-strip-cap { font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); }
.fd-rows { display: flex; flex-direction: column; }
.fd-row { display: flex; align-items: center; gap: 9px; padding: 7.5px 2px; border-bottom: 1px solid var(--hairline-2); text-decoration: none; }
.fd-row:last-child { border-bottom: 0; }
.fd-row .rk { font-family: var(--mono); font-size: 9.5px; color: var(--tx-dim); width: 14px; }
.fd-row .nm { flex: 1; font-size: 12.5px; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-row:hover .nm { color: var(--tx-hi); }
.fd-row .tk { font-family: var(--mono); font-size: 9px; color: var(--tx-mid); border: 1px solid var(--hairline); border-radius: var(--r); padding: 1.5px 5px; }
.fd-row .u { font-family: var(--mono); font-size: 11.5px; color: var(--tx-hi); }
.fd-row .d30 { font-family: var(--mono); font-size: 10.5px; width: 52px; text-align: right; }
.fd-row .d30.up { color: var(--up); }
.fd-row .d30.down { color: var(--down); }
.fd-row .d30.flat { color: var(--tx-dim); }
.fd-link { margin-top: auto; align-self: flex-start; font-size: 12.5px; font-weight: 550; color: var(--amber); text-decoration: none; }
.fd-link:hover { color: var(--amber-hi); }
@media (max-width: 880px) {
  .flows-duo { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage loading skeleton (body.hm-loading / hm-gl-pending)
   Shimmer the live price surfaces - ticker, hero snapshot, top
   movers, price board, global stats - until real Coinranking
   data lands. Never flash the modelled fallback. Mirrors the
   /price/ + /markets/ skeleton pattern.
   ============================================================ */
@keyframes hm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.hm-sk { display: inline-block; vertical-align: middle; border-radius: 4px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: hm-shimmer 1.3s ease-in-out infinite; }
.hm-sk-ic { width: 22px; height: 22px; border-radius: 50%; }
.hm-sk-tx { width: 58px; height: 11px; }
.hm-sk-sm { width: 44px; height: 11px; }
.hm-sk-xs { width: 30px; height: 11px; }
.hm-sk-spk { width: 80px; height: 22px; border-radius: 4px; }

/* global stats numbers - shimmer during the full-page load AND whenever the global stat isn't real yet */
body.hm-loading #st-mcap, body.hm-loading #st-vol, body.hm-loading #st-dom, body.hm-loading #hs-mcap,
body.hm-gl-pending #st-mcap, body.hm-gl-pending #st-vol, body.hm-gl-pending #st-dom, body.hm-gl-pending #hs-mcap {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: hm-shimmer 1.3s ease-in-out infinite; }
body.hm-loading #st-mcap-d, body.hm-gl-pending #st-mcap-d { visibility: hidden; }

/* price board rows */
.hm-sk-row td { padding: 11px 12px; }
.hm-sk-row .hm-sk { width: 60px; height: 11px; }
.hm-sk-row td.rank .hm-sk-sm { width: 16px; }
.hm-sk-row td.asset .hm-sk-ic { margin-right: 9px; }
.hm-sk-row td.asset .hm-sk-tx { width: 72px; }

/* top movers rows (reuse the .mv-row grid: 26px 1fr auto auto) */
.hm-sk-mv .hm-sk-ic { width: 22px; height: 22px; }
.hm-sk-mv .hm-sk-tx { width: 52px; }
.hm-sk-mv .hm-sk-sm { width: 60px; }

/* hero snapshot rows (reuse the .snapshot-row grid) */
.hm-sk-snap .lab { display: flex; align-items: center; gap: 9px; }
.hm-sk-snap .lab .hm-sk-ic { width: 16px; height: 16px; }
.hm-sk-snap .lab .hm-sk-tx { width: 88px; }
.hm-sk-snap .val .hm-sk-sm { width: 72px; height: 12px; }
.hm-sk-snap .chg .hm-sk-xs { width: 44px; }

/* ticker skeleton tiles */
.tk-sk .tk-sym.hm-sk-tx { width: 30px; height: 10px; }
.tk-sk .tk-px.hm-sk-sm { width: 52px; height: 10px; }

/* home "ETF & treasury flows" cards - loading shimmer until live data lands */
@keyframes fd-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.fd-loading .fd-stat .v, .fd-loading .fd-stat small {
  color: transparent !important; border-radius: 5px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: fd-shimmer 1.3s ease-in-out infinite;
}
.fd-loading .fd-chart, .fd-loading .fd-rows, .fd-loading .fd-strip-wrap { position: relative; }
.fd-loading .fd-chart::after, .fd-loading .fd-rows::after, .fd-loading .fd-strip-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--elevated) 37%, var(--panel-2) 63%);
  background-size: 400% 100%; animation: fd-shimmer 1.3s ease-in-out infinite;
}
