:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: #0f0f10;
  --surface-2: #141415;
  --surface-3: #1a1a1c;
  --border: #1f1f22;
  --border-2: #2a2a2e;
  --text: #f4f4f5;
  --text-2: #b4b4bb;
  --muted: #7c7c85;
  --accent: #3b82f6;          /* blue for text, lines and icons on black */
  --accent-2: #93c5fd;
  --accent-fill: #1e40af;     /* dark blue for buttons and filled surfaces */
  --accent-fill-2: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(59, 130, 246, .13);
  --warn: #f59e0b;            /* status only: pending / high effort */
  --warn-soft: rgba(59, 130, 246, .12);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, .12);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, .12);
  --violet: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
svg { display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; font-size: 17px; text-transform: uppercase; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand.small { font-size: 14px; }
.brand.small .mark { width: 24px; height: 24px; }
.brand b { color: var(--accent); font-weight: 800; }

.mainnav {
  margin: 0 auto; display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
}
.mainnav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-2); transition: color .15s, background .15s;
}
.mainnav a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a.active { color: var(--text); background: var(--surface-3); }
.mainnav a.active svg { color: var(--accent); }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.toplink { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.toplink:hover { color: var(--text); }
.toplink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 99px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.live-pill.on i { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: pulse 2s infinite; }
.live-pill.on { color: var(--text-2); }
.live-pill.demo i { background: var(--warn); }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }

.demo-banner {
  background: var(--accent-soft); color: var(--accent-2); border-bottom: 1px solid rgba(59, 130, 246, .25);
  text-align: center; font-size: 13px; padding: 8px 16px;
}
.demo-banner code { background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

/* ---------- layout ---------- */
.app { flex: 1; width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }
.section-title { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--text-2); margin: 0 auto 32px; max-width: 560px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }
.warn { color: var(--warn); }
.green { color: var(--green); }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.card-head .muted { font-size: 12.5px; }
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px 200px at 50% 0%, rgba(59, 130, 246, .08), transparent 70%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border-2); background: var(--surface-2);
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: #3a3a40; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-fill-2); border-color: var(--accent-fill-2); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-ghost { background: transparent; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 22% 30%, rgba(59, 130, 246, .07), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-logo .mark { width: 64px; height: 64px; }
.hero-logo .name { font-size: 40px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.hero-logo .name b { color: var(--accent); }
.hero-logo .tag { color: var(--accent); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin-top: 6px; }
.hero p.lead { font-size: 17px; color: var(--text-2); margin: 0 0 26px; max-width: 520px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.mini-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.mini-stat .v { font-size: 22px; font-weight: 700; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.mini-stat .v small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.mini-stat .l { font-size: 12.5px; color: var(--muted); }

.live-card { padding: 22px; }
.live-card-title { text-align: center; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.live-card-sub { text-align: center; font-size: 12.5px; color: var(--muted); margin: 2px 0 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px var(--green-soft); }
.dot.amber { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.gray { background: var(--muted); box-shadow: none; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; }
.stat-box .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-box .v small { font-size: 14px; font-weight: 600; color: var(--text-2); }
.stat-box .l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.list-head .muted { font-weight: 400; font-size: 12px; }
.top-pool {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-2); margin-bottom: 8px; transition: border-color .15s, background .15s;
}
.top-pool:hover { border-color: var(--border-2); background: var(--surface-2); }
.rank { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); flex: none; }
.top-pool .meta { line-height: 1.2; min-width: 0; }
.top-pool .meta b { font-size: 13.5px; }
.top-pool .meta div:last-child { font-size: 11.5px; color: var(--muted); }
.top-pool .vals { margin-left: auto; text-align: right; line-height: 1.25; }
.top-pool .vals b { font-size: 13px; font-family: var(--mono); font-weight: 500; }
.top-pool .vals div:last-child { font-size: 11.5px; color: var(--muted); }

/* ---------- badges / coin ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border-2); white-space: nowrap;
}
.badge.solo { background: rgba(167, 139, 250, .1); color: var(--violet); border-color: rgba(167, 139, 250, .28); }
.badge.pplns, .badge.pplnsbf { background: var(--accent-soft); color: var(--accent); border-color: rgba(59, 130, 246, .28); }
.badge.green { background: var(--green-soft); color: var(--green); border-color: rgba(34, 197, 94, .3); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: rgba(239, 68, 68, .3); }
.badge.amber { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(59, 130, 246, .3); }
.coin { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.coin-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  overflow: hidden;
}
.coin-icon img { width: 100%; height: 100%; object-fit: cover; }
.coin-icon.lg { width: 44px; height: 44px; font-size: 16px; }
.coin-icon.sm { width: 18px; height: 18px; font-size: 8px; }
.coin b { font-weight: 600; }
.coin .sym { color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: var(--text); padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface); white-space: nowrap; position: sticky; top: 0;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: "▲"; font-size: 8px; color: var(--muted); margin-left: 5px; opacity: .5; }
th.sortable.asc::after { content: "▲"; color: var(--accent); opacity: 1; }
th.sortable.desc::after { content: "▼"; color: var(--accent); opacity: 1; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
td.num, th.num { font-family: var(--mono); font-size: 13px; }
td .sub { font-size: 11.5px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.addr { font-family: var(--mono); font-size: 12.5px; }
.addr:hover { color: var(--accent); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.live-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.live-label svg { width: 14px; height: 14px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 8px 14px; min-width: 280px;
}
.search svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.search input { background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 13.5px; width: 100%; }
.search:focus-within { border-color: var(--border-2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12.5px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(59, 130, 246, .35); }

/* ---------- stratum ---------- */
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; object-fit: cover; background: var(--surface-3); }
.endpoint {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; max-width: 100%;
}
.endpoint:hover { border-color: rgba(59, 130, 246, .4); }
.endpoint svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.latency { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; }
.latency b { color: var(--text); }

/* ---------- KPI grid ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.kpi .l { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 24px; font-weight: 700; margin-top: 4px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .v small { font-size: 14px; color: var(--text-2); font-weight: 500; }
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.stack { display: grid; gap: 16px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 24px 0 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; min-width: 60px; }
.progress > i { display: block; height: 100%; background: var(--accent-fill-2); border-radius: inherit; }
.progress.green > i { background: var(--green); }

/* ---------- chart ---------- */
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .area { opacity: .9; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cursor { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 8px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.chart-tip .t { color: var(--muted); font-size: 11px; }
.chart-tip .r { display: flex; align-items: center; gap: 6px; }
.chart-tip .r i { width: 8px; height: 2px; border-radius: 2px; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: var(--bg-2); }
.seg button { border: 0; background: none; font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* ---------- forms ---------- */
.lookup { display: flex; gap: 10px; flex-wrap: wrap; }
.field {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 9px; color: var(--text); font: inherit; font-size: 14px;
  padding: 10px 12px; outline: none; min-width: 0;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.field { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c85' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.lookup .field.grow { flex: 1 1 320px; }

/* ---------- code ---------- */
.codebox { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-x: auto; white-space: pre; }
.codebox .copy { position: absolute; top: 8px; right: 8px; }
.codebox .k { color: var(--accent); }

/* ---------- partners / cta ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.partner { text-align: center; padding: 22px 14px; transition: border-color .15s, transform .15s; }
.partner:hover { border-color: var(--border-2); transform: translateY(-2px); }
.partner img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; margin: 0 auto 12px; display: block; }
.partner b { display: block; font-size: 14px; }
.partner span { font-size: 12px; color: var(--muted); }
.cta { max-width: 640px; margin: 0 auto; text-align: center; padding: 36px 24px; }
.cta h2 { margin: 0 0 8px; font-size: 26px; }
.cta p { color: var(--text-2); margin: 0 0 22px; }
.cta .hero-actions { justify-content: center; margin: 0; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 4px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 15.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 4px 18px; color: var(--text-2); line-height: 1.7; }

.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.step h4 { margin: 5px 0 6px; font-size: 15px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- misc ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }
.loading { display: grid; place-items: center; padding: 120px 0; color: var(--muted); gap: 14px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { border: 1px solid rgba(239, 68, 68, .3); background: var(--red-soft); color: #fca5a5; border-radius: var(--radius); padding: 16px 20px; margin: 40px 0; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 10px; max-width: 360px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; box-shadow: 0 12px 32px rgba(0,0,0,.6); animation: tin .25s ease-out;
}
.toast b { display: block; margin-bottom: 2px; }
.toast.green { border-left-color: var(--green); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.footer-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3-1, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .toplink { display: none; }
  .mainnav {
    display: none; position: absolute; top: 60px; left: 0; right: 0; margin: 0; flex-direction: column; border-radius: 0;
    border: 0; border-bottom: 1px solid var(--border); background: var(--bg); padding: 8px 16px 14px;
  }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 11px 12px; font-size: 15px; }
  .topbar-right { margin-left: auto; }
}
@media (max-width: 600px) {
  .container, .topbar-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 36px 0 32px; }
  .hero-logo .name { font-size: 30px; }
  .hero-logo .mark { width: 50px; height: 50px; }
  .mini-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .mini-stat { padding: 10px 6px; }
  .mini-stat .v { font-size: 17px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .search { min-width: 0; flex: 1 1 100%; }
  .kpi .v { font-size: 20px; }
  .page-head h1 { font-size: 26px; }
  .live-pill span { display: none; }
  th, td { padding: 10px; }
  .hide-sm { display: none; }
  .toasts { left: 16px; right: 16px; max-width: none; }
}
.grid-2 > *, .grid-3-1 > *, .stack > *, .kpis > * { min-width: 0; }
