/* ---------- 401JK — warm cream minimal (mast-style) ---------- */

:root {
  --bg: #f4efe3;
  --card: #ece5d3;
  --card-2: #faf7ee;
  --ink: #211f14;
  --muted: #85806a;
  --acid: #d8f500;
  --acid-deep: #7d9200;
  --olive: #5c6410;
  --hairline: rgba(33, 31, 20, 0.1);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --black: "Archivo Black", var(--sans);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 40px);
  position: relative;
}

.wordmark {
  font-family: var(--black);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.chain-chip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 16px;
}

.chain-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid-deep);
}

.top-right { display: flex; align-items: center; gap: 10px; }

.top-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.15s;
}

.top-link:hover { background: #fff; }

.tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  text-decoration: none;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: background 0.15s, transform 0.15s;
}

.tg-btn svg { width: 22px; height: 22px; display: block; }

.tg-btn:hover { background: #fff; transform: translateY(-1px); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-dark {
  color: #171505;
  background: linear-gradient(180deg, #eaff5c 0%, #d8f500 48%, #b7d200 100%);
  border-color: rgba(110, 130, 0, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(96, 116, 0, 0.3),
    0 2px 6px rgba(33, 31, 20, 0.18);
}

.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(96, 116, 0, 0.3),
    0 10px 24px -8px rgba(140, 165, 0, 0.55);
}

.btn-dark:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: var(--card-2);
  border-color: var(--hairline);
}

.btn-ghost:hover { background: #fff; transform: translateY(-1px); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 16px 36px; font-size: 15.5px; }

/* ---------- Layout column ---------- */

.col {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 90px;
}

/* ---------- Section tabs ---------- */

.seg-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 5px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 44px;
}

.seg-tabs a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.seg-tabs a:hover { color: var(--ink); }

.seg-tabs a.active {
  background: var(--card-2);
  color: var(--ink);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 3px rgba(33, 31, 20, 0.08);
}

/* ---------- Hero text ---------- */

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
}

.lede {
  max-width: 520px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Presets ---------- */

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 6px;
  margin-top: 40px;
}

@media (max-width: 640px) { .preset-row { grid-template-columns: repeat(2, 1fr); } }

.preset {
  font-family: var(--sans);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s, border-color 0.15s;
}

.preset strong { font-size: 14px; font-weight: 600; color: var(--ink); }

.preset span { font-size: 11.5px; color: var(--muted); }

.preset:hover { background: rgba(250, 247, 238, 0.6); }

.preset.active {
  background: var(--card-2);
  border-color: var(--hairline);
  box-shadow: 0 1px 4px rgba(33, 31, 20, 0.08);
}

/* preset explainer dropdown */
.preset-info {
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 8px;
}

.preset-info.open { animation: piIn 0.28s ease both; }

@keyframes piIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.preset-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--acid-deep);
  margin-bottom: 6px;
}

.preset-info p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.pi-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.pi-link:hover { color: var(--acid-deep); }

.pi-link[hidden] { display: none; }

/* ---------- Allocation ---------- */

.alloc { margin-top: 30px; }

.alloc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.alloc-head strong { font-size: 15px; font-weight: 600; }

.alloc-head span { font-size: 12.5px; color: var(--muted); }

.alloc-bar {
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  gap: 2px;
}

.alloc-bar i { display: block; height: 100%; }

.a1 { background: #ddd3ba; }
.a2 { background: #b7d200; }
.a3 { background: #9db400; }
.a4 { background: #829600; }
.a5 { background: #687800; }
.a6 { background: #4e5a00; }

.alloc-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px 12px;
  margin-top: 18px;
}

.alloc-legend > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
  padding-left: 14px;
}

.alloc-legend b {
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.d1 { background: #ddd3ba; }
.d2 { background: #b7d200; }
.d3 { background: #9db400; }
.d4 { background: #829600; }
.d5 { background: #687800; }
.d6 { background: #4e5a00; }

.alloc-legend strong { font-size: 15px; font-weight: 700; }

.alloc-legend span { font-size: 11.5px; color: var(--ink); opacity: 0.8; }

.alloc-legend em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---------- Sweep widget ---------- */

.widget {
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 14px;
  margin-top: 40px;
  box-shadow: 0 20px 50px -30px rgba(33, 31, 20, 0.35);
}

.w-tabs {
  display: flex;
  gap: 4px;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}

.w-tabs button {
  flex: 1;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px;
  cursor: pointer;
}

.w-tabs button.active {
  background: var(--card-2);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: 0 1px 3px rgba(33, 31, 20, 0.08);
}

.w-box {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
}

.w-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.w-row input {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
}

.w-row input::-webkit-outer-spin-button,
.w-row input::-webkit-inner-spin-button { -webkit-appearance: none; }

.w-row strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  color: var(--acid-deep);
}

.w-token {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.w-token b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--card-2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w-token-acid b { background: var(--acid); color: var(--ink); }

.w-slices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.w-slice {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.w-slice.active {
  background: var(--acid);
  border-color: rgba(110, 130, 0, 0.6);
}

.w-arrow {
  display: flex;
  justify-content: center;
  margin: -10px 0;
  position: relative;
  z-index: 2;
}

.w-arrow span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(33, 31, 20, 0.12);
}

.widget .w-box + .w-arrow + .w-box { margin-top: 0; }

.widget .w-box:nth-of-type(2) { margin-top: 10px; }

.w-cta {
  display: block;
  width: 100%;
  font-family: var(--sans);
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: #171505;
  text-decoration: none;
  background: linear-gradient(180deg, #eaff5c 0%, #d8f500 48%, #b7d200 100%);
  border: 1px solid rgba(110, 130, 0, 0.75);
  border-radius: 14px;
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(96, 116, 0, 0.3),
    0 2px 6px rgba(33, 31, 20, 0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.w-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(96, 116, 0, 0.3),
    0 12px 26px -8px rgba(140, 165, 0, 0.55);
}

.w-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin: 10px 4px 4px;
}

.ca-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  background: var(--card);
  border: 1px dashed rgba(110, 130, 0, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
}

.ca-bar span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--acid-deep);
  flex-shrink: 0;
}

.ca-bar code {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.foot-ca {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.foot-ca code { font-size: 11px; color: var(--ink); }

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 28px;
  background: var(--card);
}

.stat-strip > div {
  padding: 20px 20px 18px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-strip > div:last-child { border-right: none; }

.stat-strip span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-strip strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.stat-strip em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Panel (calculator) ---------- */

.panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 26px 26px 20px;
  margin-top: 28px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.panel-head strong { font-size: 15px; font-weight: 600; display: block; }

.panel-head span { font-size: 12px; color: var(--muted); }

.panel-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}

.panel-result .from {
  font-size: 17px;
  color: var(--muted);
}

.p-arrow { color: var(--acid-deep); font-size: 20px; }

.panel-result strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  color: var(--ink);
}

.panel-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 640px) { .panel-controls { grid-template-columns: 1fr; } }

.panel-controls label span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.range-row { display: flex; align-items: center; gap: 10px; }

.range-row output {
  font-size: 13px;
  font-weight: 700;
  min-width: 52px;
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(33, 31, 20, 0.15);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--acid);
  border: 2px solid rgba(110, 130, 0, 0.8);
  box-shadow: 0 1px 4px rgba(33, 31, 20, 0.25);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--acid);
  border: 2px solid rgba(110, 130, 0, 0.8);
  cursor: pointer;
}

.panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.panel-meta > div { display: flex; flex-direction: column; gap: 2px; }

.panel-meta span { font-size: 11.5px; color: var(--muted); }

.panel-meta strong { font-size: 15px; font-weight: 700; }

.fine {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Vault chips ---------- */

.vault { margin-top: 44px; }

.vault-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
}

.vchip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--hairline);
}

.vault-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- FAQ ---------- */

.faq { margin-top: 44px; }

details {
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 8px;
}

details summary {
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  font-size: 17px;
  color: var(--acid-deep);
  transition: transform 0.2s;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 26px 20px 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.foot nav {
  display: inline-flex;
  gap: 18px;
  margin-left: 18px;
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.foot a:hover { color: var(--acid-deep); }

.foot-fine {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 10.5px;
  opacity: 0.75;
  line-height: 1.7;
}

/* =========================================================
   App page (app.html)
   ========================================================= */

.app-body { min-height: 100vh; display: flex; flex-direction: column; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 3vw, 40px);
}

.brand { text-decoration: none; }

.mark {
  font-family: var(--black);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.demo-chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--acid-deep);
  border: 1px solid var(--hairline);
  background: var(--card-2);
  border-radius: 999px;
  padding: 6px 14px;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 40px) 70px;
}

.card-lg {
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}

/* Connect gate */

.gate {
  max-width: 440px;
  margin: 8vh auto 0;
  text-align: center;
  padding: 46px 40px;
  box-shadow: 0 24px 60px -34px rgba(33, 31, 20, 0.4);
}

.gate .mark { font-size: 26px; display: inline-block; margin-bottom: 20px; }

.gate h1 { font-size: 38px; }

.gate p { color: var(--muted); font-size: 14.5px; margin: 14px 0 26px; }

.gate .btn { width: 100%; }

.gate-fine { font-size: 11px; color: var(--muted); margin-top: 16px; }

/* Dashboard */

.dash { display: none; }

.dash.visible { display: block; animation: dashIn 0.5s ease both; }

@keyframes dashIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-head h1 { font-size: clamp(28px, 4vw, 40px); text-align: left; }

.addr-chip {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-trust {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid-deep);
  flex-shrink: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 820px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card { padding: 22px; text-align: left; }

.dash-card .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dash-card .value {
  font-family: var(--serif);
  font-size: 34px;
  margin-top: 4px;
}

.dash-card .delta { font-size: 12.5px; color: var(--acid-deep); margin-top: 2px; font-weight: 600; }

.dash-card .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.dash-wide { grid-column: 1 / -1; }

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

@media (max-width: 820px) { .dash-two { grid-template-columns: 1fr; } }

.dash-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  margin-bottom: 14px;
}

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.pill {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pill.active {
  background: var(--acid);
  border-color: rgba(110, 130, 0, 0.6);
}

.holding { margin-bottom: 13px; }

.holding-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.holding-top strong { font-weight: 700; }

.holding-top span { color: var(--muted); }

.h-logo {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  border: 1px solid var(--hairline);
  vertical-align: -4px;
  margin-right: 7px;
}

.bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(33, 31, 20, 0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #b7d200, #d8f500);
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.sweep-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}

.sweep-row:last-child { border-bottom: none; }

.sweep-row .coin-name { font-weight: 700; }

.sweep-row .gain { color: var(--acid-deep); font-weight: 600; }

.sweep-row .swept { font-family: var(--serif); font-size: 15px; }

.sweep-row .when { color: var(--muted); font-size: 12px; }

.footer {
  border-top: 1px solid var(--hairline);
  padding: 22px;
  text-align: center;
}

.footer p, .footer-inner p { font-size: 11px; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ---------- Onboarding wizard ---------- */

.wiz { max-width: 640px; margin: 0 auto; }

.wiz-card {
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 24px 60px -36px rgba(33, 31, 20, 0.4);
}

.wiz-progress {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 26px;
}

.wp {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  transition: background 0.25s, color 0.25s;
}

.wp.active { color: var(--acid-deep); }

.wp.current {
  background: var(--acid);
  color: #171505;
  border-color: rgba(110, 130, 0, 0.6);
}

.step { display: none; }

.step.active { display: block; animation: dashIn 0.4s ease both; }

.step h1 { text-align: center; font-size: clamp(32px, 5vw, 44px); }

.step-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 460px;
  margin: 12px auto 28px;
}

.wiz-tabs { max-width: 320px; margin: 0 auto 22px; }

#genPane, #impPane { text-align: center; }

.key-out {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px;
  margin-top: 18px;
}

.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}

.key-row:last-of-type { border-bottom: none; }

.key-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 92px;
  flex-shrink: 0;
}

.key-row code {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-row code.masked { color: var(--muted); letter-spacing: 1px; }

.mini-btn {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.mini-btn:hover { background: #fff; }

.mini-btn.wide { display: block; width: 100%; margin-top: 12px; padding: 9px; }

.warn {
  font-size: 12px;
  color: #8a5a12;
  background: rgba(216, 160, 44, 0.12);
  border: 1px solid rgba(216, 160, 44, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 14px;
  text-align: left;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
}

.check input { width: 16px; height: 16px; accent-color: var(--acid-deep); }

.text-in {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  margin-bottom: 10px;
}

.text-in:focus { border-color: var(--acid-deep); }

.text-in.slim { width: auto; padding: 9px 14px; margin: 0; }

.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.wiz-nav .btn[disabled] { opacity: 0.45; pointer-events: none; }

.wiz-plans { margin-top: 0; grid-template-columns: repeat(3, 1fr); }

.payday-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.slice-big {
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 96px);
  text-align: center;
  line-height: 1;
  margin-bottom: 18px;
}

.wiz-range { max-width: 420px; margin: 0 auto 18px; }

.pill-row.center { justify-content: center; }

.mix-rows {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 8px 18px;
  margin-top: 22px;
}

.mix-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}

.mix-row:last-child { border-bottom: none; }

.mix-row img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.mix-name { font-size: 12.5px; color: var(--muted); width: 128px; flex-shrink: 0; }

.mix-name strong { color: var(--ink); font-size: 13.5px; margin-right: 4px; }

.mix-row input { flex: 1; }

.mix-row output { font-size: 13px; font-weight: 700; width: 44px; text-align: right; }

.mix-total {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.mix-total strong { font-size: 15px; color: var(--acid-deep); margin-left: 6px; }

.mix-total strong.bad { color: #b03a2e; }

.review-list {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 6px 20px;
}

.review-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.review-list > div:last-child { border-bottom: none; }

.review-list span { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.review-list strong { font-size: 13.5px; text-align: right; }

.addr-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-2);
  border: 1px dashed rgba(110, 130, 0, 0.55);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
}

.addr-box span { font-size: 11px; color: var(--muted); width: 130px; flex-shrink: 0; }

.addr-box code {
  flex: 1;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.dash-title { display: flex; align-items: center; gap: 14px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--acid-deep);
  background: rgba(216, 245, 0, 0.2);
  border: 1px solid rgba(125, 146, 0, 0.35);
  border-radius: 999px;
  padding: 5px 13px;
}

.status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid-deep);
}

.bal-row { display: flex; align-items: center; gap: 10px; }

.eth-ico { width: 18px; height: 18px; }

/* hero balance panel */
.dash-hero {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 4vw, 40px);
  padding: 28px clamp(22px, 3vw, 34px);
  margin-top: 6px;
}

.dh-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dh-block .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dh-usd {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 58px);
  line-height: 1;
}

.dh-count {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.1;
}

.dh-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.dh-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.dh-div { width: 1px; background: var(--hairline); }

@media (max-width: 700px) {
  .dash-hero { flex-direction: column; }
  .dh-div { width: auto; height: 1px; }
}

/* plan definition rows */
.plan-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  overflow: hidden;
}

@media (max-width: 700px) { .plan-rows { grid-template-columns: 1fr; } }

.plan-rows > div {
  padding: 16px 22px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plan-rows > div:last-child { border-right: none; }

@media (max-width: 700px) {
  .plan-rows > div { border-right: none; border-bottom: 1px solid var(--hairline); }
  .plan-rows > div:last-child { border-bottom: none; }
}

.plan-rows span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.plan-rows strong { font-size: 14px; font-weight: 600; }

.dash-col { display: flex; flex-direction: column; gap: 12px; }

.dash-col .dash-card { flex: 1; }

.fund-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-top: 12px;
  border-style: dashed;
  border-color: rgba(110, 130, 0, 0.5);
}

.fund-bar > div { flex-shrink: 0; max-width: 320px; }

.fund-bar .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.fund-bar .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.fund-bar code {
  flex: 1;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 760px) {
  .fund-bar { flex-wrap: wrap; }
  .fund-bar code { text-align: left; width: 100%; flex: none; }
}

.btn-ghost.danger { color: #b03a2e; }

.chain-chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.w-token img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.okmsg {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--acid-deep);
  background: rgba(216, 245, 0, 0.18);
  border: 1px solid rgba(125, 146, 0, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

@media (max-width: 720px) {
  .chain-chip { display: none; }
}
