/* FinCo client portal styles (2026-10-06).
 * Same surface as fincopayments.com: canonical navy, ONE lit band at the top (Brand v2.0.2,
 * Drew 2026-09-24), gold accents, Playfair Display headings, DM Sans text. No tonal section
 * bands (Drew 2026-09-24). Colours come only from tokens.css; never hardcode hex here.
 * Sections: base · layout · header · buttons · cards · forms · store · learn · wealth · footer · print. */

:root {
  --page-base: var(--navy);
  --glow-band: 1100px;
  --logo-h: 52px;
  --header-h: 74px;
  --radius-xl: 22px;
  --img-surface: var(--paper);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
}
@media (max-width: 639px) { :root { --logo-h: 44px; --header-h: 64px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page-base); -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { padding: 0; list-style: none; }
[tabindex="-1"]:focus { outline: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 32% at 50% 0%, rgba(74,124,190,0.20) 0%, rgba(74,124,190,0) 72%),
    radial-gradient(64% 50% at 64% 34%, rgba(74,124,190,0.28) 0%, rgba(74,124,190,0) 70%),
    radial-gradient(100% 60% at 58% 38%, var(--navy4) 0%, var(--navy3) 36%, var(--page-base) 100%);
  background-color: var(--page-base);
  background-size: auto, 100% var(--glow-band), 100% var(--glow-band), 100% var(--glow-band);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.01em; font-variant-numeric: lining-nums; color: var(--text-bright); }
h1 { font-size: clamp(2rem, 2.4vw + 1.2rem, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.2vw + 1rem, 2rem); }
h3 { font-size: 1.25rem; line-height: var(--lh-snug); }
p { color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(201,168,76,0.35); color: var(--text-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, .btn { -webkit-tap-highlight-color: transparent; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { left: 12px; }
.muted { color: var(--text-dim); }
.gold { color: var(--gold); }
.eyebrow { font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: var(--eyebrow-tracking); font-size: 0.75rem; color: var(--gold); }
.lede { font-size: 1.08rem; color: var(--text-muted); max-width: 62ch; }
.num { text-align: right; font-variant-numeric: lining-nums; }
.figure { font-family: var(--font-display); font-variant-numeric: lining-nums; color: var(--gold); }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
[hidden] { display: none !important; }
#fci-defs, #fci-defs svg { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-3); }
@media (min-width: 768px) { .container { padding-inline: var(--space-4); } }
.page { padding-block: var(--space-5) var(--space-10); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1 { margin-top: 0.35rem; }
.page-head .lede { margin-top: 0.6rem; }
.section { margin-top: var(--space-7); }
.section-tight { margin-top: var(--space-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--space-3); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } }
.stack > * + * { margin-top: var(--space-2); }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- dev ribbon (localhost only, set by portal.js) ---------- */
.dev-ribbon { background: var(--golddim); border-bottom: 1px solid var(--goldborder); font-size: var(--fs-small); color: var(--text); text-align: center; padding: 6px var(--space-2); }
.dev-ribbon strong { color: var(--gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.06); transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.site-header.is-scrolled { background: rgba(13,27,42,0.88); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.site-header .container { display: flex; align-items: center; gap: var(--space-3); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand img { height: var(--logo-h); width: auto; }
.brand .portal-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--text-dim); padding-left: 0.85rem; border-left: 1px solid rgba(255,255,255,0.16); line-height: 1.2; }
@media (max-width: 1379px) { .brand .portal-tag { display: none; } }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a.nav-link { padding: 0.5rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.93rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color var(--dur-fast), background var(--dur-fast); }
.nav a.nav-link:hover { color: var(--text-bright); background: rgba(255,255,255,0.05); }
.nav a.nav-link[aria-current="page"] { color: var(--gold); background: var(--golddim); }
.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.5rem; }
.points-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); border: 1px solid rgba(201,168,76,0.45); background: var(--golddim); font-weight: 600; font-size: 0.88rem; color: var(--gold); white-space: nowrap; font-variant-numeric: lining-nums; }
.points-pill:hover { border-color: var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.18); align-items: center; justify-content: center; margin-left: auto; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ''; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 1199px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-3) var(--space-3); background: rgba(13,27,42,0.97); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a.nav-link { padding: 0.85rem 0.6rem; border-radius: var(--radius); font-size: 1rem; }
  .header-actions { margin: var(--space-2) 0 0; justify-content: space-between; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; line-height: 1.2; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--shadow-gold); }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--gold), 0 12px 50px rgba(201,168,76,0.25); }
.btn-ghost { color: var(--text-bright); border: 1px solid rgba(201,168,76,0.55); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--golddim); }
.btn-quiet { color: var(--text-muted); border: 1px solid rgba(255,255,255,0.18); }
.btn-quiet:hover { color: var(--text-bright); border-color: rgba(255,255,255,0.4); }
.btn-link { color: var(--accent); padding: 0.4rem 0; font-weight: 500; }
.btn-link:hover { color: var(--accent-hover); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { border-radius: var(--radius-pill); }
.link { color: var(--gold); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(201,168,76,0.45); text-underline-offset: 0.2em; }
.link:hover { color: var(--gold2); text-decoration-color: var(--gold2); }

/* ---------- cards and surfaces ---------- */
.card { background: var(--card-bg), var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow); }
.card-tight { padding: var(--space-3); }
.card h3 + p, .card h2 + p { margin-top: 0.5rem; }
.card-link { display: block; transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.card-link:hover { transform: translateY(-2px); border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); }
.divider { height: 1px; background: rgba(255,255,255,0.08); margin: var(--space-3) 0; border: 0; }
.icon-chip { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy4), var(--navy3)); border: 1px solid var(--goldborder); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); flex-shrink: 0; }
.icon-chip svg { width: 30px; height: 30px; }
.icon-chip.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-chip.lg svg { width: 38px; height: 38px; }

/* Photo hero: a rounded photo with a navy veil so white and gold text read on it. */
.photo-hero { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-height: 260px; display: flex; align-items: flex-end; isolation: isolate; }
.photo-hero picture, .photo-hero > img { position: absolute; inset: 0; z-index: -2; }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,27,42,0.94) 0%, rgba(13,27,42,0.80) 38%, rgba(13,27,42,0.30) 75%, rgba(13,27,42,0.12) 100%), linear-gradient(0deg, rgba(13,27,42,0.55), rgba(13,27,42,0) 55%); }
.photo-hero .hero-body { padding: var(--space-5); max-width: 640px; }
.photo-hero h1, .photo-hero h2 { margin-top: 0.4rem; }
.photo-hero p { margin-top: 0.75rem; color: var(--text-muted); }
.photo-hero .row { margin-top: var(--space-3); }
@media (max-width: 639px) {
  .photo-hero { min-height: 300px; }
  .photo-hero::after { background: linear-gradient(0deg, rgba(13,27,42,0.96) 0%, rgba(13,27,42,0.78) 55%, rgba(13,27,42,0.35) 100%); }
  .photo-hero .hero-body { padding: var(--space-3); }
}

/* Balance hero on Home */
.balance { display: flex; flex-direction: column; gap: 0.25rem; }
.balance .figure { font-size: clamp(2.6rem, 4vw + 1rem, 3.8rem); line-height: 1; }
.balance .figure small { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dim); margin-left: 0.4rem; font-weight: 500; }
.stats { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-tile { background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--space-2) var(--space-3); }
.stat-tile .k { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-tile .v { font-family: var(--font-display); font-size: 1.6rem; color: var(--text-bright); margin-top: 0.2rem; font-variant-numeric: lining-nums; }

/* Quick links */
.quick { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); }
.quick h3 { font-size: 1.08rem; }
.quick p { font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- tables, badges, alerts ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { text-align: left; font-weight: 500; color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
td { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; color: var(--text-muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
.badge { display: inline-block; white-space: nowrap; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; text-transform: capitalize; border: 1px solid; }
.badge.pending { color: var(--warn); border-color: rgba(255,178,125,0.4); }
.badge.approved { color: var(--gold); border-color: rgba(201,168,76,0.45); }
.badge.shipped { color: var(--positive); border-color: rgba(79,208,138,0.45); }
.badge.cancelled { color: var(--text-dim); border-color: rgba(255,255,255,0.2); }
.badge.draft { color: var(--warn); border-color: rgba(255,178,125,0.4); text-transform: none; }
.alert { display: none; padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.93rem; margin-bottom: var(--space-2); }
.alert.show { display: block; }
.alert.err { background: rgba(224,122,107,0.12); border: 1px solid rgba(224,122,107,0.4); color: var(--text); }
.alert.ok { background: rgba(79,208,138,0.10); border: 1px solid rgba(79,208,138,0.4); color: var(--text); }
.alert.info { display: block; background: var(--golddim); border: 1px solid var(--goldborder); color: var(--text); }
.empty { color: var(--text-dim); padding: var(--space-2) 0; }
.spinner { color: var(--text-dim); padding: var(--space-4) 0; text-align: center; }
.spinner::before { content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 0.6rem; vertical-align: -3px; border: 2px solid rgba(201,168,76,0.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy4); color: var(--text); border: 1px solid var(--border); padding: 0.75rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); transition: opacity var(--dur), transform var(--dur); z-index: 80; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--space-2); }
.field { display: grid; gap: 0.4rem; align-content: start; }
label, .label { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.hint { font-size: 0.82rem; color: var(--text-dim); }
input, select, textarea { font: inherit; color: var(--text); background: var(--navy3); border: 1px solid var(--field-border); border-radius: var(--radius); padding: 0.75rem 0.9rem; width: 100%; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
input:hover, select:hover, textarea:hover { border-color: var(--field-border-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.18); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--gold); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--navy3) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.form-row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }
.money input { padding-left: 1.75rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; color: var(--text-muted); }
.check input { margin-top: 0.25rem; }

/* ---------- sign-in ---------- */
.signin { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: stretch; padding-block: var(--space-5) var(--space-8); }
@media (min-width: 960px) { .signin { grid-template-columns: 1.15fr 1fr; } }
.signin .photo-hero { min-height: 420px; }
.signin-card { align-self: center; max-width: 460px; width: 100%; justify-self: center; }
.signin-card h1 { font-size: 2rem; }
.feature-list { display: grid; gap: 0.8rem; margin-top: var(--space-3); }
.feature-list li { display: flex; gap: 0.7rem; align-items: center; color: var(--text); font-weight: 500; }
.feature-list svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- rewards store ---------- */
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.16); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: all var(--dur-fast); }
.chip:hover { border-color: rgba(201,168,76,0.5); color: var(--text-bright); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.toolbar { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin: var(--space-4) 0 var(--space-3); }
.toolbar select { width: auto; min-width: 210px; }
.reward-grid.fit { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.reward-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.reward { display: flex; flex-direction: column; background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.reward:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); }
.reward .media { position: relative; aspect-ratio: 4 / 3; background: var(--navy3); overflow: hidden; }
.reward .media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.reward:hover .media img { transform: scale(1.035); }
.reward .media .tag { position: absolute; left: 12px; top: 12px; padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); background: rgba(13,27,42,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--goldborder); }
.reward .media .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.reward .media .fallback svg { width: 72px; height: 72px; }
.reward .body { display: flex; flex-direction: column; flex: 1; padding: var(--space-3); gap: 0.4rem; }
.reward h3 { font-size: 1.12rem; }
.reward .desc { font-size: 0.9rem; flex: 1; }
.reward .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
.reward .cost { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); font-variant-numeric: lining-nums; }
.reward .cost small { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-dim); margin-left: 0.2rem; }
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.need { font-size: 0.82rem; color: var(--text-dim); }
.cat-banner { margin-bottom: var(--space-4); }
.cat-banner.photo-hero { min-height: 220px; }

/* Redeem detail */
.detail-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy3); border: 1px solid var(--border); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.summary-table td { padding: 0.55rem 0; }

/* Confirmation steps */
.steps { display: grid; gap: var(--space-2); text-align: left; }
.step { display: flex; gap: var(--space-2); align-items: flex-start; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--golddim); border: 1px solid rgba(201,168,76,0.45); color: var(--gold); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }

/* ---------- learn ---------- */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.article-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--space-3); height: 100%; }
.article-card .meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--text-dim); flex-wrap: wrap; }
.article-card h3 { font-size: 1.16rem; }
.article-card p { font-size: 0.92rem; flex: 1; }
.track-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.tip-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tip { padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-left: 3px solid var(--gold); font-size: 0.94rem; color: var(--text-muted); }
.tip .track-label { display: block; margin-bottom: 0.35rem; }
.tip-feature { border-left: 3px solid var(--gold); }
.tip-feature blockquote { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--text-bright); margin-top: 0.5rem; }
.resource-list { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.resource { display: block; padding: var(--space-3); border-radius: var(--radius); background: var(--navy2); border: 1px solid var(--border); transition: border-color var(--dur), transform var(--dur); }
.resource:hover { border-color: rgba(201,168,76,0.45); transform: translateY(-2px); }
.resource .org { font-size: 0.78rem; color: var(--text-dim); }
.resource h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-top: 0.2rem; }
.resource p { font-size: 0.88rem; margin-top: 0.35rem; }
.resource .url { font-size: 0.8rem; color: var(--gold); font-weight: 400; margin-top: 0.5rem; display: block; overflow-wrap: anywhere; }

/* Article page */
.article-head { max-width: 760px; }
.article-head .meta { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; color: var(--text-dim); font-size: 0.88rem; margin-top: var(--space-2); }
.prose { max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ''; position: absolute; left: 0.2rem; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45rem; }
.prose a { color: var(--gold); font-weight: 400; text-decoration: underline; text-decoration-color: rgba(201,168,76,0.45); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose a:hover { color: var(--gold2); }
.prose strong { color: var(--text-bright); }
.prose .takeaways { background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); margin-top: 2.2rem; }
.prose .takeaways h2 { margin-top: 0; font-size: 1.25rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.sources { font-size: 0.85rem; }
.sources li { color: var(--text-dim); overflow-wrap: anywhere; }
.sources li + li { margin-top: 0.4rem; }
.review-note { margin-bottom: var(--space-3); }

/* ---------- financial wellness ---------- */
.disclaimer { font-size: 0.86rem; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-2); margin-top: var(--space-4); }
.disclaimer strong { color: var(--text-muted); }
.disclaimer-box { background: var(--navy2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); font-size: 0.9rem; }
.disclaimer-box p { font-size: 0.9rem; }
.disclaimer-box p + p, .disclaimer-box h2 + p { margin-top: 0.6rem; }
.tool-card { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--space-4); height: 100%; }
.tool-card p { flex: 1; font-size: 0.95rem; }
.tool-card .btn { align-self: flex-start; }
.tool-card.featured { border-color: rgba(201,168,76,0.45); box-shadow: var(--shadow-gold); }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-bottom: var(--space-4); counter-reset: step; }
.stepper li { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.stepper li::before { content: ''; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.stepper li.done::before { background: rgba(201,168,76,0.55); }
.stepper li.current::before { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.stepper li.current { color: var(--gold); }
@media (max-width: 639px) { .stepper li span { display: none; } .stepper li.current span { display: inline; } }
.q { padding: var(--space-3) 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.q:last-of-type { border-bottom: 0; }
.q legend, .q .q-title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--text-bright); line-height: 1.45; padding: 0; }
.q .q-help { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.35rem; }
.options { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.option { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); color: var(--text-muted); font-size: 0.96rem; }
.option:hover { border-color: rgba(201,168,76,0.45); }
.option input { margin-top: 0.22rem; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--gold); background: var(--golddim); color: var(--text-bright); }
.option-grid { display: grid; gap: 0.55rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-top: 0.9rem; }
.q-error { color: var(--negative); font-size: 0.86rem; margin-top: 0.5rem; }
.q.has-error .options .option { border-color: rgba(224,122,107,0.45); }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.goal-rows { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.goal-row { display: grid; gap: var(--space-2); grid-template-columns: 1.4fr 1fr 0.9fr 1fr auto; align-items: end; padding: var(--space-2); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
@media (max-width: 859px) { .goal-row { grid-template-columns: 1fr 1fr; } .goal-row .remove { grid-column: 1 / -1; justify-self: start; } }

/* Results */
.result-hero { text-align: left; }
.profile-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: var(--space-3); }
.profile-scale span { height: 10px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.profile-scale span.on { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.profile-scale-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 0.72rem; color: var(--text-dim); margin-top: 0.4rem; }
.profile-scale-labels span.on { color: var(--gold); font-weight: 600; }
.meter { margin-top: var(--space-2); }
.meter .row-between { font-size: 0.88rem; color: var(--text-muted); }
.meter .progress { height: 8px; margin-top: 0.35rem; }
.priority-list { display: grid; gap: var(--space-2); counter-reset: pri; }
.priority { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.priority .status { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.priority .status.ok { background: rgba(79,208,138,0.14); color: var(--positive); border: 1px solid rgba(79,208,138,0.45); }
.priority .status.work { background: var(--golddim); color: var(--gold); border: 1px solid rgba(201,168,76,0.45); }
.priority .status.na { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid rgba(255,255,255,0.15); }
.priority h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.priority p { font-size: 0.92rem; margin-top: 0.25rem; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.kv > div { background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 0.8rem 1rem; }
.kv .k { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; }
.kv .v { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-bright); margin-top: 0.2rem; font-variant-numeric: lining-nums; }
.kv .v.gold { color: var(--gold); }
.chart-wrap { margin-top: var(--space-3); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--space-2); }
.chart-wrap svg { width: 100%; height: auto; }
.chart-legend { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; padding-left: 0.4rem; }
.chart-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 0.4rem; }
.chart-legend i.proj { background: var(--gold); }
.chart-legend i.band { background: rgba(201,168,76,0.3); height: 10px; }
.chart-legend i.need { background: var(--text-dim); }
.assumptions { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: var(--space-3); }
.range-field output { font-weight: 600; color: var(--gold); font-variant-numeric: lining-nums; }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--gold); }
.goal-result { padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.goal-result + .goal-result { margin-top: var(--space-2); }
.goal-result h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.goal-result .row-between { margin-top: 0.4rem; font-size: 0.9rem; color: var(--text-muted); }
.goal-result .progress { margin-top: 0.6rem; }
.note-list li { position: relative; padding-left: 1.4rem; color: var(--text-muted); font-size: 0.95rem; }
.note-list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.note-list li + li { margin-top: 0.6rem; }
.calc-tabs { margin-bottom: var(--space-3); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(255,255,255,0.07); padding: var(--space-4) 0 var(--space-5); margin-top: var(--space-6); font-size: 0.86rem; color: var(--text-dim); }
.site-footer .container { display: flex; gap: var(--space-3); justify-content: space-between; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.site-footer a { color: var(--gold); font-weight: 400; }
.site-footer a:hover { color: var(--gold2); }
.site-footer p { color: var(--text-dim); font-size: 0.86rem; }

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: var(--paper); color: var(--ink); }
  .site-header, .site-footer, .dev-ribbon, .no-print, .wizard-nav, .assumptions input { display: none !important; }
  .card, .priority, .goal-result, .kv div, .chart-wrap, .disclaimer-box { background: var(--paper); border-color: var(--line-light); box-shadow: none; color: var(--ink); }
  h1, h2, h3, h4, strong, .kv .v { color: var(--ink); }
  p, li, td, .muted, .hint, .disclaimer, .note-list li { color: var(--ink-muted); }
  .eyebrow, .figure, .gold, .kv .v.gold, .track-label { color: var(--gold-ink); }
  a { color: var(--ink); }
}

/* ---------- my website ---------- */
.site-hero { display: grid; gap: var(--space-3); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .site-hero { grid-template-columns: 1fr auto; } }
.site-hero .domain { font-family: var(--font-display); font-size: clamp(1.7rem, 2vw + 1rem, 2.5rem); color: var(--text-bright); overflow-wrap: anywhere; line-height: 1.15; margin-top: 0.3rem; }
.status-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; border: 1px solid; }
.status-pill.up { color: var(--positive); border-color: rgba(79,208,138,0.45); background: rgba(79,208,138,0.08); }
.status-pill.down { color: var(--negative); border-color: rgba(224,122,107,0.45); background: rgba(224,122,107,0.08); }
.status-pill.unknown { color: var(--text-dim); border-color: rgba(255,255,255,0.2); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(79,208,138,0.15); }
.svc-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.svc-chip { padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; color: var(--gold); background: var(--golddim); border: 1px solid var(--goldborder); }
.big-stats { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.big-stat { padding: var(--space-4) var(--space-3); border-radius: var(--radius-lg); background: var(--card-bg), var(--navy2); border: 1px solid var(--border); box-shadow: var(--shadow); }
.big-stat .k { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.big-stat .k svg { width: 26px; height: 26px; }
.big-stat .v { font-family: var(--font-display); font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.1rem); color: var(--gold); line-height: 1.05; margin-top: 0.6rem; font-variant-numeric: lining-nums; }
.big-stat .s { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.4rem; }
.big-stat .s .up { color: var(--positive); font-weight: 600; }
.chart .bar { fill: url(#bar-grad); }
.chart .bar-label, .chart .axis-label { fill: rgba(255,255,255,0.62); font-family: var(--font-body); font-size: 11px; }
.chart .grid-line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--positive); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-dot { fill: var(--navy2); stroke: var(--positive); stroke-width: 2; }
.chart .proj { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.chart .proj-band { fill: rgba(201,168,76,0.16); stroke: none; }
.chart .need { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.5; stroke-dasharray: 6 5; }
.chart polyline { fill: none; }
.chart-legend i.bars { background: var(--gold); height: 10px; }
.chart-legend i.line { background: var(--positive); }
.score { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.score-ring { width: 120px; height: 120px; flex-shrink: 0; }
.score-ring .track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 10; }
.score-ring .fill { fill: none; stroke: url(#ring-grad); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.score-ring text { fill: var(--text-bright); font-family: var(--font-display); font-size: 26px; text-anchor: middle; }
.score-ring text.small { font-family: var(--font-body); font-size: 11px; fill: rgba(255,255,255,0.62); }
.check-list { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: var(--space-3); }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.check-item .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; }
.check-item.pass .mark { background: rgba(79,208,138,0.15); color: var(--positive); border: 1px solid rgba(79,208,138,0.45); }
.check-item.todo .mark { background: var(--golddim); color: var(--gold); border: 1px solid rgba(201,168,76,0.45); }
.check-item strong { font-size: 0.94rem; display: block; }
.check-item span { font-size: 0.83rem; color: var(--text-dim); overflow-wrap: anywhere; }
.bar-list { display: grid; gap: 0.75rem; }
.bar-row .row-between { font-size: 0.92rem; }
.bar-row .progress { height: 8px; margin-top: 0.35rem; }
.bar-row .kind { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-left: 0.4rem; }
.geo-list { display: grid; gap: 0.6rem; }
.geo-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.geo-row .q { color: var(--text); font-weight: 500; }
.geo-row .m { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; }
.badge.cited { color: var(--positive); border-color: rgba(79,208,138,0.45); text-transform: none; }
.badge.mentioned { color: var(--gold); border-color: rgba(201,168,76,0.45); text-transform: none; }
.badge.not_found { color: var(--text-dim); border-color: rgba(255,255,255,0.2); text-transform: none; }
.feature-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: var(--space-2); align-items: flex-start; }
.feature h3 { font-size: 1.05rem; }
.feature p { font-size: 0.92rem; margin-top: 0.3rem; }

/* ---------- section sub-tabs (Rewards, Wealth & Growth, Web services) ---------- */
.subnav-wrap { padding-top: var(--space-3); }
.subnav { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a, .subnav button { flex-shrink: 0; padding: 0.6rem 0.95rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover, .subnav button:hover { color: var(--text-bright); }
.subnav a[aria-current="page"], .subnav button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.subnav-wrap + .container.page, .subnav-wrap + .container .page { padding-top: var(--space-4); }
.wallet-card { display: grid; gap: 0.6rem; padding: var(--space-3); border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.wallet-card .row-between strong { font-size: 1.02rem; }
.wallet-card .figure { font-size: 1.5rem; }
.wallet-card.finco { border-color: rgba(201,168,76,0.45); background: linear-gradient(160deg, var(--navy4), var(--navy3)); }
.rate-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.pill-note { display: inline-block; font-size: 0.75rem; padding: 0.15rem 0.55rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.18); color: var(--text-dim); }
.drift-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.drift-bar .cur { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.drift-bar .tgt { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-bright); }
.trade-buy { color: var(--positive); font-weight: 600; }
.trade-sell { color: var(--negative); font-weight: 600; }

/* ---------- admin console (2026-10-08) ---------- */
.money { display: block; }
.nowrap { white-space: nowrap; }
.stat-tile .v.gold { color: var(--gold); }
.kpi-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: var(--space-4); }
.kpi { position: relative; display: block; padding: var(--space-3); border-radius: var(--radius-lg); background: var(--card-bg), var(--navy2); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, rgba(201,168,76,0.0), rgba(201,168,76,0.55), rgba(201,168,76,0.0)); opacity: 0.6; }
.kpi .k { font-size: 0.76rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.kpi .v { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1vw + 1.1rem, 2.1rem); color: var(--text-bright); margin-top: 0.35rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.kpi .s { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.35rem; line-height: 1.4; }
.kpi:nth-child(2) .v { color: var(--gold); }
.kpi-link { transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.kpi-link:hover { transform: translateY(-2px); border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); }
.kpi-link .s::after { content: ' →'; color: var(--gold); }
.admin-tabs { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: var(--space-3); }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1rem; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--dur-fast), border-color var(--dur-fast); }
.admin-tab:hover { color: var(--text-bright); }
.admin-tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.admin-tab .count:empty { display: none; }
.admin-tab .count { min-width: 1.5rem; padding: 0.05rem 0.45rem; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-align: center; font-variant-numeric: lining-nums; }
.admin-tab .count.alert-count { background: var(--gold); color: var(--navy); }
.list-toolbar { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--space-3); }
.search { flex: 1 1 280px; max-width: 420px; position: relative; display: block; }
.search input { padding-left: 2.4rem; }
.search::before { content: ''; position: absolute; left: 0.95rem; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid var(--text-dim); border-radius: 50%; pointer-events: none; }
.search::after { content: ''; position: absolute; left: 1.72rem; top: 50%; width: 6px; height: 2px; margin-top: 3px; background: var(--text-dim); transform: rotate(45deg); pointer-events: none; }
.data-table { min-width: 680px; }
.data-table.compact { min-width: 480px; }
.data-table th { white-space: nowrap; }
.data-table td:first-child { min-width: 250px; }
.data-table.compact td:first-child { min-width: 0; }
.data-table .trunc { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td { vertical-align: middle; }
.data-table.compact td { padding: 0.6rem 0.75rem; vertical-align: top; }
.data-table tbody tr { transition: background var(--dur-fast); }
.data-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.data-table tr.row-link { cursor: pointer; }
.data-table tr.is-muted td { opacity: 0.55; }
.who { display: flex; gap: 0.8rem; align-items: center; min-width: 0; }
.who-name { color: var(--text-bright); font-weight: 600; }
.who-name:hover { color: var(--gold); }
.who-sub { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.15rem; overflow-wrap: break-word; }
.badge.plain { text-transform: none; }
.avatar { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--gold); background: linear-gradient(160deg, var(--navy4), var(--navy3)); border: 1px solid rgba(201,168,76,0.35); letter-spacing: 0.02em; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.35rem; }
.thumb { width: 52px; height: 39px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: var(--navy3); }
.thumb.icon { display: grid; place-items: center; }
.empty-state { text-align: center; padding: var(--space-5) var(--space-3); }
.empty-state p { margin-top: 0.5rem; }
.crumbs { margin-bottom: var(--space-2); }
.merchant-head { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.merchant-head h2 { margin-top: 0.2rem; }
.merchant-head .who { align-items: flex-start; }
.head-actions { justify-content: flex-end; }
.sec-list { display: grid; gap: 0.6rem; }
.sec-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: var(--space-2); align-items: center; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.sec-row select { padding-block: 0.55rem; font-size: 0.88rem; }
@media (max-width: 479px) { .sec-row { grid-template-columns: 1fr; } }
.site-mini-list { display: grid; gap: 0.6rem; }
.site-mini { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.note-feed, .event-feed { display: grid; gap: 0.6rem; margin-top: var(--space-2); }
.note-feed li, .event-feed li { padding: 0.7rem 0.9rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid rgba(255,255,255,0.06); }
.note-feed p { color: var(--text); font-size: 0.93rem; white-space: pre-wrap; }
.event-feed strong { display: block; font-size: 0.9rem; font-weight: 500; }
.disclose { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.75rem; margin-top: 0.75rem; }
.disclose summary { cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; font-weight: 500; }
.disclose[open] summary::after { content: '–'; }
.card > .disclose:first-of-type { margin-top: var(--space-2); }
.red-card .disclose { border-top: 0; padding-top: 0; margin-top: 0.5rem; }
.red-card .disclose summary { font-size: 0.85rem; color: var(--text-muted); justify-content: flex-start; gap: 0.4rem; }
.btn-danger { color: var(--text-bright); border: 1px solid rgba(224,122,107,0.6); background: rgba(224,122,107,0.12); }
.btn-danger:hover { background: rgba(224,122,107,0.22); border-color: var(--negative); }
.red-list { display: grid; gap: var(--space-2); }
.red-card { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); padding: var(--space-3); border-radius: var(--radius-lg); background: var(--navy3); border: 1px solid rgba(255,255,255,0.07); }
@media (min-width: 900px) { .red-card { grid-template-columns: minmax(0, 1fr) 300px; } }
.red-main { min-width: 0; }
.red-main .who-sub { overflow-wrap: anywhere; }
.red-card.is-closed { opacity: 0.7; }
.red-title { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.red-title strong { font-size: 1.02rem; color: var(--text-bright); }
.red-meta { font-size: 0.86rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.6; }
.red-notes { font-size: 0.88rem; margin-top: 0.5rem; white-space: pre-wrap; padding: 0.5rem 0.75rem; border-left: 2px solid var(--goldborder); background: rgba(255,255,255,0.02); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.red-actions { display: grid; gap: 0.6rem; align-content: start; }
.red-actions .field { gap: 0.3rem; }
.red-actions input, .red-actions select { padding-block: 0.55rem; font-size: 0.9rem; }
.red-actions .btn { justify-self: start; }
.badge.req { color: var(--accent); border-color: rgba(201,168,76,0.45); background: var(--golddim); text-transform: none; }
.badge.kind { color: var(--text-muted); border-color: rgba(255,255,255,0.2); text-transform: none; }
.pick-list { display: grid; gap: 0.35rem; max-height: 260px; overflow-y: auto; padding: 0.4rem; border-radius: var(--radius); background: var(--navy3); border: 1px solid var(--field-border); }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.92rem; color: var(--text-muted); }
.pick:hover { background: rgba(255,255,255,0.04); }
.pick:has(input:checked) { background: var(--golddim); color: var(--text-bright); }
.pick-bal { font-size: 0.82rem; color: var(--text-dim); font-variant-numeric: lining-nums; }
.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--space-4); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card-bg), var(--navy2); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(13,27,42,0.74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog h2 { margin-top: 0.3rem; }
.dialog-close { float: right; margin: -0.4rem -0.4rem 0 var(--space-2); }

/* ---------- admin "view as merchant" bar ---------- */
.preview-bar { position: sticky; top: var(--header-h); z-index: 45; background: linear-gradient(90deg, rgba(201,168,76,0.22), rgba(201,168,76,0.12)); border-bottom: 1px solid rgba(201,168,76,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.preview-inner { display: flex; gap: var(--space-2); align-items: center; padding-block: 0.55rem; font-size: 0.92rem; color: var(--text); }
.preview-inner > span:nth-child(2) { flex: 1; min-width: 0; }
.preview-inner .muted { margin-left: 0.5rem; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.22); flex-shrink: 0; }
@media (max-width: 639px) { .preview-inner { flex-wrap: wrap; } .preview-inner .muted { display: block; margin-left: 0; } }
@media print { .preview-bar { display: none !important; } }

/* ---------- Home, store and requests polish (2026-10-08) ---------- */
.need { white-space: nowrap; }
.home-pair { display: grid; gap: var(--space-4); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .home-pair { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.activity { display: grid; }
.activity li { display: flex; gap: var(--space-2); align-items: baseline; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity li strong { display: block; font-weight: 500; font-size: 0.95rem; }
.activity li .muted { font-size: 0.82rem; }
.activity li > span { font-family: var(--font-display); font-size: 1.1rem; font-variant-numeric: lining-nums; white-space: nowrap; }
.request-promo { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-color: rgba(201,168,76,0.3); background: linear-gradient(160deg, rgba(201,168,76,0.10), rgba(201,168,76,0.02) 60%), var(--navy2); }
.request-promo h3 { font-size: 1.12rem; margin-top: 0.2rem; }
.request-promo p { font-size: 0.92rem; margin-top: 0.35rem; }
.request-promo .btn-link { display: inline-block; margin-top: 0.35rem; }
.quick-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.quick-grid .quick { flex-direction: column; }
.quick-grid .quick { height: 100%; }

.featured { margin-bottom: var(--space-5); }
.featured-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-card { position: relative; display: block; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); box-shadow: var(--shadow-lg); isolation: isolate; transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(201,168,76,0.45); box-shadow: var(--shadow-gold), var(--shadow-lg); }
.feature-card picture, .feature-card > img { position: absolute; inset: 0; z-index: -2; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.feature-card:hover img { transform: scale(1.04); }
.feature-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,27,42,0.97) 0%, rgba(13,27,42,0.92) 30%, rgba(13,27,42,0.55) 50%, rgba(13,27,42,0) 72%); }
.feature-body .eyebrow { text-shadow: 0 1px 6px rgba(13,27,42,0.9); }
.feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3); }
.feature-body h3 { font-size: 1.3rem; margin-top: 0.25rem; }
.feature-body .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.feature-body .cost { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold); font-variant-numeric: lining-nums; }
.feature-body .cost small { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-muted); margin-left: 0.25rem; }
.feature-body .need { color: var(--text-muted); }
.request-tile { border-style: dashed; border-color: rgba(201,168,76,0.45); background: linear-gradient(160deg, rgba(201,168,76,0.08), rgba(201,168,76,0.0) 70%), var(--navy2); }
.request-tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: var(--space-4) var(--space-3); height: 100%; justify-content: center; }
.request-tile-body p { font-size: 0.92rem; }

.request-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.is-preview .request-summary { top: calc(var(--header-h) + 64px); }
.mini-steps { display: grid; gap: 0.7rem; counter-reset: ms; margin-bottom: var(--space-2); }
.mini-steps li { position: relative; padding-left: 2.1rem; font-size: 0.9rem; color: var(--text-muted); counter-increment: ms; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 600; color: var(--gold); background: var(--golddim); border: 1px solid rgba(201,168,76,0.45); }
.mini-steps strong { color: var(--text); }
.confirm-card { max-width: 760px; margin-inline: auto; }
.confirm-card h1 { margin-top: 0.35rem; }
.confirm-card .icon-chip { margin-bottom: var(--space-2); }

/* ---------- password reset (2026-10-09) ---------- */
.small-link { font-size: 0.84rem; padding: 0; }
.narrow-page { display: grid; place-items: start center; }
.narrow-page .signin-card { margin-top: var(--space-4); }
.link-box { display: flex; gap: 0.5rem; align-items: center; }
.link-box input { font-size: 0.82rem; }

/* ---------- processing (2026-10-09) ---------- */
.proc-stats .big-stat .v { font-size: clamp(2rem, 2vw + 1.1rem, 2.7rem); }
.chg { font-weight: 600; font-variant-numeric: lining-nums; }
.chg.up { color: var(--positive); }
.chg.down { color: var(--negative); }
.chg.flat { color: var(--text-muted); }
.stat-tile .s { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.3rem; }
.proc-chart { color: var(--gold); }
.proc-table tfoot td { border-top: 1px solid rgba(255,255,255,0.12); color: var(--text); font-weight: 500; }
.empty-proc { max-width: 760px; }
.empty-proc h2 { margin-top: var(--space-2); }
.proc-mini { display: block; padding: var(--space-3); }
.proc-mini-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.4rem; flex-wrap: wrap; }
.proc-mini .figure { font-size: 2rem; line-height: 1.1; }
.proc-mini p { font-size: 0.9rem; margin-top: 0.3rem; }
.proc-mini .btn-link { display: inline-block; margin-top: 0.4rem; }

/* ---------- what's new (2026-10-09) ---------- */
.update-list { display: grid; gap: var(--space-3); }
.update-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.update-card h2 { font-size: 1.35rem; margin-top: 0.5rem; }
.update-card p { margin-top: 0.4rem; max-width: 70ch; }
.update-card.is-internal { border-style: dashed; border-color: rgba(255,178,125,0.45); }
@media (max-width: 559px) { .update-card { grid-template-columns: 1fr; } }
.news-mini { padding: var(--space-3); }
.news-list { display: grid; gap: 0.25rem; margin-top: 0.6rem; }
.news-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.6rem; margin: 0 -0.6rem; border-radius: var(--radius); transition: background var(--dur-fast); }
.news-list a:hover { background: rgba(255,255,255,0.04); }
.news-list strong { display: block; font-size: 0.95rem; }
.news-list .muted { display: block; font-size: 0.84rem; margin-top: 0.15rem; }
.icon-chip.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-chip.sm svg { width: 22px; height: 22px; }
.now-next .card.planned { border-style: dashed; border-color: rgba(201,168,76,0.45); }

/* ---------- terms, about, sign-in link (2026-10-15) ---------- */
.terms-card { max-width: 760px; width: 100%; }
.terms-prose { font-size: 1rem; max-width: none; }
.terms-prose h2 { font-size: 1.2rem; margin-top: 1.6rem; }
.terms-prose p, .terms-prose li { line-height: 1.65; }
.terms-prose ul { list-style: none; padding-left: 0; }
.terms-prose ul li { position: relative; padding-left: 1.4rem; }
.terms-prose ul li::before { content: ''; position: absolute; left: 0.2rem; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.who-line { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid rgba(255,255,255,0.08); }
@media print { .terms-card .form, .terms-card .divider:last-of-type, #msg { display: none !important; } }
