:root {
  --bg: #04100a;
  --panel: rgba(2, 15, 8, 0.88);
  --panel-strong: rgba(1, 10, 5, 0.94);
  --line: rgba(93, 255, 143, 0.35);
  --line-bright: rgba(125, 255, 192, 0.72);
  --text: #7dffc0;
  --text-bright: #c7ffdc;
  --green: #5dff8f;
  --green-soft: rgba(93, 255, 143, 0.18);
  --green-dim: #3fae66;
  --red: #ff5f6e;
  --yellow: #f5ff91;
  --muted: #5fb778;
  --shadow: rgba(0, 0, 0, 0.52);
  --font-ui: "Spline Sans Mono", "IBM Plex Mono", monospace;
  --font-data: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(1, 8, 4, 0.62), rgba(1, 8, 4, 0.82)),
    #04100a url("../assets/wallpaper.jpg") center center / cover fixed no-repeat;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0 2px,
      rgba(0, 0, 0, 0.28) 2px 3px
    );
  mix-blend-mode: multiply;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.wallpaper-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(125, 255, 192, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(4, 16, 10, 0.92), rgba(4, 16, 10, 0.68) 48%, rgba(4, 16, 10, 0.9));
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  opacity: 0.24;
  pointer-events: none;
}

.terminal-shell {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 26px;
}

.app-header,
.chart-panel,
.rankings-panel,
.kpi {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 16px 42px var(--shadow),
    inset 0 1px 0 rgba(125, 255, 192, 0.08);
  backdrop-filter: blur(8px);
}

.app-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.prompt {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(93, 255, 143, 0.55);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text-bright);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow:
    0 0 8px rgba(93, 255, 143, 0.55),
    0 0 26px rgba(93, 255, 143, 0.2);
}

.brand-lockup p,
.panel-head span,
.kpi small,
.app-footer {
  color: var(--muted);
}

.brand-lockup p {
  margin-top: 5px;
  font-size: 13px;
}

.source-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: var(--text-bright);
  font-family: var(--font-data);
  font-size: 12px;
  white-space: nowrap;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(93, 255, 143, 0.9);
  animation: livePulse 1.4s ease-in-out infinite;
}

.live-dot.offline {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 95, 110, 0.6);
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.36;
    transform: scale(0.76);
  }
}

.chart-panel,
.rankings-panel {
  margin-top: 14px;
  padding: 14px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

h2 {
  color: var(--text-bright);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.panel-head span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.segmented,
.filter-tabs {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 32, 13, 0.62);
}

.metric-tab,
.filter-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid rgba(93, 255, 143, 0.22);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.metric-tab:last-child,
.filter-tab:last-child {
  border-right: 0;
}

.metric-tab:hover,
.metric-tab:focus-visible,
.filter-tab:hover,
.filter-tab:focus-visible,
thead button:hover,
thead button:focus-visible {
  color: var(--text-bright);
  outline: none;
  background: rgba(93, 255, 143, 0.1);
}

.metric-tab.active,
.filter-tab.active {
  color: #04100a;
  background: linear-gradient(180deg, #aaffcc, var(--green));
  text-shadow: none;
}

.bar-strip {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(160px, 1fr) minmax(92px, 140px);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(93, 255, 143, 0.16);
  background: rgba(0, 20, 8, 0.54);
}

.venue-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.venue-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text-bright);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.logo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(93, 255, 143, 0.12);
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.logo .monogram {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #04100a;
  background: linear-gradient(135deg, var(--mono-a, #7dffc0), var(--mono-b, #2ecf65));
  font-size: 10px;
  font-weight: 700;
}

.logo.fallback img {
  display: none;
}

.logo.fallback .monogram {
  display: grid;
}

.bar-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(93, 255, 143, 0.22);
  background:
    linear-gradient(90deg, rgba(93, 255, 143, 0.08), rgba(93, 255, 143, 0.02)),
    rgba(0, 0, 0, 0.38);
}

.bar-fill {
  height: 100%;
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(93, 255, 143, 0.28), rgba(93, 255, 143, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 8px);
  box-shadow: 0 0 18px rgba(93, 255, 143, 0.28);
}

.bar-value {
  justify-self: end;
  color: var(--text-bright);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.kpi {
  min-height: 108px;
  padding: 15px 14px 13px;
}

.kpi span,
.kpi small {
  display: block;
}

.kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  margin-top: 13px;
  color: var(--text-bright);
  font-family: var(--font-data);
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 0 14px rgba(93, 255, 143, 0.34);
}

.kpi small {
  margin-top: 10px;
  font-size: 11px;
}

.rankings-head {
  align-items: flex-end;
}

.table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.search-wrap {
  display: block;
}

#search {
  width: min(300px, 54vw);
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 22, 9, 0.76);
  color: var(--text-bright);
  outline: none;
}

#search::placeholder {
  color: rgba(125, 255, 192, 0.48);
}

#search:focus {
  border-color: var(--line-bright);
  box-shadow: 0 0 0 2px rgba(93, 255, 143, 0.14);
}

.table-frame {
  overflow: auto;
  border: 1px solid rgba(93, 255, 143, 0.24);
  background: rgba(0, 12, 5, 0.7);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-family: var(--font-data);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(93, 255, 143, 0.16);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #06180d;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: 54px;
  text-align: left;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

thead button {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: 700;
  text-align: inherit;
  text-transform: inherit;
}

thead button.sorted {
  color: var(--text-bright);
}

thead button.sorted::after {
  content: " " attr(data-dir);
  color: var(--green);
}

tbody tr {
  background: rgba(2, 18, 8, 0.62);
}

tbody tr:hover {
  background: rgba(93, 255, 143, 0.08);
}

td {
  color: var(--text-bright);
  font-size: 13px;
}

.rank {
  color: var(--green-dim);
  font-weight: 700;
}

.dex-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.dex-meta .venue-name {
  display: block;
}

.dex-token {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.dash,
.pre {
  color: var(--muted);
}

.pre {
  font-weight: 700;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.empty {
  height: 92px;
  color: var(--muted);
  text-align: center;
}

.app-footer {
  margin-top: 11px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::selection {
  color: #04100a;
  background: var(--green);
}

::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 14, 6, 0.92);
}

::-webkit-scrollbar-thumb {
  background: rgba(93, 255, 143, 0.42);
  border: 2px solid rgba(0, 14, 6, 0.92);
}

@media (max-width: 980px) {
  .terminal-shell {
    width: min(100vw - 18px, 1480px);
    padding-top: 9px;
  }

  .app-header,
  .panel-head,
  .rankings-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-status {
    justify-content: flex-start;
  }

  .segmented,
  .table-tools,
  .filter-tabs {
    width: 100%;
  }

  .metric-tab,
  .filter-tab {
    flex: 1 1 0;
    padding: 0 8px;
  }

  #search {
    width: 100%;
  }

  .search-wrap {
    width: 100%;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 38%) minmax(74px, auto);
  }
}

@media (max-width: 620px) {
  .terminal-shell {
    width: calc(100vw - 12px);
  }

  .app-header,
  .chart-panel,
  .rankings-panel,
  .kpi {
    padding: 12px;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kpi {
    min-height: 86px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .bar-value {
    justify-self: start;
  }

  .brand-lockup p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .matrix-rain {
    display: none;
  }
}

/* ===== UI polish pass — matrix terminal (additive) ===== */
.bar-row { transition: background .14s ease; }
.bar-row:hover { background: var(--green-soft); }
.bar-fill { transition: width .5s cubic-bezier(.22, .61, .36, 1); box-shadow: 0 0 10px -2px var(--green); }
.kpi { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.kpi:hover { border-color: var(--line-bright); box-shadow: 0 0 26px -10px var(--green); transform: translateY(-2px); }
.metric-tab, .filter-tab, .segmented button { transition: box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; }
.metric-tab:hover, .filter-tab:hover, .segmented button:hover { box-shadow: 0 0 12px -2px rgba(93, 255, 143, .45); }
table tbody tr { transition: background .14s ease; }
table tbody tr:hover { background: var(--green-soft); }
#search:focus { border-color: var(--line-bright); box-shadow: 0 0 0 3px var(--green-soft); }
:focus-visible { outline: 2px solid var(--line-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .kpi, .bar-row, .metric-tab, .filter-tab, .segmented button, table tbody tr { transition: none; }
  .kpi:hover { transform: none; }
}

/* ===== premium layer 2 (grok) — film grain, glass, numeric, glow ===== */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat,
    linear-gradient(180deg, rgba(1, 8, 4, 0.62), rgba(1, 8, 4, 0.82)),
    radial-gradient(125% 80% at 50% 0%, transparent 60%, rgba(0, 6, 3, .55) 100%),
    #04100a url("../assets/wallpaper.jpg") center center / cover fixed no-repeat;
  background-blend-mode: overlay, normal, normal, normal;
}
.bar-value, .kpi strong, .num, td, .badge { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.kpi strong, .bar-value { text-shadow: 0 0 10px rgba(93, 255, 143, .16); }
.bar-fill { box-shadow: 0 0 16px -1px var(--green), inset 0 0 9px rgba(255, 255, 255, .14); }
.panel-head, .topbar { -webkit-backdrop-filter: blur(7px) saturate(1.1); backdrop-filter: blur(7px) saturate(1.1); }
@keyframes stx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kpi, .rankings-panel { animation: stx-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .kpi, .rankings-panel { animation: none; } }


/* ============================================================= */
/* ===== mage OS — GLASS SKIN (retire matrix terminal) ========= */
/* Appended override block. Beats the matrix !important rules.    */
/* Color / surface / typography / radius / shadow / motion only. */
/* ============================================================= */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  --bg0: #0a0b12 !important;
  --bg1: #0c0d16 !important;
  --ink: #e9ebf2 !important;
  --dim: #aab0c2 !important;
  --accent: #6ad7ff !important;
  --accent2: #b388ff !important;
  --gold: #ffcf6a !important;
  --up: #54e39b !important;
  --down: #ff6b8a !important;
  --line: rgba(255, 255, 255, .10) !important;
  --line-soft: rgba(255, 255, 255, .08) !important;
  --card: rgba(20, 22, 32, .55) !important;
  --bar: rgba(20, 22, 32, .55) !important;
  --surface: rgba(20, 22, 32, .55) !important;
  --surface2: rgba(14, 16, 24, .6) !important;
  --radius: 16px !important;
  --control-radius: 10px !important;
  --tile-radius: 12px !important;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 24px 60px -22px rgba(0, 0, 0, .6) !important;
  --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 36px -18px rgba(0, 0, 0, .55) !important;
  --focus: 0 0 0 3px rgba(106, 215, 255, .25) !important;
  --accent-readable: #6ad7ff !important;
  --accent2-readable: #b388ff !important;
  --gold-readable: #ffcf6a !important;
  --up-readable: #54e39b !important;
  --down-readable: #ff6b8a !important;
  --mage-grad: linear-gradient(116deg, #6ad7ff, #b388ff 46%, #5cffb0);
  color-scheme: dark;
}

/* ---- Background: aurora blobs + grain over near-black ------- */
body {
  color: var(--ink) !important;
  background:
    radial-gradient(60% 50% at 12% 8%, rgba(106, 215, 255, .14), transparent 60%),
    radial-gradient(55% 45% at 88% 18%, rgba(179, 136, 255, .14), transparent 60%),
    radial-gradient(60% 55% at 50% 108%, rgba(92, 255, 176, .10), transparent 60%),
    linear-gradient(180deg, #0c0d16, #0a0b12 60%) !important;
}
body::before {
  display: block !important;
  z-index: 0 !important;
  opacity: .5 !important;
  mix-blend-mode: normal !important;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(106, 215, 255, .10), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(179, 136, 255, .10), transparent 70%) !important;
}
body::after {
  display: block !important;
  z-index: 0 !important;
  opacity: .035 !important;
  mix-blend-mode: overlay !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") !important;
  background-size: 200px 200px !important;
}
/* Embedded: keep transparent, no opaque bg */
html.embedded body,
html.embedded {
  background: transparent !important;
}

::selection {
  background: rgba(106, 215, 255, .30) !important;
  color: #ffffff !important;
}
* {
  scrollbar-color: rgba(255, 255, 255, .22) transparent !important;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .03) !important;
  border-left: 1px solid rgba(255, 255, 255, .08) !important;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18) !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
}

strong, b { color: #ffffff !important; }

/* ---- Window shell / titlebar / body ------------------------ */
.desk-window {
  background: rgba(12, 13, 22, .72) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 28px 80px -28px rgba(0, 0, 0, .7) !important;
}
.aqua-titlebar {
  color: #e9ebf2 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  background: linear-gradient(180deg, rgba(20, 22, 32, .8), rgba(12, 13, 22, .7)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  text-shadow: none !important;
}
.aqua-window-title {
  color: #e9ebf2 !important;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}
.desk-body {
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(106, 215, 255, .07), transparent 60%),
    radial-gradient(55% 45% at 90% 5%, rgba(179, 136, 255, .07), transparent 60%),
    linear-gradient(180deg, rgba(12, 13, 22, .92), rgba(10, 11, 18, .92)) !important;
}

/* ---- Kill the matrix rain ---------------------------------- */
.matrix-rain,
#matrixRain {
  opacity: .06 !important;
  mix-blend-mode: normal !important;
  filter: hue-rotate(120deg) saturate(.5) !important;
}

/* ---- Topbar / nav ------------------------------------------ */
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(20, 22, 32, .55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 40px -24px rgba(0, 0, 0, .6) !important;
}
.brand-mark,
.creator-avatar {
  border-color: rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .04) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 18px rgba(106, 215, 255, .12) !important;
}
.brand-copy strong { color: #ffffff !important; }
.brand-copy small { color: #aab0c2 !important; }
.topnav {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
.topnav a {
  color: #aab0c2 !important;
  background: transparent !important;
}
.topnav a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  box-shadow: none !important;
}
.topnav a[aria-current="page"] {
  color: #06121e !important;
  background-image: var(--mage-grad) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px -6px rgba(106, 215, 255, .5) !important;
  text-shadow: none !important;
}

/* ---- Glass surfaces: panels, cards, metrics, stat boxes ----- */
.hero-panel,
.panel,
.card,
.creator-card,
.metric,
.kpi,
.rankings-panel,
.arbital-panel,
.toolbar,
.note,
.warning-note,
.strategy-disclaimer,
.honest-warning,
.section-framing,
.drawer-panel,
.palette-panel,
.table-wrap,
.market-list,
.event-item,
.desk-feed-item,
.calendar-day,
.calendar-event,
.popover,
.tier-row,
.tier-card,
.unranked-tray,
.stat-box,
.api-panel,
.video-card,
.video-thumb {
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 16px !important;
  background: rgba(20, 22, 32, .55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  color: #e9ebf2 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 24px 60px -22px rgba(0, 0, 0, .6) !important;
}
/* accent rim strips at top of hero/metric/venue cards */
.hero-panel::after,
.metric::after,
.venue-card::after {
  background: var(--mage-grad) !important;
  opacity: .85 !important;
}
.hero-panel::before {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(106, 215, 255, .10), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(179, 136, 255, .10), transparent 60%) !important;
}

/* ---- Headings / kickers / labels --------------------------- */
.hero-line,
.page-title,
.panel h2,
.creator-card h2 {
  color: #ffffff !important;
  letter-spacing: -.01em !important;
  text-shadow: none !important;
}
.hero-line strong {
  color: transparent !important;
  background: var(--mage-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}
.page-kicker,
.eyebrow,
.metric h3,
.stat-box span,
th,
label,
.api-row span,
.api-table-meta b {
  color: #aab0c2 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
}
.page-subtitle,
.muted,
.creator-card p,
.card p,
.note p,
.venue-description,
.api-note,
.stacked-cell small,
.api-table-meta span,
.honest-warning p,
.section-framing,
.empty,
.status,
.status-text {
  color: #aab0c2 !important;
}

/* ---- Inputs / secondary buttons / chips / segmented -------- */
.icon-button,
.button,
.chip,
.segmented,
.field,
.select,
.textarea,
input,
select,
textarea,
.kbd,
.palette-command {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #e9ebf2 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.segmented button {
  color: #aab0c2 !important;
  background: transparent !important;
  border-radius: 8px !important;
}
.icon-button:hover,
.button:hover,
.chip:hover {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .10) !important;
  box-shadow: 0 0 0 1px rgba(106, 215, 255, .18) !important;
  transform: translateY(-1px);
}

/* active / pressed chips, tabs -> accent gradient */
.chip[aria-pressed="true"],
.chip.active,
.segmented button[aria-pressed="true"] {
  color: #06121e !important;
  background-image: var(--mage-grad) !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px -6px rgba(106, 215, 255, .5) !important;
  text-shadow: none !important;
}

/* primary / secondary / danger buttons */
.button.primary {
  color: #06121e !important;
  border: 0 !important;
  background-image: var(--mage-grad) !important;
  box-shadow: 0 8px 22px -8px rgba(106, 215, 255, .5) !important;
  text-shadow: none !important;
}
.button.primary:hover { transform: translateY(-1px); }
.button.primary::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent) !important;
}
.button.secondary {
  color: #e9ebf2 !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .06) !important;
  text-shadow: none !important;
}
.button.danger {
  color: #ff6b8a !important;
  border-color: rgba(255, 107, 138, .45) !important;
  background: rgba(255, 107, 138, .08) !important;
  text-shadow: none !important;
}

/* focus rings */
.field:focus,
.select:focus,
.textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(106, 215, 255, .6) !important;
  box-shadow: 0 0 0 3px rgba(106, 215, 255, .25) !important;
  outline: none !important;
}
.button:focus-visible,
.chip:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(106, 215, 255, .65) !important;
  outline-offset: 2px !important;
}

/* ---- Badges / status pills / tags / new-badge -------------- */
.badge,
.status-pill,
.tag,
.new-badge {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #e9ebf2 !important;
  text-shadow: none !important;
}
.status-pill.live,
.status-pill.tracking-live,
.status-pill.pre,
.status-pill.post,
.tag.tge,
.tag.points,
.tag.snapshot,
.tag.update,
.tag.campaign,
.tag.fees-rebate,
.tag.listing,
.tag.competition,
.new-badge {
  border-color: rgba(106, 215, 255, .35) !important;
  background: rgba(106, 215, 255, .12) !important;
  color: #6ad7ff !important;
}
.status-pill.tracking-pending {
  border-color: rgba(255, 207, 106, .4) !important;
  background: rgba(255, 207, 106, .12) !important;
  color: #ffcf6a !important;
}
.status-pill.tracking-soon {
  border-color: rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .05) !important;
  color: #aab0c2 !important;
}

/* ---- Venue logos / fallback -------------------------------- */
.venue-logo {
  border-color: rgba(255, 255, 255, .14) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: #e9ebf2 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 16px rgba(106, 215, 255, .1) !important;
}
.venue-logo img { background: transparent !important; }
.venue-logo-fallback {
  background: var(--mage-grad) !important;
  color: #06121e !important;
}
.venue-logo.is-fallback .venue-logo-fallback { color: #06121e !important; }
.venue-card::after { background: var(--mage-grad) !important; }

/* ---- Tables ------------------------------------------------ */
th {
  background: rgba(255, 255, 255, .04) !important;
  color: #aab0c2 !important;
}
td {
  color: #e9ebf2 !important;
  border-bottom-color: rgba(255, 255, 255, .08) !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
}
tr:hover td,
table tbody tr:hover {
  background: rgba(106, 215, 255, .07) !important;
}

/* ---- Bar fills / progress -> accent gradient + glow -------- */
.bar-fill,
.bar > span,
.progress > span,
.meter-fill {
  background: var(--mage-grad) !important;
  box-shadow: 0 0 14px -2px rgba(106, 215, 255, .45) !important;
}

/* ---- Notes / framing / warnings ---------------------------- */
.note,
.warning-note,
.strategy-disclaimer {
  background: rgba(20, 22, 32, .55) !important;
}
.warning-note {
  border-color: rgba(255, 207, 106, .4) !important;
}
.warning-note strong,
.honest-warning span {
  color: #ffcf6a !important;
}
.section-framing {
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-left: 4px solid #6ad7ff !important;
  color: #aab0c2 !important;
}
.honest-warning {
  border-color: rgba(255, 255, 255, .10) !important;
}

/* ---- Code blocks / toasts ---------------------------------- */
.codeblock {
  border: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(10, 11, 18, .7) !important;
  color: #e9ebf2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -22px rgba(0, 0, 0, .6) !important;
}
.codeblock code {
  color: #c9d1e6 !important;
  text-shadow: none !important;
}
.toast {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  background: rgba(20, 22, 32, .8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  color: #e9ebf2 !important;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .6) !important;
}

/* ---- Drawers / command palette ----------------------------- */
.drawer-backdrop,
.palette-backdrop {
  background: rgba(6, 7, 12, .55) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.drawer-panel,
.palette-panel {
  background: rgba(16, 18, 28, .85) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
}
.drawer-head {
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(20, 22, 32, .5) !important;
}
.drawer-body {
  background: transparent !important;
}
.palette-command,
.kbd,
.empty {
  border-color: rgba(255, 255, 255, .12) !important;
  background: rgba(255, 255, 255, .05) !important;
  color: #aab0c2 !important;
}
.palette-command:hover,
.palette-command[aria-selected="true"] {
  border-color: rgba(106, 215, 255, .5) !important;
  background: rgba(106, 215, 255, .1) !important;
  color: #ffffff !important;
}

/* ---- Video cards ------------------------------------------- */
.video-card:hover {
  border-color: rgba(106, 215, 255, .4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 24px 60px -22px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(106, 215, 255, .22) !important;
}

/* ---- Loading screen / spinner ------------------------------ */
.loading-screen {
  border: 1px solid rgba(255, 255, 255, .10) !important;
  background: rgba(12, 13, 22, .92) !important;
  color: #e9ebf2 !important;
}
.spinner {
  border-color: rgba(255, 255, 255, .14) !important;
  border-top-color: #6ad7ff !important;
}

/* ---- Card / surface hover motion --------------------------- */
.card,
.metric,
.kpi,
.creator-card,
.venue-card,
.event-item,
.desk-feed-item,
.stat-box {
  transition:
    border-color .18s cubic-bezier(.22, 1, .36, 1),
    box-shadow .18s cubic-bezier(.22, 1, .36, 1),
    transform .18s cubic-bezier(.22, 1, .36, 1),
    background .18s cubic-bezier(.22, 1, .36, 1) !important;
}
.card:hover,
.metric:hover,
.venue-card:hover,
.creator-card:hover {
  border-color: rgba(255, 255, 255, .16) !important;
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 30px 70px -24px rgba(0, 0, 0, .7),
    0 0 0 1px rgba(106, 215, 255, .22) !important;
}
.stat-box:hover {
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .06) !important;
}
.button:hover,
.chip:hover {
  box-shadow: 0 0 0 1px rgba(106, 215, 255, .2) !important;
}

/* ---- Numeric / glow cleanup (drop green text-shadows) ------ */
.num, .kpi strong, .metric strong, td, .stat-box strong, .bar-value, .venue-stats strong {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
}
.metric strong,
.kpi strong,
.stat-box strong {
  color: #ffffff !important;
  text-shadow: none !important;
}
.hero-line,
.page-title,
.panel h2,
.creator-card h2,
.aqua-titlebar,
.codeblock code,
.eyebrow,
.page-kicker {
  text-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .card, .metric, .kpi, .creator-card, .venue-card,
  .event-item, .desk-feed-item, .stat-box,
  .button, .chip, .topnav a, table tbody tr {
    transition: none !important;
  }
  .card:hover, .metric:hover, .venue-card:hover, .creator-card:hover,
  .button:hover, .button.primary:hover, .chip:hover,
  .icon-button:hover { transform: none !important; }
  .button.primary::after { transition: none !important; }
}

/* GLASS COHESION v2 — kill matrix scanline + rain */
body::after { display: none !important; }
.matrix-rain, #matrix-rain { display: none !important; }
.wallpaper-overlay { background: linear-gradient(135deg, rgba(10,11,18,.55), rgba(10,11,18,.35) 48%, rgba(10,11,18,.6)) !important; }

/* LIQUID GLASS v3 — specular + frost */
.app-header, .chart-panel, .rankings-panel, .kpi {
  -webkit-backdrop-filter: blur(20px) saturate(172%) !important;
  backdrop-filter: blur(20px) saturate(172%) !important;
  box-shadow: inset 0 1px 0.5px rgba(255,255,255,.2), 0 16px 42px -22px rgba(0,0,0,.55) !important;
}
.app-header {
  -webkit-backdrop-filter: blur(20px) saturate(175%) !important;
  backdrop-filter: blur(20px) saturate(175%) !important;
}

/* TYPOGRAPHY v4 — Inter prose */
.panel-head span, .kpi small, .app-footer, .source-status { font-family: "Inter", -apple-system, system-ui, sans-serif !important; letter-spacing: -.004em; }
h1, h2 { letter-spacing: -.02em; }
.bar-value, .kpi strong, td, .num { font-variant-numeric: tabular-nums; }

/* ============================================================
   STATS -> full glass (kill the green terminal look)
   ============================================================ */
body { background: linear-gradient(rgba(8,10,16,.5), rgba(8,10,16,.62)) !important; }
.app-header, .chart-panel, .rankings-panel, .kpi {
  background: rgba(13,16,26,.5) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  -webkit-backdrop-filter: blur(18px) saturate(175%) !important; backdrop-filter: blur(18px) saturate(175%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 40px -22px rgba(0,0,0,.5) !important;
  border-radius: 16px !important;
}
.prompt { color: #6ad7ff !important; text-shadow: 0 0 12px rgba(106,215,255,.55) !important; }
h1 { color: #fff !important; text-shadow: 0 0 16px rgba(106,215,255,.4) !important; }
h2 { color: #fff !important; }
.brand-lockup p, .panel-head span, .kpi small, .app-footer, .muted, .source-status { color: #9aa6c0 !important; }
.source-status { color: #cfd6e6 !important; }
.bar-row { background: rgba(255,255,255,.03) !important; border: 1px solid rgba(255,255,255,.08) !important; }
.bar-row:hover { background: rgba(106,215,255,.1) !important; }
.bar-track { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.1) !important; }
.venue-name, .bar-value, .kpi strong { color: #f0f3fa !important; }
.metric-tab, .filter-tab { color: #9aa6c0 !important; }
.metric-tab.active, .filter-tab.active { background: linear-gradient(116deg,#6ad7ff,#b388ff) !important; color: #06121e !important; text-shadow: none !important; }
.segmented, .filter-tabs { background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.16) !important; }
.live-dot { background: #6ad7ff !important; box-shadow: 0 0 14px rgba(106,215,255,.9) !important; }
.logo { border-color: rgba(255,255,255,.16) !important; background: rgba(255,255,255,.06) !important; }
#search { background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.18) !important; color: #f0f3fa !important; }

/* ============================================================
   BUBBBLY GLASS — stats light-white over butterfly wallpaper
   (overrides the dark-translucent block above)
   ============================================================ */
body { background: linear-gradient(rgba(6,8,14,.32), rgba(6,8,14,.50)), url("../assets/wallpaper-glass.jpg?v=3") center center / cover no-repeat fixed !important; }
.app-header, .chart-panel, .rankings-panel, .kpi {
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.36) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important; backdrop-filter: blur(20px) saturate(1.3) !important;
}
h1, h2, .venue-name, .bar-value, .kpi strong { color:#fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.32); }
.prompt { color:#cfe9ff !important; text-shadow: 0 0 12px rgba(160,210,255,.5) !important; }
.brand-lockup p, .panel-head span, .kpi small, .app-footer, .muted, .source-status { color: rgba(255,255,255,.74) !important; }
.bar-row { background: rgba(255,255,255,.05) !important; border:1px solid rgba(255,255,255,.16) !important; }
.bar-row:hover { background: rgba(255,255,255,.15) !important; }
.bar-track { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.16) !important; }
.metric-tab, .filter-tab { color: rgba(255,255,255,.74) !important; }
.metric-tab.active, .filter-tab.active { background:#fff !important; color:#12233b !important; text-shadow:none !important; }
.segmented, .filter-tabs { background: rgba(255,255,255,.07) !important; border:1px solid rgba(255,255,255,.30) !important; }
#search { background: rgba(255,255,255,.07) !important; border:1px solid rgba(255,255,255,.42) !important; color:#fff !important; }
.empty { color: rgba(255,255,255,.7) !important; }

/* ============================================================
   ROOT FIX — the green-black table/sorted-header/bars came from
   CSS vars never redefined for the glass theme. Redefine them.
   ============================================================ */
:root {
  --bg: transparent !important;
  --panel: rgba(20,22,32,.5) !important;
  --panel-strong: rgba(14,16,24,.6) !important;
  --green: #6ad7ff !important;
  --green-soft: rgba(106,215,255,.16) !important;
  --green-dim: #9aa6c0 !important;
  --text: #e7ecf6 !important;
  --text-bright: #ffffff !important;
  --line-bright: rgba(255,255,255,.5) !important;
  --muted: rgba(255,255,255,.72) !important;
}
/* table surfaces -> glass (sit on the rankings-panel glass) */
.table-frame, table, thead, tbody, tr, td, th { background: transparent !important; }
thead th { background: rgba(255,255,255,.05) !important; border-bottom: 1px solid rgba(255,255,255,.18) !important; }
thead th button { color: rgba(255,255,255,.78) !important; }
thead button.sorted { color: #fff !important; }
thead button.sorted::after { color: #6ad7ff !important; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,.08) !important; }
tbody tr:hover { background: rgba(255,255,255,.10) !important; }
tbody td, tbody th { color: #eef2fb !important; border-color: rgba(255,255,255,.08) !important; }

/* image #24 — venue bars too loud -> translucent white gauge */
.bar-fill {
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.42)) !important;
  box-shadow: inset 0 0 6px rgba(255,255,255,.18) !important;
}
.metric-tab.active, .filter-tab.active, .chip.active { background: #ffffff !important; background-image: none !important; color: #14233b !important; }
.live-dot { background: #ffffff !important; box-shadow: 0 0 10px rgba(255,255,255,.7) !important; }

/* brighter wallpaper (directive) */
body { background: linear-gradient(rgba(6,8,14,.10), rgba(6,8,14,.18)), url("../assets/wallpaper-glass.jpg?v=3") center center / cover no-repeat fixed !important; }

/* PERF: lighter blur, no bg animations */
.app-header, .chart-panel, .rankings-panel, .kpi {
  -webkit-backdrop-filter: blur(9px) saturate(1.2) !important; backdrop-filter: blur(9px) saturate(1.2) !important;
}
.matrix-rain { display: none !important; }
body { background-attachment: scroll !important; }

/* PERF: stop decorative animations */
[class*="aurora"], [class*="mg-"], [class*="mfx-"], .glow-orb, .bar-fill { animation: none !important; }

/* temporary matrix-rain loading overlay (separate from retired background #matrix-rain) */
.load-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(6,8,14,.85); transition: opacity .5s ease; }
.load-overlay.hidden { opacity: 0; pointer-events: none; }
.load-matrix { position: absolute; inset: 0; width: 100%; height: 100%; }

/* image #32 — stats tabs/buttons = transparent glass + white font */
.metric-tab, .filter-tab { background: rgba(255,255,255,.10) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.3) !important; background-image: none !important; }
.metric-tab.active, .filter-tab.active, .chip.active { background: rgba(255,255,255,.24) !important; color: #ffffff !important; border-color: rgba(255,255,255,.6) !important; background-image: none !important; text-shadow: none !important; }
thead th button { color: rgba(255,255,255,.8) !important; }

/* ============================================================
   image #33 — DIRECTIVE: every font white, every border white.
   The leftover green came from vars never redefined: --line (border),
   --text (placeholder/text), --green. Force them white.
   ============================================================ */
:root {
  --line: rgba(255,255,255,.16) !important;
  --line-bright: rgba(255,255,255,.5) !important;
  --green: #ffffff !important;
  --green-soft: rgba(255,255,255,.14) !important;
  --green-dim: rgba(255,255,255,.7) !important;
  --text: #ffffff !important;
  --text-bright: #ffffff !important;
  --muted: rgba(255,255,255,.72) !important;
  --yellow: #ffffff !important;
}
#search { color: #ffffff !important; border: 1px solid rgba(255,255,255,.42) !important; box-shadow: none !important; }
#search::placeholder { color: rgba(255,255,255,.55) !important; }
#search:focus { border-color: rgba(255,255,255,.6) !important; box-shadow: 0 0 0 3px rgba(255,255,255,.14) !important; }
.prompt { color: #ffffff !important; text-shadow: 0 0 10px rgba(255,255,255,.4) !important; }

/* terminal-typing boot loader overlay */
.load-overlay { position:fixed; inset:0; z-index:9000; background:rgba(6,8,14,.9); display:grid; place-items:center; transition:opacity .5s ease; }
.load-overlay.hidden { opacity:0; pointer-events:none; }
.load-term { background:rgba(20,24,38,.6); border:1px solid rgba(255,255,255,.22); border-radius:14px; padding:22px 26px; max-width:520px; -webkit-backdrop-filter:blur(11px); backdrop-filter:blur(11px); }
.load-term-head { font:600 11px/1 'IBM Plex Mono',monospace; color:rgba(255,255,255,.6); margin-bottom:10px; }
.load-pre { font:600 13px/1.7 'IBM Plex Mono',monospace; color:#fff; margin:0; white-space:pre-wrap; }
.load-pre::after { content:"▌"; animation:blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity:0; } }

/* image #39 — logo boxes had a whitish tint; make them clean glass (no white margin) */
.logo { background: transparent !important; border: 1px solid rgba(255,255,255,.12) !important; }
.logo.fallback { background: rgba(255,255,255,.06) !important; }

/* ============================================================
   GLOSSARY TOOLTIPS — native title="" hover help (zero JS)
   Beginner education: signal that hover tooltips exist.
   ============================================================ */
th button[title], .kpi[title] { cursor: help; }
th button[title] { text-decoration: underline dotted rgba(255,255,255,.3); text-underline-offset: 3px; }

/* ---- bar strip: rounded corners + pill gauges (match the glass UI) -------
   Rows / logo squares / tracks were hard 0px rectangles, clashing with the
   rounded glass panels they sit inside. Round them; turn the long empty
   gauge into a clean pill so small fills read as a dot, not a boxy void. */
.bar-row {
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.logo {
  border-radius: 8px !important;
}
.bar-track {
  height: 14px !important;
  border-radius: 999px !important;
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.06) !important;
}
.bar-fill {
  border-radius: 999px !important;
}

/* ============================================================
   SPREAD & FUNDING (24h avg, BTC) — live top-of-book table fed by
   coinmage777/mageos-data metrics.json. Inherits the rankings-panel
   glass chrome; only additive tweaks live here.
   ============================================================ */
.spread-panel[hidden] { display: none !important; } /* author display rules would beat UA [hidden] */
.spread-panel .table-frame th { white-space: nowrap; }
.spread-panel td { font-variant-numeric: tabular-nums; }

/* binance reference row — visually set apart as the CEX baseline */
tr.cex-ref-row td { background: rgba(255, 255, 255, .055) !important; }
.cex-tag {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font: 600 9px/1.6 "IBM Plex Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}

/* funding sign — subtle terminal tint (only non-white accents on purpose) */
.spread-panel .fund-pos { color: #9dffbe; }
.spread-panel .fund-neg { color: #ff9fb2; }

.spread-footnote {
  margin: 10px 4px 0;
  font: 500 11px/1.6 "IBM Plex Mono", monospace;
  color: rgba(255, 255, 255, .62);
}

/* the global th/td first-child (54px rank col) + nth-child(2) (left-align DEX
   col) rules are shaped for the rankings table — undo them for this layout:
   venue column first (auto width, left-aligned), numeric columns right-aligned */
.spread-panel th:first-child,
.spread-panel td:first-child { width: auto; }
.spread-panel th:nth-child(2),
.spread-panel td:nth-child(2) { text-align: right; }
