/* ═══════════════════════════════════════════════════════════════════════════
   AURUM — "The Bullion & Energy Desk"
   Design preview stylesheet for a commodities-flavoured theme.

   Visual grammar: assay certificate + trading ledger.
   Warm anthracite, brushed brass hairlines, engraved serif figures.
   Deliberately NO neon, NO glow, NO blurred orbs — those read "crypto".
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Warm near-blacks. Crypto UIs go blue-black; commodities should feel warm,
     physical, paper-and-metal rather than screen-and-light. */
  --ink:      #100E0B;
  --ink-2:    #17140F;
  --ink-3:    #201C15;
  --ink-4:    #2B2519;

  --brass:    #C8A24A;
  --brass-hi: #EDD79A;
  --brass-dim:#8A7133;

  --crude:    #2C4034;   /* petroleum green — the energy side of the desk */
  --crude-hi: #4E7A5F;

  --ivory:    #F2ECE0;
  --muted:    #9C9382;
  --faint:    #6B6455;

  --rule:     rgba(200,162,74,.20);
  --rule-soft:rgba(242,236,224,.09);

  --gain:     #7FA76F;
  --loss:     #C0563C;

  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-ui:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --shell: 1180px;

  /* Radius scale — softened for modern devices while the brass hairlines,
     serif display and guilloché ground keep the certificate character. */
  --r:      14px;        /* cards, certificates, panels */
  --r-sm:   10px;        /* buttons, inputs, methods, chips */
  --r-xs:   8px;         /* inset frames, small controls */
  --r-pill: 999px;       /* tags, dots, avatars, segmented */

  /* Soft elevation — barely-there, warm, never a crypto-style glow. */
  --lift:   0 1px 2px rgba(0,0,0,.28), 0 8px 24px -14px rgba(0,0,0,.55);
  --lift-sm:0 1px 2px rgba(0,0,0,.24);
}

/* Light mode: aged paper rather than white. The theme keeps its warmth. */
[data-theme="light"] {
  --ink:      #F6F1E7;
  --ink-2:    #EFE8DA;
  --ink-3:    #E8E0CE;
  --ink-4:    #DED4BE;
  --ivory:    #1B1710;
  --muted:    #6B6252;
  --faint:    #8C8371;
  --brass:    #8A6F22;
  --brass-hi: #6B5518;
  --rule:     rgba(138,111,34,.28);
  --rule-soft:rgba(27,23,16,.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.62;
  /* Very faint vertical warp — like the grain of banknote paper. */
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; display: block; }

a { color: var(--brass-hi); text-decoration: none; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

/* Figures must be tabular everywhere — columns of money that don't line up
   look amateur, and this design shows a lot of money. */
.num, .fig, table td, table th {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 22px; }

/* ── Eyebrow / small caps label ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { display: none; }

/* ═══ SIGNATURE ELEMENT 1 — the assay certificate frame ═══════════════════
   Double hairline border + engraved guilloché ground, built entirely from
   repeating gradients. No images, so a theme ships nothing but CSS. */
.cert {
  position: relative;
  background: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.9rem;
  overflow: hidden;
  box-shadow: var(--lift);
}
.cert::before {
  /* inner hairline, inset like an engraved plate */
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--rule);
  border-radius: calc(var(--r) - 7px);
  pointer-events: none;
}
.cert::after {
  /* guilloché: crossed fine diagonals, barely visible, like security print */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient( 45deg, rgba(200,162,74,.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(200,162,74,.05) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.cert > * { position: relative; z-index: 1; }

.cert-serial {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  color: var(--faint);
  text-transform: uppercase;
}

/* Wax-seal style stamp used on featured cards */
.seal {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  background:
    radial-gradient(circle at 34% 30%, rgba(237,215,154,.20), transparent 60%),
    var(--ink-4);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--brass-hi);
  letter-spacing: .04em;
  position: relative;
}
.seal::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px dashed rgba(200,162,74,.4);
  border-radius: 50%;
}

/* ═══ SIGNATURE ELEMENT 2 — ledger rules ═════════════════════════════════
   Data rows with a hairline and a short brass tick at the left margin,
   the way a ruled accounting ledger reads. */
.ledger { border-top: 1px solid var(--rule); }
.ledger-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem .2rem .95rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.ledger-row::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 5px; height: 1px;
  background: var(--brass);
  opacity: .65;
}
.ledger-row:hover { background: rgba(200,162,74,.035); }
.ledger-label { flex: 1; min-width: 0; }
.ledger-label strong { display: block; font-weight: 600; font-size: .95rem; }
.ledger-label span { font-size: .78rem; color: var(--muted); }
.ledger-value { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger-value b { display: block; font-weight: 600; font-size: .95rem; }
.ledger-value span { font-size: .74rem; color: var(--muted); }

/* ═══ SIGNATURE ELEMENT 3 — engraved figures ═════════════════════════════
   Big serif numerals with an inset highlight so they read as struck metal. */
.engraved {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--brass-hi);
  text-shadow: 0 1px 0 rgba(0,0,0,.55), 0 -1px 0 rgba(237,215,154,.14);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-ui);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--brass);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  color: #1A1508;
  cursor: pointer;
  transition: filter .18s, transform .18s;
  min-height: 44px;                    /* touch target floor */
}
.btn:hover { filter: brightness(1.07); color: #1A1508; }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-hi); filter: none; }

.btn-sm { padding: .55rem 1rem; font-size: .74rem; min-height: 38px; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ── Tags ───────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .32rem .7rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--brass);
}
.tag-metal { border-color: rgba(200,162,74,.5); color: var(--brass-hi); }
.tag-energy { border-color: rgba(78,122,95,.55); color: var(--crude-hi); }
.tag-gain { border-color: rgba(127,167,111,.5); color: var(--gain); }
.tag-loss { border-color: rgba(192,86,60,.5); color: var(--loss); }

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

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC — ticker strip
   ══════════════════════════════════════════════════════════════════════════ */
.tape {
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
  overflow: hidden;
}
.tape-inner {
  display: flex; gap: 2.4rem;
  padding: .5rem 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--shell);
  margin: 0 auto;
}
.tape-inner::-webkit-scrollbar { display: none; }
.tape-item { display: inline-flex; gap: .5rem; align-items: baseline; }
.tape-item i { font-style: normal; color: var(--muted); letter-spacing: .1em; }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC — header
   ══════════════════════════════════════════════════════════════════════════ */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16,14,11,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
[data-theme="light"] .masthead { background: rgba(246,241,231,.93); }

.masthead-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 22px;
  height: 70px;
  display: flex; align-items: center; gap: 2rem;
}

.wordmark {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 600;
  letter-spacing: .01em;
  color: var(--ivory);
}
.wordmark:hover { color: var(--ivory); }
.wordmark small {
  display: block;
  font-family: var(--font-ui);
  font-size: .54rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass); margin-top: -2px;
}
.ingot {
  width: 30px; height: 20px; flex: none;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(160deg, var(--brass-hi) 0%, var(--brass) 45%, var(--brass-dim) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.mainnav { display: flex; gap: 1.7rem; margin-left: auto; }
.mainnav a {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding: .4rem 0;
  border-bottom: 1px solid transparent;
}
.mainnav a:hover, .mainnav a.active { color: var(--ivory); border-bottom-color: var(--brass); }

.masthead-actions { display: flex; align-items: center; gap: .7rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: none; cursor: pointer;
  padding: 0; place-items: center;
}
.burger span { display: block; width: 17px; height: 1px; background: var(--ivory); margin: 3px auto; }

@media (max-width: 900px) {
  .mainnav { display: none; }
  .masthead-actions .btn { display: none; }
  .burger { display: grid; margin-left: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC — hero
   ══════════════════════════════════════════════════════════════════════════ */
.hero { padding: 5.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::before {
  /* horizon band — a single warm wash, no orbs */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 78% 8%, rgba(200,162,74,.10), transparent 62%),
    radial-gradient(90% 60% at 8% 96%, rgba(44,64,52,.34), transparent 60%);
  pointer-events: none;
}
.hero .shell { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.4rem; align-items: center;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: italic;
  color: var(--brass-hi);
}
.hero-lede { font-size: 1.07rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 2.2rem; }

.hero-assay { display: grid; gap: 0; }
.assay-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 1rem; margin-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}
.assay-head h3 { margin: 0; font-size: 1rem; }
.assay-head p { margin: .15rem 0 0; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.spot-list { display: grid; }
.spot {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 1rem; align-items: baseline;
  padding: .78rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.spot:last-child { border-bottom: 0; }
.spot-name { font-size: .84rem; font-weight: 600; }
.spot-name small { display: block; font-family: var(--font-mono); font-size: .64rem; color: var(--faint); letter-spacing: .1em; }
.spot-px { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.spot-ch { font-family: var(--font-mono); font-size: .76rem; min-width: 66px; text-align: right; }

.assay-foot {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

/* Trust strip */
.trust {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.trust span { display: flex; align-items: center; gap: .5rem; }
.trust b { color: var(--brass); font-weight: 700; }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .trust { gap: 1.1rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC — generic sections
   ══════════════════════════════════════════════════════════════════════════ */
section.band { padding: 4.6rem 0; }
section.band.tight { padding: 3.2rem 0; }
section.band.alt { background: var(--ink-2); border-block: 1px solid var(--rule); }

.section-head { max-width: 42rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) {
  .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  section.band { padding: 3rem 0; }
}

/* Numbered pillar */
.pillar { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.pillar-n {
  font-family: var(--font-display);
  font-size: 2.3rem; line-height: 1;
  color: var(--brass); opacity: .5;
  margin-bottom: .7rem;
}
.pillar h3 { margin-bottom: .45rem; }
.pillar p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Stat block */
.stat { border-left: 1px solid var(--rule); padding-left: 1.1rem; }
.stat b { display: block; font-size: 2rem; }
.stat span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC — plan certificates
   ══════════════════════════════════════════════════════════════════════════ */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; } }

.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(200,162,74,.55); background: var(--ink-4); }

.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.3rem; }
.plan-name { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.plan-desc { font-size: .82rem; color: var(--muted); margin: .2rem 0 0; }

.plan-rate { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .2rem; }
.plan-rate b { font-size: 3rem; }
.plan-rate span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-term { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 1.3rem; }

.plan-spec { margin: 0 0 1.4rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.plan-spec li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .82rem;
}
.plan-spec li span { color: var(--muted); }
.plan-spec li b { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }

/* Comparison ledger */
.compare { width: 100%; border-collapse: collapse; font-size: .86rem; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--rule-soft); }
.compare thead th {
  font-family: var(--font-ui);
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); border-bottom: 1px solid var(--rule);
}
.compare tbody td:first-child { color: var(--muted); font-family: var(--font-ui); }
.compare tbody tr:hover { background: rgba(200,162,74,.035); }
.table-wrap { overflow-x: auto; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem .2rem;
  font-family: var(--font-display); font-size: 1.06rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--brass);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); font-size: .94rem; padding: 0 2.5rem 1.35rem .2rem; margin: 0; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin-bottom: .45rem;
}
.input, .select, .textarea {
  width: 100%;
  background: var(--ink); color: var(--ivory);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: .85rem .9rem;
  font-family: var(--font-ui); font-size: .95rem;
  min-height: 46px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(200,162,74,.13);
}
.textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .74rem; color: var(--faint); margin-top: .35rem; }

/* ── Testimonial ────────────────────────────────────────────────────────── */
.quote { border-left: 1px solid var(--brass); padding-left: 1.3rem; }
.quote p { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--ivory); }
.quote cite { font-style: normal; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quote cite b { color: var(--brass); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); background: var(--ink-2); padding: 3.4rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4 { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot ul li { margin-bottom: .5rem; }
.foot ul a { font-size: .86rem; color: var(--muted); }
.foot ul a:hover { color: var(--ivory); }
.foot-note { font-size: .8rem; color: var(--muted); max-width: 24rem; }
.foot-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .74rem; color: var(--faint);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ══════════════════════════════════════════════════════════════════════════
   APP — mobile-first dashboard
   Phone chrome: sticky brass-ruled header, card body, fixed tab bar.
   ══════════════════════════════════════════════════════════════════════════ */
.app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ink);
  border-inline: 1px solid var(--rule);
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  position: relative;
}

.app-bar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(16,14,11,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding: calc(.7rem + env(safe-area-inset-top)) 1.1rem .7rem;
  display: flex; align-items: center; gap: .8rem;
}
[data-theme="light"] .app-bar { background: rgba(246,241,231,.95); }
.app-bar h1 { font-size: 1.06rem; margin: 0; letter-spacing: -.01em; }
.app-bar .sub { font-size: .7rem; color: var(--muted); letter-spacing: .06em; }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  background: none; color: var(--ivory);
  font-size: .95rem; cursor: pointer;
  position: relative;
}
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--loss);
}
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-4); border: 1px solid var(--brass);
  font-family: var(--font-display); font-size: .82rem; color: var(--brass-hi);
}

.app-body { padding: 1.1rem; display: grid; gap: 1.1rem; }

/* Vault balance card */
.vault { padding: 1.5rem 1.3rem; }
.vault-label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.vault-amt { font-size: 2.7rem; line-height: 1.05; margin: .35rem 0 .1rem; }
.vault-delta { font-family: var(--font-mono); font-size: .8rem; }
.vault-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.vault-split div span { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.vault-split div b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.02rem; }

/* Allocation bar — gold vs energy split */
.alloc { display: flex; height: 8px; border-radius: 2px; overflow: hidden; margin-top: 1.1rem; border: 1px solid var(--rule); }
.alloc i { display: block; height: 100%; }
.alloc-key { display: flex; gap: 1.1rem; margin-top: .6rem; font-size: .7rem; color: var(--muted); }
.alloc-key span { display: flex; align-items: center; gap: .35rem; }
.alloc-key em { width: 8px; height: 8px; border-radius: 1px; display: block; font-style: normal; }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.quick a {
  display: grid; gap: .45rem; place-items: center;
  padding: .95rem .3rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--ink-2);
  color: var(--ivory);
  font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  min-height: 78px;
}
.quick a:hover { border-color: var(--brass); color: var(--brass-hi); }
.quick .gi { font-size: 1.15rem; color: var(--brass); line-height: 1; }

/* Card + section heading inside app */
.card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 1.1rem;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: .3rem;
}
.card-head h2 { font-size: .96rem; margin: 0; }
.card-head a { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

/* Segmented control */
.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--ink-2);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 3px;
}
.segmented button {
  appearance: none; border: 0; background: none;
  padding: .6rem .4rem;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; border-radius: var(--r-xs);
  min-height: 40px;
}
.segmented button[aria-selected="true"] { background: var(--ink-4); color: var(--brass-hi); }

/* Position card with fill bar */
.pos { display: grid; gap: .8rem; }
.pos-top { display: flex; align-items: flex-start; gap: .8rem; }
.pos-glyph {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  border: 1px solid var(--rule);
}
.pos-glyph.metal { color: var(--brass-hi); background: rgba(200,162,74,.10); border-color: rgba(200,162,74,.4); }
.pos-glyph.energy { color: var(--crude-hi); background: rgba(78,122,95,.12); border-color: rgba(78,122,95,.4); }
.pos-id { flex: 1; min-width: 0; }
.pos-id h3 { font-size: .96rem; margin: 0 0 .1rem; }
.pos-id p { margin: 0; font-size: .72rem; color: var(--muted); font-family: var(--font-mono); }
.pos-amt { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.pos-amt b { display: block; font-size: 1rem; }
.pos-amt span { font-size: .72rem; }

.bar { height: 6px; background: var(--ink-4); border-radius: var(--r-pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-dim), var(--brass-hi)); }
.bar.energy i { background: linear-gradient(90deg, var(--crude), var(--crude-hi)); }
.bar-meta { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted); font-family: var(--font-mono); }

/* Sparkline strip */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 44px; }
.spark i { flex: 1; background: var(--ink-4); border-radius: 1px 1px 0 0; display: block; }
.spark i.on { background: linear-gradient(180deg, var(--brass), var(--brass-dim)); }

/* Method chooser (deposit) */
.method {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--ink-2);
  cursor: pointer;
  min-height: 68px;
}
.method:hover { border-color: rgba(200,162,74,.5); }
.method.sel { border-color: var(--brass); background: var(--ink-3); }
.method-mark {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 1px solid var(--rule); display: grid; place-items: center;
}
.method.sel .method-mark { border-color: var(--brass); }
.method.sel .method-mark::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.method-body { flex: 1; min-width: 0; }
.method-body strong { display: block; font-size: .92rem; }
.method-body span { font-size: .72rem; color: var(--muted); }
.method-fee { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-align: right; }

/* Amount entry */
.amount-box { text-align: center; padding: 1.6rem 1.1rem; }
.amount-box .cur { font-family: var(--font-mono); font-size: 1.1rem; color: var(--muted); vertical-align: super; }
.amount-box input {
  border: 0; background: none; color: var(--brass-hi);
  font-family: var(--font-display); font-size: 3rem; font-weight: 600;
  width: 6.5ch; text-align: center; padding: 0;
  font-variant-numeric: tabular-nums;
}
.amount-box input:focus { outline: none; }
.chips { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  padding: .5rem .85rem; min-height: 40px;
  border: 1px solid var(--rule); border-radius: 20px;
  background: none; color: var(--ivory);
  font-family: var(--font-mono); font-size: .78rem; cursor: pointer;
}
.chip:hover, .chip.sel { border-color: var(--brass); color: var(--brass-hi); }

/* Summary sheet */
.sheet {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--ink-3); padding: 1.1rem;
}
.sheet-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .86rem; }
.sheet-row span { color: var(--muted); }
.sheet-row b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sheet-row.total { border-top: 1px solid var(--rule); margin-top: .5rem; padding-top: .8rem; }
.sheet-row.total b { font-size: 1.1rem; color: var(--brass-hi); }

/* Bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 460px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(23,20,15,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  border-inline: 1px solid var(--rule);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
[data-theme="light"] .tabbar { background: rgba(239,232,218,.97); }
.tabbar a {
  display: grid; gap: 3px; place-items: center;
  padding: .65rem .2rem .6rem;
  color: var(--faint);
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  min-height: 58px;
}
.tabbar a .gi { font-size: 1.15rem; line-height: 1; }
.tabbar a.active { color: var(--brass-hi); }
.tabbar a.active .gi { color: var(--brass); }

/* Simple glyphs drawn with text — no icon font dependency in the preview */
.gi { font-style: normal; font-family: var(--font-ui); }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack { display: grid; gap: 1.1rem; }
.row { display: flex; align-items: center; gap: .7rem; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── App utilities promoted from page-level blocks ──────────────────────────
   These started life as one-off rules inside individual pages. They are
   genuinely reusable patterns, so they belong in the design system — a theme
   should not repeat them in every view. */

/* Visually hidden, still announced by screen readers. Used for labels on
   icon-only buttons and the amount input. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Three tabular figures side by side — holdings summary, any stat strip. */
.sum-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; text-align: center; }
.sum-row div span {
  display: block; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.sum-row div b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* Numbered step heading for multi-step flows (funding, withdrawal, KYC). */
.step-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.step-head .step-n {
  font-family: var(--font-mono); font-size: .7rem; color: var(--brass);
  border: 1px solid var(--rule); border-radius: 50%;
  width: 22px; height: 22px; flex: none; display: grid; place-items: center;
}
.step-head h2 {
  font-size: .9rem; margin: 0; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — auth panels, flash alerts, statement paging, allocation sheet
   (added by the auth/dashboard view port; self-contained, overrides nothing)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Auth certificate panel ─────────────────────────────────────────────── */
.auth-cert { width: 100%; max-width: 30rem; margin: 0 auto; }
.auth-title { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: .4rem; }
.auth-cols { gap: 0 1rem; }
@media (max-width: 560px) { .auth-cols { grid-template-columns: 1fr; } }
.auth-foot {
  margin-top: 1.4rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .82rem;
}

/* Checkbox field — label sits beside the box, not above it. */
.check-field { display: flex; align-items: flex-start; gap: .6rem; }
.check-field input[type="checkbox"] { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--brass); }
.check-field label {
  margin: 0; font-size: .82rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--muted);
}

/* Text-styled button, for show-password and inline form actions. */
.link-btn {
  background: none; border: 0; padding: .3rem 0; cursor: pointer;
  font-family: var(--font-ui); font-size: .78rem;
  color: var(--brass-hi); text-decoration: underline;
  min-height: 32px;
}
.link-btn:hover { color: var(--brass); }
.inline-form { display: inline; }

/* Password strength meter. */
.pwd-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .45rem; }
.pwd-meter-bar { height: 3px; border-radius: 1px; background: var(--ink-4); }
.pwd-meter-bar.weak   { background: var(--loss); }
.pwd-meter-bar.fair   { background: var(--brass-dim); }
.pwd-meter-bar.good   { background: var(--brass); }
.pwd-meter-bar.strong { background: var(--gain); }

/* ── Flash / notice messages ────────────────────────────────────────────── */
.alert, .notice {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .85rem 1rem; margin: 0 0 1rem;
  border: 1px solid var(--rule); border-left-width: 2px;
  border-radius: var(--r);
  background: var(--ink-2);
  font-size: .85rem;
}
.alert-success, .notice-success { border-left-color: var(--gain); }
.alert-error, .alert-danger, .notice-error { border-left-color: var(--loss); }
.alert-warning, .notice-warning { border-left-color: var(--brass); }
.alert-info, .notice-info { border-left-color: var(--crude-hi); }

/* ── App page heading + embeds ──────────────────────────────────────────── */
.app-title { font-size: 1.5rem; margin: .3rem 0 .4rem; }
.tv-embed { overflow: hidden; border-radius: var(--r); }
.tv-embed iframe { max-width: 100%; display: block; }

.notice-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: var(--ivory);
  border-left: 2px solid var(--brass);
}
.notice-link .gi { color: var(--brass); }

/* ── Statement filters + pagination ─────────────────────────────────────── */
.filter-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule);
}
.pagination-btns { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ── Allocation instruction: selectable plan + confirmation sheet ───────── */
.plan-card { cursor: pointer; }
.plan-card.selected { border-color: var(--brass); background: var(--ink-4); }
.plan-card.disabled { opacity: .55; cursor: not-allowed; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,6,4,.78);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-container { width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — layout chrome (public drawer, auth panel, app shell drawer)
   Rules the design preview did not need but the live theme's shared JS does:
   theme toggle, mobile nav drawer, off-canvas "More" drawer, flash alerts,
   and legacy custom-property aliases consumed by notifications.js.
   ══════════════════════════════════════════════════════════════════════════ */

/* Legacy variable aliases — notifications.js injects its own stylesheet that
   references the previous theme's tokens. Map them onto the Aurum palette. */
:root {
  --bg2: var(--ink-2); --card: var(--ink-3); --border: var(--rule);
  --text: var(--ivory); --text2: var(--muted); --text3: var(--faint);
  --gold: var(--brass); --green: var(--gain); --red: var(--loss); --blue: var(--crude-hi);
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%;
  background: none; color: var(--ivory); cursor: pointer; font-size: .95rem;
}
.theme-toggle:hover { border-color: var(--brass); color: var(--brass-hi); }
.theme-toggle-inline { width: auto; height: auto; min-height: 0; border: 0; border-radius: 0; padding: 0; color: var(--brass-hi); }
.masthead-actions .theme-toggle { display: inline-grid; }

/* Public mobile drawer */
.mobile-nav {
  display: none;
  position: sticky; top: 70px; z-index: 39;
  background: var(--ink-2); border-bottom: 1px solid var(--rule);
  padding: .6rem 22px 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: .8rem .2rem; min-height: 44px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--brass-hi); }
.mobile-nav .mobile-btns { display: flex; gap: .6rem; margin-top: 1rem; }
/* Re-assert button identity: the generic `.mobile-nav a` rule above (0,1,1)
   otherwise wins over `.btn` (0,1,0) and forces block display, muted text and a
   stray hairline rule onto these. This selector (0,3,0) outranks it. */
.mobile-nav .mobile-btns .btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1rem; min-height: 44px;
  border: 1px solid var(--brass);
  letter-spacing: .04em; text-align: center;
  color: #1A1508;
}
.mobile-nav .mobile-btns .btn-ghost {
  color: var(--ivory); border-color: var(--rule);
}
.mobile-nav .mobile-btns .btn-ghost:hover {
  color: var(--brass-hi); border-color: var(--brass);
}
@media (min-width: 901px) { .mobile-nav { display: none !important; } }

/* Auth shell */
.auth-wrap { max-width: 27rem; margin: 0 auto; padding: 3rem 22px 4rem; }
.auth-wordmark { justify-content: center; margin-bottom: 1.6rem; }
.auth-cert { padding: 1.7rem; }   /* additive: width/margin set in the auth section above */

/* App bar identity block + notification badge */
.app-bar-id { min-width: 0; }
.notif-count-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--loss); color: #fff;
  font-family: var(--font-mono); font-size: .6rem;
  align-items: center; justify-content: center; pointer-events: none;
}
#userNotifWrapper .notif-dropdown { width: min(340px, calc(100vw - 2.2rem)); }

/* Off-canvas "More" drawer (dashboard) */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.6); opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility 0s linear .2s;
}
.sidebar-overlay.open { opacity: 1; visibility: visible; transition: opacity .2s; }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(320px, 86vw);
  background: var(--ink-2); border-left: 1px solid var(--rule);
  padding: 1rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1rem;
  overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.sidebar.open { transform: none; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sidebar-user { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.sidebar-user-name { font-family: var(--font-display); font-size: 1rem; }
.sidebar-nav { display: grid; }
.sidebar-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .2rem; min-height: 44px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: .88rem; color: var(--ivory);
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--brass-hi); }
.sidebar-nav .gi { color: var(--brass); width: 1.2rem; text-align: center; }
.sidebar-nav .nav-badge {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px;
  background: rgba(200,162,74,.16); color: var(--brass-hi);
  font-family: var(--font-mono); font-size: .68rem;
  align-items: center; justify-content: center;
}
.sidebar-foot { margin-top: auto; }

/* Flash messages are defined once, in the "Flash / notice messages" section
   above — two view-port passes each added a near-identical block, and the
   duplicate was silently overriding the first. Kept the earlier definition
   because it also covers the `.notice*` variants. */

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — funding / redemption flow, notices and preference toggles
   Rules the base sheet lacks that are needed by the dashboard funding views
   (deposit, withdraw, notifications, email preferences). Self-contained.
   ══════════════════════════════════════════════════════════════════════════ */

/* Multi-step wizard: only the active panel is shown. */
.wiz-panel { display: none; }
.wiz-panel.active { display: grid; gap: .9rem; }
.wiz-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; }
.wiz-track .wiz-step {
  border-top: 1px solid var(--rule-soft);
  padding-top: .4rem;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.wiz-track .wiz-step.active,
.wiz-track .wiz-step.completed { border-top-color: var(--brass); color: var(--brass-hi); }
.wiz-nav { display: flex; gap: .6rem; }
.wiz-nav .btn { flex: 1; }

/* Receipt drop zone. */
.drop {
  position: relative;
  border: 1px dashed var(--rule); border-radius: var(--r);
  background: var(--ink-2);
  padding: 1.2rem; text-align: center; cursor: pointer;
}
.drop:hover, .drop.dragover { border-color: var(--brass); }
.drop .file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .gi { font-size: 1.3rem; color: var(--brass); }
.drop-file { display: flex; align-items: center; gap: .7rem; text-align: left; }

/* Admin-authored settlement instructions, rendered as supplied. */
.instr {
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--ink-2); padding: 1rem;
  overflow-x: auto;
}
.instr > div { box-shadow: none !important; margin: 0 !important; max-width: 100% !important; }

/* Unread notice row. */
.ledger-row.unread { background: rgba(200,162,74,.05); }
.unread-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass); margin-right: .35rem; vertical-align: middle;
}

/* Preference toggle — a checkbox, restyled; the input keeps its name/value. */
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch i {
  position: absolute; inset: 0; border: 1px solid var(--rule); border-radius: 13px;
  background: var(--ink-3); transition: background .18s, border-color .18s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform .18s, background .18s;
}
.switch input:checked + i { border-color: var(--brass); background: rgba(200,162,74,.16); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--brass); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(200,162,74,.18); }

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — v2 feedback pass
   Native rates marquee, live indicator, admin-HTML content, SVG icons,
   Google Translate de-branding, and modern-radius / tactility touches.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── SVG icon system ─────────────────────────────────────────────────────── */
.ic { display: inline-block; vertical-align: -0.18em; flex: none; color: inherit; }
.tabbar a .ic,
.quick a .ic { color: var(--brass); }
.tabbar a.active .ic { color: var(--brass-hi); }
.quick a:hover .ic { color: var(--brass-hi); }
.sidebar-nav a .ic { color: var(--brass); }
.trust .ic { color: var(--brass); }
.masthead-actions .ic { color: currentColor; }

/* ── Native market marquee (replaces the TradingView tape) ───────────────── */
.tape { border-bottom: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; }
.tape-track { display: flex; width: max-content; animation: tape-scroll 44s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-run {
  display: flex; align-items: center; gap: 2.2rem;
  padding: .5rem 1.1rem;
  font-family: var(--font-mono); font-size: .72rem;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tape-item { display: inline-flex; gap: .5rem; align-items: baseline; }
.tape-item i { font-style: normal; color: var(--muted); letter-spacing: .1em; }
.tape-item b { font-weight: 600; }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; overflow-x: auto; max-width: 100%; }
  .tape-run:nth-child(2) { display: none; }
}
/* Dashboard card variant */
.tape-card { border: 1px solid var(--rule); border-radius: var(--r); }

/* ── Live indicator ──────────────────────────────────────────────────────── */
.live-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--gain); position: relative; flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: var(--r-pill);
  border: 1px solid var(--gain); opacity: .5; animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

/* ── Admin-authored CMS HTML (public_page_sections.content) ──────────────── */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .8rem; }
.rich ul, .rich ol { margin: 0 0 .8rem; padding-left: 1.15rem; }
.rich li { margin-bottom: .35rem; }
.rich li::marker { color: var(--brass); }
.rich a { color: var(--brass-hi); text-decoration: underline; }
.rich h2, .rich h3, .rich h4 { margin: 1.1rem 0 .5rem; }
.rich strong { color: var(--ivory); }
.rich.muted strong { color: var(--ivory); }

/* ── Modernisation: radius + tactility overrides ─────────────────────────── */
.btn { border-radius: var(--r-sm); box-shadow: var(--lift-sm); transition: filter .18s, transform .12s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--lift); }
.btn:active { transform: translateY(0); box-shadow: var(--lift-sm); }
.btn-ghost { box-shadow: none; }
.btn-ghost:hover { box-shadow: none; }
.input, .select, .textarea { border-radius: var(--r-sm); }
.method { border-radius: var(--r-sm); transition: border-color .18s, background .18s, transform .12s; }
.method:hover { transform: translateY(-1px); }
.chip { transition: border-color .15s, color .15s, transform .12s; }
.chip:active { transform: translateY(1px); }
.quick a { transition: border-color .18s, color .18s, transform .12s, box-shadow .18s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.plan { transition: transform .18s, box-shadow .18s, border-color .18s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: rgba(200,162,74,.4); }
.icon-btn { border-radius: var(--r-pill); transition: border-color .18s, color .18s; }

/* ── Google Translate — strip branding, blend into the header ────────────── */
/* Kill the injected top banner + body offset Google forces. */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-tooltip, .goog-tooltip:hover, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* The gadget wrapper: hide the "Powered by / Select language" text + Google icon. */
.translate-widget { display: inline-flex; align-items: center; }
.goog-te-gadget { font-size: 0 !important; color: transparent !important; line-height: 0 !important; }
.goog-te-gadget > span { display: none !important; }
.goog-te-gadget .goog-te-combo { margin: 0 !important; }
.goog-logo-link, .goog-te-gadget img { display: none !important; }

/* Style the language <select> to match the theme's own controls. */
.goog-te-combo {
  appearance: none; -webkit-appearance: none;
  background: var(--ink-2) !important;
  color: var(--ivory) !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--r-sm) !important;
  padding: .5rem 1.9rem .5rem .7rem !important;
  font-family: var(--font-ui) !important;
  font-size: .78rem !important; font-weight: 600 !important;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; min-height: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%) !important;
  background-position: right 14px center, right 9px center !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  transition: border-color .18s;
}
.goog-te-combo:hover { border-color: var(--brass) !important; color: var(--brass-hi) !important; }
.goog-te-combo:focus { outline: none; border-color: var(--brass) !important; box-shadow: 0 0 0 3px rgba(200,162,74,.13) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — v2 polish pass (focus states, tab-bar indicator, refinement)
   Public + dashboard finish. CSS-only; changes no markup or behaviour.
   ══════════════════════════════════════════════════════════════════════════ */

/* Brass text selection + a consistent, accessible focus ring everywhere. */
::selection { background: rgba(200,162,74,.28); color: var(--ivory); }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
a:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible,
.method:focus-visible, .tabbar a:focus-visible, .quick a:focus-visible,
.segmented button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }

/* Anchored sections shouldn't hide under the sticky masthead. */
[id] { scroll-margin-top: 88px; }

/* ── Tab bar: a proper active indicator, not just a colour change ─────────── */
.tabbar a {
  position: relative;
  transition: color .18s;
}
.tabbar a::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 26px; height: 2px; border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: var(--brass); transition: transform .2s ease;
}
.tabbar a.active::before { transform: translateX(-50%) scaleX(1); }
.tabbar a.active { color: var(--brass-hi); }
.tabbar a .ic { transition: transform .18s; }
.tabbar a.active .ic { transform: translateY(-1px); }

/* ── Refined section rhythm + eyebrow on public pages ────────────────────── */
.eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { font-size: 1.02rem; line-height: 1.6; }
.hero-lede { font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* Hairline dividers get a faint brass fade instead of a flat line. */
hr, .divider {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  margin: 2rem 0;
}

/* ── Featured plan: a quiet crown so it reads as the recommendation ──────── */
.plan.featured { position: relative; }
.plan.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(200,162,74,.35); pointer-events: none;
}

/* ── Empty states: centred, quiet, with breathing room ───────────────────── */
.card > .muted.small.mb0:only-child,
.card > p.muted:only-child {
  text-align: center; padding: 1.6rem 1rem; opacity: .85;
}

/* ── Vault figure: a touch more presence ─────────────────────────────────── */
.vault-amt { line-height: 1.02; }
.vault { background:
  radial-gradient(120% 90% at 85% -10%, rgba(200,162,74,.07), transparent 60%), var(--ink-3); }

/* ── Quick actions: clearer affordance ───────────────────────────────────── */
.quick a { gap: .5rem; font-weight: 600; }

/* ── Ledger rows: gentler hover, aligned baseline ────────────────────────── */
.ledger-row { transition: background .15s; }

/* ── Buttons: crisper label tracking ─────────────────────────────────────── */
.btn { letter-spacing: .05em; }

/* ── Masthead: hairline strengthens on scroll (JS toggles .scrolled) ─────── */
.masthead { transition: border-color .2s, background .2s; }

/* ── Links inside body copy get a subtle underline offset ────────────────── */
.rich a, .prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── Reduced-motion users: drop the lifts/indicator animation ────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn, .quick a, .method, .plan, .tabbar a::before, .tabbar a .ic { transition: none; }
  .btn:hover, .quick a:hover, .plan:hover, .method:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — v2 polish pass 2 (layout fixes observed in review screenshots)
   ══════════════════════════════════════════════════════════════════════════ */

/* Ledger rows: a long value (address, business hours) was overlapping the
   next label. Top-align, let the value wrap onto its own line when cramped,
   and break long strings instead of colliding. */
.ledger-row { align-items: flex-start; flex-wrap: wrap; row-gap: .2rem; }
.ledger-label { flex: 1 1 11rem; min-width: 0; }
.ledger-value { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ledger-value b, .ledger-label strong, .ledger-label span { overflow-wrap: anywhere; }
/* Nudge the row tick to the first line rather than the vertical centre. */
.ledger-row::before { top: 1.25rem; }

/* Multi-column sections: size each column to its own content instead of
   stretching the shorter one — fixes the empty gap under the contact form
   and balances the about columns. */
.cols-2, .cols-3, .cols-4 { align-items: start; }

/* Plan grid: flow cards to fill the row so the 4th plan is never orphaned
   on its own line. 3 on the homepage stretch to fill; 4 on /plans sit in one
   even row. */
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — v3 homepage redesign + header refinement
   Image-backed sections, icon features, step flow, reveal + count-up, and a
   tighter header. Petroleum green (--crude-hi) steps in as the second accent.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Header: tagline removed, tighter, single-line wordmark ──────────────── */
.masthead-inner { gap: 1.2rem; }
.mainnav { gap: 1.3rem; }
.masthead-actions { gap: .5rem; }
.wordmark { white-space: nowrap; font-size: 1.22rem; }
.wordmark-name { white-space: nowrap; }
.translate-widget { max-width: 158px; }
.goog-te-combo {
  max-width: 158px;
  padding: .48rem 1.7rem .48rem .6rem !important;
  font-size: .7rem !important;
}
@media (max-width: 1120px) { .mainnav { gap: 1.05rem; } .masthead-inner { gap: .9rem; } }

/* ── Footer tagline (moved out of the header) ───────────────────────────── */
.foot-tagline {
  font-family: var(--font-display); font-size: 1.05rem; font-style: italic;
  color: var(--brass-hi); margin: .7rem 0 .5rem;
}

/* ── Reveal-on-scroll (app.js adds .in) ─────────────────────────────────────
   Only hidden when JS is present (html.has-js). Without JS, or if the observer
   never fires, content stays fully visible — reveal is an enhancement, never a
   dependency for seeing the page. */
.has-js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.has-js .reveal.in { opacity: 1; transform: none; }
.reveal-2 { transition-delay: .12s; }
.reveal-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .has-js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Hero: photographic backdrop behind the content, heavily faded ──────── */
.hero.has-media::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--ink) 14%, rgba(16,14,11,.4) 52%, rgba(16,14,11,.62) 100%),
    var(--hero-img);
  background-size: cover; background-position: center right; opacity: .55;
}
[data-theme="light"] .hero.has-media::after {
  background-image:
    linear-gradient(90deg, var(--ink) 16%, rgba(246,241,231,.55) 55%, rgba(246,241,231,.7) 100%),
    var(--hero-img);
  opacity: .4;
}
.hero.has-media .shell { position: relative; z-index: 1; }

/* ── Why physical: image + icon feature list ────────────────────────────── */
.feature-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; gap: 2rem; } }
.feature-media {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--lift);
}
.feature-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .7s ease; }
.feature-media:hover img { transform: scale(1.045); }
.feature-media-tag {
  position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(16,14,11,.8); border: 1px solid var(--rule); border-radius: var(--r-pill);
  padding: .42rem .85rem; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-hi);
}
.feature-list { display: grid; gap: 1.35rem; margin-top: 1.5rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-ic {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--brass); background: rgba(200,162,74,.1); border: 1px solid rgba(200,162,74,.3);
  transition: transform .2s;
}
.feature-item:hover .feature-ic { transform: translateY(-2px) rotate(-3deg); }
.feature-ic.energy { color: var(--crude-hi); background: rgba(78,122,95,.13); border-color: rgba(78,122,95,.38); }
.feature-item h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ── Custody discipline cards ───────────────────────────────────────────── */
.disc-card {
  background: var(--ink-3); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1.7rem; box-shadow: var(--lift); transition: transform .2s, border-color .2s;
}
.disc-card:hover { transform: translateY(-4px); border-color: rgba(200,162,74,.4); }
.disc-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-sm); margin-bottom: 1.1rem;
  color: var(--brass-hi); border: 1px solid var(--brass);
  background: radial-gradient(circle at 35% 30%, rgba(237,215,154,.18), transparent 60%), var(--ink-4);
}
.disc-card h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.disc-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ── Process: connected step flow ───────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 27px; left: 13%; right: 13%; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--brass-dim), var(--brass-dim), transparent);
  opacity: .5;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-node {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--ink-3); border: 1px solid var(--brass); color: var(--brass); box-shadow: 0 0 0 7px var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.step:hover .step-node { transform: translateY(-3px); box-shadow: 0 0 0 7px var(--ink), 0 8px 20px -8px rgba(200,162,74,.35); }
.step-num {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass); color: #1a1508; font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin: 0 0 .4rem; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 820px) {
  .steps { grid-template-columns: auto 1fr; gap: 0 1rem; }
  .steps::before { top: 0; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--brass-dim), transparent); }
  .step { text-align: left; display: contents; }
  .step .step-node { grid-column: 1; margin: 0 0 1.6rem; }
  .step h3 { grid-column: 2; margin-top: .5rem; }
  .step p { grid-column: 2; margin-bottom: 1.6rem; }
}

/* ── Stats: image-backed band with count-up ─────────────────────────────── */
.stat-band { position: relative; padding: 4.5rem 0; border-block: 1px solid var(--rule); overflow: hidden; }
.stat-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(16,14,11,.84), rgba(16,14,11,.93)), var(--stat-img);
  background-size: cover; background-position: center;
}
[data-theme="light"] .stat-band::before { background-image: linear-gradient(rgba(246,241,231,.86), rgba(246,241,231,.93)), var(--stat-img); }
.stat-band .shell { position: relative; z-index: 1; }
.stat-band .stat.big { border-left: 1px solid var(--brass); padding-left: 1.2rem; }
.stat-band .stat.big b { font-size: clamp(2rem, 3.6vw, 2.9rem); display: block; line-height: 1.05; }
.stat-band .stat.big span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── CTA band with photographic backdrop ────────────────────────────────── */
.cta-band { position: relative; padding: 5rem 0; overflow: hidden; border-top: 1px solid var(--rule); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(16,14,11,.88), rgba(16,14,11,.94)),
    radial-gradient(80% 60% at 50% 0%, rgba(200,162,74,.12), transparent 62%),
    var(--cta-img);
  background-size: cover; background-position: center;
}
[data-theme="light"] .cta-band::before {
  background-image: linear-gradient(rgba(246,241,231,.9), rgba(246,241,231,.95)), var(--cta-img);
}
.cta-band .shell { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   APPENDED — v3b: instrument grid + physical-vs-paper
   ══════════════════════════════════════════════════════════════════════════ */

/* ── The book: live instrument chips ────────────────────────────────────── */
.instrument-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: .9rem; }
.instrument {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
  background: var(--ink-3); border: 1px solid var(--rule); border-radius: var(--r-sm);
  box-shadow: var(--lift-sm); transition: transform .18s, border-color .18s;
}
.instrument:hover { transform: translateY(-3px); border-color: rgba(200,162,74,.4); }
.instrument-ic {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--brass); background: rgba(200,162,74,.1); border: 1px solid rgba(200,162,74,.28);
}
.instrument.energy .instrument-ic { color: var(--crude-hi); background: rgba(78,122,95,.13); border-color: rgba(78,122,95,.35); }
.instrument-id { flex: 1; min-width: 0; }
.instrument-id b { display: block; font-size: .95rem; }
.instrument-id span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--faint); }
.instrument-px { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.instrument-px b { display: block; font-size: .95rem; }
.instrument-px span { font-size: .72rem; }

/* ── Physical vs paper ──────────────────────────────────────────────────── */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 920px; margin: 0 auto; align-items: start; }
@media (max-width: 720px) { .versus { grid-template-columns: 1fr; } }
.versus-col { border: 1px solid var(--rule); border-radius: var(--r); padding: 1.7rem; }
.versus-col.is-aurum { background: var(--ink-3); border-color: rgba(200,162,74,.42); box-shadow: var(--lift); }
.versus-col.is-paper { background: transparent; opacity: .85; }
.versus-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.versus-head h3 { margin: 0; font-size: 1.15rem; }
.versus-x { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--loss); color: var(--loss); font-size: 1.2rem; }
.versus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.versus-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; }
.versus-list.muted li { color: var(--muted); }
.versus-list .ic { color: var(--gain); flex: none; margin-top: .12rem; }
.vdash { color: var(--faint); flex: none; }
