:root {
  color-scheme: dark;
  --bd-black: #090b0c;
  --bd-900: #15181a;
  --bd-850: #1b2023;
  --bd-800: #252c30;
  --bd-700: #404b51;
  --bd-600: #57656e;
  --bd-500: #8696a0;
  --bd-300: #bbc5ca;
  --bd-100: #e3e7e9;
  --bd-green: #00ffa3;
  --bd-red: #eb5757;
  --bd-yellow: #f2c94c;
  --bd-blue: #5b8def;
  --bd-purple: #a78bfa;
  --radius: 10px;
  --radius-sm: 6px;
  --gap: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  background: var(--bd-black);
  color: var(--bd-100);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pos { color: var(--bd-green); }
.neg { color: var(--bd-red); }
.app { max-width: 1440px; margin: 0 auto; padding: 16px; }

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 12px;
  background: var(--bd-900);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.brand-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 18px; width: auto; display: block; }
.brand-link:hover { opacity: .86; }
.divider-v { width: 1px; height: 18px; background: var(--bd-800); flex-shrink: 0; }
.topbar h1 {
  margin-right: auto;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .01em;
}
.topbar h1 span { color: var(--bd-500); font-weight: 500; margin-left: 4px; }
.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bd-300);
  font-size: 11.5px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bd-yellow);
  box-shadow: 0 0 6px var(--bd-yellow);
  animation: pulse 1.8s ease-in-out infinite;
}
.dot.ok { background: var(--bd-green); box-shadow: 0 0 8px var(--bd-green); }
.dot.bad { background: var(--bd-red); box-shadow: 0 0 8px var(--bd-red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── Buttons ── */
.icon-btn, .purge, .data-cta, .seg button, .api-actions button, .api-actions a {
  border: 1px solid var(--bd-700);
  background: transparent;
  color: var(--bd-300);
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn { display: grid; place-items: center; width: 28px; height: 28px; }
.purge { padding: 5px 10px; font-size: 11px; }
.icon { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.data-cta, .api-actions button, .api-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.data-cta, .api-actions button {
  border-color: rgba(0,255,163,.42);
  color: var(--bd-green);
}
.data-cta::before, .api-actions button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bd-green);
  box-shadow: 0 0 8px rgba(0,255,163,.65);
}
.icon-btn:hover, .purge:hover, .data-cta:hover, .seg button:hover,
.api-actions button:hover, .api-actions a:hover {
  background: var(--bd-800);
  color: var(--bd-100);
  border-color: var(--bd-600);
}

/* ── API Strip ── */
.api-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: var(--gap);
  padding: 10px 12px;
  background: #101416;
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
}
.api-strip strong { display: block; margin-bottom: 3px; color: var(--bd-100); font-size: 13px; }
.api-strip span { color: var(--bd-500); font-size: 12px; }
.api-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.api-actions input {
  min-height: 30px;
  width: min(300px, 42vw);
  padding: 6px 9px;
  background: var(--bd-black);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  color: var(--bd-100);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  outline: 0;
}
.api-actions input:focus { border-color: rgba(0,255,163,.5); }

/* ── Banner ── */
.banner {
  display: none;
  padding: 10px 14px;
  margin-bottom: var(--gap);
  background: #3d0000;
  color: #ffc8c8;
  border: 1px solid #6a2020;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.banner.show { display: block; }

/* ── Grids ── */
.grid {
  display: grid;
  gap: var(--gap);
  margin-bottom: var(--gap);
  min-width: 0;
}
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: minmax(0, .55fr) minmax(0, .45fr); align-items: start; }

/* ── Cards ── */
.card {
  min-width: 0;
  background: var(--bd-900);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius);
  padding: 14px;
}
.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-title > div:first-child { flex: 1; min-width: 0; }
.card h2, .card h3 {
  color: var(--bd-500);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card-title strong {
  display: block;
  margin-bottom: 2px;
  color: var(--bd-100);
  font-size: 13px;
  font-weight: 750;
}
.muted { color: var(--bd-500); font-size: 12px; }

/* ── Market Strip ── */
.market-strip {
  display: grid;
  grid-template-columns: minmax(200px, 0.22fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.asset-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-info-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.token-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
}
.asset-name h2 {
  color: var(--bd-100);
  font-size: 20px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.asset-name p { color: var(--bd-300); font-size: 13px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid var(--bd-700);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  color: var(--bd-300);
  font-size: 11px;
  white-space: nowrap;
}
.compact-chip { min-height: 20px !important; padding: 2px 6px !important; font-size: 10px !important; }
.mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bd-green);
  box-shadow: 0 0 8px rgba(0,255,163,.75);
}

/* ── Stats ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 50px;
  padding: 8px 9px;
  background: var(--bd-800);
  border-radius: var(--radius-sm);
}
.stat .label {
  color: var(--bd-500);
  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stat .value {
  color: var(--bd-100);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.stat small { color: var(--bd-500); font-size: 10px; line-height: 1.2; }

/* ── Segmented Controls ── */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
}
.seg button { min-height: 28px; padding: 0 10px; border-color: transparent; font-size: 12px; }
.seg button.active { color: var(--bd-100); background: var(--bd-800); border-color: var(--bd-700); }

/* ── Heatmap ── */
.chart-card { display: flex; flex-direction: column; min-height: 760px; }
.chart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.chart-head > div:first-child { flex: 1; min-width: 0; }
.chart-head h2 {
  margin: 0 0 2px;
  color: var(--bd-100);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.chart-cta { flex-shrink: 0; min-height: 26px; padding: 4px 9px; }
.chart-head .seg { flex-shrink: 0; margin-left: auto; }
.chart-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  margin-bottom: 12px;
  align-items: stretch;
}
.heatmap-wrap {
  position: relative;
  flex: 1;
  min-height: 640px;
  height: 640px;
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #101416;
}
.heatmap-wrap canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Chart Watermark ── */
.chart-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  opacity: .04;
  filter: grayscale(1) brightness(1.2);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.chart-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
  padding: 0;
  background: #101416;
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-title { margin-bottom: 4px; padding: 14px 14px 0; }
.sidebar-title strong { display: block; color: var(--bd-100); font-size: 13px; font-weight: 700; }
.sidebar-title h2 {
  color: var(--bd-500);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.pressure { margin: 0 14px 0; }

/* ── Sidebar Divider ── */
.sidebar-divider {
  height: 1px;
  margin: 10px 14px;
  background: var(--bd-800);
}

/* ── Sidebar Live Feed ── */
.sidebar-feed { padding: 0 14px 14px; }
.feed-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.feed-title strong { color: var(--bd-100); font-size: 11px; font-weight: 700; white-space: nowrap; }
.feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  border-radius: 3px;
  line-height: 1.4;
}
.live-badge { background: rgba(235,87,87,.15); color: var(--bd-red); border: 1px solid rgba(235,87,87,.3); }
.bulk-badge { background: rgba(91,141,239,.12); color: var(--bd-blue); border: 1px solid rgba(91,141,239,.3); }
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bd-700) transparent;
}
.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(37,44,48,.35);
  border-radius: 4px;
  font-size: 10px;
  color: var(--bd-300);
  animation: feed-in .3s ease-out;
}
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.feed-item .feed-side { font-weight: 700; }
.feed-item .feed-time { color: var(--bd-500); font-size: 9px; }
.feed-empty { padding: 12px 0; color: var(--bd-600); font-size: 10px; text-align: center; }
.feed-link {
  color: var(--bd-300);
  text-decoration: none;
  transition: color .15s;
}
.feed-link:hover { color: var(--bd-green); text-decoration: underline; }

/* Wallet address links in tables */
.wallet-link {
  color: var(--bd-300);
  text-decoration: none;
  transition: color .15s;
  border-bottom: 1px dashed var(--bd-700);
}
.wallet-link:hover { color: var(--bd-green); border-bottom-color: var(--bd-green); }

/* ── Spot Price CTA ── */
.spot-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--bd-purple);
  border: 1px solid rgba(167,139,250,.3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.spot-cta:hover {
  background: rgba(167,139,250,.12);
  color: var(--bd-100);
  border-color: var(--bd-purple);
}
.spot-cta svg { flex-shrink: 0; }

/* ── Capture / Screenshot Button ── */
.section-capturable { position: relative; }
.capture-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  background: rgba(9,11,12,.7);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  color: var(--bd-500);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .15s, color .15s;
}
.section-capturable:hover .capture-btn { opacity: 1; }
.capture-btn:hover {
  background: rgba(0,255,163,.12);
  color: var(--bd-green);
  border-color: rgba(0,255,163,.4);
}

/* ── Tooltip ── */
.tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 210px;
  pointer-events: none;
  background: rgba(9,11,12,.94);
  border: 1px solid var(--bd-700);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  color: var(--bd-300);
  font-size: 11px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.tooltip strong { display: block; margin-bottom: 5px; color: var(--bd-100); font-size: 12px; }
.tooltip span { display: flex; justify-content: space-between; gap: 18px; margin-top: 3px; }

/* ── Pressure bars ── */
.pressure {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(37,44,48,.38);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
}
.bar-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 92px;
  gap: 10px;
  align-items: center;
  color: var(--bd-500);
  font-size: 11px;
}
.meter {
  height: 10px;
  overflow: hidden;
  background: #101416;
  border: 1px solid var(--bd-800);
  border-radius: 999px;
}
.meter i { display: block; height: 100%; border-radius: inherit; }
.meter .long { background: linear-gradient(90deg, rgba(0,255,163,.2), var(--bd-green)); }
.meter .short { background: linear-gradient(90deg, rgba(235,87,87,.2), var(--bd-red)); }

/* ── Legend ── */
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--bd-500);
  font-size: 11px;
}
.legend-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 2px; }
.swatch.long { background: var(--bd-green); }
.swatch.short { background: var(--bd-red); }
.swatch.price { background: var(--bd-yellow); }

/* ── Split meter ── */
.split-meter {
  display: flex;
  align-items: stretch;
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--bd-800);
  border-radius: 999px;
  background: #101416;
}
.split-meter span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 100%;
  color: #06110d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.split-meter .long-share { background: var(--bd-green); }
.split-meter .short-share { background: var(--bd-red); color: #180606; }

/* ── Summary strip ── */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.summary-item {
  min-height: 58px;
  padding: 9px 10px;
  background: var(--bd-800);
  border-radius: var(--radius-sm);
}
.summary-item > span {
  display: block;
  margin-bottom: 3px;
  color: var(--bd-500);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.summary-item strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.summary-item strong span { font-size: inherit; }
.info-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border: 1px solid var(--bd-700);
  border-radius: 50%;
  color: var(--bd-300);
  font-size: 9px;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  cursor: help;
}

/* ── Liq breakdown ── */
.liq-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.liq-breakdown .stat .value { font-size: 13px; }

/* ── Tables ── */
.table-wrap {
  overflow: auto;
  max-height: 440px;
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
}
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bd-800);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101416;
  color: var(--bd-500);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
td { color: var(--bd-300); }
tr:last-child td { border-bottom: 0; }
.right { text-align: right; }
.table-search {
  width: 170px;
  min-height: 30px;
  padding: 6px 9px;
  background: var(--bd-black);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  color: var(--bd-100);
  font-size: 12px;
  outline: 0;
}
.table-search:focus { border-color: rgba(0,255,163,.5); }
.title-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── NEW badge (positions) ── */
.badge-new {
  display: inline-block;
  padding: 2px 4px;
  font-size: 9px;
  font-weight: bold;
  color: #090b0c;
  background: var(--bd-yellow);
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
  animation: pulse-new 1.5s infinite;
}
@keyframes pulse-new { 0% { opacity: .7; } 50% { opacity: 1; } 100% { opacity: .7; } }
.row-new td { background: rgba(242, 201, 76, 0.07) !important; }
.row-new td:first-child { border-left: 3px solid var(--bd-yellow); }

/* ── Gate overlay ── */
.gate-wrap {
  position: relative;
}
.gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(9,11,12,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  text-align: center;
  padding: 24px;
}
.gate-overlay .gate-icon {
  font-size: 28px;
  line-height: 1;
  opacity: .7;
}
.gate-overlay strong {
  color: var(--bd-100);
  font-size: 14px;
}
.gate-overlay p {
  color: var(--bd-500);
  font-size: 12px;
  max-width: 320px;
  line-height: 1.5;
}
.gate-overlay .data-cta {
  font-size: 12px;
  padding: 8px 14px;
}
.gate-hidden { display: none !important; }

/* ── Wallet Lookup ── */
.wallet-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.wallet-search-row input {
  flex: 1;
  min-height: 36px;
  padding: 8px 12px;
  background: var(--bd-black);
  border: 1px solid var(--bd-800);
  border-radius: var(--radius-sm);
  color: var(--bd-100);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  outline: 0;
}
.wallet-search-row input:focus { border-color: rgba(0,255,163,.5); }
.wallet-search-row button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(0,255,163,.42);
  border-radius: var(--radius-sm);
  color: var(--bd-green);
  font-size: 12px;
  font-weight: 700;
}
.wallet-search-row button:hover {
  background: var(--bd-800);
  color: var(--bd-100);
}
.wallet-profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.wallet-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--bd-500);
  font-size: 13px;
}

/* ── Endpoint buttons ── */
.endpoint-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .03em;
  color: var(--bd-blue);
  border: 1px solid rgba(91,141,239,.35);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.endpoint-btn::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bd-blue);
  box-shadow: 0 0 6px rgba(91,141,239,.55);
}
.endpoint-btn:hover {
  background: rgba(91,141,239,.12);
  color: var(--bd-100);
  border-color: var(--bd-blue);
}

/* ── Snapshot Banner ── */
.snapshot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(242,201,76,.06) 0%, rgba(242,201,76,.02) 100%);
  border: 1px solid rgba(242,201,76,.22);
  border-radius: var(--radius-sm);
}
.snapshot-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.snapshot-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
.snapshot-banner-text strong {
  display: block;
  color: var(--bd-yellow);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.snapshot-banner-text span {
  color: var(--bd-500);
  font-size: 11.5px;
  line-height: 1.4;
}
.scroll-to-key-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 14px;
  background: rgba(242,201,76,.1);
  border: 1px solid rgba(242,201,76,.35);
  border-radius: var(--radius-sm);
  color: var(--bd-yellow);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.scroll-to-key-btn:hover {
  background: rgba(242,201,76,.18);
  border-color: rgba(242,201,76,.55);
  color: #fff;
}
.snapshot-banner.live-mode { display: none; }

/* ── Footer ── */
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
  color: var(--bd-500);
  font-size: 12px;
}
.footer-link { color: var(--bd-300); transition: color .15s; }
.footer-link:hover { color: var(--bd-green); }
.footer-brand { color: var(--bd-green); font-weight: 750; }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .market-strip { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-main-layout { grid-template-columns: 1fr; }
  .chart-card { min-height: 640px; }
  .heatmap-wrap { min-height: 520px; height: 520px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .liq-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .app { padding: 12px; }
  .topbar { align-items: flex-start; }
  .summary-strip { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-head { grid-template-columns: 1fr; }
  .chart-cta, .chart-head .seg { justify-self: start; }
  .chart-card { min-height: 560px; }
  .heatmap-wrap { min-height: 430px; height: 430px; }
  .bar-line { grid-template-columns: 72px minmax(0, 1fr); }
  .bar-line strong { grid-column: 2; }
  .api-strip { grid-template-columns: 1fr; }
  .api-actions { justify-content: flex-start; }
  .api-actions input { width: 100%; }
  .liq-breakdown { grid-template-columns: 1fr 1fr; }
  .wallet-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .stat-row { grid-template-columns: 1fr; }
  .liq-breakdown { grid-template-columns: 1fr; }
  .wallet-profile { grid-template-columns: 1fr; }
}
