/* ============================================================
   Retium Live — dashboard styles
   No frameworks, no build step.
   ============================================================ */

:root {
  --bg: #040805;
  --bg-2: #060d08;
  --panel: rgba(9, 20, 12, 0.78);
  --panel-2: rgba(5, 12, 7, 0.9);
  --line: rgba(74, 222, 128, 0.14);
  --line-strong: rgba(74, 222, 128, 0.32);
  --green: #4ade80;
  --green-bright: #86efac;
  --green-dim: #166534;
  --lime: #bef264;
  --cyan: #34d399;
  --orange: #fb923c;
  --purple: #c084fc;
  --blue: #60a5fa;
  --pink: #f472b6;
  --text: #e9f6ee;
  --muted: #8ba396;
  --muted-2: #5f7568;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.95);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(34, 197, 94, 0.13), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(16, 185, 129, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(74, 222, 128, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--green);
  color: #04140a;
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 222, 128, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 222, 128, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(4, 8, 5, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1320px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
}
.footer-brand .brand-logo { height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(74, 222, 128, 0.06); }
.nav-link.is-active { color: var(--green-bright); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgba(22, 101, 52, 0.16);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(9, 20, 12, 0.8);
  cursor: pointer;
  padding: 0;
  place-content: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 16px; height: 1.5px;
  margin: 3px auto;
  background: var(--green-bright);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(140deg, #4ade80, #22c55e);
  color: #03130a;
  box-shadow: 0 10px 30px -12px rgba(74, 222, 128, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: linear-gradient(140deg, #6ee7a0, #34d399); }

.btn-ghost {
  background: rgba(9, 20, 12, 0.6);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); background: rgba(74, 222, 128, 0.07); }

.btn-icon { padding: 9px 12px; font-size: 12px; }

.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

#refresh-btn.is-loading { pointer-events: none; opacity: 0.7; }
#refresh-btn.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(74, 222, 128, 0.05);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pill.ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(22, 101, 52, 0.2);
  color: var(--green-bright);
}
.pill.warn {
  border-color: rgba(251, 146, 60, 0.35);
  background: rgba(124, 45, 18, 0.2);
  color: #fdba74;
}
.pill.link { text-decoration: none; color: var(--green-bright); transition: border-color 0.2s ease; }
.pill.link:hover { border-color: var(--line-strong); }

.chip {
  border: 1px solid var(--line);
  background: rgba(74, 222, 128, 0.05);
  color: var(--muted);
  border-radius: 99px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--green-bright); border-color: var(--line-strong); background: rgba(74, 222, 128, 0.1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(46px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px; height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.16), transparent 65%);
  pointer-events: none;
  filter: blur(30px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  padding-bottom: clamp(50px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.9);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #86efac 0%, #4ade80 45%, #22c55e 70%, #a3e635 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(74, 222, 128, 0.25));
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.hero-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.status-card {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(14, 30, 19, 0.92), rgba(5, 12, 7, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.status-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.55), transparent);
  opacity: 0.7;
}
.status-card-wide { grid-column: span 2; }
.status-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.status-card strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(25px, 3.2vw, 37px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.status-card-wide strong { color: var(--green-bright); text-shadow: 0 0 30px rgba(74, 222, 128, 0.25); }
.status-sub {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--mono);
}

.hero-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(3, 8, 5, 0.65);
  padding: 10px 0;
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 55s linear infinite;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.marquee-track span { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.marquee-track b { color: var(--green); font-weight: 500; }
.marquee-track i {
  width: 4px; height: 4px;
  background: var(--green-dim);
  border-radius: 50%;
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-kicker span {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0;
  background: rgba(22, 101, 52, 0.14);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.section-head > p:last-child {
  color: var(--muted);
  font-size: 15px;
  max-width: 660px;
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(165deg, rgba(12, 26, 16, 0.88), rgba(5, 11, 7, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.32), transparent);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-head h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.panel-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-top: 5px;
}
.panel-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(74, 222, 128, 0.12);
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.6;
}
.divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, var(--line), transparent);
}
.mini-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

/* ---------- KPI cards ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  --accent: var(--green);
  position: relative;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(158deg, rgba(14, 30, 19, 0.82), rgba(5, 12, 7, 0.94));
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.kpi:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.kpi::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -60px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-label i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.kpi-value {
  font-family: var(--mono);
  font-size: clamp(22px, 2.4vw, 29px);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
  color: var(--text);
  line-height: 1;
}
.kpi-value.flash { animation: flash 0.7s ease; }
.kpi-sub {
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: 0.01em;
}

/* ---------- chart ---------- */
.chart-panel { padding-bottom: 18px; }
.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 12px;
  background: rgba(3, 9, 5, 0.55);
}
.chart-summary span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.chart-summary strong {
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--green-bright);
}
.chart-wrap { position: relative; margin-top: 4px; }
#hist-chart { width: 100%; height: auto; overflow: visible; }
#hist-chart .bar { transition: opacity 0.15s ease; cursor: pointer; }
#hist-chart .bar:hover { opacity: 0.82; }
#hist-chart text {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--muted-2);
}
.chart-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -110%);
  pointer-events: none;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(3, 10, 6, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  color: var(--text);
}
.chart-tip b { color: var(--green-bright); font-weight: 600; }
.chart-tip small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 2px; }

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(3, 9, 5, 0.75);
  flex-shrink: 0;
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active {
  background: rgba(22, 101, 52, 0.55);
  color: #dcfce7;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.28);
}

/* ---------- type breakdown ---------- */
.type-stack {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: #0a150d;
  margin-bottom: 18px;
}
.type-stack span {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.type-list { display: flex; flex-direction: column; }
.type-row {
  display: grid;
  grid-template-columns: 130px 1fr 74px 52px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(74, 222, 128, 0.09);
  font-size: 12px;
}
.type-row:last-child { border-bottom: 0; }
.type-name { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.type-name i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.type-track { height: 5px; border-radius: 99px; background: rgba(74, 222, 128, 0.08); overflow: hidden; }
.type-fill { height: 100%; border-radius: 99px; transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.type-count {
  font-family: var(--mono);
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
}
.type-share {
  font-family: var(--mono);
  text-align: right;
  color: var(--muted-2);
  font-size: 10px;
}

/* ---------- nodes / windows ---------- */
.node-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.node-card {
  padding: 13px 14px;
  border: 1px solid rgba(74, 222, 128, 0.11);
  border-radius: 11px;
  background: rgba(3, 9, 5, 0.5);
}
.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.node-role {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.node-val {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.node-val b { color: var(--green-bright); font-weight: 600; }
.node-bar {
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.09);
  overflow: hidden;
}
.node-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.8s ease;
}
.node-sub {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted-2);
}

.windows { display: flex; flex-direction: column; gap: 9px; }
.window-row {
  display: grid;
  grid-template-columns: 44px 1fr 84px;
  gap: 12px;
  align-items: center;
}
.window-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.window-bars { display: flex; flex-direction: column; gap: 3px; }
.window-bar { height: 4px; background: rgba(74, 222, 128, 0.08); border-radius: 99px; overflow: hidden; }
.window-bar i { display: block; height: 100%; border-radius: 99px; }
.window-bar.active i { background: var(--green); }
.window-bar.new i { background: rgba(96, 165, 250, 0.8); }
.window-meta {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  text-align: right;
  line-height: 1.5;
}
.window-meta b { color: var(--text); font-weight: 500; }

.ledger-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(74, 222, 128, 0.1);
}
.ledger-chips span {
  padding: 4px 9px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  background: rgba(3, 9, 5, 0.5);
}
.ledger-chips b { color: var(--muted); font-weight: 500; }
.ledger-chips small { font-size: inherit; color: var(--muted-2); }

/* ---------- fees ---------- */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.fee-card {
  padding: 13px 14px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 11px;
  background: rgba(3, 9, 5, 0.5);
}
.fee-card span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.fee-card strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.fee-card strong small { font-size: 9px; color: var(--muted-2); margin-left: 4px; font-weight: 400; }
.fee-bars { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fee-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 104px;
  gap: 12px;
  align-items: center;
  font-size: 11.5px;
}
.fee-bar-row > span { color: var(--muted); }
.fee-bar-row .type-track { height: 6px; }
.fee-bar-row b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* ---------- NFT ---------- */
#nft { --nft-accent: #34d399; }
.nft-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.nft-kpi {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(52, 211, 153, 0.1), transparent 55%),
    linear-gradient(158deg, rgba(11, 28, 20, 0.9), rgba(5, 12, 8, 0.95));
  overflow: hidden;
}
.nft-kpi .kpi-label { color: var(--muted); }
.nft-kpi .kpi-value { color: #a7f3d0; }
.nft-kpi .kpi-sub { color: var(--muted-2); }

.collection-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.collection-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(52, 211, 153, 0.14);
  border-radius: 10px;
  background: rgba(3, 9, 6, 0.55);
}
.collection-cover {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 20%, rgba(52, 211, 153, 0.3), transparent 65%),
    linear-gradient(145deg, #0b2418, #050d08 85%);
}
.collection-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.collection-cover img.is-loaded { opacity: 1; }
.collection-cover .nft-fallback {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #6ee7b7;
}
.collection-info { min-width: 0; }
.collection-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.collection-name .tag {
  padding: 1px 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6ee7b7;
}
.collection-id {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-stats {
  display: flex;
  gap: 14px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.collection-stats b { color: #a7f3d0; font-weight: 500; }
.collection-actions { display: flex; flex-direction: column; gap: 5px; }
.icon-btn {
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 222, 128, 0.16);
  border-radius: 6px;
  background: rgba(4, 10, 6, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { color: var(--green-bright); border-color: var(--line-strong); }
.icon-btn.danger:hover { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.inline-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(3, 9, 5, 0.7);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inline-form input::placeholder { color: var(--muted-2); }
.inline-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}
.form-hint {
  margin-top: 9px;
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--mono);
  line-height: 1.5;
}
.form-hint.error { color: #fca5a5; }

.nft-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.nft-card {
  position: relative;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: #06110b;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.nft-card:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, 0.38); }
.nft-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--h, 150), 75%, 42%, 0.55), transparent 60%),
    linear-gradient(145deg, hsl(var(--h, 150) 55% 18%), #050d08 80%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.nft-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.nft-thumb img.is-loaded { opacity: 1; }
.nft-fallback { position: relative; z-index: 1; }
.nft-card.has-art .nft-fallback { opacity: 0; }
.nft-thumb[data-nft-state="loading"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(74, 222, 128, 0.16) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.nft-meta { padding: 9px 10px 10px; }
.nft-name {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-collection {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #6ee7b7;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-contract {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted-2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nft-gallery .empty-state { grid-column: 1 / -1; }

.nft-token { display: inline-flex; align-items: center; gap: 7px; }
.nft-mini {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 5px;
  background: linear-gradient(145deg, #123222, #050d08 85%);
}
.nft-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ev-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ev-chip.mint { color: #86efac; background: rgba(22, 101, 52, 0.24); border-color: rgba(74, 222, 128, 0.28); }
.ev-chip.transfer { color: #93c5fd; background: rgba(30, 58, 138, 0.22); border-color: rgba(96, 165, 250, 0.28); }
.ev-chip.burn { color: #fdba74; background: rgba(124, 45, 18, 0.22); border-color: rgba(251, 146, 60, 0.28); }
.ev-chip.other { color: var(--muted); background: rgba(71, 85, 105, 0.2); border-color: rgba(148, 163, 184, 0.2); }

/* ---------- staking ---------- */
.staking-banner { margin-bottom: 18px; }
.staking-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.staking-numbers > div { padding-right: 16px; border-right: 1px dashed rgba(74, 222, 128, 0.12); }
.staking-numbers > div:last-child { border-right: 0; padding-right: 0; }
.staking-numbers span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.staking-numbers strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.staking-numbers em {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.stake-bar {
  display: flex;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(251, 146, 60, 0.3);
  margin-top: 24px;
}
.stake-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.stake-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}
.stake-legend span { display: inline-flex; align-items: center; gap: 7px; }
.stake-legend b { color: var(--muted); font-weight: 500; }
.swatch { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.swatch.green { background: var(--green); }
.swatch.orange { background: var(--orange); }

.staking-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fact {
  padding: 12px 13px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 9px;
  background: rgba(3, 9, 5, 0.5);
}
.fact span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.fact strong {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.fact strong.green { color: var(--green-bright); }
.fact strong.orange { color: #fdba74; }

.explainer { display: flex; flex-direction: column; gap: 18px; }
.explainer article { display: flex; gap: 14px; }
.explainer-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  background: rgba(22, 101, 52, 0.14);
}
.explainer h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.explainer p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- economy ---------- */
.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.big-number {
  font-family: var(--mono);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--green-bright);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.big-number-label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.supply-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.1);
  overflow: hidden;
  margin: 18px 0;
}
.supply-bar-inventory {
  height: 100%;
  background: linear-gradient(90deg, #166534, #4ade80);
  border-radius: 99px;
  transition: width 1s ease;
}
.backing-meter {
  height: 8px;
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.1);
  overflow: hidden;
  margin: 18px 0;
}
.backing-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  border-radius: 99px;
  transition: width 1s ease;
}
.stat-rows { display: flex; flex-direction: column; }
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(74, 222, 128, 0.09);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row span { font-size: 11.5px; color: var(--muted); }
.stat-row b {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-row b.green { color: var(--green-bright); }
.economy-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

/* ---------- explorer ---------- */
.explorer-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 28px);
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(34, 197, 94, 0.08), transparent 65%),
    linear-gradient(165deg, rgba(10, 24, 14, 0.86), rgba(5, 11, 7, 0.94));
  box-shadow: var(--shadow);
}
.search-form {
  position: relative;
  display: flex;
  gap: 10px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 9, 5, 0.78);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form input::placeholder { color: var(--muted-2); }
.search-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}
.quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.quick-chips > span {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-right: 3px;
}
.explorer-result { margin-top: 22px; }
.explorer-result .empty-state { padding: 34px 18px; }

.result-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 9, 5, 0.55);
  overflow: hidden;
  animation: fadeUp 0.35s ease;
}
.result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(74, 222, 128, 0.04);
}
.result-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 101, 52, 0.2);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.result-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  flex: 1;
  min-width: 200px;
}
.result-body { padding: 18px; }
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 22px;
  margin-bottom: 16px;
}
.kv {
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(74, 222, 128, 0.09);
  min-width: 0;
}
.kv span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.kv b, .kv code {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}
.kv code { color: var(--green-bright); }
.result-section { margin-top: 18px; }
.result-section h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.token-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 7px;
  background: rgba(3, 9, 5, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.token-chip b { color: var(--text); font-weight: 500; }
.mini-list { display: flex; flex-direction: column; gap: 7px; }
.mini-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 8px;
  background: rgba(3, 9, 5, 0.4);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  word-break: break-all;
}
.mini-item b { color: var(--text); font-weight: 500; }
.mini-item .spacer { margin-left: auto; }
button.mini-item { font: inherit; cursor: pointer; }
button.mini-item:hover { border-color: var(--line-strong); background: rgba(74, 222, 128, 0.05); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  min-width: 560px;
}
.data-table th {
  padding: 0 8px 10px;
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
  color: var(--muted);
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.18s ease; }
.data-table tbody tr:hover { background: rgba(74, 222, 128, 0.035); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.addr {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.amount {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
}
.amount small { color: var(--muted-2); font-size: 9px; margin-left: 2px; }
.empty-cell { text-align: center; padding: 28px 10px !important; color: var(--muted-2) !important; font-family: var(--mono); font-size: 11px; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(71, 85, 105, 0.16);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.action[data-action="transfer"] { color: #86efac; border-color: rgba(74, 222, 128, 0.26); background: rgba(22, 101, 52, 0.2); }
.action[data-action="contract_call"] { color: #93c5fd; border-color: rgba(96, 165, 250, 0.26); background: rgba(30, 58, 138, 0.2); }
.action[data-action="contract_deploy"] { color: #d8b4fe; border-color: rgba(192, 132, 252, 0.26); background: rgba(88, 28, 135, 0.2); }
.action[data-action="stake"] { color: #fde68a; border-color: rgba(250, 204, 21, 0.26); background: rgba(113, 63, 18, 0.2); }
.action[data-action="unstake"] { color: #fdba74; border-color: rgba(251, 146, 60, 0.26); background: rgba(124, 45, 18, 0.2); }
.action[data-action="safehouse"] { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.26); background: rgba(12, 74, 110, 0.24); }
.action[data-action="validator"] { color: #f9a8d4; border-color: rgba(244, 114, 182, 0.26); background: rgba(131, 24, 67, 0.2); }
.action[data-action="api_key"] { color: #cbd5e1; }
.action[data-action="multisig"] { color: #d8b4fe; }
.action[data-action="other"] { color: #94a3b8; }

.status-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}

.feed-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.filter-bar { margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar button { padding: 5px 10px; }

.block-list { display: flex; flex-direction: column; gap: 6px; }
.block-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 9px;
  background: rgba(3, 9, 5, 0.45);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.block-row:hover { border-color: var(--line-strong); background: rgba(74, 222, 128, 0.05); transform: translateX(2px); }
.block-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  word-break: break-all;
}
.block-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}
.block-meta b { color: var(--muted); font-weight: 500; }
.block-tx {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--green-bright);
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 5px;
  background: rgba(22, 101, 52, 0.15);
}

/* ---------- empty state ---------- */
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px 14px;
  border: 1px dashed rgba(74, 222, 128, 0.14);
  border-radius: 10px;
  background: rgba(3, 9, 5, 0.3);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
}

.alert {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.18);
  color: #fca5a5;
  font-family: var(--mono);
  font-size: 11.5px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 4, 0.6);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 34px;
}
.footer-brand .brand-logo { height: 26px; }
.footer-brand p {
  margin-top: 16px;
  max-width: 380px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.7;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.footer-links h4 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  padding: 3px 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--green-bright); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(74, 222, 128, 0.08);
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.footer-bottom b { color: var(--muted); font-weight: 500; }
.footer-note { margin-left: auto; }

/* ---------- copyable values ---------- */
.copyable {
  cursor: pointer;
  font-style: normal;
  border-bottom: 1px dotted rgba(255, 122, 26, 0.4);
  border-bottom-color: color-mix(in srgb, var(--green) 45%, transparent);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copyable:hover { color: var(--text); border-bottom-color: var(--green); }
.copyable:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 18, 10, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: rgba(248, 113, 113, 0.4); color: #fca5a5; }

/* ---------- skeleton / animation ---------- */
.skeleton {
  min-height: 118px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 222, 128, 0.08);
  background: linear-gradient(90deg, #08110b 25%, #0e2013 37%, #08110b 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}
.nft-kpi.skeleton { min-height: 112px; }

#sync-age { color: var(--muted-2); }
#sync-age.stale { color: #fbbf24; }

#hero-tick.flash { animation: tickGlow 0.9s ease; }
.data-table tbody tr.is-new td { animation: rowNew 1.8s ease; }

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes tickGlow {
  0% { color: #4ade80; text-shadow: 0 0 22px rgba(74, 222, 128, 0.65); }
  100% { color: var(--text); text-shadow: none; }
}
@keyframes rowNew {
  0% { background: rgba(74, 222, 128, 0.2); }
  100% { background: transparent; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash {
  0% { color: var(--green-bright); text-shadow: 0 0 18px rgba(74, 222, 128, 0.5); }
  100% { color: var(--text); text-shadow: none; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
  .feed-grid { grid-template-columns: 1.35fr 1fr; }
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 18px;
    background: rgba(4, 10, 6, 0.98);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 11px 12px; font-size: 13px; }
  .nav-link.is-active::after { left: 12px; right: auto; width: 24px; bottom: 6px; }
  .menu-btn { display: grid; }
  .header-tools .btn span { display: none; }
  .header-tools .btn { padding: 9px 10px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-status { max-width: 560px; }
  .two-col, .economy-grid, .feed-grid, .footer-inner { grid-template-columns: 1fr; }
  .nft-kpis { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 30px; }
  .footer-note { margin-left: 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-summary { grid-template-columns: 1fr; gap: 10px; }
  .staking-numbers { grid-template-columns: 1fr 1fr; }
  .staking-numbers > div:nth-child(2) { border-right: 0; padding-right: 0; }
  .staking-numbers > div:nth-child(3), .staking-numbers > div:nth-child(4) { padding-top: 14px; border-top: 1px dashed rgba(74, 222, 128, 0.12); }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none; }
  .result-head { align-items: flex-start; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; }
  .search-form .btn { width: 100%; }
  .panel-head { flex-wrap: wrap; }
  .explainer article { gap: 11px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .header-inner { width: calc(100% - 28px); gap: 12px; }
  .brand-copy small { display: none; }
  .live-pill { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .hero-status { grid-template-columns: 1fr 1fr; }
  .status-card { padding: 16px 14px; }
  .status-card strong { font-size: 24px; }
  .kpi-grid, .nft-kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 16px; }
  .node-grid, .staking-facts { grid-template-columns: 1fr 1fr; }
  .type-row { grid-template-columns: 96px 1fr 64px; }
  .type-share { display: none; }
  .fee-grid { grid-template-columns: 1fr 1fr; }
  .fee-bar-row { grid-template-columns: 84px 1fr; }
  .fee-bar-row b { display: none; }
  .window-row { grid-template-columns: 38px 1fr 76px; }
  .footer-links { grid-template-columns: 1fr; }
  .segmented { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .kpi-grid, .nft-kpis, .node-grid, .staking-facts, .fee-grid { grid-template-columns: 1fr; }
  .hero-status { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.1rem, 12vw, 2.8rem); }
  .brand-logo { height: 20px; }
  .status-card strong { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RELIVE — clean professional web3 layer
   Restrained surfaces, precise type, single accent, no gimmicks.
   ============================================================ */
:root {
  --bg: #07090c;
  --bg-2: #090c10;
  --panel: #0b0f14;
  --panel-2: #090c10;
  --line: #1b222b;
  --line-strong: #2a333e;
  --green: #ff7a1a;
  --green-bright: #ff9440;
  --green-dim: #4a2c14;
  --text: #f7f8fa;
  --muted: #a6afb9;
  --muted-2: #6e7781;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
}

body {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(255, 122, 26, 0.055), transparent 70%),
    var(--bg);
}
.bg-grid { background-image: none; }
::selection { background: rgba(255, 122, 26, 0.28); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #07090c; }
::-webkit-scrollbar-thumb { background: #232b35; border-radius: 99px; }

h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.03em; }

/* header */
.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.88);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header::after { display: none; }
.nav-link.is-active { color: #fff; background: rgba(255, 122, 26, 0.1); }
.nav-link.is-active::after { left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green); }
.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.live-pill { border-color: #232b35; background: #0d1117; color: #c8cfd8; }
.live-pill .dot { background: #3ecf6f; box-shadow: 0 0 0 0 rgba(62, 207, 111, 0.5); }

/* hero */
.hero { border-bottom-color: var(--line); }
.hero-glow {
  left: 0; right: 0; top: 0;
  width: 100%; height: 100%;
  transform: none;
  background: radial-gradient(1000px 420px at 50% 0%, rgba(255, 122, 26, 0.07), transparent 70%);
  filter: none;
  animation: none;
}
.hero::before { display: none; }
.hero-rain { opacity: 0.28; }
.eyebrow { color: var(--green-bright); }
.eyebrow-dot { background: #3ecf6f; box-shadow: 0 0 10px rgba(62, 207, 111, 0.55); }
.hero h1 em {
  background: linear-gradient(100deg, #ff9a4d 0%, #ff7a1a 45%, #2e9e4f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: none;
}
.hero-note { color: var(--muted-2); }
.status-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.status-card::before { display: none; }
.status-card strong {
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.status-card-wide strong { background: none; color: #fff; -webkit-background-clip: initial; background-clip: initial; text-shadow: none; }
.status-label { color: var(--muted-2); }
.status-sub { color: var(--muted); }
.hero-marquee { background: #090c10; border-top-color: var(--line); }
.marquee-track b { color: var(--green-bright); }
.marquee-track i { background: #2e9e4f; }

/* buttons */
.btn { border-radius: 10px; font-weight: 600; }
.btn-sm { padding: 7px 13px; font-size: 11.5px; }
.btn-primary {
  background: var(--green);
  border-color: transparent;
  color: #0b0b0c;
  box-shadow: none;
}
.btn-primary:hover { background: var(--green-bright); box-shadow: 0 8px 20px -10px rgba(255, 122, 26, 0.5); }
.btn-ghost { border-color: #28313c; background: #0e1319; color: #e8ecf1; }
.btn-ghost:hover { border-color: #39434f; background: #141a22; }

/* sections and panels */
.section { border-bottom-color: #131920; }
.section-head h2 { letter-spacing: -0.035em; }
.section-head h2::after { width: 28px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--green); }
.section-kicker { color: var(--green-bright); }
.section-kicker span { border: 1px solid #28313c; background: #0e1319; color: #c8cfd8; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.panel::before { display: none; }
.panel-head h3 { color: #fff; }
.panel-sub, .panel-note { color: var(--muted); }

/* KPI */
.kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: none;
}
.kpi:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.kpi::before { display: none; }
.kpi-label { color: var(--muted); }
.kpi-value {
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.kpi-sub { color: var(--muted-2); }

/* tables */
.data-table th { color: var(--muted); border-bottom-color: #1c232c; }
.data-table td { color: #dde3ea; border-bottom-color: #141a21; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.data-table tbody tr.is-new td { animation-name: rowNew; }

/* empty states */
.empty-state { color: var(--muted); }
.empty-state-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 10px; line-height: 1.6; }
.empty-state-actions .btn { margin-top: 4px; }

/* NFT modules */
.nft-kpi .kpi-value {
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.nft-kpi .kpi-label { color: var(--muted); }
.nft-kpi .kpi-sub { color: var(--muted-2); }
.collection-row { background: var(--panel); border: 1px solid var(--line); }
.collection-cover { background: #0e1319; border: 1px solid var(--line); }
.collection-cover .nft-fallback { color: var(--muted); }
.nft-card { background: var(--panel); border: 1px solid var(--line); }
.nft-thumb { background: #0e1319; border-bottom: 1px solid var(--line); }
.nft-name { color: #fff; }
.nft-collection { color: var(--green-bright); }
.nft-contract { color: var(--muted-2); }
.nft-mini { border: 1px solid var(--line); background: #0e1319; }

/* footer */
.site-footer { border-top-color: var(--line); background: #05070a; }
.site-footer::before { display: none; }
.footer-brand p { color: var(--muted); }
.footer-links a:hover { color: var(--green-bright); }

/* utility */
.pill { border-color: #28313c; color: #c8cfd8; background: #0e1319; }
.alert { border-color: rgba(255, 122, 26, 0.36); background: rgba(255, 122, 26, 0.08); color: #ffb08a; }

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero::before { animation: none; }
}
