/* AUREA Staking & Farm — dark theme matched to aureaswap.com (Orderly One).
   Palette taken from https://aureaswap.com/theme.css + runtime config
   (VITE_ORDERLY_THEME_CONFIG), fetched 2026-11-27:
     --oui-color-fill        10 15 30    #0a0f1e  (page background)
     --oui-color-base-1      20 24 40    #141828  (elevated surface)
     --oui-color-base-2      18 22 38    #121626  (card surface)
     --oui-color-base-4      14 18 34    #0e1222  (input surface)
     --oui-color-fill-active 15 20 35    #0f1423  (panel surface)
     --oui-color-line        40 45 60    #282d3c  (borders)
     --oui-color-primary     255 215 0   #ffd700  (gold)
     --oui-color-primary-light   255 235 80  #ffeb50
     --oui-color-primary-darken  200 170 0   #c8aa00
     --oui-color-primary-contrast 20 24 40   #141828
     --oui-color-link        138 43 226  #8a2be2  (violet)
     --oui-color-tertiary    132 131 136 #848388  (muted text)
     --oui-color-quaternary  98 96 102   #626066
     --oui-color-success     2 181 137   #02b589
     --oui-color-danger      233 77 122  #e94d7a
     --oui-color-warning     217 171 82  #d9ab52
     brand gradient: linear-gradient(45deg, #ffd700 6.62%, #8a2be2 86.5%)
     font: 'Manrope', sans-serif                                        */
:root {
  --bg: #0a0f1e;
  --bg-deep: #020616;
  --card: #121626;
  --card-2: #141828;
  --panel: #0f1423;
  --border: #282d3c;
  --text: #ffffff;
  --muted: #848388;
  --muted-2: #626066;
  --gold: #ffd700;
  --gold-light: #ffeb50;
  --gold-dark: #c8aa00;
  --gold-soft: rgba(255, 215, 0, 0.1);
  --violet: #8a2be2;
  --violet-soft: rgba(138, 43, 226, 0.16);
  --violet-text: #c9a7f5;
  --green: #02b589;
  --red: #e94d7a;
  --warning: #d9ab52;
  --input-bg: #0e1222;
  --gradient-brand: linear-gradient(45deg, #ffd700 6.62%, #8a2be2 86.5%);
  --on-primary: #141828;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "PingFang SC", "Noto Sans CJK SC", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  padding-bottom: 150px; /* room for the floating bottom nav + hosting badge zone */
}

a { color: var(--gold); }

.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.body-text { line-height: 1.65; font-size: 15px; }

/* --- header ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-title { font-size: 19px; font-weight: 800; color: var(--text); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-muted { background: var(--input-bg); color: var(--muted); }
.badge-ok { background: rgba(2, 181, 137, 0.15); color: #2fd3a7; }
.badge-warn { background: rgba(217, 171, 82, 0.15); color: var(--warning); }
.network-badge { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }

/* --- alerts / status ---------------------------------------------------- */
.alert {
  margin: 12px 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-success { background: rgba(2, 181, 137, 0.12); border: 1px solid rgba(2, 181, 137, 0.45); color: #4be3bb; }
.alert-error { background: rgba(233, 77, 122, 0.12); border: 1px solid rgba(233, 77, 122, 0.45); color: #ff8fab; }
.alert-warn { background: rgba(217, 171, 82, 0.12); border: 1px solid rgba(217, 171, 82, 0.45); color: #e8c87e; }
.alert-info { background: var(--violet-soft); border: 1px solid rgba(138, 43, 226, 0.5); color: var(--violet-text); }
#statusBar { white-space: pre-wrap; }

/* --- layout ------------------------------------------------------------- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-label {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-heading {
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}
.footer {
  max-width: 880px;
  margin: 10px auto 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* --- cards & stats ------------------------------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.card h3 { color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 6px 0 14px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.stat-label { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 16.5px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.tvl-strip .stat { background: var(--gold-soft); border-color: rgba(255, 215, 0, 0.35); }
.stat-hero .stat-value { font-size: 27px; color: var(--gold); }

/* --- buttons ------------------------------------------------------------ */
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter 0.12s ease, border-color 0.12s ease, transform 0.05s ease;
}
.btn:hover:not(:disabled) { border-color: var(--gold); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--input-bg); border-color: var(--border); color: var(--muted-2); cursor: not-allowed; }
.btn-primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: var(--on-primary);
  font-weight: 800;
}
.btn-primary:hover:not(:disabled) { border-color: transparent; filter: brightness(1.07); }
.btn-primary:disabled { background: var(--input-bg); border-color: var(--border); color: var(--muted-2); }
.btn-small { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-wide { width: 100%; padding: 13px 18px; font-size: 16px; }
.btn-connect { white-space: nowrap; }
.btn-anchor { display: block; text-align: center; text-decoration: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-row .btn { flex: 1 1 120px; }
.link-btn {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--card-2);
}
.link-btn:hover { border-color: var(--gold); }

/* --- forms -------------------------------------------------------------- */
.form-row { margin: 14px 0; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
input[type="number"], input[type="text"] {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
}
input[type="number"]:focus, input[type="text"]:focus {
  border-color: var(--gold);
  background: var(--panel);
}
input::placeholder { color: var(--muted-2); }
.estimate {
  background: var(--violet-soft);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--violet-text);
  font-size: 13.5px;
  line-height: 1.55;
}
.estimate:empty { display: none; }
.fee-note {
  background: var(--gold-soft);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--gold-light);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 12px 0;
}
.helper-result { font-weight: 700; color: var(--text); font-size: 14.5px; }
.field-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 700;
}
.field-select-text { flex: 1; }
.field-select-chevron { color: var(--muted); }

/* --- segmented control & pair picker (liquidity wizard) ----------------- */
.seg-control {
  display: flex;
  gap: 4px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.seg-btn.active { background: var(--gold); color: var(--on-primary); }
.seg-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.seg-btn.active:disabled { opacity: 1; cursor: default; }

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 800;
  flex: 0 0 auto;
}

.pair-options { display: flex; flex-direction: column; gap: 10px; }
.pair-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  cursor: pointer;
  color: var(--text);
}
.pair-option.selected { border-color: var(--gold); background: rgba(255, 215, 0, 0.05); }
.pair-option-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pair-option-name { font-weight: 800; font-size: 16px; }
.pair-option-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pair-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: 0 0 auto;
  position: relative;
}
.pair-option.selected .pair-check { background: var(--gold); border-color: var(--gold); }
.pair-option.selected .pair-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid var(--on-primary);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}
.liq-next-btn { margin-top: 16px; }
.liq-step3-head { display: flex; align-items: center; gap: 12px; }
.liq-step3-head .step-title { margin: 0; }
.wizard-heading { color: var(--gold); font-size: 24px; font-weight: 800; margin: 8px 0 0; }

/* --- coin badges --------------------------------------------------------- */
.coin-img { border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--panel); }
.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  flex: 0 0 auto;
  color: #ffffff;
}
.coin-badge-sm { width: 20px; height: 20px; font-size: 11px; }
.coin-badge-md { width: 34px; height: 34px; font-size: 16px; }
.coin-badge-lg { width: 38px; height: 38px; font-size: 19px; }
.coin-badge-usdt { background: #26a17b; }
.coin-badge-mk { background: #5b3bb8; }
.coin-stack { position: relative; display: inline-flex; }
.pair-badges { position: relative; display: inline-flex; flex: 0 0 auto; padding-right: 14px; }
.pair-badges .coin-badge:last-child, .pair-badges .coin-img:last-child {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  border: 2px solid var(--card);
}

/* --- Syrup-Pools-style list rows (Pool plans & Farms) -------------------- */
.pool-list { display: flex; flex-direction: column; gap: 12px; }
.pool-row, .farm-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.pool-row-head, .farm-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  flex-wrap: wrap;
}
.pr-main { display: flex; align-items: center; gap: 12px; flex: 1.5 1 170px; min-width: 0; }
.pr-names { display: flex; flex-direction: column; min-width: 0; }
.pr-earn { font-size: 16.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.pr-sub { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pr-col { display: flex; flex-direction: column; gap: 2px; flex: 1 1 90px; min-width: 0; }
.pr-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.pr-col-value { font-size: 15px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.apr-value { color: var(--gold); font-size: 18px; }
.pr-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
  margin-left: auto;
}
.chev { display: inline-block; transition: transform 0.15s ease; font-size: 12px; }
.pool-row.open .chev, .farm-row.open .chev { transform: rotate(180deg); }
.pool-panel, .farm-panel { border-top: 1px solid var(--border); padding: 6px 18px 18px; }
.farm-panel { margin: 0; }
.farm-list-card { padding: 8px 20px 14px; }
.farm-table-head {
  display: flex;
  gap: 14px;
  padding: 12px 0 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.farm-table-head .ft-name { flex: 1.5 1 170px; }
.farm-table-head .ft-earned, .farm-table-head .ft-locked, .farm-table-head .ft-apr { flex: 1 1 90px; }
.farm-table-head .ft-chev { flex: 0 0 74px; }
.farm-list-card .farm-row { border: none; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.farm-list-card .farm-row-head { padding-left: 0; padding-right: 0; }
.farm-list-card .farm-panel { padding-left: 0; padding-right: 0; border-top: none; }
.ft-usd { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.apr-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 2px 0 10px; }
.apr-note:empty { display: none; }

/* Pool page hero + per-plan stake list */
.pool-hero { display: flex; align-items: center; gap: 16px; }
.pool-hero-logo { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.plan-note2 { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.plan-stakes-title { font-size: 15px; font-weight: 800; margin: 18px 0 8px; color: var(--text); }
.plan-stake-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.plan-stake-row .psr-main { font-weight: 800; }
.plan-load-error { text-align: center; padding: 26px 10px; }
.plan-load-title { font-weight: 800; font-size: 16px; margin: 0 0 6px; }
.status-matured { color: #2fd3a7; font-weight: 800; }
.status-locked { color: var(--warning); font-weight: 800; }
.status-done { color: var(--muted); font-weight: 700; }

/* Legacy plan cards (unused by the Pool list; kept for safety) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  width: 100%;
}
.plan.selected { border-color: var(--gold); background: rgba(255, 215, 0, 0.05); }
.plan-top { display: flex; flex-direction: column; gap: 2px; }

/* --- farm detail heads (liquidity detail cards reuse) ------------------- */
.farm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.farm-name { font-size: 17px; font-weight: 800; }
.farm-name-wrap { display: flex; flex-direction: column; min-width: 0; }
.farm-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* --- liquidity: positions + pool table ----------------------------------- */
.position-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}
.position-row:first-of-type { border-top: none; }
.position-name { font-weight: 800; font-size: 15.5px; }
.position-value { margin-left: auto; font-weight: 800; font-size: 15px; text-align: right; }
.pool-table-head {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr auto;
  gap: 12px;
  padding: 4px 6px 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pool-table-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 6px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.pool-table-row:hover { background: rgba(255, 255, 255, 0.03); }
.pt-pool { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.pt-name { font-weight: 800; font-size: 15.5px; }
.chain-tag {
  background: var(--violet-soft);
  color: var(--violet-text);
  border-radius: 999px;
  padding: 2.5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.pt-tvl, .pt-price { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }

/* --- docs & pool info ------------------------------------------------------ */
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.toc-list a { font-weight: 700; text-decoration: none; }
.toc-list a:hover { text-decoration: underline; }
.doc-list { line-height: 1.7; padding-left: 20px; }
.doc-list li { margin-bottom: 7px; }
.table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.doc-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc-table th, .doc-table td {
  border: 1px solid var(--border);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.doc-table th { background: var(--panel); font-weight: 800; }
.contract-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contract-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.soon-pill {
  display: inline-block;
  background: var(--input-bg);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 800;
  margin-left: 8px;
  vertical-align: middle;
}

/* --- wallet picker modal --------------------------------------------------- */
.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.wallet-modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 420px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.wallet-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wallet-modal-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.wallet-modal-close {
  appearance: none;
  border: none;
  background: var(--input-bg);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.wallet-modal-close:hover { color: var(--text); }
#walletModalOptions, #walletModalConnected { display: flex; flex-direction: column; gap: 12px; }
.wallet-options-mock { display: flex; flex-direction: column; gap: 12px; }
.wallet-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: #101424;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.wallet-option:hover:not(:disabled) { border-color: var(--gold); background: var(--card-2); }
.wallet-option:disabled { background: var(--input-bg); border-color: var(--border); color: var(--muted-2); cursor: not-allowed; }
.wallet-option-name { font-size: 16.5px; font-weight: 800; }
.wallet-option-sub { font-size: 13px; font-weight: 600; color: var(--muted); }
.wallet-option:disabled .wallet-option-sub { color: var(--muted-2); }
.wallet-connected-line { font-size: 15.5px; margin: 0; overflow-wrap: anywhere; }

/* --- bottom nav ------------------------------------------------------------ */
.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 56px; /* floats above the hosting provider badge zone so no nav item is covered */
  z-index: 30;
  display: flex;
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 6px 4px;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
}
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { color: var(--gold); }

/* --- guide page ------------------------------------------------------------ */
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px 6px 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.guide-toc a:hover { border-color: var(--gold); }
.guide-toc .toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--on-primary);
  font-size: 12px;
  font-weight: 800;
}
.guide-step { scroll-margin-top: 84px; }
.guide-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.guide-step-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.guide-step .step-num { width: 32px; height: 32px; font-size: 16px; }
.guide-step p { line-height: 1.65; font-size: 14.5px; }
.guide-step ul { line-height: 1.65; font-size: 14.5px; padding-left: 20px; }
.guide-step li { margin-bottom: 6px; }
.guide-note {
  background: rgba(217, 171, 82, 0.1);
  border: 1px solid rgba(217, 171, 82, 0.4);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e8c87e;
  margin-top: 12px;
}
.guide-note strong { color: var(--warning); }

/* UI mock frames: static recreations of the app's real screens. */
.mock {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-deep);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: 0 0 auto; }
.mock-url {
  flex: 1;
  background: var(--input-bg);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-caption {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.mock .topbar { position: static; border: 1px solid var(--border); border-radius: 10px; }
.mock .wallet-modal { position: static; background: rgba(2, 6, 22, 0.55); border-radius: 10px; }
.mock .wallet-modal-card { max-height: none; }
.mock .pool-row, .mock .farm-row { box-shadow: none; }
.mock-field {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.mock-field .mf-label { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-field .mf-value { margin-left: auto; font-weight: 800; }
.mock-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 3px 0; }
.mock-kv .k { color: var(--muted); font-weight: 600; }
.mock-kv .v { font-weight: 800; text-align: right; }
.mock-arrow { text-align: center; color: var(--gold); font-size: 17px; line-height: 1; }
.mock-wallet-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; }
.mock-check { color: #2fd3a7; font-weight: 800; }

/* --- responsive -------------------------------------------------------------- */
@media (max-width: 720px) {
  .farm-table-head, .pool-table-head { display: none; }
  .pool-table-row { grid-template-columns: 1.4fr 1fr auto; }
  .pt-price { display: none; }
}
@media (max-width: 560px) {
  .page-heading { font-size: 28px; }
  .pool-hero-logo { width: 54px; height: 54px; }
  .card { padding: 18px 16px; }
  .pool-row-head, .farm-row-head { padding: 14px; gap: 10px; }
  .pool-panel, .farm-panel { padding: 6px 14px 16px; }
  .farm-list-card .farm-row-head, .farm-list-card .farm-panel { padding-left: 0; padding-right: 0; }
  .network-badge { display: none; }
  .btn-connect { padding: 9px 12px; font-size: 14px; }
}
