@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&display=swap');
/* ---------------------------------------------------------------------------
   Repainted to P1 Green.
   
   The legacy palette is remapped onto the P1 tokens rather than the markup
   being rewritten, because these files are token-driven and seventeen pages
   share them. One edit here moves every page.
   
   What this DOES achieve: ground, phosphor, rules, faces and the accent are
   the terminal system everywhere.
   
   What it does NOT: rule 1 says direction must be carried by a glyph, because
   green is already the text colour. Retrofitting ▲/▼ needs markup, so any page
   still signalling gain by hue alone is repainted but not yet compliant.
   --------------------------------------------------------------------------- */
/* ============================================================================
   terminal.css: the testnet trading surface.

   Dense, calm and table first. A trader reads a market list before they read a
   chain, so the market list is the primary surface and everything else is a
   drill down from it.

   Muted rather than neon. A saturated accent on a dark ground is legible for a
   marketing page and exhausting on a screen somebody watches for an hour, and
   it also competes with the red and green that have to carry meaning.
   ========================================================================== */


:root {
  --bg: #050B07;
  --panel: #091308;
  --panel-2: #091308;
  --hover: rgba(125,255,166,.13);
  --line: rgba(125,255,166,.24);
  --line-2: rgba(125,255,166,.13);
  --ink: #7DFFA6;
  --ink-2: rgba(125,255,166,.84);
  --ink-3: rgba(125,255,166,.62);
  --ink-4: rgba(125,255,166,.42);
  --up: #DCFFE7;
  --up-soft: rgba(220,255,231,.10);
  --down: #FF6B47;
  --down-soft: rgba(255,107,71,.12);
  --warn: #FFB000;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r: 0px;  /* brand rule: square corners everywhere */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 18px;
}

.mono,
.n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

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

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

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

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 18px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--up);
  flex: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
}

.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(224, 163, 90, 0.35);
  background: rgba(224, 163, 90, 0.08);
  padding: 3px 8px;
  border-radius: 0;
  white-space: nowrap;
}

/* ----------------------------------------------------------- stats strip */

.strip {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.strip-in {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip-in::-webkit-scrollbar {
  display: none;
}

.stat {
  padding: 12px 22px 12px 0;
  margin-right: 22px;
  border-right: 1px solid var(--line-2);
  white-space: nowrap;
  flex: none;
}

.stat:last-child {
  border-right: 0;
}

.stat .lab {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.stat .val {
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------------------------------------------------------------- panels */

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

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.panel-head .sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.panel-body {
  padding: 14px;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 1180px) {
  .grid.split {
    grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  }
}

/* ------------------------------------------------------------- highlight */

.cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 14px 0;
}

.hcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
}

.hcard .lab {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.hcard .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.hcard .sym {
  font-weight: 600;
  font-size: 15px;
}

.hcard .big {
  font-family: var(--mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.hcard .sm {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ----------------------------------------------------------------- table */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tbl th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.tbl td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}

.tbl tbody tr:last-child td {
  border-bottom: 0;
}

.tbl tbody tr {
  cursor: pointer;
}

.tbl tbody tr:hover td {
  background: var(--hover);
}

.tbl tr[aria-selected='true'] td {
  background: var(--up-soft);
}

.tbl tr[aria-selected='true'] td:first-child {
  box-shadow: inset 2px 0 0 var(--up);
}

.tbl .r {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.tbl th.r {
  font-family: var(--sans);
}

.tbl .sym {
  color: var(--ink);
  font-weight: 600;
}

.tbl .nm {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 400;
  margin-left: 7px;
}

.scroll {
  overflow-x: auto;
  max-height: 460px;
  overflow-y: auto;
}

/* ----------------------------------------------------------- chain table */

.chain td {
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.chain th {
  padding: 8px 12px;
}

.chain tr.atm td {
  background: rgba(63, 158, 116, 0.07);
}

.chain tr:hover td {
  background: var(--hover);
}

.chain .strike {
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

.chain .iv {
  color: var(--up);
}

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.btn:hover {
  border-color: var(--ink-4);
  color: var(--ink);
}

.btn.buy {
  border-color: rgba(92, 201, 139, 0.4);
  color: var(--up);
}

.btn.buy:hover {
  background: var(--up-soft);
  border-color: var(--up);
}

.btn.sell {
  border-color: rgba(224, 106, 90, 0.35);
  color: var(--down);
}

.btn.sell:hover {
  background: var(--down-soft);
  border-color: var(--down);
}

.btn.solid {
  background: var(--up);
  border-color: var(--up);
  color: #03170A;
  font-weight: 600;
}

.btn.solid:hover {
  background: #74d69d;
  color: #03170A;
}

.btn.xs {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 0;
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn-row .btn {
  flex: 1;
  text-align: center;
}

/* ------------------------------------------------------------------ chips */

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--ink-4);
}

.chip[aria-pressed='true'] {
  background: var(--up-soft);
  border-color: rgba(92, 201, 139, 0.45);
  color: var(--up);
}

/* ------------------------------------------------------------------- kv */

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}

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

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

.kv dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

dl.kvs {
  margin: 0;
}

.bar {
  height: 4px;
  background: var(--line);
  border-radius: 0;
  overflow: hidden;
  margin-top: 8px;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--up);
  transition: width 0.2s;
}

/* ---------------------------------------------------------------- inputs */

label.fl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

label.fl .v {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

input[type='text'],
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 8px 10px;
}

input[type='text']:focus,
select:focus {
  outline: none;
  border-color: var(--up);
}

input[type='range'] {
  width: 100%;
  accent-color: var(--up);
  height: 22px;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ misc */

.empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--ink-4);
  font-size: 12.5px;
}

.note {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 10px 0 0;
}

.spark {
  display: block;
}

.pill {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
}

footer.foot {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding: 22px 0 46px;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.7;
}

footer.foot a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
