/* ── Panthera Alpha design system — dark luxury, single committed look ── */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* surfaces */
  --plane: #0a0a09;
  --surface-1: #141412;
  --surface-2: #1b1b18;
  --border: rgba(240, 220, 160, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  /* ink */
  --ink: #f5f2e9;
  --ink2: #b5b2a6;
  --muted: #7e7b70;
  /* brand golds — reserved for brand, headings, key figures */
  --gold: #f0dca0;
  --gold-deep: #d8b570;
  --gold-wash: rgba(216, 181, 112, 0.08);
  /* chart chrome */
  --grid: #232320;
  --axis: #383530;
  /* categorical (validated on #141412): moomoo, binance */
  --plat-moomoo: #b8862e;
  --plat-binance: #5e8dd0;
  /* polarity (validated pair) */
  --gain: #4fa97c;
  --loss: #d96a5e;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--plane);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

/* ── header / brand ── */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.panthera-logo {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none; color: #f0dca0;
}
.panthera-logo__mark { height: 44px; width: auto; display: block; }
.panthera-logo__wordmark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; line-height: 1;
  letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em;            /* offsets the tracking on the right */
}
.panthera-logo__wordmark span { color: #d8b570; margin-left: .62em; }   /* "Alpha" in deeper gold, clearly its own word */

/* stays on the right of the logo, one line — on tight widths it scrolls
   sideways rather than wrapping a lone control (e.g. Sign out) to a 2nd row.
   min-width:0 lets it shrink within the head instead of overflowing the page. */
.site-nav { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap;
  min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-sep { flex: 0 0 auto; width: 1px; height: 22px; background: var(--border-soft); margin: 0 4px; }
.undo-pair { display: inline-flex; flex: 0 0 auto; }
.undo-pair form { display: inline; }
.icon-btn {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  border: 1px solid var(--border-soft); background: transparent; color: var(--ink2);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.undo-pair form:first-child .icon-btn { border-radius: 7px 0 0 7px; }
.undo-pair form:last-child .icon-btn { border-radius: 0 7px 7px 0; border-left: 0; }
.icon-btn:hover:not(:disabled) { color: var(--gold); border-color: var(--gold-deep); background: var(--gold-wash); }
.undo-pair form:last-child .icon-btn:hover { border-left: 0; }
.icon-btn:disabled { opacity: .32; cursor: default; }
.site-nav a {
  flex: 0 0 auto;
  color: var(--ink2); text-decoration: none; font-size: 13px;
  padding: 6px 8px; border-radius: 6px; letter-spacing: .02em;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--gold); background: var(--gold-wash); }
.site-nav a.on { color: var(--gold); background: var(--gold-wash); }
.site-nav form { display: inline-flex; flex: 0 0 auto; }

/* ── headings ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: .01em; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--gold); font-weight: 500; }
.page-sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

/* gold hairline divider */
.rule { border: 0; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent 70%); opacity: .35; margin: 28px 0; }

/* ── cards & tiles ── */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card:hover { border-color: rgba(216, 181, 112, .22); box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px 20px 16px;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), border-color .3s ease, box-shadow .3s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 181, 112, .35);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4), 0 0 0 1px rgba(216, 181, 112, .08);
}

/* entrance: content rises in with a soft stagger */
@keyframes pa-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.tile, .card { animation: pa-rise .55s cubic-bezier(.2, .7, .3, 1) both; }
.tiles .tile:nth-child(1) { animation-delay: .02s; }
.tiles .tile:nth-child(2) { animation-delay: .08s; }
.tiles .tile:nth-child(3) { animation-delay: .14s; }
.tiles .tile:nth-child(4) { animation-delay: .20s; }
.tiles .tile:nth-child(5) { animation-delay: .26s; }
.tiles .tile:nth-child(6) { animation-delay: .32s; }
.wrap > .card:nth-of-type(1) { animation-delay: .16s; }
.wrap > .card:nth-of-type(2) { animation-delay: .24s; }
.wrap > .card:nth-of-type(3) { animation-delay: .32s; }
.wrap > .card:nth-of-type(4) { animation-delay: .40s; }
.wrap > .card:nth-of-type(5) { animation-delay: .48s; }
.tile .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.tile .val {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tile .val.brand {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 30%, #fff8de 50%, var(--gold) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pa-shimmer-text 7s ease-in-out infinite;
}
@keyframes pa-shimmer-text {
  0%, 55% { background-position: 110% 0; }
  85%, 100% { background-position: -110% 0; }
}
.tile .sub { font-size: 12px; color: var(--ink2); margin-top: 6px; font-variant-numeric: tabular-nums; }

.delta-up { color: var(--gain); }
.delta-down { color: var(--loss); }
.delta-flat { color: var(--muted); }

/* long/short chips — the text carries the meaning, the tint just assists */
.side-chip {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid;
}
.side-chip.long { color: var(--gain); border-color: rgba(79, 169, 124, .45); background: rgba(79, 169, 124, .08); }
.side-chip.short { color: var(--loss); border-color: rgba(217, 106, 94, .45); background: rgba(217, 106, 94, .08); }

/* platform identity dots */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; }
.dot.moomoo { background: var(--plat-moomoo); }
.dot.binance { background: var(--plat-binance); }

/* allocation bar: 2px surface gap between segments */
.alloc { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--plane); margin: 10px 0 6px; }
.alloc .seg.moomoo { background: var(--plat-moomoo); }
.alloc .seg.binance { background: var(--plat-binance); }

/* table search */
.table-tools {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: -4px 0 14px;
}
.table-search {
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 7px;
  padding: 7px 12px; width: min(280px, 100%);
}
.table-search::placeholder { color: var(--muted); }
.table-search:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.filter-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── tables ── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; font-weight: 500; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); color: var(--ink2); }
td.strong { color: var(--ink); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(240, 220, 160, 0.03); }
.table-scroll { overflow-x: auto; }

/* ── forms ── */
form.stack { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
input[type="text"], input[type="number"], input[type="date"], input[type="password"], select {
  font: inherit; font-size: 13px; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 7px;
  padding: 8px 11px; min-width: 120px;
  font-variant-numeric: tabular-nums;
}
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-deep); outline-offset: 1px;
}
select { cursor: pointer; }
/* currency picker + amount as one joined control (concierge) */
.cur-field { min-width: 240px; }
.cur-input { display: flex; }
.cur-input select { min-width: 0; width: auto; border-radius: 7px 0 0 7px; background: var(--plane); color: var(--gold-deep); font-weight: 600; }
.cur-input input { min-width: 0; flex: 1; border-radius: 0 7px 7px 0; border-left: none; }
.cur-input select:focus-visible + input, .cur-input input:focus-visible { position: relative; z-index: 1; }

button, .btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 7px;
  border: 1px solid var(--gold-deep);
  background: transparent; color: var(--gold);
  letter-spacing: .03em; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--gold-wash); }
button.primary, .btn.primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #171204; border-color: transparent;
}
button.primary:hover { filter: brightness(1.06); box-shadow: 0 4px 18px rgba(216, 181, 112, .25); }
button.primary { transition: filter .2s ease, box-shadow .3s ease; }

/* refresh-in-flight spinner */
button.busy { pointer-events: none; opacity: .85; }
button.busy::before {
  content: ""; display: inline-block; vertical-align: -2px;
  width: 11px; height: 11px; margin-right: 8px;
  border: 2px solid rgba(23, 18, 4, .35); border-top-color: #171204;
  border-radius: 50%;
  animation: pa-spin .7s linear infinite;
}
@keyframes pa-spin { to { transform: rotate(360deg); } }
button.ghost, .btn.ghost { border-color: var(--border-soft); color: var(--ink2); font-weight: 500; }
button.ghost:hover { color: var(--loss); border-color: var(--loss); background: transparent; }
/* anchor ghost buttons (e.g. Edit) hover neutral, not destructive-red */
.btn.ghost:hover { color: var(--gold); border-color: var(--gold-deep); background: var(--gold-wash); }
button.small, .btn.small { padding: 4px 10px; font-size: 12px; }

/* ── display-currency switch (portfolio + loan pages) ── */
.ccy-bar { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.ccy-switch {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: var(--surface-2);
}
.ccy-switch .ccy-opt {
  border: 0; background: transparent; color: var(--ink2);
  font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 5px; line-height: 1;
}
.ccy-switch .ccy-opt:hover { background: var(--gold-wash); color: var(--gold); }
.ccy-switch .ccy-opt .ccy-code { font-size: 10px; letter-spacing: .08em; opacity: .75; font-weight: 700; }
.ccy-switch .ccy-opt.on {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #171204;
}
.ccy-switch .ccy-opt.on .ccy-code { opacity: .6; }

/* ── lender dashboard: income tiles + payout schedule ── */
.loan-tiles { margin: 16px 0; }
.tile.hl { border-color: var(--gold-deep); background: var(--gold-wash); }
.loan-term { margin-bottom: 16px; }
.pay-sched { display: flex; flex-direction: column; gap: 4px; }
.ps-row {
  display: grid; grid-template-columns: 30px 1fr auto 92px; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px; border: 1px solid var(--border-soft);
}
.ps-row.paid { opacity: .68; }
.ps-row.next { border-color: rgba(216, 181, 112, .45); background: var(--gold-wash); }
.ps-n {
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700;
}
.ps-row.paid .ps-n { background: rgba(79, 169, 124, .16); color: var(--gain); }
.ps-row.next .ps-n { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #171204; }
.ps-date { color: var(--ink2); font-size: 13px; }
.ps-amt { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-status { text-align: right; }

/* ── sub-accounts management (Positions page) ── */
.sub-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.sub-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid var(--border-soft); border-radius: 8px;
}
.sub-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; margin: 0; }
.sub-sync { margin: 0; }
.sub-row input, .sub-row select { width: auto; }
.sub-row .sub-sleeve { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; color: var(--ink2); font-size: 13px; }
.sub-row .sub-label { flex: 1; min-width: 120px; }
.sub-row .sub-label[readonly] { opacity: .65; }
.sub-row .sub-ccy { width: 84px; }
.sub-row .sub-src { width: 100px; }
.sub-row .sub-val { min-width: 150px; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 13px; }
.sub-row .sub-flag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sub-row .sub-active { font-size: 12px; color: var(--ink2); display: inline-flex; align-items: center; gap: 5px; }
.sub-row .sub-synced { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cash-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.cash-form { flex: 1; min-width: 220px; }

/* ── flash messages ── */
.flash { border-radius: 8px; padding: 11px 15px; margin-bottom: 18px; font-size: 13px; border: 1px solid; }
.flash.ok { border-color: rgba(79, 169, 124, .4); color: var(--gain); background: rgba(79, 169, 124, .07); }
.flash.err { border-color: rgba(217, 106, 94, .4); color: var(--loss); background: rgba(217, 106, 94, .07); }
.flash.warn { border-color: rgba(216, 181, 112, .4); color: var(--gold); background: var(--gold-wash); }

/* ── login ── */
.login-hall {
  position: relative;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 40px; padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 62% at 50% 36%, rgba(216, 181, 112, 0.09), transparent 62%),
    radial-gradient(ellipse 130% 100% at 50% 45%, #100d07 0%, #0a0a09 52%, #040404 100%);
}
/* column flex + align-items:center sizes children to content, so long text
   would refuse to wrap and run off-screen — cap every item at the container */
.login-hall > * { position: relative; z-index: 1; max-width: 100%; }
#dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#nebula {
  position: absolute; inset: -6%; z-index: 0; pointer-events: none;
  width: 112%; height: 112%;
  filter: blur(26px) saturate(1.15);
}

/* personal greeting before the numbers */
#greet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 42%, rgba(216, 181, 112, 0.07), transparent 60%),
    #060605;
  opacity: 1; transition: opacity .8s ease;
}
#greet.out { opacity: 0; pointer-events: none; }
#greet img { height: 64px; width: auto; opacity: .9; animation: pa-arrive .9s cubic-bezier(.2,.7,.3,1) both; }
#greet .g-line {
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  animation: pa-arrive .9s cubic-bezier(.2,.7,.3,1) .15s both;
}
#greet .g-name {
  font-family: var(--font-display); font-weight: 600; font-size: 54px;
  letter-spacing: -0.01em; color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 30%, #fff8de 50%, var(--gold) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pa-arrive .9s cubic-bezier(.2,.7,.3,1) .3s both,
             pa-shimmer-text 3.5s ease-in-out .5s infinite;
}
@media (prefers-reduced-motion: reduce) {
  #greet { display: none; }
}

/* the brand moment: panther mark + LIVE TEXT wordmark (razor-sharp at any DPI,
   which a raster lockup never is on mobile) */
.login-logo {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  animation: pa-arrive 1s cubic-bezier(.2, .7, .3, 1) both;
}
.login-mark {
  width: min(190px, 44vw); height: auto; display: block;
}
.login-wordmark {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
.login-wordmark .lw-main {
  font-weight: 600;
  font-size: clamp(30px, 8.4vw, 52px);
  line-height: 1;
  letter-spacing: .16em;
  padding-left: .16em;              /* offsets the tracking on the right */
  color: var(--gold);
}
.login-wordmark .lw-sub {
  font-weight: 500;
  font-size: clamp(13px, 3.4vw, 21px);
  line-height: 1;
  letter-spacing: .52em;
  padding-left: .52em;
  color: var(--gold-deep);
}
@keyframes pa-arrive {
  from { opacity: 0; transform: translateY(18px) scale(.965); }
  to   { opacity: 1; transform: none; }
}
.portal-lede, .login-hall .flash { animation: pa-arrive .8s cubic-bezier(.2, .7, .3, 1) .25s both; }
.login-hall .login-card { animation: pa-arrive .8s cubic-bezier(.2, .7, .3, 1) .4s both; }
.portal-foot { animation: pa-arrive .8s cubic-bezier(.2, .7, .3, 1) .55s both; }
.login-card input:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 22px rgba(216, 181, 112, .25);
}
@media (prefers-reduced-motion: reduce) {
  .login-logo,
  .portal-lede, .login-hall .flash, .login-hall .login-card, .portal-foot,
  .tile, .card, .tile .val.brand, .hero-val, button.busy::before { animation: none; }
  .tile, .card, .login-logo { opacity: 1; transform: none; }
  .tile:hover { transform: none; }
  #dust { display: none; }
}

.login-card {
  position: relative; z-index: 1;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  justify-content: center;
  width: min(420px, 100%);
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 26px;
}
.login-card input { flex: 1 1 200px; min-width: 0; }
.login-card button { flex: 0 0 auto; }
.portal-lede {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep);
  margin: -14px 0 0; text-align: center;
}
.portal-foot {
  color: var(--muted); font-size: 12px; margin: 0;
  text-align: center; max-width: 42ch; line-height: 1.6;
}

@media (max-width: 460px) {
  .login-hall { gap: 30px; padding: 24px 18px; }
  .login-card { flex-direction: column; align-items: stretch; padding: 20px; }
  /* column flex makes flex-basis apply to HEIGHT — reset so fields keep
     their natural height instead of stretching to 200px */
  .login-card input, .login-card button { flex: 0 0 auto; width: 100%; }
  .login-card input { min-width: 0 !important; text-align: center; }
}
.portal-foot a { color: var(--gold-deep); text-decoration: none; }
.portal-foot a:hover { text-decoration: underline; }

/* request status chips */
.status-chip {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid;
}
.status-chip.pending { color: var(--gold); border-color: rgba(216, 181, 112, .45); background: var(--gold-wash); }
.status-chip.done { color: var(--gain); border-color: rgba(79, 169, 124, .45); background: rgba(79, 169, 124, .08); }
.status-chip.declined { color: var(--muted); border-color: var(--border-soft); }

/* chart range chips */
.chips { display: flex; gap: 8px; margin-bottom: 14px; }
.chip {
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--border-soft); background: transparent; color: var(--ink2);
  letter-spacing: .04em;
}
.chip:hover { color: var(--gold); border-color: var(--gold-deep); background: transparent; }
.chip.on { color: var(--gold); border-color: var(--gold-deep); background: var(--gold-wash); }

/* ── chart ── */
.chart-host { width: 100%; }
.chart-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
/* prose links stay in the brand, never browser-blue */
.chart-note a, .footnote a, td a:not(.token-link):not(.btn) { color: var(--gold-deep); }
.viz-tip {
  position: fixed; z-index: 10; pointer-events: none; display: none;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 12px; font-size: 12px; min-width: 150px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}
.viz-tip .t-name { color: var(--muted); font-size: 11px; margin-bottom: 5px; letter-spacing: .06em; }
.viz-tip .t-row { display: flex; justify-content: space-between; gap: 16px; }
.viz-tip .t-row .k { color: var(--ink2); }
.viz-tip .t-row .v { color: var(--ink); font-variant-numeric: tabular-nums; }

.chart-legend { display: flex; gap: 18px; margin-top: 10px; }
.chart-legend .key { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink2); }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .sw.dash { width: 16px; height: 0; border-radius: 0; background: none; border-top: 2px dashed; }

/* sits on its own line under a form so it can't shift field alignment */
.field-hint { font-size: 11px; color: var(--muted); margin: 8px 0 0; min-height: 14px; }
.field-hint.warn { color: var(--loss); }

/* teaser card that links to the goal planner */
.goal-teaser {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}

/* ── goal planner: landing chooser (step 1) ── */
.goal-chooser {
  text-align: center;
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 40px;
}
.goal-big {
  font-size: clamp(34px, 7vw, 60px); margin: 0 0 34px; line-height: 1.05;
  background: linear-gradient(100deg, var(--gold) 30%, #fff8de 50%, var(--gold) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pa-shimmer-text 7s ease-in-out infinite;
}

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
/* big landing variant: tall, vertical, icon on top */
.hero-cards { max-width: 760px; margin: 0 auto; gap: 20px; }
.hero-cards .mode-card {
  flex-direction: column; align-items: flex-start; gap: 18px;
  padding: 30px; min-height: 210px; text-align: left;
}
.hero-cards .mc-icon { width: 60px; height: 60px; }
.hero-cards .mc-icon svg { width: 30px; height: 30px; }
.hero-cards .mc-title { font-size: 22px; }
.hero-cards .mc-sub { font-size: 13.5px; }
.hero-cards .mc-body { flex: 1; }
.mc-go {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; color: var(--gold-deep);
  transition: gap .25s ease, color .25s ease;
}
.hero-cards .mode-card:hover .mc-go { color: var(--gold); }
.hero-cards .mode-card:hover .mc-go span { margin-left: 4px; }

/* alphas: strategy showcase */
.alpha-lede { color: var(--ink2); font-size: 15px; margin: 0 0 30px; }
/* markets (level 1): one enlarged row of four */
.alpha-cats { max-width: none; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.alpha-cats .mode-card { min-height: 264px; padding: 32px 26px; gap: 22px; }
.alpha-cats .mc-icon { width: 64px; height: 64px; }
.alpha-cats .mc-icon svg { width: 32px; height: 32px; }
@media (max-width: 880px) { .alpha-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .alpha-cats { grid-template-columns: 1fr; }
  .alpha-cats .mode-card { min-height: 0; } }
/* strategies (level 2): center the cards so a lone one isn't left-aligned.
   width:100% stops the flex box from collapsing to content inside the
   column-flex .goal-chooser (which would wrap two cards prematurely). */
.alpha-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.alpha-cards .mode-card { flex: 0 1 360px; }
.alpha-detail { animation: pa-rise .5s cubic-bezier(.2,.7,.3,1) both; }
.alpha-head { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; }
.alpha-head .mc-icon { width: 56px; height: 56px; }
.alpha-head .mc-icon svg { width: 28px; height: 28px; }
.alpha-name {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  margin: 0; color: var(--ink);
}
.alpha-desc {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 4px;
}
.alpha-insight {
  font-size: 15px; line-height: 1.7; color: var(--ink2);
  max-width: 62ch; margin: 0 0 24px;
}
.alpha-facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px;
}
@media (min-width: 720px) { .alpha-facts { grid-template-columns: repeat(4, 1fr); } }
.alpha-facts .af {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 14px 16px;
}
.alpha-facts .af-l {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}
.alpha-facts .af-v {
  font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink);
}
.alpha-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.alpha-cta .btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.2); }
.alpha-cta .cta-note { font-size: 12.5px; color: var(--muted); max-width: 42ch; line-height: 1.5; }
.alpha-cta .cta-note a { color: var(--gold-deep); }

/* back link on the calculator (step 2) */
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; color: var(--muted);
  background: none; border: 0; cursor: pointer; padding: 0;
  margin: 0 0 20px; letter-spacing: .02em;
}
.back-link:hover { color: var(--gold); }
.mode-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 22px 22px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border-soft); background: var(--surface-1);
  color: var(--ink); font: inherit;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.mode-card:hover { transform: translateY(-3px); border-color: rgba(216,181,112,.4); }
.mode-card.soon { cursor: default; opacity: .58; }
.mode-card.soon:hover { transform: none; border-color: var(--border-soft); }
.mode-card.soon .mc-icon { background: rgba(255,255,255,.04); border-color: var(--border-soft); color: var(--muted); }
.mc-soon {
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.mode-card.on {
  border-color: var(--gold-deep);
  box-shadow: 0 12px 36px rgba(0,0,0,.4), 0 0 0 1px var(--gold-deep),
              0 0 34px rgba(216,181,112,.14);
}
.mode-card .mc-glow {
  position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1;
  background: radial-gradient(ellipse at 30% 0%, rgba(216,181,112,.16), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.mode-card.on .mc-glow { opacity: 1; }
.mc-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-wash); border: 1px solid rgba(216,181,112,.35);
  color: var(--gold-deep); transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.mode-card.on .mc-icon {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(240,220,160,.18), rgba(216,181,112,.08));
  border-color: var(--gold-deep);
}
.mc-icon svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.mc-body { display: flex; flex-direction: column; gap: 3px; }
.mc-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.mc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.mode-card.on .mc-sub { color: var(--ink2); }
.mc-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #171204; opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,1.4,.4,1);
}
.mc-check svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
.mode-card.on .mc-check { opacity: 1; transform: scale(1); }
@media (max-width: 620px) { .mode-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .goal-intro h1 { animation: none; }
  .mode-card, .mc-check { transition: none; }
  .mode-card:hover { transform: none; }
}

/* ── goal calculator: premium input panel ── */
.goal-inputs {
  display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 6px;
}
@media (min-width: 560px) { .goal-inputs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .goal-inputs { grid-template-columns: repeat(4, 1fr); } }
.gi { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.gi > label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.gi > label b {
  color: var(--gold); font-size: 14px; font-weight: 600;
  text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* big $-prefixed money field — height matched with the slider box */
.money-input {
  display: flex; align-items: center; gap: 8px; min-height: 50px; box-sizing: border-box;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 11px; padding: 11px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.money-input:focus-within {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 22px rgba(216, 181, 112, .16);
}
.money-input .cur {
  color: var(--gold-deep); font-family: var(--font-display);
  font-size: 20px; font-weight: 600; line-height: 1;
}
.money-input input {
  border: 0; background: transparent; padding: 0; min-width: 0; width: 100%;
  color: var(--ink); font-family: var(--font-display); font-weight: 600;
  font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.money-input input:focus { outline: none; }
.money-input input::-webkit-outer-spin-button,
.money-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money-input input[type=number] { -moz-appearance: textfield; }

/* borderless slider: track + a gold value pill on the right, vertically
   centred to the money-field height so nothing floats above a gap */
.slider-box {
  display: flex; align-items: center; gap: 14px;
  min-height: 50px; box-sizing: border-box; padding: 0 2px;
}
.slider-val {
  color: var(--gold); font-family: var(--font-display); font-weight: 600;
  font-size: 13px; white-space: nowrap; flex: 0 0 auto;
  min-width: 62px; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--gold-wash); border: 1px solid rgba(216, 181, 112, .32);
  padding: 4px 11px; border-radius: 999px;
}
.gi-slider .range {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0;
  height: 7px; padding: 0; border: 0; margin: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer;
}
.gi-slider .range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border: 2px solid #171204; cursor: pointer;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .55);
}
.gi-slider .range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #171204;
  background: var(--gold-deep); cursor: pointer;
}
.gi-slider .range:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 5px; }

/* ── goal simulator ── */
.sim-form { align-items: flex-start; gap: 18px; }

/* the answer, stated once and large */
.goal-answer { margin: 22px 0 18px; }
.goal-answer .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.goal-answer .hero-val { font-size: 40px; }
.answer-note { color: var(--ink2); font-size: 14px; margin-top: 6px; }

/* split bar: your money vs compound growth = the whole story in one visual */
.interest-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 22px 0 10px;
}
.itype-toggle {
  display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px;
  background: var(--plane); border: 1px solid var(--border-soft);
}
.itype-toggle button {
  border: none; background: none; cursor: pointer; padding: 6px 18px;
  border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: color .18s, background .18s;
}
.itype-toggle button:hover { color: var(--ink2); }
.itype-toggle button.on {
  color: #1c1400; background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  box-shadow: 0 1px 8px rgba(216, 181, 112, .3);
}
.compound-gap-wrap { display: flex; align-items: baseline; gap: 9px; }
.cg-lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compound-gap {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.split { margin-top: 18px; }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.split-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.split-mult:not(:empty) {
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  color: var(--gold); padding: 3px 11px; border-radius: 999px;
  border: 1px solid rgba(216, 181, 112, .4); background: rgba(216, 181, 112, .08);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.split-bar {
  display: flex; height: 22px; border-radius: 6px; overflow: hidden;
  gap: 2px; background: var(--plane);
}
.split-bar .seg { height: 100%; transition: width .35s cubic-bezier(.2,.7,.3,1); min-width: 2px; }
.split-bar .seg.put { background: #6f6c64; }
.split-bar .seg.grow {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.split-legend {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 10px; font-size: 13px; color: var(--ink2);
}
.split-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.split-legend .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }
.split-legend .key.put { background: #6f6c64; }
.split-legend .key.grow { background: var(--gold-deep); }
.split-legend .split-total { margin-left: auto; color: var(--muted); }
.split-legend .split-total b { color: var(--gold); }
.sim-form .field { min-width: 150px; }
.sim-tiles { margin-top: 20px; }
.sim-slider { display: flex; align-items: center; gap: 10px; }
.sim-slider output {
  font-size: 13px; color: var(--gold); min-width: 68px;
  font-variant-numeric: tabular-nums;
}
.sim input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 132px; height: 4px; padding: 0; border: 0;
  border-radius: 999px; background: var(--gold-wash); cursor: pointer;
}
.sim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}
.sim input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: var(--gold-deep); cursor: pointer;
}
.sim input[type="range"]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.sim .chart-host { margin-top: 6px; }
@media (max-width: 460px) {
  .sim-form { gap: 14px; }
  .sim-form .field { min-width: 100%; }
  .sim input[type="range"] { width: 100%; flex: 1; }
}

/* share-of-earnings mini bar */
.share-bar {
  display: inline-block; width: 54px; height: 6px; border-radius: 3px;
  background: var(--gold-wash); margin-right: 8px; vertical-align: middle;
  overflow: hidden;
}
.share-bar > span { display: block; height: 100%; background: var(--gold-deep); }

/* lock-in: partner concierge strip */
.lock-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.lock-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink);
  background: rgba(79, 169, 124, .07); border: 1px solid rgba(79, 169, 124, .35);
  border-radius: 999px; padding: 5px 13px;
}
.lock-chip.locked { background: var(--gold-wash); border-color: rgba(216, 181, 112, .35); }
.lock-chip .k { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.lock-chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lock-note { font-size: 12px; color: var(--muted); }

/* partner portfolio: performance-fee panel */
.fee-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden;
  margin-bottom: 20px;
}
.fp-cell { background: var(--surface-1); padding: 16px 20px; display: flex; flex-direction: column; gap: 5px; }
.fp-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fp-v { font-family: var(--font-display); font-weight: 600; font-size: 23px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.fp-v em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.fp-note { font-size: 12px; color: var(--muted); }
@media (max-width: 620px) { .fee-panel { grid-template-columns: 1fr; } }

/* ── MYR / ringgit lens ─────────────────────────────────────────────── */
.myr-basis {
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 20px;
}
.mb-head { margin-bottom: 16px; }
.mb-title { font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 14px; }
.mb-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; max-width: 66ch; line-height: 1.55; }
.mb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mb-cell { display: flex; flex-direction: column; gap: 4px; }
.mb-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mb-v { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mb-note { font-size: 11.5px; color: var(--muted); }
@media (max-width: 620px) { .mb-grid { grid-template-columns: 1fr; } }

/* admin: OTC rate setter + optional labels */
.fx-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fx-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fx-pill { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border-soft); border-radius: 999px; padding: 6px 14px; }
.fx-pill b { color: var(--gold); font-variant-numeric: tabular-nums; margin: 0 2px; }
.fx-pill em { font-style: normal; color: var(--muted); font-size: 11px; }
.fx-row .field { margin: 0; }
.fx-asof { font-size: 12.5px; color: var(--muted); }
.fx-asof b { color: var(--ink); font-variant-numeric: tabular-nums; }
.opt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-left: 5px; }

/* premium confirm modal (replaces the browser's confirm()) */
.pa-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pa-modal[hidden] { display: none; }
.pac-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 8, .66); backdrop-filter: blur(5px); opacity: 0; transition: opacity .22s ease; }
.pa-modal.on .pac-backdrop { opacity: 1; }
.pac-card {
  position: relative; z-index: 1; width: min(460px, 100%); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-1), var(--plane));
  border: 1px solid var(--border-soft); border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(216,181,112,.16), 0 0 70px rgba(216,181,112,.07);
  transform: translateY(14px) scale(.975); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), opacity .3s ease;
}
.pa-modal.on .pac-card { transform: none; opacity: 1; }
.pac-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold), var(--gold-deep), transparent); opacity: .9; }
.pac-icon {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-wash); border: 1px solid rgba(216,181,112,.4); color: var(--gold-deep); margin-bottom: 18px;
}
.pac-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pac-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--gold); margin: 0 0 10px; letter-spacing: .01em; }
.pac-msg { color: var(--ink2); font-size: 14px; line-height: 1.62; white-space: pre-line; margin: 0 0 24px; }
.pac-actions { display: flex; justify-content: flex-end; gap: 12px; }
.pac-actions button { min-width: 116px; padding: 11px 20px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .pac-backdrop, .pac-card { transition: none; } }
@media (max-width: 480px) { .pac-actions { flex-direction: column-reverse; } .pac-actions button { width: 100%; } }

/* alphas: strategy track record (backtested stats package) */
.track { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.track-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.track-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--gold); }
.track-badge {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
  border: 1px solid rgba(216, 181, 112, .38); border-radius: 999px; padding: 3px 10px;
}
.track-meta { font-size: 12px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.track-hero {
  display: flex; align-items: stretch; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 18px; border-radius: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(79, 169, 124, .09), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.track-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--gain), rgba(79, 169, 124, .3) 45%, transparent 80%); opacity: .8;
}
.th-l { display: flex; flex-direction: column; gap: 7px; justify-content: center; min-width: 230px; }
.th-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.th-v {
  font-family: var(--font-display); font-weight: 600; font-size: 42px; line-height: 1;
  color: var(--gain); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.th-note { font-size: 12.5px; color: var(--muted); }
.th-note b { color: var(--ink2); }
.th-chart { flex: 1 1 300px; min-width: 220px; display: flex; flex-direction: column; justify-content: center; }
.th-chart svg { width: 100%; height: 104px; display: block; }
.th-chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
/* grouped fact-sheet: Returns | Risk-adjusted | Risk & consistency */
.stat-sheet {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26); margin-bottom: 22px;
}
.ss-group { padding: 20px 24px; display: flex; flex-direction: column; gap: 13px; }
.ss-group + .ss-group { border-left: 1px solid var(--border-soft); }
.ss-head {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 3px;
}
.ss-row { display: flex; align-items: baseline; gap: 11px; }
.ss-row b {
  font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; min-width: 96px;
}
.ss-row b.up { color: var(--gain); }
.ss-row b.down { color: var(--loss); }
.ss-row b.brand { color: var(--gold); }
.ss-row span { font-size: 12.5px; color: var(--muted); }

/* year-by-year as three balanced cards (no orphan tile, no uneven bars) */
.track-sub {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 28px 0 12px 2px;
}
.year-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.yc {
  position: relative; overflow: hidden;
  padding: 18px 20px 16px; border-radius: 12px; border: 1px solid var(--border-soft);
  background: radial-gradient(120% 150% at 100% 0%, rgba(79, 169, 124, .07), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  display: flex; flex-direction: column; gap: 8px;
}
.yc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--gain), rgba(79, 169, 124, .25) 55%, transparent);
}
.yc-year { font-size: 12px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.yc-ret {
  font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1;
  color: var(--gain); font-variant-numeric: tabular-nums;
}
.yc-meta { display: flex; gap: 20px; font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.yc-meta i { font-style: normal; color: var(--muted); }
.yc-meta em { font-style: normal; }

/* backtest-at-a-glance: circular ring gauges (game-style) */
.rings-band {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 22px 26px; margin-bottom: 22px; border-radius: 14px; position: relative; overflow: hidden;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(216, 181, 112, .06), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.rb-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rings { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; }
.ring-gauge { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.ring-wrap { position: relative; width: 100px; height: 100px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 5; }
.ring-arc {
  fill: none; stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 213.63; stroke-dashoffset: calc(213.63 * (1 - var(--frac)));
}
.ring-gauge.gold .ring-arc { stroke: var(--gold-deep); }
.ring-gauge.muted .ring-arc { stroke: rgba(255, 255, 255, .20); }
.ring-gauge.gain .ring-arc { stroke: var(--gain); filter: drop-shadow(0 0 6px rgba(79, 169, 124, .55)); }
.ring-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ring-gauge.gain .ring-val { color: var(--gain); }
.ring-gauge.gold .ring-val { color: var(--gold); }
.ring-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* best / worst single-bar — two directional cards */
.bw2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bwc {
  position: relative; overflow: hidden;
  padding: 18px 20px 16px; border-radius: 12px; border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.bwc.best { background: radial-gradient(130% 150% at 0% 0%, rgba(79, 169, 124, .08), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.bwc.worst { background: radial-gradient(130% 150% at 0% 0%, rgba(217, 106, 94, .07), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.bwc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; }
.bwc.best::before { background: linear-gradient(90deg, var(--gain), rgba(79, 169, 124, .25) 55%, transparent); }
.bwc.worst::before { background: linear-gradient(90deg, var(--loss), rgba(217, 106, 94, .25) 55%, transparent); }
.bwc-top { display: flex; align-items: center; gap: 8px; }
.bwc-top svg { width: 15px; height: 15px; }
.bwc.best .bwc-top { color: var(--gain); }
.bwc.worst .bwc-top { color: var(--loss); }
.bwc-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.bwc-v { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.bwc-v.up { color: var(--gain); }
.bwc-v.down { color: var(--loss); }
.bwc-note { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .bw2 { grid-template-columns: 1fr; }
  .stat-sheet { grid-template-columns: 1fr; }
  .ss-group + .ss-group { border-left: 0; border-top: 1px solid var(--border-soft); }
  .year-cards { grid-template-columns: 1fr; }
  .th-v { font-size: 33px; }
  .rings { gap: 26px; }
}

/* partner lock-ins: terms panel — lifted with a gradient, top accent and shadow
   so it doesn't read as dim next to the Available/Locked hero cards */
.terms-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
  margin-bottom: 30px;
}
.terms-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--gold-deep), rgba(216, 181, 112, .28) 45%, transparent 80%);
  opacity: .65;
}
.terms-panel.single { grid-template-columns: 1fr; }
.tp-cell {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px;
}
.tp-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tp-v { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--gold); line-height: 1; }
.tp-v em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink2); margin-left: 2px; }
.tp-note { font-size: 12px; color: var(--muted); }
@media (max-width: 620px) {
  .terms-panel { grid-template-columns: 1fr; }
}

/* admin terms: apply-to-existing control */
.terms-actions { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.apply-existing {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer;
}
.apply-existing input { accent-color: var(--gold-deep); }

/* admin: clickable investor rows */
table.rowlink tbody tr[data-href] { cursor: pointer; transition: background .15s ease; }
table.rowlink tbody tr[data-href]:hover { background: var(--gold-wash); }
.row-go { color: var(--gold-deep); font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
table.rowlink tbody tr[data-href]:hover .row-go { color: var(--gold); }

/* admin: investor detail page */
.detail-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin: 4px 0 22px;
}
.detail-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.access-code {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .04em;
  color: var(--gold); background: var(--gold-wash);
  border: 1px solid rgba(216, 181, 112, .28); border-radius: 7px;
  padding: 5px 11px; user-select: all;
}
.hint-dot {
  color: var(--muted); font-size: 13px; cursor: help; margin-left: 7px;
  background: none; border: 0; padding: 0; line-height: 1; vertical-align: middle;
  transition: color .15s ease;
}
.hint-dot:hover, .hint-dot:focus-visible { color: var(--gold); outline: none; }

/* premium tooltip — dark surface, gold hairline, soft shadow */
.pa-tip {
  position: absolute; z-index: 60; pointer-events: none;
  display: flex; flex-direction: column; gap: 3px;
  min-width: 120px; max-width: 260px; padding: 11px 14px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-1));
  border: 1px solid rgba(216, 181, 112, .35); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3);
  opacity: 0; transform: translateY(4px); transition: opacity .16s ease, transform .16s ease;
}
.pa-tip.on { opacity: 1; transform: translateY(0); }
.pa-tip::after {
  content: ""; position: absolute; left: var(--arrow, 50%); margin-left: -6px;
  bottom: -6px; width: 11px; height: 11px; rotate: 45deg;
  background: var(--surface-1); border-right: 1px solid rgba(216, 181, 112, .35);
  border-bottom: 1px solid rgba(216, 181, 112, .35);
}
.pa-tip.below::after { bottom: auto; top: -6px; border: 0;
  border-left: 1px solid rgba(216, 181, 112, .35); border-top: 1px solid rgba(216, 181, 112, .35); }
.pa-tip-h {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.pa-tip-l { font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col > .card { margin-bottom: 0; }
.term-grid { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.term-grid > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: var(--muted); letter-spacing: .02em;
}
.term-grid input[type=number] {
  width: 96px; padding: 9px 11px; background: var(--surface-2, rgba(255,255,255,.03));
  border: 1px solid var(--border-soft); border-radius: 7px; color: var(--ink);
  font-variant-numeric: tabular-nums; font-size: 14px;
}
.term-grid input[type=number]:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.lock-input { display: inline-flex; align-items: stretch; gap: 6px; }
.lock-input select {
  padding: 8px 8px; background: var(--surface-2, rgba(255,255,255,.03));
  border: 1px solid var(--border-soft); border-radius: 7px; color: var(--ink);
  font-size: 13px; cursor: pointer;
}
.lock-input select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.lock-input input.terms-in { width: 68px; }
.in-suffix { position: relative; display: inline-flex; align-items: center; }
.in-suffix i { position: absolute; right: 11px; font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none; }
.in-suffix input { padding-right: 26px !important; }
.term-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.dep-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tf-totals td { border-top: 2px solid var(--border-soft); border-bottom: 0; padding-top: 12px; color: var(--ink); }
td.nowrap, th.nowrap { white-space: nowrap; }
.codeblock {
  background: var(--plane); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 12px 14px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px; color: var(--ink2); line-height: 1.7; overflow-x: auto; white-space: pre;
}
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .92em; color: var(--gold-deep); }
.creds-strip { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.live-tag {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gain);
  border: 1px solid rgba(79, 169, 124, .4); border-radius: 999px; padding: 2px 9px;
  vertical-align: middle; margin-left: 8px; font-family: var(--font-body); font-weight: 500;
}
/* goal planner: progress to your goal */
.goal-progress { margin: 6px 0 24px; }
.gp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.gp-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gp-togo { font-size: 13px; color: var(--ink2); }
.gp-togo b { font-family: var(--font-display); font-weight: 600; color: var(--gold); font-size: 17px; margin-right: 3px; }
.gp-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.gp-fill {
  display: block; height: 100%; border-radius: 999px; min-width: 5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 85%, #fff8de);
  box-shadow: 0 0 14px rgba(216, 181, 112, .45); transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.gp-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gp-pct { color: var(--gold-deep); font-weight: 600; }
.gp-when { margin: 9px 0 0; font-size: 12px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.pager-label { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager button:disabled { opacity: .4; cursor: default; }
.autosync-sel {
  padding: 6px 10px; background: var(--surface-2, rgba(255,255,255,.03));
  border: 1px solid var(--border-soft); border-radius: 7px; color: var(--ink);
  font-size: 12.5px; cursor: pointer;
}
/* live investor updates */
.hchip.live-chip { color: var(--gain); border-color: rgba(79, 169, 124, .35); }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gain);
  margin-right: 6px; vertical-align: middle; animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 169, 124, .55); }
  70% { box-shadow: 0 0 0 6px rgba(79, 169, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 169, 124, 0); }
}
.live-tick { animation: live-flash .7s ease; }
@keyframes live-flash { 0%, 100% { filter: none; } 20% { filter: brightness(1.45); } }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-tick { animation: none; } }

/* Positions → Binance sync entry card */
.binance-cta {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--gold-wash), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.binance-cta:hover { border-color: rgba(216, 181, 112, .35); }
.bc-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  color: var(--gold); background: var(--gold-wash); border: 1px solid rgba(216, 181, 112, .28);
}
.bc-ico svg { width: 21px; height: 21px; }
.bc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bc-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--gold); }
.bc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.bc-go { margin-left: auto; flex: none; color: var(--gold-deep); font-weight: 600; white-space: nowrap; }
.binance-cta:hover .bc-go { color: var(--gold); }
@media (max-width: 560px) { .binance-cta { flex-wrap: wrap; } .bc-go { margin-left: 0; } }
td.num { white-space: nowrap; }
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .term-actions { margin-left: 0; }
}

/* partner lock-ins timeline */
.lockin-list { display: flex; flex-direction: column; }
.lockin-item { border-bottom: 1px solid var(--border-soft); }
.lockin-item:last-child { border-bottom: 0; }
.lockin-row {
  display: grid; grid-template-columns: minmax(140px, 1fr) 1.5fr auto 16px;
  align-items: center; gap: 22px;
  padding: 16px 4px 16px 0; cursor: pointer; border-radius: 8px;
  transition: background .15s ease;
}
.lockin-row.avail { grid-template-columns: 1fr auto 16px; }
.lockin-row:hover { background: var(--gold-wash); }
.lockin-row:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.lr-amount {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.lr-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.lr-wd { color: var(--gold-deep); }
.lr-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lr-bar > span {
  display: block; height: 100%; border-radius: 999px; min-width: 5px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .4s ease;
}
.lr-bar.done > span { background: var(--gain); min-width: 0; }
.lr-scale {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 6px; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lr-scale span:last-child { color: var(--ink2); }
.lr-status { text-align: right; }
.lr-sub { font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.lr-caret { color: var(--muted); font-size: 13px; justify-self: end; transition: transform .2s ease; }
.lockin-row[aria-expanded="true"] .lr-caret { transform: rotate(180deg); color: var(--gold-deep); }
/* per-deposit economics breakdown, revealed on tap */
.lr-econ {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 4px 4px 18px 0; margin-top: -4px;
}
.lr-econ .e { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.lr-econ .e i { font-style: normal; color: var(--muted); }
.lr-econ .e b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.lr-econ .e .pos { color: var(--gain); }
.lr-econ .e .neg { color: var(--loss); }
.lr-econ .e.net { margin-left: auto; }
.lr-econ .e.net i { color: var(--ink2); }
.lr-econ .e.net b { color: var(--gold); font-weight: 600; }
@media (max-width: 620px) {
  .lockin-row { grid-template-columns: minmax(120px, 1fr) auto 16px; row-gap: 12px; }
  .lockin-row.avail { grid-template-columns: 1fr auto 16px; }
  .lr-bar-wrap { grid-column: 1 / -1; order: 3; }
  .lr-econ .e.net { margin-left: 0; width: 100%; }
}

/* partner withdraw view: one card per section — a spotlight header (Available /
   Locked) with its deposits flowing directly below inside the SAME card, so the
   deposits read as belonging to the header rather than a second competing box */
.wd-section {
  margin-bottom: 24px; overflow: hidden; background: var(--surface-1);
  border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .30);
}
.wd-hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px 28px; flex-wrap: wrap;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(216, 181, 112, .08), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.wd-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep) 42%, transparent 78%); opacity: .85;
}
.wd-section .lockin-list { padding: 2px 24px; }
/* Available reads "go" (green accent + open padlock); Locked reads "held" (amber
   gold + closed padlock) — an at-a-glance colour + icon distinction */
.wd-hero.avail {
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(79, 169, 124, .09), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.wd-hero.avail::before { background: linear-gradient(90deg, var(--gain), rgba(79, 169, 124, .35) 42%, transparent 78%); }
.wd-hero.avail .wd-hero-k { color: var(--gain); }
.wd-hero.avail .wd-hero-k svg { color: var(--gain); }
.wd-hero.locked {
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(216, 181, 112, .10), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.wd-hero.locked::before {
  background: linear-gradient(90deg, var(--gold-deep), rgba(216, 181, 112, .3) 42%, transparent 78%);
}
.wd-hero.locked .wd-hero-k { color: var(--gold-deep); }
.wd-hero-l { display: flex; flex-direction: column; gap: 7px; min-width: 200px; }
.wd-hero-k {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.wd-hero-k svg { width: 13px; height: 13px; }
.wd-hero.locked .wd-hero-k svg { color: var(--gold-deep); }
.wd-hero-v {
  font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.wd-hero-v.shimmer {
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold) 30%, #fff8de 50%, var(--gold-deep) 72%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: pa-shimmer-text 7s ease-in-out infinite;
}
.wd-hero.locked .wd-hero-v { color: var(--gold-deep); }
.wd-hero-note { font-size: 12.5px; color: var(--muted); }
.wd-receive, .wd-penalty {
  display: flex; flex-direction: column; gap: 4px; text-align: right;
  padding: 14px 20px; border-radius: 12px;
}
.wd-receive { background: var(--gold-wash); border: 1px solid rgba(216, 181, 112, .28); }
.wd-penalty { background: rgba(255, 255, 255, .02); border: 1px solid var(--border-soft); }
.wd-receive-k, .wd-penalty-k {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.wd-receive-k { color: var(--gold-deep); }
.wd-penalty-k { color: var(--muted); }
.wd-receive-v {
  font-family: var(--font-display); font-weight: 600; font-size: 27px; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.wd-penalty-v {
  font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1;
  color: var(--loss); font-variant-numeric: tabular-nums;
}
.wd-receive-note, .wd-penalty-note { font-size: 11.5px; color: var(--muted); max-width: 230px; }
.wd-section .lockin-item:last-child .lockin-row { padding-bottom: 8px; }
.wd-section .lockin-item:first-child .lockin-row { padding-top: 14px; }
@media (max-width: 620px) {
  .wd-hero { padding: 20px 18px; }
  .wd-hero-v { font-size: 32px; }
  .wd-receive, .wd-penalty { text-align: left; width: 100%; }
}

/* admin: terms editor + early-withdrawal metadata */
.terms-in {
  width: 72px; min-width: 0; text-align: right;
  padding: 5px 8px; font-size: 13px;
}
.early-meta { display: block; font-size: 11px; color: var(--loss); margin-top: 3px; }

/* inline commission editor */
.commission-form { display: inline-flex; align-items: center; gap: 5px; }
.commission-form input {
  width: 64px; min-width: 0; text-align: right;
  padding: 5px 8px; font-size: 13px;
}
.commission-form .pct { color: var(--muted); font-size: 12px; }

/* token link chip */
.token-link {
  font-size: 12px; color: var(--gold-deep); background: var(--gold-wash);
  padding: 3px 9px; border-radius: 999px; text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.copy-btn { margin-left: 6px; }

.footnote { color: var(--muted); font-size: 11px; margin-top: 26px; }

/* ── investor page (premium) ── */
.inv-badge {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 13px; background: var(--gold-wash);
}
.hero { position: relative; overflow: hidden; padding: 34px 36px; }
.hero-watermark {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  height: 220%; width: auto; opacity: .05; pointer-events: none;
}
.hero-body { position: relative; }
.hero .lbl {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.hero-val {
  font-family: var(--font-display); font-weight: 600; font-size: 46px;
  line-height: 1.05; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--gold) 30%, #fff8de 50%, var(--gold) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pa-shimmer-text 7s ease-in-out infinite;
}
.hero-badges { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.pill {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 6px 16px; border-radius: 999px; border: 1px solid;
  font-variant-numeric: tabular-nums;
}
.pill.delta-up { border-color: rgba(79, 169, 124, .45); background: rgba(79, 169, 124, .08); }
.pill.delta-down { border-color: rgba(217, 106, 94, .45); background: rgba(217, 106, 94, .08); }
.pill.delta-flat { border-color: var(--border-soft); }
.hero-note { color: var(--ink2); font-size: 13px; }
.hero-meta { color: var(--muted); font-size: 12px; margin-top: 16px; font-variant-numeric: tabular-nums; }

/* compact stat chips in place of the wordy meta line */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 6px 13px;
}
.hchip .k { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.hchip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hchip.ghost { color: var(--muted); font-variant-numeric: tabular-nums; }

/* per-position return %, muted next to the dollar P&L */
.pnl-pct { opacity: .7; font-size: 12px; margin-left: 2px; }

/* collapsed advanced reconciliation */
.recon > .recon-summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--gold);
}
.recon > .recon-summary::-webkit-details-marker { display: none; }
.recon > .recon-summary::before {
  content: "▸"; color: var(--muted); font-size: 12px; margin-right: 8px;
  display: inline-block; transition: transform .2s ease;
}
.recon[open] > .recon-summary::before { transform: rotate(90deg); }
.recon > .recon-summary span {
  color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 12px;
  text-transform: none; letter-spacing: 0;
}

.sleeve-strips { display: flex; flex-direction: column; gap: 0; }
.sleeve-strip {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 16px 22px;
}
.sleeve-strip .ss-name {
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  min-width: 110px; color: var(--ink);
}
.sleeve-strip .ss-cell { min-width: 110px; }
.sleeve-strip .ss-cell .lbl {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.sleeve-strip .ss-cell .v {
  font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink);
}

.charts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.charts-grid .card { margin-bottom: 0; }
@media (min-width: 980px) { .charts-grid { grid-template-columns: 1fr 1fr; } }

.brand-foot {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border);
  text-align: center;
}
.brand-foot img { height: 34px; width: auto; opacity: .85; }
.brand-foot p { color: var(--muted); font-size: 11px; max-width: 560px; margin: 4px 0 0; }

@media (max-width: 720px) {
  .site-head { flex-direction: column; align-items: flex-start; }
  .panthera-logo__wordmark { font-size: 17px; }
}

/* ── iOS Data Detectors ──
   Belt-and-braces to the format-detection meta: iOS Safari still wraps some
   bare figures (unit prices, unit counts, dates) in a tel: link and paints
   them link-blue. There are no real tel: links in this app, so force any
   such injected anchor back to inherited type and make it inert.
   -webkit-text-fill-color matters: it beats `color` on the gradient text. */
a[x-apple-data-detectors],
a[href^="tel:"] {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
  pointer-events: none;
}

/* ── Tiger cash-flow guard (unbooked deposit/withdrawal) ── */
.flow-guard { border-color: rgba(216, 181, 112, .5); background: var(--gold-wash); }
.flow-guard h2 { color: var(--gold); }

/* ── dashboard backup status strip ── */
.backup-strip { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 20px; }
.backup-strip .bs-ico { color: var(--gain); flex: 0 0 auto; }
.backup-strip .bs-ico svg { width: 26px; height: 26px; display: block; }
.backup-strip .bs-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.backup-strip .bs-title { color: var(--gold); font-size: 14px; font-weight: 600; }
.backup-strip .bs-sub { color: var(--muted); font-size: 12.5px; }
.backup-strip .bs-go { color: var(--gold-deep); font-size: 13px; flex: 0 0 auto; }
.backup-strip:hover { border-color: var(--gold-deep); }
.backup-strip.warn { border-color: rgba(216, 181, 112, .5); background: var(--gold-wash); }
.backup-strip.warn .bs-ico { color: var(--gold); }
