/* ==========================================================================
   BIDZ Design System
   Private banking × premium fintech × professional trading terminal.
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --bg: #0b0b0c;
  --bg-raise: #0f0f11;
  --surface: #141416;
  --surface-2: #19191c;
  --surface-3: #202024;
  --line: rgba(243, 239, 230, 0.07);
  --line-2: rgba(243, 239, 230, 0.12);
  --line-3: rgba(243, 239, 230, 0.2);

  --ivory: #f3efe6;
  --text: #e6e1d6;
  --text-2: #b9b3a6;
  --muted: #9d988e;
  --faint: #8b867d;

  --gold: #c9a54c;
  --gold-hi: #e4c77e;
  --gold-lo: #8c6f2e;
  --gold-wash: rgba(201, 165, 76, 0.08);

  --green: #3f7d5c;
  --green-hi: #5fae83;
  --green-wash: rgba(95, 174, 131, 0.1);
  --red: #9c3a3a;
  --red-hi: #d06a62;
  --red-wash: rgba(208, 106, 98, 0.1);
  --blue-hi: #8fa9c9;
  --blue-wash: rgba(143, 169, 201, 0.1);

  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85);

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-fast: 160ms; --t-med: 320ms; --t-slow: 700ms;

  --container: 1200px;
  --header-h: 72px;
  color-scheme: dark;
}

/* ---- 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.6; letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Default size for UI icons (zero specificity so component rules always win). */
:where(svg[focusable="false"]) { width: 1.1em; height: 1.1em; flex: none; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 var(--s-4); }
h1, h2, h3, h4 { margin: 0; color: var(--ivory); font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(201, 165, 76, 0.3); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.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: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.num { font-variant-numeric: tabular-nums; }

/* ---- 3. Typography ------------------------------------------------------ */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
.h-hero { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7.2vw, 96px); line-height: 0.98; letter-spacing: -0.025em; }
.h-1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.h-2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.015em; }
.h-3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.h-4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.h-5 { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.plain::before { display: none; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.ivory { color: var(--ivory); }
.gold { color: var(--gold); }
.italic { font-style: italic; }
.prose { max-width: 72ch; color: var(--text-2); }
.prose h2 { font-family: var(--font-display); font-size: 30px; margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font-size: 17px; font-weight: 600; margin: var(--s-6) 0 var(--s-3); }
.prose p, .prose li { line-height: 1.75; }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ivory); font-weight: 600; }
.prose a, .link { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.prose a:hover, .link:hover { text-decoration-color: var(--gold); }

/* ---- 4. Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }
.container.tight { max-width: 560px; }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section.compact { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head .h-2, .section-head .h-1 { margin: 18px 0 16px; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.stack-lg > * + * { margin-top: var(--s-6); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; }
.mt-0 { margin-top: 0 !important; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.center { text-align: center; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .container { padding: 0 16px; } }

/* ---- 5. Brand marks ----------------------------------------------------- */
.logo { height: 26px; width: auto; }
.logo.lg { height: 44px; }
.logo.xl { height: clamp(52px, 8vw, 84px); }
.mark { height: 30px; width: auto; }
.brand-link { display: inline-flex; align-items: center; padding: 6px 0; }

/* ---- 6. Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: var(--line-3);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: var(--ivory); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { --btn-bg: var(--ivory); --btn-fg: #0b0b0c; --btn-bd: var(--ivory); box-shadow: 0 10px 30px -12px rgba(243, 239, 230, 0.35); }
.btn-primary:hover { --btn-bg: #fffaf0; box-shadow: 0 14px 40px -12px rgba(243, 239, 230, 0.45); }
.btn-gold { --btn-bg: linear-gradient(180deg, var(--gold-hi), var(--gold)); --btn-fg: #1a1406; --btn-bd: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.btn-ghost { --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn-danger { --btn-fg: var(--red-hi); --btn-bd: rgba(208, 106, 98, 0.4); }
.btn-danger:hover { --btn-bg: var(--red-wash); border-color: var(--red-hi); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 11px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 10.5px; letter-spacing: 0.1em; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform var(--t-med) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--bg) transparent var(--bg) transparent; animation: spin 0.8s linear infinite; }
.btn:not(.btn-primary).is-loading::after { border-color: var(--ivory) transparent var(--ivory) transparent; }
.text-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-2); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.text-btn:hover { color: var(--ivory); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 7. Header / navigation -------------------------------------------- */
.announce { background: linear-gradient(90deg, rgba(201, 165, 76, 0.05), rgba(201, 165, 76, 0.12), rgba(201, 165, 76, 0.05)); border-bottom: 1px solid var(--line); text-align: center; font-size: 12.5px; color: var(--text-2); padding: 9px 16px; }
.announce strong { color: var(--gold-hi); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(11, 11, 12, 0.78); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: 13.5px; color: var(--text-2); border-radius: var(--r-pill); transition: color var(--t-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--ivory); position: relative; transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; } .menu-toggle span::after { top: 5px; }
[data-menu-open] .menu-toggle span { background: transparent; }
[data-menu-open] .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
[data-menu-open] .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: rgba(11, 11, 12, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px 16px 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); overflow-y: auto; }
[data-menu-open] .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a.m-link { font-family: var(--font-display); font-size: 32px; color: var(--ivory); padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .m-actions { display: grid; gap: 12px; margin-top: 28px; }
@media (max-width: 960px) {
  .nav, .header-actions .hide-mobile { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-menu { display: none; } }

/* ---- 8. Surfaces / cards ------------------------------------------------ */
.card { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-raise)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-1); }
.card.flat { background: var(--surface); }
.card.pad-sm { padding: var(--s-5); }
.card.pad-lg { padding: clamp(28px, 4vw, 48px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-5); }
.card-head .h-5 { color: var(--ivory); }
.card.interactive { transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.card.interactive:hover { border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card.sheen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(228, 199, 126, 0.35), transparent 35%, transparent 70%, rgba(228, 199, 126, 0.15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.panel + .panel { margin-top: var(--s-5); }
.grid > .panel + .panel { margin-top: 0; }
.list-row > svg { width: 16px; height: 16px; color: var(--muted); }
.badge svg { width: 12px; height: 12px; }
.badge:has(svg)::before { display: none; }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-body { padding: 24px; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 0; }
.kv > div { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.kv > div:nth-child(even) { color: var(--ivory); word-break: break-word; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; font-size: 12px; } }

/* ---- 9. Badges / status ------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255, 255, 255, 0.02); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge.no-dot::before { display: none; }
.badge.ok { color: var(--green-hi); border-color: rgba(95, 174, 131, 0.3); background: var(--green-wash); }
.badge.warn { color: var(--gold-hi); border-color: rgba(228, 199, 126, 0.3); background: var(--gold-wash); }
.badge.bad { color: var(--red-hi); border-color: rgba(208, 106, 98, 0.3); background: var(--red-wash); }
.badge.info { color: var(--blue-hi); border-color: rgba(143, 169, 201, 0.3); background: var(--blue-wash); }
.badge.live::before { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 4px transparent; } }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; background: var(--surface-3); color: var(--text-2); font-family: var(--font-mono); }

/* ---- 10. Forms ---------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.25); color: var(--ivory); font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.select option { background: var(--surface-2); color: var(--ivory); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(228, 199, 126, 0.7); box-shadow: 0 0 0 4px rgba(201, 165, 76, 0.12); background: rgba(0, 0, 0, 0.35); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: rgba(208, 106, 98, 0.7); }
.field-error { font-size: 12.5px; color: var(--red-hi); display: flex; gap: 6px; align-items: center; }
.input-code { font-family: var(--font-mono); font-size: 28px; letter-spacing: 0.5em; text-align: center; padding-left: calc(16px + 0.5em); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 8px 10px; border-radius: var(--r-sm); }
.pw-toggle:hover { color: var(--ivory); }
.pw-rules { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.pw-rules li { display: flex; gap: 8px; align-items: center; transition: color var(--t-fast); }
.pw-rules li::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; border: 1px solid var(--line-3); transition: all var(--t-fast); }
.pw-rules li.ok { color: var(--text-2); }
.pw-rules li.ok::before { background: var(--green-hi); border-color: var(--green-hi); box-shadow: inset 0 0 0 3px var(--surface); }
@media (max-width: 420px) { .pw-rules { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.55; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line-3); border-radius: 5px; background: rgba(0, 0, 0, 0.3); cursor: pointer; display: grid; place-content: center; transition: all var(--t-fast); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform var(--t-fast) var(--ease); }
.check input:checked { background: var(--ivory); border-color: var(--ivory); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.check.boxed { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: rgba(201, 165, 76, 0.03); }
.switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: 0 0 42px; }
.switch input { -webkit-appearance: none; appearance: none; width: 100%; height: 100%; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; transition: background var(--t-fast); }
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.switch input:checked { background: var(--green); border-color: var(--green); }
.switch input:checked::after { transform: translateX(18px); background: var(--ivory); }

/* ---- 11. Alerts --------------------------------------------------------- */
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; color: var(--text); line-height: 1.55; }
.alert .alert-icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; }
.alert strong { color: var(--ivory); }
.alert.ok { border-color: rgba(95, 174, 131, 0.3); background: linear-gradient(0deg, var(--green-wash), var(--green-wash)), var(--surface); }
.alert.ok .alert-icon { color: var(--green-hi); }
.alert.bad { border-color: rgba(208, 106, 98, 0.35); background: linear-gradient(0deg, var(--red-wash), var(--red-wash)), var(--surface); }
.alert.bad .alert-icon { color: var(--red-hi); }
.alert.warn { border-color: rgba(228, 199, 126, 0.3); background: linear-gradient(0deg, var(--gold-wash), var(--gold-wash)), var(--surface); }
.alert.warn .alert-icon { color: var(--gold-hi); }
.alert.info .alert-icon { color: var(--blue-hi); }
.flash { animation: flash-in var(--t-slow) var(--ease) both; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

/* Risk reminder — visible, calm, never alarmist. */
.risk-note { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border: 1px solid rgba(228, 199, 126, 0.18); border-left: 2px solid var(--gold); border-radius: var(--r-md); background: linear-gradient(90deg, rgba(201, 165, 76, 0.06), transparent 70%); font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.risk-note svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--gold); margin-top: 3px; }
.risk-note strong { color: var(--ivory); font-weight: 600; }
.risk-note a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }

/* ---- 12. Tables --------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, 0.01); }
.table td { padding: 15px 20px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.015); }
.table .right { text-align: right; }
.table a.row-link { color: var(--ivory); font-weight: 500; }
.table a.row-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
@media (max-width: 720px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table.responsive td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; }
  .table.responsive td.right { text-align: right; }
}

/* ---- 13. Tabs / segmented / dropdown / tooltip ------------------------ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s-5); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 12px 16px; font-size: 13.5px; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color var(--t-fast); }
.tabs a:hover, .tabs button:hover { color: var(--ivory); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { color: var(--ivory); }
.tabs [aria-selected="true"]::after, .tabs [aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: var(--gold); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.25); flex-wrap: wrap; }
.seg a { padding: 6px 14px; font-size: 12px; border-radius: var(--r-pill); color: var(--muted); transition: all var(--t-fast); }
.seg a:hover { color: var(--ivory); }
.seg a[aria-current="true"] { background: var(--surface-3); color: var(--ivory); }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow-3); z-index: 60; animation: pop var(--t-med) var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-3); color: var(--ivory); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); padding: 6px 10px; border-radius: var(--r-sm); background: var(--ivory); color: var(--bg); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast); z-index: 70; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ---- 14. Modal (native popover: works without JavaScript) ------------ */
.modal[popover] { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; margin: auto; inset: 0; border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); }
.modal[popover]::backdrop { background: rgba(5, 5, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[popover]:popover-open { animation: modal-in var(--t-med) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal-body { padding: 28px; }
.modal-foot { padding: 16px 28px 24px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- 15. Empty / state screens ----------------------------------------- */
.empty { text-align: center; padding: clamp(40px, 6vw, 72px) 24px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 50% 30%, rgba(201, 165, 76, 0.12), transparent 70%); }
.empty-icon svg { width: 22px; height: 22px; }
.empty .h-4 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 42ch; margin: 0 auto 20px; font-size: 14px; }
.state-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 64px 16px; text-align: center; }
.state-code { font-family: var(--font-display); font-size: clamp(96px, 16vw, 180px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--line-3); letter-spacing: -0.04em; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--r-sm); min-height: 14px; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
.page-loader { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.page-loader::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transition: width 0.8s var(--ease), opacity 0.3s; opacity: 0; }
.page-loader.active::after { width: 70%; opacity: 1; }

/* ---- 16. Reveal motion -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 80ms; } .js .reveal.d2 { transition-delay: 160ms; } .js .reveal.d3 { transition-delay: 240ms; } .js .reveal.d4 { transition-delay: 320ms; }
.page-enter { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   PUBLIC SITE
   ========================================================================== */
.bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: 0.55; }
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.glow.gold { background: radial-gradient(circle, rgba(201, 165, 76, 0.25), transparent 70%); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.hero .glow.gold { width: 720px; height: 520px; top: -160px; left: 50%; transform: translateX(-50%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .h-hero { margin: 22px 0 24px; }
.hero-copy .h-hero em { font-style: italic; color: var(--gold-hi); font-weight: 400; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: 12.5px; color: var(--muted); }
.hero-meta strong { display: block; color: var(--ivory); font-size: 14px; font-weight: 600; margin-bottom: 2px; letter-spacing: 0.02em; }
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; } .hero-copy { text-align: left; } }

/* Terminal / chart */
.terminal { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: linear-gradient(180deg, #121214, #0c0c0d); box-shadow: var(--shadow-3), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.term-chart { overflow: hidden; }
.terminal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse 60% 40% at 70% 0%, rgba(201, 165, 76, 0.08), transparent 70%); pointer-events: none; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.term-bar .sym { display: flex; align-items: center; gap: 10px; color: var(--ivory); font-weight: 600; letter-spacing: 0.04em; }
.term-bar .sym .mark { height: 18px; }
.term-bar .tfs { display: flex; gap: 2px; }
.term-bar .tfs span { padding: 3px 8px; border-radius: 5px; font-family: var(--font-mono); font-size: 11px; }
.term-bar .tfs span.on { background: var(--surface-3); color: var(--ivory); }
.term-chart { position: relative; aspect-ratio: 16 / 10; }
.term-chart svg { width: 100%; height: 100%; }
.term-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.demo-label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; border: 1px dashed var(--line-3); color: var(--muted); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.chart-grid line { stroke: rgba(243, 239, 230, 0.05); }
.candle-up { fill: var(--green-hi); stroke: var(--green-hi); }
.candle-dn { fill: var(--red-hi); stroke: var(--red-hi); }
.wick { stroke-width: 1.2; }
.lvl-line { stroke-width: 1.2; stroke-dasharray: 5 5; }
.lvl-entry { stroke: var(--gold-hi); }
.lvl-tp { stroke: var(--green-hi); }
.lvl-sl { stroke: var(--red-hi); }
.zone-tp { fill: rgba(95, 174, 131, 0.07); }
.zone-sl { fill: rgba(208, 106, 98, 0.07); }
.lvl-tag rect { rx: 4; }
.lvl-tag text { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.axis-text { font-family: var(--font-mono); font-size: 10px; fill: var(--faint); }
.signal-pill text { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
/* Chart animation states (driven by .play on the svg) */
.js .term-chart .c { opacity: 0; transform: translateY(6px); transform-box: fill-box; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .term-chart.play .c { opacity: 1; transform: none; }
.js .term-chart .draw { stroke-dashoffset: 600; transition: stroke-dashoffset 1.2s var(--ease), opacity 0.4s; opacity: 0; }
.js .term-chart.stage-2 .draw.entry, .js .term-chart.stage-3 .draw { stroke-dashoffset: 0; opacity: 1; }
.js .term-chart .fade { opacity: 0; transition: opacity 0.7s var(--ease); }
.js .term-chart.stage-1 .fade.s1, .js .term-chart.stage-2 .fade.s2, .js .term-chart.stage-3 .fade.s3, .js .term-chart.stage-2 .fade.s1, .js .term-chart.stage-3 .fade.s1, .js .term-chart.stage-3 .fade.s2 { opacity: 1; }
.term-chart .signal-glow { animation: sig-glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sig-glow { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.1; transform: scale(1.6); } }
.crosshair line { stroke: rgba(243, 239, 230, 0.25); stroke-dasharray: 3 3; }
.crosshair text { font-family: var(--font-mono); font-size: 10px; fill: var(--bg); }
.crosshair rect { fill: var(--ivory); }
.term-toast { position: absolute; right: -22px; top: 64px; z-index: 2; width: min(300px, calc(100% - 32px)); padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(22, 22, 25, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-3); display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--text-2); }
.js .term-toast { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .term-chart.stage-3 + .term-toast, .js .terminal.toast .term-toast { opacity: 1; transform: none; }
.term-toast .t-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; }
.term-toast .t-icon .mark { height: 18px; }
.term-toast strong { display: block; color: var(--ivory); font-size: 12.5px; margin-bottom: 2px; }
.term-toast .t-time { margin-left: auto; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.level-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.level-legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.level-legend i { width: 10px; height: 2px; border-radius: 1px; }
.level-legend .e i { background: var(--gold-hi); } .level-legend .t i { background: var(--green-hi); } .level-legend .s i { background: var(--red-hi); }

@media (max-width: 1280px) { .term-toast { right: 12px; } }
@media (max-width: 640px) { .term-toast { position: static; width: auto; margin: 0 12px 12px; } }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 24px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; color: var(--ivory); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) { .trust .container { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; padding-left: 0; } .trust-item { border-top: 1px solid var(--line); } .trust-item:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 480px) { .trust .container { grid-template-columns: 1fr; } .trust-item { border-left: 0; padding-left: 0; } .trust-item:nth-child(2) { border-top: 1px solid var(--line); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 36px 28px 8px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.1em; }
.step-title { margin: 22px 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 1.2s var(--ease); }
.step + .step::before { left: 28px; }
.js .step.in::before, .no-js .step::before { width: 40px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { padding-left: 0; border-left: 0; } .step:nth-child(3)::before { left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 28px 0 4px; border-left: 0; border-top: 1px solid var(--line); } .step + .step::before { left: 0; } }

/* Features */
.feature { height: 100%; display: flex; flex-direction: column; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold-hi); background: linear-gradient(180deg, rgba(201, 165, 76, 0.08), transparent); margin-bottom: 24px; }
.feature-icon svg { width: 20px; height: 20px; }
.feature .h-4 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* Markets */
.market-card { overflow: hidden; padding: 0; }
.market-card .mc-head { padding: 26px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.market-card .mc-sym { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.market-card .mc-name { font-family: var(--font-display); font-size: 34px; color: var(--ivory); line-height: 1.05; margin-top: 6px; }
.market-card .mc-body { padding: 16px 26px 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.market-card .mc-spark { height: 110px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25)); }
.market-card .mc-spark svg { width: 100%; height: 100%; }
.market-card .mc-tfs { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }

/* Structure vs outcome */
.responsibility { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.responsibility > div { background: var(--surface); padding: 32px 26px; position: relative; }
.responsibility .who { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.responsibility .who.bidz { color: var(--gold); } .responsibility .who.you { color: var(--blue-hi); } .responsibility .who.mkt { color: var(--muted); }
.responsibility h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.responsibility p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
@media (max-width: 900px) { .responsibility { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .responsibility { grid-template-columns: 1fr; } }

/* Risk section */
.risk-section { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(201, 165, 76, 0.07), transparent 60%), var(--surface); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); }
.risk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.risk-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.risk-list li:last-child { border-bottom: 0; }
.risk-list li span { font-family: var(--font-display); color: var(--gold); font-size: 16px; }
.example-box { margin-top: 24px; padding: 20px; border-radius: var(--r-md); border: 1px dashed var(--line-3); font-size: 14px; color: var(--text-2); line-height: 1.7; }
.example-box .label { display: block; margin-bottom: 8px; color: var(--gold); }
@media (max-width: 900px) { .risk-section { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.price-card { position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 165, 76, 0.1), transparent 60%), linear-gradient(180deg, #17171a, #0f0f11); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); }
.price-card .plan { display: flex; justify-content: space-between; align-items: center; }
.price-amount { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 6px; }
.price-amount .amt { font-family: var(--font-display); font-size: clamp(58px, 7vw, 76px); line-height: 1; color: var(--ivory); letter-spacing: -0.02em; }
.price-amount .per { color: var(--muted); font-size: 14px; }
.check-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.check-list li svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-hi); }
@media (max-width: 900px) { .pricing-wrap { grid-template-columns: 1fr; } }

/* Performance */
.perf-card .perf-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.metric-grid > div { background: var(--surface); padding: 16px; }
.metric-grid .m-label { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.metric-grid .m-value { font-family: var(--font-display); font-size: 28px; color: var(--ivory); margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .metric-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 17px; font-weight: 500; color: var(--ivory); transition: color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary .pm { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform var(--t-med) var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 70ch; line-height: 1.75; font-size: 15px; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px); text-align: center; border: 1px solid var(--line-2); background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(201, 165, 76, 0.16), transparent 70%), var(--surface); }
.cta-band .h-1 { margin: 16px auto 18px; max-width: 16ch; }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 56px); overflow: hidden; }
.page-hero .h-1 { margin: 18px 0 18px; max-width: 18ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { font-size: 14px; color: var(--text-2); transition: color var(--t-fast); }
.footer-grid a:hover { color: var(--ivory); }
.footer-risk { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.footer-risk strong { color: var(--text-2); }
.footer-base { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-aside { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(201, 165, 76, 0.1), transparent 60%), var(--bg-raise); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside .quote { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: 1.12; color: var(--ivory); max-width: 15ch; }
.auth-aside .quote em { color: var(--gold-hi); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-card .h-2 { margin: 14px 0 10px; }
.auth-card .form { margin-top: 28px; }
.auth-foot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--ivory); font-weight: 500; }
.auth-mobile-brand { display: none; margin-bottom: 32px; }
.auth.wide .auth-card { max-width: 520px; }
.auth-steps { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-steps span { height: 2px; flex: 1; background: var(--line-2); border-radius: 1px; }
.auth-steps span.on { background: var(--gold); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(95, 174, 131, 0.4); background: radial-gradient(circle, rgba(95, 174, 131, 0.16), transparent 70%); color: var(--green-hi); }
.success-mark svg { width: 26px; height: 26px; }
.js .success-mark svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.8s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.qr { width: 184px; height: 184px; padding: 12px; background: #fff; border-radius: var(--r-md); }
.qr svg { width: 100%; height: 100%; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: var(--font-mono); font-size: 14px; padding: 18px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); color: var(--ivory); }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: block; }
  .auth-main { justify-content: flex-start; padding-top: 40px; }
}

/* ==========================================================================
   APP SHELL (customer + admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg-raise); padding: 22px 14px; overflow-y: auto; }
.sidebar .sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 26px; }
.sidebar .sb-brand .logo { height: 22px; }
.sb-section { font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 8px; }
.sb-nav { display: grid; gap: 2px; }
.sb-nav a, .sb-nav button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-md); font-size: 14px; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.sb-nav a svg, .sb-nav button svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted); transition: color var(--t-fast); }
.sb-nav a:hover, .sb-nav button:hover { background: var(--surface-2); color: var(--ivory); }
.sb-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ivory); box-shadow: inset 2px 0 0 var(--gold); }
.sb-nav a[aria-current="page"] svg { color: var(--gold-hi); }
.sb-nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sb-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.sb-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2a261c, #16140f); border: 1px solid rgba(201, 165, 76, 0.35); color: var(--gold-hi); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.sb-user .who { min-width: 0; }
.sb-user .who strong { display: block; font-size: 13.5px; color: var(--ivory); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); background: rgba(11, 11, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar .crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; }
.topbar .crumbs strong { color: var(--ivory); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .t-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-grid; place-items: center; color: var(--text-2); background: transparent; cursor: pointer; transition: all var(--t-fast); }
.icon-btn:hover { color: var(--ivory); border-color: var(--line-3); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bg); }
.app-content { padding: clamp(20px, 3vw, 40px); max-width: 1180px; width: 100%; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.page-title .h-2 { margin-top: 10px; }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.stat { padding: 22px; }
.stat .s-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stat .s-value { font-family: var(--font-display); font-size: 36px; line-height: 1.1; color: var(--ivory); margin-top: 12px; font-variant-numeric: tabular-nums; }
.stat .s-sub { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.status-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.status-hero > div { background: linear-gradient(180deg, var(--surface), var(--bg-raise)); padding: 22px; }
.status-hero .k { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.status-hero .v { font-size: 15px; color: var(--ivory); font-weight: 500; }
@media (max-width: 1024px) { .status-hero { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .status-hero { grid-template-columns: 1fr; } }
.list-row { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .lr-main { min-width: 0; flex: 1; }
.list-row .lr-title { color: var(--ivory); font-size: 14.5px; font-weight: 500; }
.list-row .lr-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.list-row.unread .lr-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
a.list-row { transition: background var(--t-fast); }
a.list-row:hover { background: rgba(255, 255, 255, 0.015); }
.thread { display: grid; gap: 16px; }
.msg { max-width: 760px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.msg.admin { border-color: rgba(201, 165, 76, 0.25); background: linear-gradient(180deg, rgba(201, 165, 76, 0.05), transparent), var(--surface); margin-left: clamp(0px, 5vw, 64px); }
.msg .msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.msg .msg-head strong { color: var(--ivory); font-weight: 600; }
.msg .msg-body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.attach { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.attach:hover { color: var(--ivory); border-color: var(--line-3); }
.guide-steps { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.guide-steps li { counter-increment: g; position: relative; padding: 0 0 26px 52px; }
.guide-steps li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; color: var(--gold); }
.guide-steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 6px; width: 1px; background: var(--line); }
.guide-steps li:last-child::after { display: none; }
.guide-steps strong { display: block; color: var(--ivory); font-weight: 600; margin-bottom: 4px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.locked { position: relative; }
.locked-overlay { display: grid; place-items: center; text-align: center; padding: 56px 24px; }
.mobile-bar { display: none; }
.drawer-backdrop { display: none; }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform var(--t-med) var(--ease); box-shadow: var(--shadow-3); }
  [data-drawer-open] .sidebar { transform: none; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity var(--t-med), visibility 0s linear var(--t-med); }
  [data-drawer-open] .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
  .mobile-bar { display: inline-grid; }
}

/* Admin accents */
.admin-env { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(208, 106, 98, 0.12); color: var(--red-hi); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.perm-grid { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(64px, 1fr)); font-size: 13px; }
.perm-grid > div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.perm-grid .ph { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.perm-grid .ph:first-child { text-align: left; }
.perm-grid .pc { text-align: center; }
.perm-grid .yes { color: var(--green-hi); } .perm-grid .no { color: var(--faint); }
.perm-grid .pc svg { width: 16px; height: 16px; margin: 0 auto; }
.perm-grid > div:not(.ph):not(.pc) { min-width: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bar-chart .b { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold), rgba(201, 165, 76, 0.25)); min-height: 2px; position: relative; }
.bar-labels { display: flex; gap: 6px; margin-top: 8px; }
.bar-labels span { flex: 1; text-align: center; font-size: 10.5px; color: var(--faint); font-family: var(--font-mono); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { min-height: 40px; padding: 8px 14px; font-size: 14px; width: auto; }
.filters .select { padding-right: 36px; background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; }
.filters .input { min-width: 240px; }
@media (max-width: 560px) { .filters .input, .filters .select { width: 100%; min-width: 0; } }
.danger-zone { border-color: rgba(208, 106, 98, 0.25); }

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .term-chart .c, .js .term-chart .fade, .js .term-chart .draw, .js .term-toast { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* ---- Print (legal pages) ----------------------------------------------- */
@media print {
  .site-header, .site-footer, .announce, .sidebar, .topbar { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose strong { color: #000; }
}

/* Three-up groups never orphan a card: 3 columns, then 1. */
@media (max-width: 1024px) and (min-width: 861px) { .grid-3.grid-markets { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-markets .market-card .mc-name { font-size: 28px; } }
@media (max-width: 860px) { .grid-3.grid-markets { grid-template-columns: minmax(0, 1fr); } }
.cta-band .lead, .state-page .lead, .card.center .lead { margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas, .state-page .hero-ctas { justify-content: center; }
.cta-band .glow.gold { width: 600px; height: 300px; left: 50%; bottom: -160px; transform: translateX(-50%); }
.card.center .empty-icon { margin-left: auto; margin-right: auto; }
.demo-label { white-space: nowrap; }
@media (max-width: 640px) {
  .term-bar .tfs, .term-bar .sym .muted { display: none; }
  .term-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
/* Figures: lining + tabular so numbers never read as letters (Cormorant defaults to old-style). */
.num, .stat .s-value, .metric-grid .m-value, .price-amount .amt, .state-code, .step-num, .guide-steps li::before { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.stat .s-value { font-family: var(--font-sans); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; }
.input[type="file"] { padding: 9px 10px; min-height: 50px; color: var(--muted); font-size: 13px; cursor: pointer; }
.input[type="file"]::file-selector-button { margin-right: 14px; height: 30px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-3); background: var(--surface-3); color: var(--ivory); font: 600 11px/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: border-color var(--t-fast); }
.input[type="file"]::file-selector-button:hover { border-color: var(--ivory); }
.nowrap { white-space: nowrap; }

/* ---- Proof (live accounts + backtests) --------------------------------- */
.proof-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proof-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0d0d0f; }
.proof-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.8s var(--ease); }
.proof-img:hover img { transform: scale(1.03); }
.proof-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.proof-body .perf-meta { margin-bottom: 14px; }
.proof-stats { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 18px 0 14px; }
.proof-stats .m-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.proof-stats .m-value { font-size: 17px; color: var(--ivory); margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.proof-body .btn { align-self: flex-start; margin-top: auto; }
.proof-thumb { width: 72px; height: 45px; flex: 0 0 72px; border-radius: var(--r-sm); border: 1px solid var(--line-2); object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.proof-thumb svg { width: 16px; height: 16px; }
.eyebrow.plain.h-5 { color: var(--muted); }
/* Setup legend (How it works) */
.legend-list { display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; margin: 24px 0 0; }
.legend-list dt { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); }
.legend-list dt.gold { color: var(--gold-hi); } .legend-list dt.tp { color: var(--green-hi); } .legend-list dt.sl { color: var(--red-hi); }
.legend-list dd { margin: 0; color: var(--text-2); }
.proof-block + .proof-block { margin-top: clamp(56px, 7vw, 96px); }
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.proof-card.is-chart .proof-body { padding: 16px 20px 18px; }
.proof-card.is-chart .proof-img { aspect-ratio: 16 / 9; }
.proof-card.is-chart .proof-img img { object-position: center; }
.proof-img { position: relative; cursor: zoom-in; }
.proof-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11, 11, 12, 0.35)); pointer-events: none; }
/* Lightbox (CSS :target, no JavaScript) */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: clamp(16px, 4vw, 48px); background: rgba(6, 6, 7, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox:target { display: grid; animation: page-in 0.35s var(--ease) both; }
.lightbox .lb-bg { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox figure { position: relative; margin: 0; max-width: min(1500px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; margin: 0 auto; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); letter-spacing: 0.02em; }
.lightbox .lb-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-3); display: grid; place-items: center; color: var(--ivory); background: rgba(20, 20, 22, 0.8); }
.lightbox .lb-x svg { width: 18px; height: 18px; }
/* Funded-account screenshots are portrait phone captures */
.proof-card.is-account .proof-img { aspect-ratio: 3 / 4; }
.proof-card.is-account .proof-img img { object-position: top center; }
/* Free trial */
.trial-card { border-color: rgba(201, 165, 76, 0.28); background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(201, 165, 76, 0.08), transparent 60%), var(--surface); }
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r-lg); border: 1px solid rgba(201, 165, 76, 0.3); background: linear-gradient(90deg, rgba(201, 165, 76, 0.1), transparent 70%), var(--surface); transition: border-color var(--t-med) var(--ease); }
.trial-banner:hover { border-color: var(--gold); }
.trial-banner > span:first-child { display: grid; gap: 4px; }
.trial-banner strong { color: var(--ivory); font-size: 16px; font-weight: 600; }
.select.select-xs { min-height: 30px; padding: 4px 30px 4px 10px; font-size: 12px; width: auto; background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; }

/* Launch offer */
.price-offer { margin: 22px 0 6px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(201, 165, 76, 0.28); background: linear-gradient(180deg, rgba(201, 165, 76, 0.08), rgba(201, 165, 76, 0.02)); font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.price-offer .eyebrow { display: block; margin-bottom: 6px; }
.offer-note { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(201, 165, 76, 0.28); background: rgba(201, 165, 76, 0.05); font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* Two ways to start */
.choose-head { max-width: 640px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(20px, 2.5vw, 32px); align-items: start; }
.choice-grid.single { grid-template-columns: minmax(0, 580px); }
.choice-grid > .card { height: 100%; }
.choice-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.check-list.compact { margin: 20px 0 4px; gap: 9px; }
.check-list.compact li { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 980px) { .choice-grid, .choice-grid.single { grid-template-columns: minmax(0, 1fr); } }

/* Hero scene: a setup forming under a single gold light (public/js/hero-scene.js).
   Without JavaScript, or with reduced motion before the script runs, the static card shows. */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-inner { z-index: 1; }
.hero.scene-live .hero-stage .terminal { visibility: hidden; }
.hero.scene-live .glow.gold { opacity: 0; }
.hero.scene-live .bg-grid { opacity: 0.08; }

/* Above the fold, text rises in with CSS alone so the headline never waits on a script. */
.rise { animation: rise 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 80ms; } .rise.d2 { animation-delay: 160ms; } .rise.d3 { animation-delay: 240ms; } .rise.d4 { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

/* BIDZ assistant */
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; min-height: min(760px, calc(100vh - 220px)); }
.chat-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raise); min-height: 0; }
.chat-search .input { width: 100%; }
.chat-items { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; flex: 1; }
.chat-item { display: block; padding: 10px 12px; border-radius: var(--r-md); color: var(--text-2); border: 1px solid transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.chat-item:hover { background: var(--surface); }
.chat-item.on { background: var(--surface-2); border-color: var(--line-2); color: var(--ivory); }
.chat-item .ci-title { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .ci-meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.chat-item.unread .ci-title { color: var(--ivory); font-weight: 600; }
.chat-item.unread .ci-title::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: middle; }
.chat-empty { padding: 6px 4px; }
.chat-ticket-link { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 10px 4px 0; border-top: 1px solid var(--line); }
.chat-ticket-link:hover { color: var(--ivory); }
.chat-ticket-link svg { width: 15px; height: 15px; }
.chat-main { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, #121214, #0d0d0e); min-height: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-id { display: flex; align-items: center; gap: 12px; }
.chat-id strong { display: block; color: var(--ivory); font-size: 14px; }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-wash); border: 1px solid rgba(201, 165, 76, 0.3); color: var(--gold-hi); }
.chat-avatar svg { width: 16px; height: 16px; }
.chat-mode { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; scroll-behavior: smooth; }
.bubble { max-width: min(640px, 88%); padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.6; }
.bubble.user { align-self: flex-end; background: var(--ivory); color: #121214; border-bottom-right-radius: 5px; }
.bubble.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-bottom-left-radius: 5px; }
.bubble-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-by { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.bubble-time { display: block; font-size: 10.5px; opacity: 0.55; margin-top: 6px; }
.bubble.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.bubble.typing[hidden] { display: none; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); animation: typing 1.2s infinite ease-in-out; }
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; } .bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bubble.typing span { animation: none; opacity: 0.7; } }
.chat-welcome { margin: auto 0; text-align: center; padding: 20px 8px; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { font: inherit; font-size: 13px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast); }
.chip:hover { border-color: var(--gold); color: var(--ivory); }
.chat-compose { border-top: 1px solid var(--line); padding: 14px 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea { flex: 1; resize: none; min-height: 44px; max-height: 180px; line-height: 1.5; }
.support-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.support-way { display: block; transition: border-color var(--t-fast), transform var(--t-fast); }
.support-way:hover { border-color: rgba(201, 165, 76, 0.4); transform: translateY(-2px); }
@media (max-width: 900px) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat-list { max-height: 240px; }
  .support-ways { grid-template-columns: minmax(0, 1fr); }
}

/* AI Control Center */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.agent-row .lr-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.text-bad { color: var(--red-hi); }
