/* ---------- fonts (bundled, offline) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("vendor/fonts/jbmono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("vendor/fonts/jbmono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("vendor/fonts/jbmono-latin-700-normal.woff2") format("woff2"); }

:root {
  /* --- spacing scale (4/8 base) --- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  /* --- type scale (modular, >=1.25) --- */
  --fs-xs: 12px; --fs-sm: 14px; --fs-base: 16px; --fs-lg: 20px; --fs-xl: 24px; --fs-2xl: 30px; --fs-3xl: 40px;
  /* --- radii --- */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;

  /* --- dark neutral ramp + elevation (lighter = higher; not pure black) --- */
  --surface-0: #0c1016;   /* page bg */
  --surface-1: #12171f;   /* tiles */
  --surface-2: #171d27;   /* hover / inset / elevated */
  --surface-3: #1c2330;   /* overlays */
  --bg: var(--surface-0);
  --panel: var(--surface-1);
  --panel-2: #0f141b;     /* subtle inset */
  --border: #222b38;
  --border-2: #2c3646;    /* border-strong */

  /* --- text (checked >=AA on surface-1) --- */
  --text: #e8edf5;        /* ~15:1 */
  --text-dim: #aab4c4;    /* secondary ~8:1 */
  --muted: #8791a3;       /* labels ~5:1 (AA normal) */
  --muted-2: #6b7688;     /* faint — large/decorative only */

  /* --- accent (desaturated for dark; used sparingly) --- */
  --accent: #86e0c7;      /* soft aqua-mint */
  --accent-ink: #06231c;  /* dark text on accent fills */
  --violet: #aca0e8;
  --good: #56d998;
  --warn: #e6c168;
  --bad: #f2777a;
  --iri: linear-gradient(115deg, #e8fbff 0%, #86e0c7 30%, #8fb8f2 60%, #b9a3f0 85%, #f3aecd 100%);

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "cv05" 1; /* tabular figures for aligned numbers */
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(134,224,199,.06), transparent 60%),
                    radial-gradient(900px 500px at 10% 0%, rgba(172,160,232,.05), transparent 55%);
}

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 15px 28px; border-bottom: 1px solid var(--border);
  background: rgba(9,12,18,.82); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 700; }
.orb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--iri); box-shadow: 0 0 14px rgba(134,224,199,.5), inset -3px -3px 6px rgba(0,0,0,.25);
}
.brand-name { font-size: 16px; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.nav-links { display: flex; gap: 18px; margin-left: 10px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.accent-link { color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-search {
  width: 220px; padding: 7px 12px; font-size: 13px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; font-family: var(--mono);
}
.nav-search:focus { outline: none; border-color: var(--accent); }
.status { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.status.offline .dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 34px 26px 80px; }

/* ---------- hero strip ---------- */
.hero-strip { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 10px 0 4px; }
.hero-strip h1 { font-size: 34px; line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.8px; max-width: 700px; }
.iri-text { background: var(--iri); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 650; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--iri); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 22px rgba(134,224,199,.22); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero copy ---------- */
.hero-copy { max-width: 720px; }
.hero-tag { color: var(--text-dim); font-size: var(--fs-base); margin: 12px 0 0; max-width: 640px; }
.hero-tag strong { color: var(--accent); }

/* ---------- 0%-fee branding pills ---------- */
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.fee-pill { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--accent-ink); background: var(--iri); border-radius: 999px; padding: 5px 14px; box-shadow: 0 4px 18px rgba(134,224,199,.25); }
.mini-pill { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(134,224,199,.35); background: rgba(134,224,199,.06); border-radius: 999px; padding: 5px 12px; }

/* ---------- section titles ---------- */
.section-title { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.4px; margin: 44px 0 0; }

/* ---------- onboarding: 3 steps ---------- */
.start { margin-top: 34px; }
.start-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.start-head h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.4px; margin: 0; }
.nv-badge { font-size: 12px; font-weight: 600; color: var(--warn); border: 1px solid rgba(230,193,104,.4); background: rgba(230,193,104,.08); border-radius: 999px; padding: 4px 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--iri); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.step h3 { margin: 14px 0 8px; font-size: var(--fs-lg); font-weight: 650; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }
.step p code, .cmd-head code { font-family: var(--mono); font-size: 12.5px; color: var(--accent); background: var(--panel-2); padding: 1px 6px; border-radius: 5px; }
.step-link { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; }
.step-link:hover { text-decoration: underline; }
.ep-mini { display: flex; align-items: center; gap: 8px; margin-top: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.ep-mini .ep-tag { min-width: 48px; }
.ep-mini code { flex: 1; font-family: var(--mono); font-size: 12.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ready-to-paste command */
.cmd { margin-top: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.cmd-block { margin: 12px 0 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; overflow-x: auto; }
.cmd-block code { font-family: var(--mono); font-size: 13px; color: var(--text); white-space: pre; }

/* ---------- PPLNS vs Solo ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }
.mode-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.mode-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mode-top h3 { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.mode-port { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 8px; }
.mode-pill { margin-left: auto; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; }
.mode-pill.rec { color: var(--accent-ink); background: var(--accent); }
.mode-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.mode-card p strong { color: var(--text); }

/* ---------- lookup band ---------- */
.lookup-band { margin-top: 40px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 24px; }
.lookup-band h2 { margin: 0 0 14px; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.4px; }

/* ---------- bento grid ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 132px; gap: 16px; grid-auto-flow: row dense; margin-top: 22px;
}
.bento + .bento { margin-top: 16px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.row2 { grid-row: span 2; } .row3 { grid-row: span 3; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-4);
  transition: background .15s, border-color .15s, transform .15s;
}
/* elevation on dark = lighter surface, not shadow */
.tile:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-1px); }
.tile-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.tile-head { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: var(--sp-3); }
.tile.stat { justify-content: flex-start; }
.stat-val { font-size: 26px; font-weight: 600; font-family: var(--mono); margin-top: auto; letter-spacing: -1px; line-height: 1.05; color: var(--text); }
.stat-val.accent { color: var(--accent); }
.stat-sub { font-size: var(--fs-xs); color: var(--muted-2); margin-top: var(--sp-2); font-family: var(--mono); letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hero hashrate tile — the key metric: solid, max-contrast (not gradient), chart baked in behind */
.t-hero .tile-lbl, .t-hero .hero-val, .t-hero .hero-sub { position: relative; z-index: 2; }
.hero-val { font-family: var(--mono); font-size: 46px; font-weight: 600; letter-spacing: -2px; line-height: 1; margin-top: var(--sp-3); color: var(--text); }
.hero-sub { color: var(--muted-2); font-size: var(--fs-xs); font-family: var(--mono); margin-top: var(--sp-2); }
.t-hero .tile-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1; opacity: .85; }

/* chart / scroll tiles */
.tile-chart { width: 100%; }
.tile-chart.tall { flex: 1; min-height: 150px; }
.tile.scroll { overflow-y: auto; }
.tile.scroll::-webkit-scrollbar { width: 8px; }
.tile.scroll::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
.tile.scroll .tile-head { position: sticky; top: 0; background: var(--panel); padding-bottom: 10px; z-index: 3; }
.t-lookup { justify-content: center; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span3, .span4 { grid-column: span 2; }
  .nav-search { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .span2, .span3, .span4 { grid-column: span 1; }
}

/* ---------- key/value ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 13px 18px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; }
.kv dd.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ---------- endpoints ---------- */
.endpoint { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel-2); }
.ep-row { display: flex; align-items: center; gap: 10px; }
.ep-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); min-width: 62px; }
.ep-row code { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; }
.ep-note { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.endpoint.login { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; }
.endpoint.login code { font-size: 12px; }
.ep-lbl { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.copy { background: var(--panel); color: var(--muted); border: 1px solid var(--border-2); border-radius: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.copy:hover { color: var(--accent); border-color: var(--accent); }
.copy.copied { color: var(--good); border-color: var(--good); }

/* ---------- lookup ---------- */
.lookup { display: flex; gap: 10px; }
.lookup input {
  flex: 1; padding: 13px 16px; font-size: 15px; color: var(--text); font-family: var(--mono);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
}
.lookup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(134,224,199,.12); }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
/* ---------- dedicated miner dashboard ---------- */
#miner-panel { margin-top: var(--sp-4); }
.miner-topbar { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-2) 0 var(--sp-4); flex-wrap: wrap; }
.miner-id { flex: 1; min-width: 200px; }
.miner-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.miner-addr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.miner-addr { color: var(--text); font-size: 13px; word-break: break-all; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }
.bookmark-hint { font-size: 12px; color: var(--muted-2); }
.miner-actions { display: flex; align-items: center; gap: 10px; }
.miner-mode { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(134,224,199,.4); background: rgba(134,224,199,.08); border-radius: 999px; padding: 5px 13px; }

/* payout progress */
.progress { height: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress-bar { height: 100%; width: 0%; background: var(--iri); border-radius: 999px; transition: width .5s ease; }
.progress-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* worker online/offline status */
.wstat { font-family: var(--sans); font-size: 12px; font-weight: 600; white-space: nowrap; }
.wstat.on { color: var(--good); }
.wstat.off { color: var(--muted-2); }

/* earnings calculator */
.calc { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-4); align-items: end; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc-input label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: var(--sp-2); }
.calc-row { display: flex; gap: var(--sp-2); }
.calc-row input { flex: 1; min-width: 0; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: var(--mono); font-size: 14px; }
.calc-row select { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: 0 8px; font-family: var(--mono); font-size: 13px; }
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--accent); }
.linklike { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12px; padding: var(--sp-2) 0 0; }
.calc-out { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.calc-lbl { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.calc-val { font-family: var(--mono); font-size: var(--fs-lg); margin-top: var(--sp-2); color: var(--text); }
.calc-val.accent { color: var(--accent); }
.calc-note { margin-top: var(--sp-3); }

/* activity tabs */
.activity-head { display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: 6px; }
.tab { background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); border-radius: var(--r-sm); padding: 5px 12px; font-size: 12px; cursor: pointer; font-family: var(--sans); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* downloads */
.downloads { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
td { font-family: var(--mono); font-size: 12.5px; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td code { font-family: var(--mono); font-size: 12px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; border: 1px solid; }
.badge.status-confirmed, .badge.status-matured { color: var(--good); border-color: rgba(86,217,152,.4); background: rgba(86,217,152,.08); }
.badge.status-pending, .badge.status-sent, .badge.status-immature { color: var(--warn); border-color: rgba(230,193,104,.4); background: rgba(230,193,104,.08); }
.badge.status-orphaned, .badge.status-failed { color: var(--bad); border-color: rgba(242,119,122,.4); background: rgba(242,119,122,.08); }

/* ---------- misc ---------- */
.hidden { display: none; }
.error { color: var(--bad); margin-top: 10px; }
footer {
  max-width: 1160px; margin: 40px auto 0; padding: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px;
}
.foot-main { display: flex; flex-direction: column; gap: 4px; }
.foot-desc { color: var(--muted-2); }
.foot-links { display: flex; gap: 18px; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
