/* ══ Fundy — pages ══ */

/* ── Dashboard ── */
.dash { display: flex; flex-direction: column; gap: 10px; padding: 13px; min-height: 100%; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chain-seg .seg-btn { padding: 0 6px; min-width: 24px; }
.chain-seg .seg-btn.txt { padding: 0 8px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat {
  position: relative;
  min-height: 60px;
  padding: 12px 14px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.stat-l { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.stat-v { font-size: 17px; font-weight: 600; margin-top: 3px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stat-act { position: absolute; top: 9px; right: 9px; }
.dash-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: 1 1 380px; min-height: 340px; }
.chart-card {
  display: flex; flex-direction: column;
  min-height: 0;
  padding: 12px 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chart-title { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.chart-title b { color: var(--text); font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-modes { display: flex; gap: 2px; }
.chart-mode {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  color: var(--text-3);
  transition: background .12s, color .12s;
}
.chart-mode:hover { color: var(--text); }
.chart-mode.active { background: rgba(var(--accent-rgb), .18); color: var(--accent-text); }
.chart-body { position: relative; flex: 1; min-height: 0; margin-top: 6px; }
.chart-body > .lw { position: absolute; inset: 0; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--text-3); }
.pie-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 10px; }
.pie-wrap svg { max-height: 100%; }
.pie-legend { display: flex; flex-direction: column; gap: 7px; min-width: 150px; max-width: 220px; }
.pie-leg { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.pie-leg .sw { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.pie-leg .n { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pie-leg .v { font-family: var(--mono); font-weight: 600; }
.pie-center-v { font-size: 13px; font-weight: 700; fill: var(--text); }
.pie-center-l { font-size: 8.5px; fill: var(--text-3); }

.dash-ref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: 274px; flex-shrink: 0; }
.ref-card { position: relative; overflow: hidden; padding: 12px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); display: flex; flex-direction: column; }
.ref-l { font-size: 10.5px; color: var(--text-3); }
.ref-v { font-size: 17px; font-weight: 600; margin-top: 3px; letter-spacing: -.015em; }
.rew-chart { position: absolute; left: 0; right: 0; bottom: 0; height: 72%; }
.rew-chart svg { width: 100%; height: 100%; display: block; }
.rew-claim {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 27px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  border: 1px solid var(--border-2);
  font-size: 11px; font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background .12s;
}
.rew-claim:hover { background: var(--surface-3); }
.aff-sub { font-family: var(--mono); font-size: 9.5px; color: var(--text-3); letter-spacing: .06em; margin-top: 4px; }
.aff-list { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; overflow-y: auto; }
.aff-row {
  display: flex; align-items: center; gap: 8px;
  height: 29px; padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.aff-code { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; width: 58px; }
.aff-copy { color: var(--text-3); display: inline-flex; }
.aff-copy:hover { color: var(--text); }
.aff-uses { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-left: 22px; }
.aff-row .grow { flex: 1; }
.aff-more { color: var(--text-3); display: inline-flex; padding: 2px; border-radius: 4px; }
.aff-more:hover { color: var(--text); background: var(--surface-4); }
.aff-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.aff-dot.off { background: var(--text-4); }
.aff-row.used .aff-code { color: var(--text-3); text-decoration: line-through; }
.rank-blur { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; display: flex; flex-direction: column; height: 100%; }
.rank-soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-2); }
.rank-tier { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--text-3); }
.rank-big { font-size: 19px; font-weight: 700; margin-top: 10px; }
.rank-bar { height: 5px; border-radius: 3px; background: var(--surface-4); margin-top: 14px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 86%; background: var(--text-2); }
.rank-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 10.5px; color: var(--text-3); }
.rank-rows div { display: flex; justify-content: space-between; }

/* P&L calendar (modal) */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-month { font-size: 13px; font-weight: 600; min-width: 128px; text-align: center; }
.cal-total { font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day-label { text-align: center; font-size: 10px; color: var(--text-3); padding: 2px 0 4px; }
.cal-cell {
  min-height: 52px;
  padding: 6px 7px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-dim);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-cell.profit { background: rgba(var(--green-rgb), .11); border-color: rgba(var(--green-rgb), .2); }
.cal-cell.loss { background: rgba(var(--red-rgb), .1); border-color: rgba(var(--red-rgb), .2); }
.cal-cell.today { border-color: rgba(var(--accent-rgb), .7); }
.cal-cell-day { font-size: 10px; color: var(--text-3); }
.cal-cell-pnl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.cal-cell.profit .cal-cell-pnl { color: var(--green); }
.cal-cell.loss .cal-cell-pnl { color: var(--red); }
.cal-foot { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--text-3); }
.cal-foot b { color: var(--text); font-weight: 600; }

/* ── Wallets ── */
.wal { flex: 1; min-height: 0; display: flex; }
.wal-side {
  width: 218px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  padding: 18px 16px 16px;
  min-height: 0;
  overflow-y: auto;
}
.wal-chains { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wal-chain {
  height: 38px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background .12s, border-color .12s;
}
.wal-chain:hover { border-color: var(--border-2); }
.wal-chain.active { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .28); }
.more-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 8px;
  background: var(--surface-4);
  font-size: 8.5px; font-weight: 700; color: var(--text-2);
}
.wal-sec { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; padding: 0 2px; }
.wal-sec-l { font-size: 10px; letter-spacing: .03em; color: var(--text-3); text-transform: uppercase; }
.folder {
  display: flex; align-items: center; gap: 9px;
  height: 27px; padding: 0 8px 0 10px;
  border-radius: var(--r-sm);
  font-size: 11.5px; color: var(--text-2);
  cursor: pointer;
  transition: background .1s, color .1s;
}
.folder:hover { background: var(--surface-2); color: var(--text); }
.folder.active { background: var(--surface-3); color: var(--text); font-weight: 500; }
.folder .fdot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.folder .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder .fcount { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.folder .fmore { display: none; color: var(--text-3); }
.folder:hover .fmore { display: inline-flex; }
.folder:hover .fcount.has-more { display: none; }
.folder-sub { padding-left: 12px; }
.folder-new {
  width: 100%;
  height: 28px;
  margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px dashed var(--border-3);
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 600;
  color: var(--text);
  transition: background .12s;
}
.folder-new:hover { background: var(--surface-2); }
.mkt-promo {
  margin-top: auto;
  padding: 13px 13px 12px;
  border-radius: var(--r);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #fff) 0%, var(--accent) 100%);
  color: #fff;
  cursor: pointer;
  transition: filter .12s;
  flex-shrink: 0;
}
.mkt-promo:hover { filter: brightness(1.05); }
.mkt-promo-h { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.mkt-promo-h .badge-new { margin-left: auto; background: rgba(20, 22, 50, .25); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.mkt-promo p { font-size: 10.5px; line-height: 1.45; margin-top: 7px; color: rgba(255, 255, 255, .92); }
.wal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.wal-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 13px 10px; flex-wrap: wrap; }
.wal-toolbar .inp-wrap { width: 150px; height: 22px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-size: 11px; font-weight: 600; color: var(--text);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.tb-btn:hover { background: var(--surface-3); }
.tb-btn .ic { color: var(--text-2); }
.tb-btn:disabled { background: transparent; border-color: transparent; color: var(--text-4); font-weight: 500; }
.tb-btn:disabled .ic { color: var(--text-4); }
.tb-btn.icon { width: 22px; padding: 0; justify-content: center; }
.chain-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  font-size: 10.5px; font-weight: 500; color: var(--text-2);
  transition: background .12s, color .12s, border-color .12s;
}
.chain-chip:hover { color: var(--text); }
.chain-chip.active { color: var(--text); font-weight: 600; background: rgba(198, 244, 50, .1); border-color: rgba(198, 244, 50, .35); }
.chain-chip.active[data-c="arc"] { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .25); }
.chain-chip.active[data-c="bsc"] { background: rgba(243, 186, 47, .1); border-color: rgba(243, 186, 47, .35); }
.chain-chip.active[data-c="eth"] { background: rgba(143, 150, 196, .12); border-color: rgba(143, 150, 196, .4); }
.chain-chip.active[data-c="base"] { background: rgba(47, 107, 255, .12); border-color: rgba(47, 107, 255, .4); }
.wal-sum { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.wal-sum b { color: var(--text-2); font-weight: 600; font-family: var(--mono); }
.wal-table-wrap { position: relative; flex: 1; min-height: 0; overflow: auto; }
.wal-table-wrap .tbl th { background: var(--bg); }
.w-addr { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.w-bal { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-label { font-size: 10px; color: var(--text-2); background: var(--surface-3); border-radius: 4px; padding: 1px 5px; }
.w-src { display: inline-flex; align-items: center; gap: 7px; }
.w-src .cell2 { font-size: 11.5px; font-weight: 600; }
.row-acts { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .1s; }
.tbl tr:hover .row-acts { opacity: 1; }
.wal-empty { position: absolute; inset: 32px 0 0 0; display: flex; align-items: center; justify-content: center; }
.wal-empty .empty { background: var(--bg); padding: 26px 40px; border-radius: var(--r-lg); position: relative; }
.mini-num { font-family: var(--mono); font-size: 11.5px; }

/* ── Marketplace ── */
.mkt { display: flex; height: 100%; min-height: 0; }
.mkt-side {
  width: 350px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  min-height: 0;
}
.page-mkt .mkt-side { width: 274px; }
.mkt-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.page-mkt .mkt-scroll { padding: 14px 14px; }
.mkt-chains {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
}
.mkt-chain { height: 31px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); transition: background .12s; }
.mkt-chain:hover { background: var(--surface-2); }
.mkt-chain.active { background: var(--surface-4); }
.f-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin-bottom: 7px; }
.f-head .muted { font-weight: 400; font-size: 11px; }
.num-inp { height: 36px; font-size: 13px; font-weight: 600; }
.seg-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 8px; padding: 3px;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
}
.seg-4 button { height: 26px; border-radius: var(--r-sm); font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.seg-4 button:hover { color: var(--text); }
.seg-4 button.active { background: var(--surface-4); color: var(--text); font-weight: 600; }
.opt-card { padding: 11px 12px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.opt-card-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; }
.opt-card-h .cbx { margin-left: auto; }
.opt-card-d { font-size: 10.5px; color: var(--text-3); margin-top: 4px; padding-right: 26px; line-height: 1.45; }
.opt-card.off .gap-row { opacity: .4; pointer-events: none; }
.gap-row { display: flex; gap: 8px; margin-top: 10px; }
.gap-row .seg { flex: 1; background: transparent; border-color: var(--border-2); }
.gap-row .seg .seg-btn { flex: 1; height: 24px; }
.gap-custom { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--r); height: 30px; }
.gap-custom input { width: 48px; text-align: center; font-weight: 600; font-size: 11.5px; }
.gap-custom select { height: 100%; font-size: 11px; color: var(--text-3); padding: 0 20px 0 8px; border-left: 1px solid var(--border-2); background-position: right 5px center; }
.adv-toggle { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .05em; color: var(--text-3); cursor: pointer; user-select: none; padding: 2px 0; }
.adv-toggle::after { content: ''; flex: 1; height: 1px; background: var(--border-2); order: 1; }
.adv-toggle .ic { order: 2; transition: transform .15s; }
.adv-toggle.open .ic { transform: rotate(180deg); }
.adv { display: flex; flex-direction: column; gap: 16px; }
.adv-h { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .05em; color: var(--text-3); text-transform: uppercase; margin-bottom: 8px; }
.adv-h .lnk { text-transform: none; letter-spacing: 0; font-size: 10.5px; color: var(--accent-text); font-weight: 500; }
.adv-h .lnk:hover { text-decoration: underline; }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tier-card {
  text-align: left;
  padding: 8px 10px 9px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: border-color .12s, background .12s, opacity .12s;
  opacity: .55;
}
.tier-card.on { border-color: var(--border-3); background: var(--surface-2); opacity: 1; }
.tier-card:nth-child(3) { grid-column: 1 / -1; }
.tier-card-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.tier-card-d { font-size: 10px; color: var(--text-3); margin-top: 3px; line-height: 1.35; }
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.src-opt { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); cursor: pointer; user-select: none; }
.src-opt:hover { color: var(--text); }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.zone-btn {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-3);
  transition: all .12s;
}
.zone-btn.on { border-color: var(--border-3); background: var(--surface-2); color: var(--text); }
.range-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.range-h .adv-h { margin: 0; }
.range-inps { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-3); }
.range-box { display: flex; align-items: center; height: 26px; border: 1px solid var(--border-2); border-radius: var(--r-sm); }
.range-box input { width: 50px; text-align: center; font-size: 11px; font-weight: 600; }
.range-box span { color: var(--text-4); }
.histo { display: flex; align-items: flex-end; gap: 1px; height: 22px; margin: 8px 7px 0; }
.histo i { flex: 1; background: var(--surface-4); border-radius: 1px 1px 0 0; min-height: 1px; }
.histo i.in { background: var(--border-3); }
.dual { position: relative; height: 16px; margin: 0 0 2px; }
.dual-track { position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--surface-4); border-radius: 1px; }
.dual-fill { position: absolute; top: 0; height: 2px; background: var(--accent); border-radius: 1px; }
.dual input[type=range] {
  position: absolute; left: 0; top: 0; width: 100%; height: 16px;
  -webkit-appearance: none; appearance: none;
  background: transparent; pointer-events: none; margin: 0;
}
.dual input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  pointer-events: auto; cursor: grab;
}
.dual input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; pointer-events: auto; cursor: grab; }
.dual input[type=range]::-moz-range-track { background: transparent; }
.mkt-sum { border-top: 1px solid var(--border); padding: 14px 18px 18px; flex-shrink: 0; }
.page-mkt .mkt-sum { padding: 12px 14px 14px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-2); padding: 4px 0; }
.sum-row .v { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-row.net { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; color: var(--text); font-weight: 600; }
.sum-row.net .v { color: var(--accent-text); }
.mkt-buy { margin-top: 12px; height: 34px; font-size: 12px; }
.mkt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; container-type: inline-size; }
@container (max-width: 760px) {
  .mkt-table-wrap .amt .usd, .mkt-table-wrap td .info-i { display: none; }
  .mkt-table-wrap .tbl td, .mkt-table-wrap .tbl th { padding: 0 9px; }
  .mkt-head { padding: 0 16px; }
}
@container (max-width: 560px) {
  .mkt-table-wrap .trader-s { display: none; }
  .mkt-table-wrap .fund-s { display: none; }
}
.mkt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 62px; padding: 0 26px 0 26px; flex-shrink: 0; }
.page-mkt .mkt-head { height: 54px; padding: 0 16px 0 22px; border-bottom: 1px solid var(--border); }
.mkt-head-t { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.mkt-head .seg { background: transparent; border-color: var(--border-2); }
.mkt-table-wrap { flex: 1; min-height: 0; overflow: auto; }
.mkt-table-wrap .tbl th { background: var(--bg-elev); height: 38px; padding: 0 14px; font-size: 11.5px; color: var(--text-2); }
.page-mkt .mkt-table-wrap .tbl th { background: var(--bg); }
.mkt-table-wrap .tbl td { height: 48px; padding: 0 14px; border-bottom: 0; }
.mkt-table-wrap .tbl tbody tr { cursor: pointer; }
.mkt-table-wrap .tbl tbody tr:hover td { background: var(--surface-2); }
.mkt-idx { color: var(--text-3); font-size: 11px; width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.trader { display: flex; align-items: center; gap: 10px; }
.trader-n { font-size: 12px; font-weight: 600; }
.trader-s { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.amt { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 12px; }
.amt .usd { font-weight: 400; color: var(--text-3); font-size: 10.5px; }
.amt.net { color: var(--accent-text); }
.fund { display: flex; align-items: center; gap: 8px; }
.fund-n { font-size: 11.5px; font-weight: 600; }
.fund-s { font-size: 10.5px; color: var(--text-3); }
.mkt-table-wrap tfoot td {
  position: sticky; bottom: 0;
  height: 40px;
  background: var(--bg-elev);
  border-top: 1px solid var(--border-2);
  font-size: 11.5px;
}
.page-mkt .mkt-table-wrap tfoot td { background: var(--bg); }
.foot-l { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 26px; border-bottom: 1px solid var(--border-dim); }
.hist-row .grow .t { font-weight: 600; font-size: 12px; }
.hist-row .grow .s { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mkt-loading { opacity: .45; transition: opacity .15s; }

/* ── Tracker ── */
.trk { min-height: 300px; display: flex; flex-direction: column; }
.trk-empty { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.trk-skel { position: absolute; inset: 0 0 auto 0; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; opacity: .6; }
.trk-skel .skel-line { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 24px; align-items: center; }
.trk-skel .skel-line i { height: 8px; border-radius: 4px; background: var(--surface-3); display: block; }
.trk-skel .skel-line i:nth-child(2) { width: 8px; height: 8px; border-radius: 50%; justify-self: center; }
.trk-empty .empty { position: relative; z-index: 1; padding-top: 70px; }
.trk-empty .empty::before { content: ''; position: absolute; inset: 60px -30px -20px -30px; background: radial-gradient(closest-side, var(--bg-elev) 55%, transparent); z-index: -1; }
.trk-bar { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.trk-list { max-height: 420px; overflow-y: auto; }
.trk-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--border-dim); }
.trk-row:hover { background: var(--row-hover); }
.trk-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.trk-feed-row { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid var(--border-dim); font-size: 11.5px; animation: toastIn .2s ease; }
.trk-form { padding: 18px 20px 6px; }

/* ── Archived / launches list ── */
.arc-search { width: 230px; }
.lst-row { display: flex; align-items: center; gap: 12px; }
.tok { display: flex; align-items: center; gap: 10px; }
.tok-av { position: relative; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.tok-av .chain-badge { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.tok-n { font-weight: 600; font-size: 12px; }
.tok-s { font-size: 10.5px; color: var(--text-3); font-family: var(--mono); }

/* ── Clean Dust ── */
.cd { display: flex; flex-direction: column; gap: 12px; }
.cd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-stat { border: 1px solid var(--border-2); border-radius: var(--r); padding: 12px 14px; }
.cd-stat .l { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-2); }
.cd-stat .v { font-size: 17px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cd-stat .v small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.cd-stat .s { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.cd-filters { display: flex; align-items: center; gap: 18px; border: 1px solid var(--border-2); border-radius: var(--r); padding: 9px 12px; flex-wrap: wrap; }
.cd-f { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.cd-f .inp { width: 140px; height: 28px; font-size: 11.5px; font-weight: 400; }
.cd-f.right { margin-left: auto; }
.cd-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-opt { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--border-2); border-radius: var(--r); padding: 11px 12px; cursor: pointer; user-select: none; }
.cd-opt .cbx { margin-top: 8px; }
.cd-opt .t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.cd-opt .d { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.cd-table { border: 1px solid var(--border-2); border-radius: var(--r); height: 330px; overflow: auto; position: relative; }
.cd-table .tbl th { background: var(--bg-elev); height: 34px; font-size: 11.5px; color: var(--text-2); }
.cd-table .tbl td { height: 42px; }
.cd-table .center-note { position: absolute; inset: 34px 0 0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.cd-confirm { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-2); border-radius: var(--r); padding: 12px 14px; font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; }
.cd-confirm b { color: var(--text); }
.cd-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ── Settings modal ── */
.modal-settings { width: 760px; height: min(560px, calc(100vh - 48px)); }
.modal-settings .modal-header { margin: 0; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--border-2); }
.set-wrap { flex: 1; min-height: 0; display: flex; }
.set-nav { width: 184px; flex-shrink: 0; border-right: 1px solid var(--border-2); padding: 8px 10px 12px; overflow-y: auto; }
.set-group { font-size: 11px; color: var(--text-3); padding: 12px 8px 6px; }
.set-link {
  position: relative;
  width: 100%;
  height: 30px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 12.5px; color: var(--text-2);
  text-align: left;
  transition: background .1s, color .1s;
}
.set-link .ic { color: var(--text-3); }
.set-link:hover { color: var(--text); background: var(--surface-2); }
.set-link.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.set-link.active .ic { color: var(--text); }
.set-link.active::before { content: ''; position: absolute; left: -6px; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--accent); }
.set-content { flex: 1; min-width: 0; overflow-y: auto; }
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 14px 16px 15px; border-bottom: 1px solid var(--border-2); }
.set-row.col { flex-direction: column; align-items: stretch; gap: 0; }
.set-row-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.set-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.set-d { font-size: 11.5px; color: var(--text-3); margin-top: 4px; line-height: 1.45; max-width: 480px; }
.set-ctl { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding-top: 1px; }
.set-sub { padding: 14px 16px 6px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-4); }
.i-yellow { color: var(--yellow); }
.i-green { color: var(--green); }
.i-pink { color: var(--pink); }
.iv-box { border: 1px solid var(--border-2); border-radius: var(--r); padding: 11px 12px 12px; margin-top: 12px; }
.iv-head { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-2); }
.iv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.iv-inputs { display: flex; border: 1px solid var(--border-2); border-radius: var(--r-sm); overflow: hidden; }
.iv-inputs input { width: 60px; height: 30px; text-align: center; font-size: 12px; font-weight: 600; border-right: 1px solid var(--border-2); }
.iv-inputs input:focus { background: var(--surface-2); }
.iv-inputs button { width: 40px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); }
.iv-inputs button + button { border-left: 1px solid var(--border-2); }
.iv-inputs button:hover { color: var(--text); background: var(--surface-2); }
.unit-seg { display: flex; border: 1px solid var(--border-2); border-radius: var(--r-sm); overflow: hidden; }
.unit-seg button { width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-3); }
.unit-seg button + button { border-left: 1px solid var(--border-2); }
.unit-seg button.active { background: var(--surface-4); color: var(--text); }
.hk-keys { display: flex; justify-content: space-between; padding: 18px 26px 4px; }
.hk { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hk-key {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  transition: border-color .12s, background .12s;
}
.hk-key:hover { border-color: var(--border-3); }
.hk-key.listen { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); color: var(--accent-text); animation: pulse 1.2s infinite; }
.hk-l { font-size: 10.5px; color: var(--text-3); }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 6px 0 10px;
  border-radius: 13px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.chip button { display: inline-flex; color: var(--text-3); border-radius: 50%; padding: 2px; }
.chip button:hover { color: var(--red); background: var(--surface-4); }
.chip-add { width: 64px; height: 26px; border-radius: 13px; border: 1px dashed var(--border-3); text-align: center; font-size: 11.5px; }
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.theme-card { border: 1px solid var(--border-2); border-radius: var(--r); padding: 8px; text-align: left; transition: border-color .12s; }
.theme-card:hover { border-color: var(--border-3); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.theme-prev { height: 62px; border-radius: var(--r-sm); display: flex; gap: 5px; padding: 6px; overflow: hidden; }
.theme-prev .s { width: 22%; border-radius: 3px; }
.theme-prev .m { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.theme-prev .m i { display: block; height: 9px; border-radius: 3px; }
.theme-card .n { font-size: 11.5px; font-weight: 600; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border-2); transition: transform .1s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { border-color: var(--bg-elev); box-shadow: 0 0 0 2px var(--text); }
.sess { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-2); }
.sess-ic { width: 32px; height: 32px; border-radius: var(--r); background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.codes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.codes-grid span { font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 6px 0; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border-2); }
.profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #3ddc97); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }

/* ── Command palette ── */
.pal { width: 580px; }
.pal-inp { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--border-2); color: var(--text-3); }
.pal-inp input { flex: 1; font-size: 14px; color: var(--text); }
.pal-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.pal-sec { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); padding: 10px 10px 5px; }
.pal-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 12.5px; }
.pal-item .ic { color: var(--text-3); }
.pal-item .r { margin-left: auto; font-size: 11px; color: var(--text-3); }
.pal-item.active { background: var(--surface-3); }
.pal-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border-2); font-size: 10.5px; color: var(--text-3); }
.pal-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ── Import / misc modals ── */
.tabs-line { display: flex; gap: 18px; border-bottom: 1px solid var(--border-2); margin: -4px 0 16px; }
.tabs-line button { height: 32px; font-size: 12px; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.svc-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; }
.svc-row + .svc-row { border-top: 1px solid var(--border-dim); }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--border-dim); }
.news-item:last-child { border-bottom: 0; }
.news-item .d { font-size: 10.5px; color: var(--text-3); }
.news-item .t { font-size: 12.5px; font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.news-item p { font-size: 11.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-card { border: 1px solid var(--border-2); border-radius: var(--r); padding: 11px 12px; text-align: left; transition: border-color .12s, background .12s; }
.doc-card:hover { border-color: var(--border-3); background: var(--surface-2); }
.doc-card .t { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.doc-card .d { font-size: 11px; color: var(--text-3); margin-top: 4px; line-height: 1.45; }
.sc-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12px; color: var(--text-2); }
.sc-row + .sc-row { border-top: 1px solid var(--border-dim); }
.sc-row .keys { display: flex; gap: 4px; }
.emoji-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-pick button { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--border-2); font-size: 15px; }
.emoji-pick button.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.color-pick { display: flex; gap: 8px; }
.color-pick button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border-2); }
.color-pick button.active { box-shadow: 0 0 0 2px var(--text); border-color: var(--bg-elev); }

/* ── Launches page ── */
.launch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 14px; }
.launch-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.launch-card:hover { border-color: var(--border-3); background: var(--surface-2); }
.launch-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.token-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; position: relative; }
.launch-meta { flex: 1; min-width: 0; }
.launch-name { font-size: 13px; font-weight: 600; }
.launch-ticker { font-size: 11px; color: var(--text-3); font-family: var(--mono); display: flex; align-items: center; gap: 5px; }
.launch-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: .03em; text-transform: uppercase; }
.badge-live { background: rgba(var(--green-rgb), .13); color: var(--green); }
.badge-draft { background: rgba(245, 184, 61, .13); color: var(--yellow); }
.badge-archived { background: var(--surface-3); color: var(--text-3); }
.launch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.launch-stat-label { font-size: 10.5px; color: var(--text-3); }
.launch-stat-val { font-size: 12.5px; font-weight: 600; font-family: var(--mono); margin-top: 1px; }
.launch-stat-val.green { color: var(--green); }
.launch-stat-val.red { color: var(--red); }

/* ── Activity ── */
.activity-body { padding: 6px 18px 18px; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-dim); }
.activity-icon { width: 30px; height: 30px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.activity-icon.buy { background: rgba(var(--green-rgb), .12); }
.activity-icon.sell { background: rgba(var(--red-rgb), .12); }
.activity-icon.create { background: rgba(var(--accent-rgb), .14); }
.activity-icon.wallet, .activity-icon.funder { background: rgba(245, 184, 61, .12); }
.activity-main { flex: 1; min-width: 0; }
.activity-title { font-size: 12.5px; font-weight: 500; }
.activity-detail { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.activity-time { font-size: 11px; color: var(--text-3); white-space: nowrap; text-align: right; }
.activity-amount { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; }
.activity-amount.green { color: var(--green); }
.activity-amount.red { color: var(--red); }

/* ── Funder page ── */
.funder-page-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 12px; padding: 14px; }
.funder-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border-radius: var(--r); cursor: pointer; transition: background .12s; border: 1px solid transparent; }
.funder-list-item + .funder-list-item { margin-top: 4px; }
.funder-list-item:hover { background: var(--surface-2); }
.funder-list-item.active { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .3); }
.funder-list-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.funder-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.funder-stat-grid .stat { min-height: 58px; }

@media (max-width: 1180px) {
  .wal-side { width: 190px; padding: 14px 12px; }
  .mkt-side { width: 300px; }
  .page-mkt .mkt-side { width: 250px; }
  .dash-ref { height: auto; grid-template-columns: 1fr 1fr; }
  .dash-ref .ref-card { min-height: 250px; }
  .dash-ref .ref-card.rank { display: none; }
}
@media (max-width: 960px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-charts { grid-template-columns: 1fr; }
  .dash-charts .chart-card { min-height: 280px; }
  .dash-ref { grid-template-columns: 1fr; }
  .funder-page-layout { grid-template-columns: 1fr; }
  .modal-settings .set-nav { width: 150px; }
}
