:root {
  --bg: #03060d; --bg2: #060b16;
  --panel: rgba(12, 22, 38, .62); --panel-solid: #0b1424; --panel2: rgba(34, 211, 238, .06);
  --text: #e8f3ff; --muted: #7f93ab; --line: rgba(80, 170, 230, .16); --line2: rgba(80, 170, 230, .32);
  --brand: #22d3ee; --brand2: #33a2da; --violet: #8b5cf6; --pink: #f472b6;
  --good: #34d399; --bad: #fb7185; --warn: #fbbf24;
  --glow: 0 0 0 1px rgba(34, 211, 238, .08), 0 10px 40px -12px rgba(34, 211, 238, .25);
  --grid: rgba(51, 162, 218, .07);
  --tiles: invert(1) hue-rotate(180deg) brightness(.75) contrast(.95) saturate(.6);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Orbitron", "Space Grotesk", sans-serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  --bg: #eef4fb; --bg2: #e6eef8;
  --panel: rgba(255, 255, 255, .78); --panel-solid: #ffffff; --panel2: rgba(14, 116, 144, .06);
  --text: #08131f; --muted: #536479; --line: rgba(14, 90, 140, .14); --line2: rgba(14, 90, 140, .3);
  --brand: #0891b2; --brand2: #2b8fc0; --violet: #7c3aed; --pink: #db2777;
  --good: #059669; --bad: #e11d48; --warn: #b45309;
  --glow: 0 1px 2px rgba(10, 40, 70, .06), 0 10px 30px -14px rgba(8, 145, 178, .35);
  --grid: rgba(8, 145, 178, .08);
  --tiles: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
.bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.bg-glow { position: fixed; left: -10%; right: -10%; top: -20%; height: 80vh; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 20%, rgba(34, 211, 238, .14), transparent 70%),
              radial-gradient(35% 45% at 85% 10%, rgba(139, 92, 246, .14), transparent 70%); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--text); }
code, .mono, .hash { font-family: var(--mono); }
code { font-size: .88em; color: var(--brand); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* header */
.top { position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--violet), transparent); opacity: .55; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 16px var(--display); letter-spacing: .14em; white-space: nowrap; }
.brand img { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.brand b { margin-left: 6px; background: linear-gradient(90deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-weight: 500; font-size: 14px; letter-spacing: .02em; position: relative; }
nav a:hover { color: var(--text); background: var(--panel2); }
nav a.on { color: var(--text); }
nav a.on::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--violet)); box-shadow: 0 0 10px var(--brand); }
#search { display: flex; min-width: 0; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--panel); transition: box-shadow .2s, border-color .2s; }
#search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 24px -6px var(--brand); }
#search input { width: 290px; max-width: 52vw; padding: 9px 12px; border: 0; background: transparent; color: var(--text); font: 14px var(--mono); outline: none; }
#search button { border-radius: 0; padding: 0 14px; font-size: 18px; }
button { padding: 8px 14px; border: 0; border-radius: 10px; font: 600 14px var(--sans); cursor: pointer; color: #021018;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); transition: filter .15s, box-shadow .15s; }
button:hover { filter: brightness(1.1); box-shadow: 0 0 18px -4px var(--brand); }
button.ghost, button.icon { background: var(--panel); color: var(--text); border: 1px solid var(--line2); }
#syncbar { position: relative; text-align: center; padding: 8px 16px; font-size: 13px; color: var(--text); letter-spacing: .02em;
  background: linear-gradient(90deg, rgba(251, 191, 36, .08), rgba(251, 191, 36, .16), rgba(251, 191, 36, .08)); border-bottom: 1px solid rgba(251, 191, 36, .3); }
#syncbar .track { display: block; max-width: 420px; height: 3px; margin: 6px auto 0; border-radius: 3px; background: rgba(251, 191, 36, .15); overflow: hidden; }
#syncbar .track i { display: block; height: 100%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
main { padding-top: 26px; padding-bottom: 36px; min-height: 70vh; }
footer { padding-bottom: 30px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; }

/* type */
h1 { font: 700 26px var(--display); letter-spacing: .04em; margin: 4px 0 18px; overflow-wrap: anywhere; }
h2 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 1px; background: var(--brand); box-shadow: 0 0 8px var(--brand); transform: rotate(45deg); }
.eyebrow { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .22em; color: var(--brand); }

/* surfaces */
.panel, .card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--glow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.panel { padding: 18px; margin-bottom: 18px; }
.panel::before, .card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, .35), transparent 35%, transparent 65%, rgba(139, 92, 246, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 18px; }
.card { padding: 16px 18px; overflow: hidden; }
.stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; }
.stat .v { font: 700 22px var(--display); letter-spacing: .02em; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .v small { font: 500 12px var(--sans); color: var(--muted); letter-spacing: .08em; margin-left: 4px; }
.stat .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.stat.accent .v { background: linear-gradient(90deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols.wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .cols, .cols.wide { grid-template-columns: minmax(0, 1fr); } }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.hero .main { padding: 26px 26px 22px; overflow: hidden; }
.hero .main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%); pointer-events: none; }
.height { font: 800 clamp(40px, 7vw, 68px)/1.05 var(--display); letter-spacing: .02em; margin: 10px 0 6px; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--text), var(--brand) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.height.tick { animation: tick .9s ease-out; }
@keyframes tick { 0% { filter: drop-shadow(0 0 22px var(--brand)); } 100% { filter: none; } }
.hero .sub { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.hero .side { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.hero .side .card:first-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* tables */
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table tr:hover td { background: var(--panel2); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.num { font-family: var(--mono); font-size: 13.5px; }
.hash { font-size: 13px; overflow-wrap: anywhere; }
.trunc { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
tr.new td { animation: rowin 1.4s ease-out; }
@keyframes rowin { 0% { background: rgba(34, 211, 238, .2); } 100% { background: transparent; } }
.kv { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.kv > div { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv > div:nth-child(odd) { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; padding-top: 12px; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); } .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; } }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.pill.pos { color: var(--brand); border-color: rgba(34, 211, 238, .35); }
.pill.ok { color: var(--good); border-color: rgba(52, 211, 153, .35); }
.pill.bad { color: var(--bad); border-color: rgba(251, 113, 133, .35); }
.pill.warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.plus { color: var(--good); } .minus { color: var(--bad); }
.io { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 8px; align-items: start; }
.io .arrow { text-align: center; color: var(--brand); padding-top: 6px; font-size: 18px; text-shadow: 0 0 10px var(--brand); }
.io .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.io .row > span { min-width: 0; overflow-wrap: anywhere; }
.io .row b { font-family: var(--mono); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 700px) { .io { grid-template-columns: minmax(0, 1fr); } .io .arrow { transform: rotate(90deg); } }
.pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
#map { height: 460px; border-radius: 12px; z-index: 1; background: var(--bg2); }
.tiles-themed { filter: var(--tiles); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel-solid); color: var(--text); }
.bar-h { height: 6px; background: var(--panel2); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.bar-h > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--violet)); box-shadow: 0 0 8px var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.chart { position: relative; height: 280px; }
.chart.tall { height: 380px; }
.chart.pie { height: 320px; }
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.note b { color: var(--text); }
pre { background: var(--panel2); border: 1px solid var(--line); padding: 14px; border-radius: 10px; overflow-x: auto; font: 13px/1.7 var(--mono); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: var(--panel); color: var(--muted); border: 1px solid var(--line2); font-weight: 500; }
.tabs button.on { background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; border-color: transparent; }
.err { color: var(--bad); }
.loader { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.loader i { width: 10px; height: 10px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: ld 1s infinite ease-in-out; transform: rotate(45deg); }
.loader i:nth-child(2) { animation-delay: .15s; background: var(--brand2); } .loader i:nth-child(3) { animation-delay: .3s; background: var(--violet); }
@keyframes ld { 0%, 100% { opacity: .2; transform: rotate(45deg) scale(.7); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
.split { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.split h2 { margin-bottom: 14px; }
@media (max-width: 900px) {
  .bar { gap: 10px; }
  .brand { flex: 1; }
  nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  nav a { white-space: nowrap; }
  #search { order: 4; flex: 0 0 100%; }
  #search input { width: 100%; max-width: none; }
  .hero .main { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text > span { margin-right: -.14em; }  /* drop trailing tracking so both lines share the same edges */
.brand-text b { margin-left: 0; margin-top: 3px; font: 600 11px var(--sans); letter-spacing: 0; text-transform: lowercase; }
.brand-text b.spread { display: flex; justify-content: space-between; }
.brand-text b.spread i { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--violet)); background-size: 900% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text b.spread i:nth-child(1) { background-position: 0 0; } .brand-text b.spread i:nth-child(2) { background-position: 14% 0; }
.brand-text b.spread i:nth-child(3) { background-position: 28% 0; } .brand-text b.spread i:nth-child(4) { background-position: 42% 0; }
.brand-text b.spread i:nth-child(5) { background-position: 57% 0; } .brand-text b.spread i:nth-child(6) { background-position: 71% 0; }
.brand-text b.spread i:nth-child(7) { background-position: 85% 0; } .brand-text b.spread i:nth-child(8) { background-position: 100% 0; }
/* compact hero side cards + stat row */
.hero { align-items: stretch; }
.hero .main { padding: 22px 24px 20px; }
.hero .side { gap: 12px; grid-auto-rows: 1fr; }
.hero .side .card { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.hero .side .stat .v { font-size: 19px; margin-top: 4px; }
.hero .side .stat .s { font-size: 12px; margin-top: 0; }
.height { margin: 6px 0 4px; }
#stats { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
#stats .card { padding: 12px 16px; }
#stats .stat .v { font-size: 18px; margin-top: 4px; }
#stats .stat .s { font-size: 12px; margin-top: 0; }
/* stat strip under the hero: one slim row */
#stats { gap: 10px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
#stats .card { padding: 9px 12px; border-radius: 12px; }
#stats .stat .k { font-size: 9.5px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#stats .stat .v { font-size: 15px; margin-top: 3px; }
#stats .stat .v small { font-size: 10px; }
#stats .stat .s { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { #stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { #stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* footer — matches iocoin.io */
.site-foot { --f-fg: #f2f6fa; --f-soft: #9aa7b8; --f-dim: #6b7a8d; --f-edge: rgba(255,255,255,.09); --spring: cubic-bezier(.16,1,.3,1);
  position: relative; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.06); padding: clamp(44px,7vh,72px) 0 34px;
  background-color: #05080f; font-family: var(--sans); }
.site-foot .fgrid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(24px,4vw,48px); }
.site-foot .lg { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -.016em; color: var(--f-fg); white-space: nowrap; }
.site-foot .lg img { width: 42px; height: 42px; filter: drop-shadow(0 2px 12px rgba(76,195,240,.55)); }
.site-foot .fbrand p { margin: 14px 0 0; max-width: 34ch; color: var(--f-dim); font-size: 13px; line-height: 1.62; }
.site-foot .social { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.site-foot .social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--f-edge);
  background: rgba(255,255,255,.04); color: var(--f-soft); transition: transform .5s var(--spring), color .4s, border-color .4s, background .4s; }
.site-foot .social a:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.1); }
.site-foot .social svg { width: 15px; height: 15px; fill: currentColor; }
.site-foot .fnav { display: block; flex: none; }
.site-foot .fnav h4 { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--f-dim); }
.site-foot .fnav a { display: block; margin-top: 11px; padding: 0; border-radius: 0; background: none; color: var(--f-soft); font-size: 13.5px; font-weight: 400; transition: color .35s; }
.site-foot .fnav a:hover { color: #fff; background: none; }
.site-foot .fnav a::after { display: none; }
.site-foot .fcopy { margin: clamp(32px,5vh,52px) 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.055); color: var(--f-dim); font-size: 12.5px; }
@media (max-width: 860px) { .site-foot .fgrid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .site-foot .fbrand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .site-foot { padding-top: clamp(32px,5vh,52px); } .site-foot .fgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 18px; } .site-foot .social a { width: 42px; height: 42px; } .site-foot .fnav a { margin-top: 0; padding: 8px 0; font-size: 13px; } }
.site-foot .fnav { order: 0; overflow: visible; flex-wrap: wrap; gap: 0; }
.site-foot .fnav a { white-space: normal; letter-spacing: normal; }
