:root {
  --bg: #0b0d11;
  --panel: #131720;
  --border: #232838;
  --text: #e5e7eb;
  --text-dim: #8b93a5;
  --accent: #1d9e75;
  --accent-bright: #22d38a;
  --amber: #ef9f27;
  --red: #d85a30;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
nav a:hover, nav a.active { color: var(--text); }
main { max-width: 1100px; margin: 0 auto; padding: 32px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.card h3 {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.card h2 { margin: 0 0 12px; font-size: 20px; }
.card p { color: var(--text-dim); line-height: 1.6; font-size: 14px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.stat-row:last-child { border-bottom: none; }
.stat-label { color: var(--text); }
.badge {
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(29,158,117,0.12);
  color: var(--accent-bright);
}
.badge.amber { background: rgba(239,159,39,0.12); color: var(--amber); }
.badge.red { background: rgba(216,90,48,0.15); color: var(--red); }
.connect-box {
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(29,158,117,0.1);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--accent-bright);
  margin-bottom: 14px;
  word-break: break-all;
}
.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.field-box {
  font-family: var(--mono);
  font-size: 13px;
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: var(--text-dim);
}
.cmd-box {
  font-family: var(--mono);
  font-size: 12px;
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  word-break: break-all;
  margin-top: 4px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 10px 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 10px 8px;
  font-family: var(--mono);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }
.lookup { display: flex; gap: 10px; }
.lookup input {
  flex: 1;
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
.lookup button {
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  color: #04342c;
  font-weight: 600;
  cursor: pointer;
}
.footer { text-align: center; color: var(--text-dim); font-size: 12px; padding: 32px; }
.footer a { color: var(--text-dim); }
.muted { color: var(--text-dim); }
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(29,158,117,0.15);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  flex-shrink: 0;
}
.step-body h4 { margin: 0 0 6px; font-size: 15px; }
.step-body p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.tab.active { color: var(--accent-bright); border-color: rgba(29,158,117,0.4); }


.dropdown { position: relative; }
.dropdown > span {
  color: var(--accent-bright);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown > span:hover { color: var(--text); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 12px;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}
.dropdown-menu a:hover { background: #1a1f2b; color: var(--text); }

/* ---- shared page-header (getting-started, faq, payments, account) ---- */
.page-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 12px;
}
.page-title { margin: 0 0 8px; font-size: 26px; }
.page-sub { color: var(--text-dim); font-size: 14px; max-width: 64ch; margin: 0; line-height: 1.6; }

/* ---- numbered steps (getting started) ---- */
.step-num-badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-bright);
  border: 1px solid rgba(29,158,117,0.4);
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.code-card { background: #0e1117; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: 14px 0; }
.code-card .code-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.code-card pre { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--text); }
.code-card .c-key { color: var(--text-dim); }
.code-card .c-str { color: var(--accent-bright); }
.code-card .c-com { color: var(--text-dim); }
.code-card .c-flag { color: var(--amber); }
.note {
  background: rgba(29,158,117,0.07);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 14px;
}
.note strong { color: var(--accent-bright); }
ol.checklist { margin: 0; padding: 0; list-style: none; counter-reset: step; }
ol.checklist li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 34px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
ol.checklist li:last-child { padding-bottom: 0; }
ol.checklist li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0e1117;
  border: 1px solid rgba(29,158,117,0.4);
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.checklist code, p.desc code, .faq-answer code {
  background: #0e1117;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-bright);
}
p.desc { color: var(--text-dim); line-height: 1.6; font-size: 14px; max-width: 68ch; margin: 0 0 18px; }
.port-cell { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px; font-size: 12px; background: #0e1117; color: var(--text-dim); font-family: var(--mono); }
.mode-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 5px; font-size: 11.5px; font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.mode-badge.fixed { background: rgba(239,159,39,0.12); color: var(--amber); }
.mode-badge.vardiff { background: rgba(29,158,117,0.15); color: var(--accent-bright); }
.pool-url { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.pool-url code { background: #0e1117; padding: 2px 8px; border-radius: 4px; color: var(--text); }
.next-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.next-links a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 14px;
  border-radius: 8px;
}
.next-links a:hover { border-color: var(--accent); color: var(--accent-bright); }

/* ---- FAQ accordion ---- */
.faq-group { margin-bottom: 8px; }
.faq-group h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
}
details.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev { font-family: var(--mono); color: var(--accent-bright); flex-shrink: 0; transition: transform 0.18s ease; font-size: 14px; }
details.faq-item[open] summary .chev { transform: rotate(45deg); }
details.faq-item summary:hover { background: #171c27; }
details.faq-item .faq-answer { padding: 0 18px 18px; color: var(--text-dim); font-size: 14px; line-height: 1.65; }
details.faq-item .faq-answer a { color: var(--accent-bright); text-decoration: none; border-bottom: 1px solid rgba(29,158,117,0.4); }

/* ---- tabs (payments) ---- */
.tabs-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  background: #0e1117;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); color: #04342c; border-color: var(--accent); font-weight: 600; }
.section-panel { display: none; }
.section-panel.active { display: block; }
.section-meta { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); margin-right: 6px; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.empty-state { text-align: center; padding: 30px 16px !important; color: var(--text-dim); white-space: normal !important; }
.empty-state .big { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---- account / auth forms ---- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--bg);
  background: #0e1117;
}
.avatar.small { width: 32px; height: 32px; font-size: 11px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px;
  border-radius: 8px;
  cursor: pointer;
}
.auth-tab-btn.active { background: #0e1117; color: var(--accent-bright); }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
input[type=text], input[type=password], input[type=number] {
  width: 100%;
  background: #0e1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 13px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-dim); opacity: 0.6; }
input[type=number] { padding-right: 56px; }
button.primary {
  width: 100%;
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  background: var(--accent);
  color: #04342c;
}
button.primary:hover { background: var(--accent-bright); }
button.primary:disabled { opacity: 0.5; cursor: default; }
.identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.identity-row .addr { font-family: var(--mono); font-size: 14px; color: var(--text); word-break: break-all; line-height: 1.5; }
.identity-row .addr .label { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.btn-disconnect { background: transparent; border: 1px solid var(--border); color: var(--text-dim); font-size: 12.5px; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn-disconnect:hover { border-color: var(--red); color: var(--red); }
.payout-input-row { display: flex; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.payout-input-wrap { position: relative; flex: 1; }
.payout-input-wrap .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 13px; color: var(--text-dim); pointer-events: none; }
.btn-save { background: var(--accent); color: #04342c; padding: 0 20px; white-space: nowrap; border: none; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.btn-save:hover { background: var(--accent-bright); }
.btn-save:disabled { opacity: 0.5; cursor: default; }
.payout-track { position: relative; height: 5px; border-radius: 3px; background: #0e1117; margin: 0 0 14px; overflow: hidden; }
.payout-track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 10%; background: var(--accent); border-radius: 3px; transition: width 0.2s ease; }
.payout-track-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin: -6px 0 16px; }
.current-val { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.current-val .num { color: var(--accent-bright); font-weight: 700; font-size: 15px; }
.status-msg { font-family: var(--mono); font-size: 12.5px; margin-top: 12px; padding: 10px 14px; border-radius: 6px; display: none; }
.status-msg.show { display: block; }
.status-msg.ok { background: rgba(29,158,117,0.1); color: var(--accent-bright); border: 1px solid rgba(29,158,117,0.4); }
.status-msg.err { background: rgba(216,90,48,0.12); color: var(--red); border: 1px solid rgba(216,90,48,0.4); }
.range-hint { font-family: var(--mono); font-size: 12px; color: var(--text-dim); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-item { background: #0e1117; border: 1px solid var(--border); border-radius: 8px; padding: 13px 15px; }
.stat-item .stat-label-sm { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.stat-item .stat-val { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--accent-bright); }
.stat-item .stat-val.small { font-size: 13.5px; color: var(--text); font-weight: 500; }
.hidden { display: none !important; }

/* exchange-link-blue */
nav a[href="/exchange.html"], nav a[href="exchange.html"] { color: #4da3ff; }
nav a[href="/exchange.html"]:hover, nav a[href="exchange.html"]:hover, nav a[href="/exchange.html"].active { color: #8cc4ff; }
.dropdown > span { font-size: 12px; }

/* menu-layout-v1: one clean row, no wrapped labels */
header { gap: 24px; flex-wrap: wrap; }
.brand { font-size: 16px; white-space: nowrap; flex-shrink: 0; }
.brand img { flex-shrink: 0; }
nav { margin-left: auto; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
nav a, .dropdown > span { white-space: nowrap; font-size: 13px; padding: 6px 0; border-bottom: 2px solid transparent; line-height: 1.2; }
nav a:hover, nav a.active { border-bottom-color: var(--accent-bright); }
.dropdown > span { font-size: 13px; font-weight: 600; }
@media (max-width: 720px) { header { padding: 10px 14px; } nav { margin-left: 0; justify-content: flex-start; gap: 2px 16px; } }
