/* =========================================================================
   Phoenix Trader Funding · My Account
   Design system + shell. Plain CSS, React-port friendly (BEM-ish classes).
   ========================================================================= */

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* Brand · orange accent only */
  --accent: #ff5b2e;
  --accent-2: #ff8a4c;
  --gold: #ffc24a;
  --accent-soft: rgba(255, 91, 46, 0.13);
  --accent-line: rgba(255, 91, 46, 0.4);
  --ember: linear-gradient(135deg, #ff5b2e, #ff7a3d);

  /* Surfaces (cool near-black) */
  --bg: #0a0c11;
  --bg-grad: none;
  --surface-1: #11141b;
  --surface-2: #161a22;
  --surface-3: #1d222c;
  --elevated: #1a1f29;

  /* Lines & text (cool) */
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --txt: #f2f5f9;
  --txt-2: #aab2c0;
  --txt-3: #79828f;

  /* Status */
  --pass: #36d399;
  --pass-soft: rgba(54, 211, 153, 0.13);
  --warn: #ffb23e;
  --warn-soft: rgba(255, 178, 62, 0.13);
  --fail: #ff5462;
  --fail-soft: rgba(255, 84, 98, 0.13);
  --info: #6aa8ff;

  /* Geometry */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --rail-w: 256px;
  --rail-w-collapsed: 76px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 16px 36px -26px rgba(0,0,0,0.8);
  --shadow-lg: 0 36px 72px -38px rgba(0,0,0,0.86);
  --glow: none;
  --glow-soft: none;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------- Reset ------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  letter-spacing: -0.011em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* cloak until webfonts are ready so the app fades in clean (no font-swap reflow
     flash). boot.js + a hard-timeout fallback in index.html add .is-ready. */
  opacity: 0;
}
body.is-ready { opacity: 1; transition: opacity 0.28s ease; }
.reduced-motion body.is-ready, .reduced-motion body { transition: none; }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", "Inter", sans-serif; letter-spacing: -0.028em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: var(--accent-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; }

/* ----------------------------- App grid --------------------------------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--bg-grad);
  transition: grid-template-columns 0.32s var(--ease);
}
.app.is-collapsed { grid-template-columns: var(--rail-w-collapsed) 1fr; }
/* rail becomes a fixed overlay below (out of grid flow), so main fills the row */
.app.is-immersive { grid-template-columns: 1fr; }
.app.is-immersive .main { grid-column: 1 / -1; }

/* Immersive views (Web Trading / Odin / Journal): the rail opens as an overlay
   on top of the embedded app instead of pushing layout, so the hamburger works. */
.app.is-immersive .rail {
  position: fixed; left: 0; top: 64px; bottom: 0; width: var(--rail-w); z-index: 50;
  transform: translateX(-100%); transition: transform 0.3s var(--ease);
  background: var(--surface-1); border-right: 1px solid var(--line-strong);
}
.app.is-immersive.is-railopen .rail { transform: translateX(0); box-shadow: var(--shadow-lg); }
.app.is-immersive.is-railopen::before {
  content: ""; position: fixed; inset: 64px 0 0 0; background: rgba(5,7,10,0.55); z-index: 49;
}
@media (max-width: 860px) { .app.is-immersive .rail, .app.is-immersive.is-railopen::before { top: 0; } .app.is-immersive.is-railopen::before { inset: 0; } }

/* ----------------------------- Left rail -------------------------------- */
.rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-1), #0d1016);
  padding: 16px 14px 14px;
  overflow: hidden;
  min-width: 0;
}
.rail__brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 11px; color: #fff;
  background: var(--accent);
}
.brand-mark--app { background: var(--surface-3); color: var(--accent); box-shadow: none; border: 1px solid var(--line-strong); }
.brand-mark--logo { background: none; box-shadow: none; border: none; }
.brand-mark--logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text strong { font-size: 15px; font-weight: 600; }
.brand-text span { font-size: 11px; color: var(--txt-3); letter-spacing: 0.04em; text-transform: uppercase; }
.rail__collapse {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; color: var(--txt-3);
  display: grid; place-items: center; transition: 0.18s var(--ease);
}
.rail__collapse:hover { background: var(--surface-3); color: var(--txt); }

.rail__nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; padding-right: 2px; }
.rail__label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--txt-3); font-weight: 600; padding: 16px 10px 7px; white-space: nowrap;
}
.navitem {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 11px;
  border-radius: 11px; color: var(--txt-2); font-size: 14px; font-weight: 500;
  position: relative; transition: background 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.navitem svg { width: 19px; height: 19px; flex: 0 0 19px; }
.navitem__logo { width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; }
.navitem:hover { background: var(--surface-2); color: var(--txt); }
.navitem.is-active { background: var(--accent-soft); color: #ffd9c9; }
.navitem.is-active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.navitem.is-active svg { color: var(--accent); }
.navitem__count {
  margin-left: auto; font-size: 11px; font-style: normal; font-weight: 600;
  background: var(--surface-3); color: var(--txt-2); padding: 1px 8px; border-radius: 20px;
}
.navitem.is-active .navitem__count { background: rgba(255,91,46,0.22); color: #ffd9c9; }

.rail__cta { padding: 12px 2px 10px; }
.rail__user {
  display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 13px;
  border: 1px solid var(--line); cursor: pointer; transition: 0.16s var(--ease);
}
.rail__user:hover { background: var(--surface-2); border-color: var(--line-strong); }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(150deg, #3a4150, #20242e); border: 1px solid var(--line-strong);
}
.rail__user-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rail__user-meta strong { font-size: 13px; font-weight: 600; }
.rail__user-meta span { font-size: 11px; color: var(--txt-3); overflow: hidden; text-overflow: ellipsis; }
.rail__user-caret { margin-left: auto; color: var(--txt-3); flex: 0 0 16px; }

/* ---- Smooth expand / collapse motion ----------------------------------------
   The .app `grid-template-columns` transition (above) eases the RAIL WIDTH; these
   coordinate the inner reflow so the labels, brand gap and collapse arrow animate
   in step instead of snapping. Labels fade via opacity; the auto<->0 `width` change
   (which can't tween) is deferred with `width 0s <delay>` so the fade is actually
   seen: on collapse the width drops AFTER the fade-out, on expand it restores
   BEFORE the fade-in. */
.rail__collapse svg { transition: transform 0.34s var(--ease); }
.rail__brand { transition: gap 0.3s var(--ease); }
.brand-text, .rail__label, .navitem span, .navitem__count,
.rail__user-meta, .rail__user-caret, .btn--block span {
  transition: opacity 0.16s var(--ease), width 0s linear 0.17s;
}
.app:not(.is-collapsed) .brand-text,
.app:not(.is-collapsed) .rail__label,
.app:not(.is-collapsed) .navitem span,
.app:not(.is-collapsed) .navitem__count,
.app:not(.is-collapsed) .rail__user-meta,
.app:not(.is-collapsed) .rail__user-caret,
.app:not(.is-collapsed) .btn--block span {
  transition: opacity 0.24s var(--ease) 0.12s, width 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .app, .rail__collapse svg, .rail__brand,
  .brand-text, .rail__label, .navitem span, .navitem__count,
  .rail__user-meta, .rail__user-caret, .btn--block span { transition: none; }
}

/* Collapsed rail */
.app.is-collapsed .brand-text,
.app.is-collapsed .rail__label,
.app.is-collapsed .navitem span,
.app.is-collapsed .navitem__count,
.app.is-collapsed .rail__user-meta,
.app.is-collapsed .rail__user-caret,
.app.is-collapsed .btn--block span { opacity: 0; pointer-events: none; width: 0; }
.app.is-collapsed .navitem { justify-content: center; padding: 0; }
/* keep the toggle reachable when collapsed so the rail can be expanded again */
.app.is-collapsed .rail__brand { justify-content: center; }
.app.is-collapsed .brand-mark { display: none; }
.app.is-collapsed .rail__collapse { margin-left: 0; }
.app.is-collapsed .rail__collapse svg { transform: rotate(180deg); }
.app.is-collapsed .rail__user { justify-content: center; }
.app.is-collapsed .btn--block { justify-content: center; }
.app.is-collapsed .rail__label { padding: 14px 0 4px; text-align: center; height: 1px; overflow: hidden; }
/* DESKTOP collapse only (on mobile, .is-collapsed means the rail opens as a
   full-width overlay with labels, so the icon-button sizing must NOT apply there).
   Each item becomes a centered fixed square so the active item reads as a clean
   highlight, not a full-width coral bar, and the orphaned accent bar is hidden. */
@media (min-width: 861px) {
  .app.is-collapsed .navitem { width: 44px; height: 44px; margin: 0 auto; gap: 0; }
  .app.is-collapsed .navitem.is-active { color: var(--accent); }
  .app.is-collapsed .navitem.is-active::before { display: none; }
  /* the count badge keeps margin-left:auto even when hidden, which shoves the
     Accounts icon off-center; fully remove it from flow (matches navitem__tag). */
  .app.is-collapsed .navitem__count { display: none; }
  /* flex gaps from the hidden brand-text / user-meta + the caret's margin-left:auto
     were offsetting the expand arrow and the LG avatar; collapse the gaps + drop the caret. */
  .app.is-collapsed .rail__brand { gap: 0; }
  .app.is-collapsed .rail__user { width: 48px; height: 48px; padding: 0; margin: 0 auto; gap: 0; }
  .app.is-collapsed .rail__user-caret { display: none; }
  .app.is-collapsed .rail__cta { padding: 12px 0 10px; }
  .app.is-collapsed .rail__cta .btn--block { width: 48px; height: 48px; padding: 0; margin: 0 auto; }
  .app.is-collapsed .rail__label { padding: 10px 0 2px; }
}

/* ----------------------------- Main / topbar ---------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 68px; padding: 0 28px; border-bottom: 1px solid var(--line);
  background: rgba(13,16,22,0.72); backdrop-filter: blur(18px); flex: 0 0 68px; z-index: 5;
}
.topbar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .topbar__menu { display: none; } /* desktop: hidden (the in-rail arrow handles collapse). Specificity beats .iconbtn's display:grid */
.topbar__title { min-width: 0; }
.topbar__title h1 { font-size: 19px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.topbar__title p { font-size: 12.5px; color: var(--txt-3); margin-top: 2px; }
.topbar__right { display: flex; align-items: center; gap: 12px; }

.eod {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-1); font-size: 12.5px;
}
.eod__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s infinite; }
.eod__label { color: var(--txt-3); }
.eod__time { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.search {
  display: flex; align-items: center; gap: 8px; height: 38px; width: 190px; padding: 0 11px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-1);
  color: var(--txt-3); transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.search svg { flex: 0 0 auto; }
.search:focus-within { border-color: var(--accent-line); background: var(--surface-2); }
.search input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 13.5px; }
.search input::placeholder { color: var(--txt-3); }

.iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface-1); color: var(--txt-2); transition: 0.16s var(--ease);
}
.iconbtn:hover { background: var(--surface-3); color: var(--txt); border-color: var(--line-strong); }
.iconbtn__badge { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface-1); }

.outlet { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 28px; scroll-behavior: smooth; }
.outlet.is-flush { padding: 0; }

/* View enter animation */
.view { animation: viewIn 0.42s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 550;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--txt);
  transition: transform 0.12s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn:active { transform: scale(0.975); }
.btn svg { width: 17px; height: 17px; }
.btn--accent {
  background: var(--accent); color: #fff; border-color: transparent;
}
.btn--accent:hover { background: #ff6c43; }
.btn--payout { background: #19c37d; color: #06231a; border-color: transparent; font-weight: 650; }
.btn--payout:hover { background: #1fd389; }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
/* attention pulse (e.g. "Reset account" on a failed account) */
.btn--pulse { animation: btnPulse 2s var(--ease) infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,91,46,0.55); }
  60% { box-shadow: 0 0 0 9px rgba(255,91,46,0); }
}
.reduced-motion .btn--pulse { animation: none; }
/* Odin "Trade" CTA · dark with a warm accent edge so the Odin mark reads (not flat orange) */
.btn--odin {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 15%, var(--surface-2)), var(--surface-2));
  border: 1px solid var(--accent-line); color: var(--txt);
  box-shadow: 0 10px 26px -18px rgba(255, 91, 46, 0.55);
}
.btn--odin:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 26%, var(--surface-2)), var(--surface-2)); border-color: var(--accent); }
.btn--odin .btn__logo { border-radius: 4px; }
.btn--danger { color: #ffc4c9; border-color: rgba(255,84,98,0.35); background: var(--fail-soft); }
.btn--danger:hover { background: rgba(255,84,98,0.2); }
.btn--block { width: 100%; }
.btn--sm { height: 33px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ----------------------------- Generic blocks --------------------------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 17px; }
.section-head p { font-size: 13px; color: var(--txt-3); margin-top: 3px; }
.muted { color: var(--txt-3); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.pill--pass { color: var(--pass); background: var(--pass-soft); } .pill--pass .dot { background: var(--pass); }
.pill--warn { color: var(--warn); background: var(--warn-soft); } .pill--warn .dot { background: var(--warn); }
.pill--fail { color: var(--fail); background: var(--fail-soft); } .pill--fail .dot { background: var(--fail); }
.pill--funded { color: #fff; background: linear-gradient(150deg, var(--accent), #e0431f); }

/* Tabs */
.tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 13px; background: var(--surface-1); border: 1px solid var(--line); }
.tab {
  height: 32px; padding: 0 15px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--txt-3);
  display: inline-flex; align-items: center; gap: 7px; transition: 0.16s var(--ease);
}
.tab:hover { color: var(--txt); }
.tab.is-active { background: var(--surface-3); color: var(--txt); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset; }
.tab em { font-style: normal; font-size: 11px; color: var(--txt-3); }

/* ----------------------------- Overview --------------------------------- */
.grid { display: grid; gap: 18px; }
.hero {
  position: relative; overflow: hidden; padding: 26px 28px;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.hero::after { display: none; }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.hero h2 { font-size: 24px; }
.hero p { color: var(--txt-2); font-size: 14px; margin-top: 6px; max-width: 52ch; }
.hero__actions { display: flex; gap: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 18px 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); position: relative; overflow: hidden;
}
.stat__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.stat__ico svg { width: 18px; height: 18px; }
.stat__val { font-size: 27px; font-family: "Bricolage Grotesque"; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12.5px; color: var(--txt-3); margin-top: 7px; }
.stat__delta { font-size: 12px; font-weight: 600; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.stat__delta.up { color: var(--pass); } .stat__delta.down { color: var(--fail); }

/* ----------------------------- KPI ribbon (Overview) -------------------- */
.kpibar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  position: relative; overflow: hidden;
}
.kpibar::before { /* slim top accent so the ribbon reads as a deliberate band */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(255,91,46,0) 48%);
}
.kpibar__cell {
  --c: var(--txt-3);
  padding: 24px 26px 22px; display: flex; flex-direction: column; position: relative;
  transition: background 0.18s var(--ease);
}
.kpibar__cell + .kpibar__cell { border-left: 1px solid var(--line); }
.kpibar__cell:hover { background: rgba(255,255,255,0.018); }
.kpibar__cell--ok { --c: var(--pass); }
.kpibar__cell--accent { --c: var(--accent); }
.kpibar__cell--warn { --c: var(--warn); }
.kpibar__cell--info { --c: var(--info); }
.kpibar__cell--mute { --c: var(--txt-3); }
.kpibar__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt-3); font-weight: 600; }
.kpibar__value {
  font-family: "Bricolage Grotesque"; font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1;
  letter-spacing: -0.03em; margin: 14px 0 15px; font-variant-numeric: tabular-nums; color: var(--txt);
}
.kpibar__meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--c); }
.kpibar__meta--idle { color: var(--txt-3); }
.kpibar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.kpibar__cell--ok .kpibar__dot { animation: pulse 2.6s infinite; }
.kpibar__meta.down { color: var(--fail); }
.kpibar__cell[data-nav-to] { cursor: pointer; }
/* overview · slim welcome + sparkline band beneath the KPI ribbon */
/* Overview greeting (replaces .snap-band) · a clean, static welcome. The only
   dynamic text is the first name; nothing duplicates the sidebar or the ribbon. */
.ovhello { padding: clamp(26px, 3.4vw, 40px) clamp(24px, 3vw, 36px); }
.ovhello__greet { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; font-size: clamp(28px, 3.8vw, 46px); color: var(--txt); margin: 0; }
.ovhello__name { color: var(--accent); }

/* "Become a Phoenix funded trader" · 4 account-family cards (Classic/Phoenix Daily/Spark/Merit).
   One inline --b per card drives every accent via color-mix (single-brand, no rainbow).
   auto-fit so it is 4-up on wide screens and wraps to 2-up / 1-up as space shrinks. */
.afam-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; align-items: stretch; margin-top: 4px; }
.afam-card { position: relative; display: flex; flex-direction: column; gap: 13px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); overflow: hidden; cursor: pointer; transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .2s var(--ease); }
.afam-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--b); }
.afam-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--b) 45%, var(--line)); box-shadow: 0 20px 44px -26px color-mix(in srgb, var(--b) 70%, transparent); }
.afam-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--b) 60%, transparent); outline-offset: 2px; }
.afam-card__head { display: flex; align-items: center; gap: 10px; }
.afam-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; color: var(--b); background: color-mix(in srgb, var(--b) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--b) 35%, transparent); }
.afam-mark img { width: 22px; height: 22px; object-fit: contain; } .afam-mark svg { width: 22px; height: 22px; }
.afam-name { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: 16.5px; line-height: 1.1; letter-spacing: -0.028em; min-width: 0; }
.afam-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; color: var(--b); background: color-mix(in srgb, var(--b) 16%, transparent); white-space: nowrap; }
.afam-tag { font-size: 13.5px; font-weight: 550; color: var(--txt-2); margin-top: -3px; }
.afam-lead { display: flex; gap: 9px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.afam-lead .afam-tick { background: var(--b); color: #fff; }
.afam-lead span { font-size: 13.5px; line-height: 1.4; color: var(--txt-2); } .afam-lead b { color: var(--txt); font-weight: 650; }
.afam-perks { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.afam-perk { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--txt-2); }
.afam-perk b { color: var(--txt); font-weight: 600; }
.afam-tick { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; border-radius: 6px; display: grid; place-items: center; color: var(--b); background: color-mix(in srgb, var(--b) 14%, transparent); }
.afam-tick svg { width: 12px; height: 12px; }
.afam-rule { height: 1px; background: var(--line); }
.afam-card .btn--block { background: var(--b); color: #fff; border-color: transparent; font-weight: 600; }
.afam-card .btn--block:hover { filter: brightness(1.08); }
.afam-card[style*="e9eef5"] .btn--block { color: #10141b; }
.afam-card[style*="e9eef5"] .btn--block:hover { filter: brightness(1.04); }
.afam-compare { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px auto 0; color: var(--txt-3); font-size: 13px; font-weight: 550; background: none; border: none; transition: color .16s var(--ease); }
.afam-compare:hover { color: var(--txt); } .afam-compare svg { width: 14px; height: 14px; }
.reduced-motion .afam-card { transition: none; } .reduced-motion .afam-card:hover { transform: none; }
@media (max-width: 900px) {
  .kpibar { grid-template-columns: 1fr 1fr; }
  .kpibar__cell { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .kpibar__cell:nth-child(odd) { border-left: none; }
  .kpibar__cell:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 520px) {
  .kpibar { grid-template-columns: 1fr; }
  .kpibar__cell { border-left: none; border-top: 1px solid var(--line); }
  .kpibar__cell:first-child { border-top: none; }
}

/* portfolio summary band (Overview) */
.portfolio { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); position: relative; overflow: hidden; }
.portfolio::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(255,91,46,0) 46%); }
.portfolio__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt-3); font-weight: 600; }
.portfolio__figure { display: flex; align-items: baseline; gap: 16px; margin-top: 9px; flex-wrap: wrap; }
.portfolio__figure b { font-family: "Bricolage Grotesque"; font-weight: 600; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.portfolio__delta { font-size: 14px; font-weight: 600; }
.portfolio__delta.up { color: var(--pass); } .portfolio__delta.down { color: var(--fail); }
.portfolio__break { display: flex; }
.pbreak { padding: 2px 24px; border-left: 1px solid var(--line); }
.pbreak:first-child { border-left: none; padding-left: 0; }
.pbreak b { font-family: "Bricolage Grotesque"; font-size: 26px; font-weight: 600; display: block; font-variant-numeric: tabular-nums; }
.pbreak span { font-size: 12px; color: var(--txt-3); display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.pdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pdot--ok { background: var(--pass); } .pdot--warn { background: var(--warn); }
@media (max-width: 760px) { .portfolio__break { width: 100%; } .pbreak { flex: 1; } }
@media (max-width: 480px) { .pbreak { padding: 2px 14px; } }

/* ----------------------------- Account cards ---------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar__right { display: flex; gap: 10px; align-items: center; }

.acctgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.acct {
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.acct:hover { border-color: var(--line-strong); }
.acct--funded { border-color: rgba(255,91,46,0.28); }
.acct--failed { opacity: 0.92; }
.acct__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.acct__id { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.acct__program { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; font-family: "Bricolage Grotesque"; }
.acct__badge { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 28px; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.acct__badge svg { width: 15px; height: 15px; }
.acct__badge img { width: 18px; height: 18px; object-fit: contain; }
.acct__num { font-size: 12.5px; color: var(--txt-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 7px; }
.acct__num button { color: var(--txt-3); display: grid; place-items: center; }
.acct__num button:hover { color: var(--txt); }

/* Headline figures */
.acct__figures { display: flex; gap: 14px; padding: 4px 20px 6px; }
.acct__fig { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.acct__fig span { font-size: 11px; color: var(--txt-3); letter-spacing: 0.01em; }
.acct__fig b { font-size: 20px; font-family: "Bricolage Grotesque"; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; }
.acct__fig b.up { color: var(--pass); }
.acct__fig b.down { color: var(--fail); }

/* Logo chip inside buttons (Odin on Trade, Saga on Statistics) */
.btn__logo { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; border-radius: 3px; }

/* Equity chart */
.acct__chart { position: relative; padding: 2px 8px 0; height: 150px; }
.acct__chart-tag {
  position: absolute; top: 12px; right: 20px; font-size: 11px; color: var(--txt-3);
  display: flex; gap: 12px;
}
.acct__chart-tag i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.acct__chart-tag i::before { content: ""; width: 9px; height: 2px; border-radius: 2px; background: currentColor; }

/* Meters */
.acct__meters { padding: 6px 20px 4px; display: grid; gap: 13px; }
.acct__feednote { display: flex; align-items: flex-start; gap: 9px; margin: 6px 20px 4px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 12.5px; line-height: 1.45; color: var(--txt-2); }
.acct__feednote svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 6px; }
.meter__head b { font-weight: 600; font-size: 12.5px; }
.meter__head span { color: var(--txt-3); font-variant-numeric: tabular-nums; }
.meter__track { height: 7px; border-radius: 6px; background: var(--surface-3); overflow: hidden; position: relative; }
.meter__fill { height: 100%; border-radius: 6px; width: 0; transition: width 1s var(--spring); }
.reveal.in .meter__fill, .in .meter__fill, .meter.in .meter__fill { width: var(--to); }
.meter__fill.is-profit { background: linear-gradient(90deg, var(--pass), #6ee7b7); }
.meter__fill.is-days { background: linear-gradient(90deg, var(--info), #93c5fd); }
.meter__fill.is-buffer { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter__fill.is-low { background: linear-gradient(90deg, var(--fail), #ff8a93); }

/* Terms grid */
.acct__terms { padding: 14px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.term { padding: 8px 0; }
.term dt { font-size: 11px; color: var(--txt-3); margin-bottom: 4px; }
.term dd { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

.acct__actions { display: flex; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.acct__actions .btn { flex: 1; min-width: 96px; }

.acct__failbar {
  display: flex; align-items: center; gap: 9px; margin: 0 20px 14px; padding: 9px 13px;
  border-radius: 11px; background: var(--fail-soft); color: #ffb8bd; font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(255,84,98,0.22);
}
.acct__payout {
  margin: 4px 20px 14px; padding: 14px; border-radius: var(--r); border: 1px solid rgba(255,91,46,0.3);
  background: linear-gradient(160deg, rgba(255,91,46,0.1), transparent);
}
.acct__payout-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct__payout b { font-size: 18px; font-family: "Bricolage Grotesque"; }

/* payout-eligible · the whole section turns green and pulses */
.acct__payout--eligible {
  border-color: rgba(25,195,125,0.45);
  background: linear-gradient(160deg, rgba(25,195,125,0.18), rgba(25,195,125,0.05) 58%, transparent);
  animation: payoutPulse 2.4s var(--ease) infinite;
}
@keyframes payoutPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25,195,125,0); border-color: rgba(25,195,125,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(25,195,125,0.16); border-color: rgba(25,195,125,0.8); }
}
.acct__payout-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 4px rgba(25,195,125,0.2); animation: pulse 2s infinite; flex: 0 0 9px; }
.reduced-motion .acct__payout--eligible { animation: none; }
.reduced-motion .acct__payout-pulse { animation: none; }

/* ----------------------------- Web trading ------------------------------ */
.trade {
  height: 100%; display: flex; flex-direction: column;
}
.trade__bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: var(--surface-1); flex: 0 0 auto;
}
.trade__bar .select { margin-left: 0; }
.frameview__title { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; font-family: "Bricolage Grotesque"; }
.frameview__tag { font-family: "Inter"; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 8px; }

/* Full-screen embedded apps (Odin / Saga): hide BOTH top bars and collapse to a
   single minimal app bar so nothing pollutes the embedded product. */
body.immersive .sitenav { display: none; }
.app.is-immersive .topbar { display: none; }
.app.is-immersive .rail { top: 0; }
.app.is-immersive.is-railopen::before { inset: 0; }
.trade__bar--app { gap: 12px; }
.trade__menu { flex: 0 0 auto; }

/* full-screen MOCK app (Odin / Saga): faux app shell behind a glass identity card */
.emock { position: absolute; inset: 0; overflow: hidden; background: var(--bg); }
.emock__shell { position: absolute; inset: 0; display: grid; gap: 14px; padding: 18px; opacity: 0.5; pointer-events: none; }
.emock__shell > div { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); padding: 14px; overflow: hidden; }
.emock__shell--odin { grid-template-columns: 1fr 240px; grid-template-rows: 1fr 150px; }
.emock__shell--odin .emock__chart { grid-column: 1; grid-row: 1; }
.emock__shell--odin .emock__side { grid-column: 2; grid-row: 1; }
.emock__shell--odin .emock__dom { grid-column: 1 / -1; grid-row: 2; }
.emock__shell--saga { grid-template-columns: 240px 1fr; }
.emock__shell--kyc { grid-template-columns: 1fr 1fr; align-content: center; padding: 18px 22%; }
.emock__card { position: absolute; inset: 0; margin: auto; width: max-content; max-width: 92%; height: max-content; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 34px 42px; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--elevated) 86%, transparent); backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow-lg); }
.emock__card .mark { width: 74px; height: 74px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; }
.emock__card .mark img { width: 100%; height: 100%; object-fit: contain; }
.emock__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 2px 10px; }
.emock__card h3 { font-size: 24px; }
.emock__card p { color: var(--txt-3); font-size: 13.5px; max-width: 46ch; line-height: 1.6; }
.emock__card .btn { margin-top: 4px; }
.emock__note { font-size: 11px; color: var(--txt-3); }
.navitem__tag { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--txt-3); background: var(--surface-3); padding: 1px 7px; border-radius: 20px; }
.navitem.is-active .navitem__tag { background: rgba(255,91,46,0.22); color: #ffd9c9; }
.app.is-collapsed .navitem__tag { display: none; }
.frameview__logo { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; }
.trade__platforms { display: inline-flex; gap: 4px; }
.trade__frame { flex: 1; position: relative; background: #07090d; }
.trade__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trade__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px;
}
.trade__placeholder-inner { max-width: 420px; }
.trade__placeholder .mark {
  width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 18px;
}
.trade__placeholder h3 { font-size: 19px; margin-bottom: 8px; }
.trade__placeholder p { color: var(--txt-3); font-size: 13.5px; margin-bottom: 20px; }

.select {
  height: 38px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--txt); font-size: 13.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 9px;
}
.select select { background: none; border: none; outline: none; color: inherit; font: inherit; }
/* the native dropdown popup uses its own surface · without this, options render
   light-on-white (invisible) in dark mode. Set explicit option colors per theme. */
.select select option { background: var(--surface-2); color: var(--txt); }
.select select option:disabled { color: var(--txt-3); }

/* ----------------------------- Right context rail (inside views) -------- */
.split { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
@media (max-width: 1240px) { .split { grid-template-columns: 1fr; } }

.panel { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.panel + .panel { margin-top: 18px; }
.panel__head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.panel__head h3 { font-size: 14px; }
.panel__head svg { width: 17px; height: 17px; color: var(--accent); }
.panel__head .right { margin-left: auto; }

/* credentials panel (Email/Password + feed tool tabs) */
/* connection-tutorial callout · present on every Connection tab */
.cred-tut { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; text-decoration: none; margin: 2px 0 16px; padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--txt); transition: 0.16s var(--ease); }
.cred-tut:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-1px); }
.cred-tut__ico { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.cred-tut__copy { min-width: 0; flex: 1; }
.cred-tut__copy b { display: block; font-size: 13px; font-weight: 650; }
.cred-tut__copy small { display: block; font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.cred-tut__go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
@media (max-width: 560px) { .cred-tut__go { display: none; } .cred-tut__copy small { display: none; } }
.credtools { display: flex; gap: 7px; flex-wrap: wrap; margin: 2px 0 12px; }
.credtool { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 18px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface-1); color: var(--txt-3); transition: 0.15s var(--ease); }
.credtool img { width: 15px; height: 15px; object-fit: contain; border-radius: 3px; flex: 0 0 15px; }
.credtool:hover { color: var(--txt); border-color: var(--line-strong); }
.credtool.is-active { color: var(--txt); border-color: var(--accent-line); background: var(--surface-2); }
.crednote { font-size: 12px; line-height: 1.5; color: #d8b066; margin: 0 0 12px; }
.credbtns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }

.cred { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cred:last-child { border-bottom: none; }
.cred__k { font-size: 12px; color: var(--txt-3); display: flex; align-items: center; gap: 8px; }
.cred__v { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cred__v code { font-family: "Bricolage Grotesque", monospace; letter-spacing: 0.04em; }
.copy { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--txt-3); border: 1px solid var(--line); }
.copy:hover { color: var(--txt); background: var(--surface-3); }

.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); background: var(--surface-1); color: var(--txt-2); }
.chip svg { width: 13px; height: 13px; }

/* Market data table */
.mdtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mdtable th { text-align: left; font-size: 11px; color: var(--txt-3); font-weight: 600; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.mdtable th:not(:first-child), .mdtable td:not(:first-child) { text-align: right; }
.mdtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mdtable tr:last-child td { border-bottom: none; }
.mdtable .free { color: var(--pass); font-weight: 600; }
.mdtable .price { font-weight: 600; }

/* ----------------------------- Stepper (payouts) ------------------------ */
.stepper { display: flex; align-items: flex-start; gap: 0; padding: 8px 4px 18px; overflow-x: auto; }
.step { flex: 1; min-width: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--surface-3); z-index: 0; }
.step:first-child::before { display: none; }
.step.is-done::before, .step.is-current::before { background: var(--accent); }
.step__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--txt-3); z-index: 1; }
.step.is-done .step__dot { background: var(--accent); color: #fff; border-color: transparent; }
.step.is-current .step__dot { background: var(--surface-1); border-color: var(--accent); color: var(--accent); animation: pulse 2s infinite; }
.step.is-rejected .step__dot { background: var(--fail); color: #fff; border-color: transparent; }
.step__dot svg { width: 16px; height: 16px; }
.step__name { font-size: 12px; font-weight: 600; margin-top: 9px; }
.step__time { font-size: 10.5px; color: var(--txt-3); margin-top: 3px; }
.step__tag { margin-top: 6px; font-size: 10px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.step__tag.ok { background: var(--pass-soft); color: var(--pass); }
.step__tag.no { background: var(--fail-soft); color: var(--fail); }
.step__tag.run { background: var(--accent-soft); color: var(--accent); }

/* ----------------------------- Tables ----------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; color: var(--txt-3); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.04em; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.14s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }

/* ----------------------------- Certificates ----------------------------- */
.certgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cert { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface-1); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.cert:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.cert__img {
  aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #fff6f1, #ffe9df 60%, #ffd9c9);
  color: #b23a1a;
}
.cert__img .seal { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(150deg, var(--accent), #e0431f); display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.cert__img h4 { color: #c1421e; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.cert__img strong { display: block; color: #2a1a13; font-size: 18px; margin: 8px 0 4px; font-family: "Bricolage Grotesque"; }
.cert__img span { font-size: 12px; color: #9a5536; font-weight: 600; }
.cert__foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; }
.cert__foot b { font-size: 13px; font-variant-numeric: tabular-nums; }
/* feed filter row · same dxFeed / TFeed split as the Withdrawal Center */
.certfeeds { display: flex; gap: 10px; margin: -4px 0 18px; flex-wrap: wrap; }
.certfeeds .feedchip { height: 32px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.certfeeds .feedchip img { width: 15px; height: 15px; object-fit: contain; border-radius: 3px; }
.certfeeds .feedchip--all { --ft: var(--accent); }
.certfeeds .feedchip:not(.is-active) { --ft: var(--txt-3); color: var(--txt-2); background: var(--surface-2); border-color: var(--line-strong); }
/* per-certificate feed badge · frosted pill so the tone reads on light parchment */
.cert__feed { position: absolute; top: 12px; left: 14px; z-index: 1; }
.cert__feed .feedchip { background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ----------------------------- Ecosystem -------------------------------- */
.ecogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.eco { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); transition: 0.2s var(--ease); cursor: pointer; }
.eco:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.eco__ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; overflow: hidden; }
.eco__ico img { width: 28px; height: 28px; object-fit: contain; }
.eco h4 { font-size: 14.5px; }
.eco p { font-size: 12.5px; color: var(--txt-3); line-height: 1.5; }
.eco__link { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: auto; display: inline-flex; align-items: center; gap: 5px; }

/* Ecosystem "trading stack" · compact single-accent product directory.
   4 columns (one per function) fill the width so everything fits with no scroll
   and no wasted right space. ONE coral accent (role chip + hover arrow); only the
   real product logos carry colour, so the page reads professional, not rainbow. */
.eco-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; margin-top: 10px; }
.eco-col { display: flex; flex-direction: column; gap: 10px; }
.eco-col__head { padding: 0 2px 2px; }
.eco-col__head h3 { font-size: 13px; }
.eco-col__head p { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.eco-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 15px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-1); cursor: pointer; transition: 0.16s var(--ease); }
.eco-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.eco-card__ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); overflow: hidden; }
.eco-card__ico img { width: 26px; height: 26px; object-fit: contain; }
.eco-card__ico span { font-size: 18px; }
.eco-card__main { min-width: 0; }
.eco-card__head { display: flex; align-items: center; gap: 8px; }
.eco-card__head b { font-size: 14px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eco-card__go { flex: 0 0 auto; color: var(--txt-3); transition: color 0.16s var(--ease), transform 0.16s var(--ease); }
.eco-card:hover .eco-card__go { color: var(--accent); transform: translate(2px, -2px); }
.eco-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.eco-card__role, .eco-card__state { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.eco-card__role { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.eco-card__state { color: var(--txt-3); background: var(--surface-3); border: 1px solid var(--line); font-weight: 600; }
.eco-card__desc { font-size: 12px; color: var(--txt-3); line-height: 1.45; margin-top: 8px; }
@media (max-width: 1080px) { .eco-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .eco-cols { grid-template-columns: 1fr; } }

/* ----------------------------- Settings --------------------------------- */
.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.form-row:last-child { border-bottom: none; }
.form-row label b { display: block; font-size: 13.5px; }
.form-row label span { display: block; font-size: 12px; color: var(--txt-3); margin-top: 3px; }
.input { height: 40px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-1); color: var(--txt); font-size: 13.5px; width: 100%; outline: none; transition: 0.16s var(--ease); }
.input:focus { border-color: var(--accent-line); background: var(--surface-2); }

.switch { width: 44px; height: 26px; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; cursor: pointer; transition: 0.2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: 0.2s var(--spring); }
.switch.is-on { background: var(--accent); border-color: transparent; }
.switch.is-on::after { transform: translateX(18px); }

/* Form grid (Edit Profile) */
.formgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.formgrid--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
/* KYC/AML-locked profile fields (legal name + address) */
.field--locked .input { background: var(--surface-2); color: var(--txt-2); cursor: not-allowed; opacity: 0.85; }
.field--locked label { color: var(--txt-3); display: inline-flex; align-items: center; }
.field__lock { display: inline-flex; align-items: center; margin-left: 6px; color: var(--txt-3); }
.aml-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-1); }
.aml-note__ico { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); margin-top: 1px; }
.aml-note p { font-size: 12.5px; line-height: 1.55; color: var(--txt-2); margin: 0; }
.aml-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.aml-note a:hover { text-decoration: underline; }

/* mandatory post-purchase address gate (CME/AML) · un-skippable full-screen overlay */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 22px; background: rgba(6, 8, 12, 0.8); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); overflow-y: auto; animation: gateIn 0.25s var(--ease) both; }
.gate__card { width: 100%; max-width: 470px; margin: auto; background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(22px, 4vw, 34px); animation: gateCardIn 0.3s var(--ease) both; }
.gate__title { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-weight: 600; font-size: 23px; text-align: center; margin: 0 0 16px; color: var(--txt); }
.gate__brand { display: flex; justify-content: center; margin-bottom: 16px; }
.gate__brandbadge { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: #0a0a0a; border-radius: 10px; padding: 9px 18px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.gate__brandbadge svg { width: 23px; height: 23px; flex: 0 0 auto; }
.gate__msg { text-align: center; font-size: 13px; line-height: 1.55; color: var(--txt-2); margin: 0 0 20px; }
.gate__form { display: flex; flex-direction: column; gap: 11px; }
.gate__row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.gate .input { height: 46px; border-radius: 12px; }
.gate .select, .gate .select--full { height: 46px; border-radius: 12px; }
.gate__save { height: 50px; font-size: 15px; margin-top: 6px; border-radius: 13px; }
.input--err { border-color: var(--fail) !important; }
@keyframes gateIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gateCardIn { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
.reduced-motion .gate, .reduced-motion .gate__card { animation: none; }

/* hard-banned account: the whole nav chrome is disabled (top nav, rail nav,
   Start Evaluation, user block, topbar search). The only controls left are the
   ban-screen card buttons (contact support / billing / sign out). */
body.is-banned .sitenav,
body.is-banned .rail__nav,
body.is-banned .rail__cta,
body.is-banned .rail__user,
body.is-banned .topbar .search { pointer-events: none; opacity: 0.4; user-select: none; }

/* HARD BAN screen · content-level (rail + topbar stay usable so the trader can
   still sign out / view billing via the card). NOT a full-screen overlay. */
.banscreen { display: grid; place-items: center; min-height: 58vh; padding: 24px 0; }
.banscreen__card { display: flex; align-items: center; gap: 32px; max-width: 800px; width: 100%; padding: clamp(26px, 4vw, 38px) clamp(28px, 4vw, 42px); border-radius: 22px; background: #474c55; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); }
.banscreen__ico { flex: 0 0 auto; width: 118px; height: 118px; border-radius: 20px; background: #191c21; display: grid; place-items: center; color: #e0503f; }
.banscreen__ico svg { width: 60px; height: 60px; }
.banscreen__body { min-width: 0; }
.banscreen__title { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-weight: 600; font-size: clamp(22px, 3vw, 27px); color: #fff; margin: 0 0 13px; letter-spacing: -0.01em; }
.banscreen__body p { font-size: 14px; line-height: 1.62; color: #c6cbd2; margin: 0 0 12px; }
.banscreen__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 640px) { .banscreen__card { flex-direction: column; text-align: center; gap: 22px; } .banscreen__ico { width: 96px; height: 96px; } .banscreen__actions { justify-content: center; } }
.field label { font-size: 12.5px; color: var(--txt-2); font-weight: 550; }
.select--full { width: 100%; height: 40px; }
.select--full select { width: 100%; }
@media (max-width: 720px) { .formgrid { grid-template-columns: 1fr; } }

/* Withdrawal request rows */
.reqrow { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.reqrow:last-child { border-bottom: none; }
.reqrow b { font-size: 14px; }

/* Withdrawal history expandable detail */
.wcaret { transition: transform 0.2s var(--ease); color: var(--txt-3); }
.wcaret.is-open { transform: rotate(180deg); }
.wdetail__inner { padding: 6px 8px; background: var(--surface-1); border-radius: var(--r); }
.wdetail td { background: rgba(0,0,0,0.18); }
tr.wrow:hover { background: var(--surface-2); }

/* Checkbox (blur name) */
.checkrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--txt-2); cursor: pointer; }
.checkbox { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; transition: 0.16s var(--ease); }
.checkbox.is-on { background: var(--accent); border-color: transparent; }
.checkbox.is-on::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }

/* Certificate QR + blur */
.cert__qr { position: absolute; top: 12px; right: 14px; color: #2a1a13; opacity: 0.85; }
.cert__img .is-blurred { filter: blur(6px); user-select: none; }

/* ----------------------------- Drawer ----------------------------------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(5,7,10,0.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: 0.28s var(--ease); z-index: 40; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 460px; max-width: 92vw; z-index: 41;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.34s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
.drawer__head h3 { font-size: 17px; }
.drawer__body { padding: 22px 24px; }

/* TFeed "Start trading" option cards (right panel) */
.tradeopts { display: flex; flex-direction: column; gap: 14px; }
.tradeopt { position: relative; display: block; width: 100%; text-align: left; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-1); transition: transform 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease); }
.tradeopt:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tradeopt:active { transform: translateY(0); }
.tradeopt__badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 12px; border-radius: 20px; box-shadow: 0 6px 16px -8px rgba(255,91,46,0.7); }
.tradeopt__head { display: flex; align-items: center; gap: 12px; }
.tradeopt__logo { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; }
.tradeopt__logo img { width: 34px; height: 34px; object-fit: contain; }
.tradeopt__id { min-width: 0; flex: 1; }
.tradeopt__id b { display: block; font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 15.5px; }
.tradeopt__id span { display: block; font-size: 12px; color: var(--txt-3); margin-top: 2px; line-height: 1.35; }
.tradeopt__go { flex: 0 0 auto; color: var(--txt-3); transition: transform 0.16s var(--ease), color 0.16s var(--ease); }
.tradeopt:hover .tradeopt__go { color: var(--accent); transform: translateX(3px); }
.tradeopt__brands { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.tradeopt__brands img { height: 22px; width: auto; object-fit: contain; padding: 4px 7px; background: #fff; border-radius: 5px; }
.tradeopt__steps { list-style: none; padding: 0; margin: 15px 0 0; display: grid; gap: 11px; }
.tradeopt__steps li { display: flex; align-items: flex-start; gap: 11px; }
.tradeopt__steps i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; margin-top: 1px; }
.tradeopt__steps b { font-size: 13.5px; font-weight: 600; }
.tradeopt__steps small { display: block; font-size: 12px; color: var(--txt-3); margin-top: 2px; line-height: 1.4; }

/* Performance Review™ panel (request + PDF history) */
.pr-brand { margin-bottom: 16px; }
.pr-brand img { height: 38px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.pr-prompt { line-height: 1.6; font-size: 14.5px; }
.pr-credits { font-size: 13px; color: var(--txt-2); margin: 14px 0 12px; }
.pr-credits b { font-weight: 700; }
.pr-credits--ok { color: var(--pass); }
.pr-credits--none { color: var(--accent); }
.pr-hist { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.pr-hist__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-3); font-weight: 600; margin-bottom: 12px; }
.pr-doc { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-1); margin-bottom: 9px; }
.pr-doc:last-child { margin-bottom: 0; }
.pr-doc__ico { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.pr-doc__meta { min-width: 0; flex: 1; }
.pr-doc__meta b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-doc__meta span { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.pr-doc .btn { flex: 0 0 auto; }
.pr-empty { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }

/* ----------------------------- Toasts ----------------------------------- */
.toasts { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.toast {
  display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 13px; min-width: 240px;
  background: var(--elevated); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  font-size: 13.5px; animation: toastIn 0.32s var(--spring);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.toast.is-out { animation: toastOut 0.26s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
.toast__ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 26px; }
.toast--ok .toast__ico { background: var(--pass-soft); color: var(--pass); }
.toast--info .toast__ico { background: var(--accent-soft); color: var(--accent); }

/* ----------------------------- Misc / empty ----------------------------- */
.empty { text-align: center; padding: 80px 20px; color: var(--txt-3); }
.empty svg { width: 44px; height: 44px; margin-bottom: 16px; opacity: 0.5; }
.empty h3 { color: var(--txt-2); font-size: 16px; margin-bottom: 6px; }

.kpi-line { display: flex; gap: 22px; flex-wrap: wrap; }
.kpi { }
.kpi b { font-size: 22px; font-family: "Bricolage Grotesque"; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 12px; color: var(--txt-3); margin-top: 4px; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 1080px) {
  .acctgrid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 0 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 50; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .app.is-mobileopen .rail { transform: none; box-shadow: var(--shadow-lg); }
  .topbar .topbar__menu { display: grid; } /* mobile/narrow: shown (rail is off-screen, this is the only opener) */
  .search { display: none; }
  .outlet { padding: 18px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 560px) {
  /* override any inline repeat(3/4,1fr) the per-page polish added */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .stat__val { font-size: 22px; }
  .eod { display: none; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .detail__actions { width: 100%; }
  .detail__actions .btn { flex: 1; }
}

/* =========================================================================
   ADDED: site navbar · animation system · iframe slots · account detail ·
   responsive hardening
   ========================================================================= */

/* ---------- ambient layers · disabled (flat dark theme, no glow) ---------- */
#embers, .aurora { display: none; }
.app { position: relative; z-index: 1; }
/* navbar sits ABOVE the app so its mega-menus overlay the dashboard (was clipped under it) */
.sitenav { position: relative; z-index: 40; }

/* ---------- SITE NAVBAR (full-width, non-rounded global header) ----------- */
.sitenav { flex: 0 0 auto; }
.sitenav__inner {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 26px;
  border: none; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: rgba(9,11,16,0.9); backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 14px 30px -22px rgba(0,0,0,0.95);
}
.sn__logo { display: grid; place-items: center; color: #fff; }
.sn__logo-img { height: 30px; width: auto; display: block; }
.sn__divider { width: 1px; height: 26px; background: var(--line-strong); margin: 0 8px; }
.sn__nav { display: flex; align-items: center; gap: 2px; }
.sn__item { position: relative; }
.sn__link {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-radius: 10px;
  font-size: 14px; font-weight: 550; color: var(--txt-2); transition: 0.16s var(--ease);
}
.sn__link svg { transition: transform 0.2s var(--ease); }
.sn__item:hover .sn__link, .sn__item.is-open .sn__link { background: var(--surface-2); color: var(--txt); }
.sn__item.is-open .sn__link svg { transform: rotate(180deg); }
.sn__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sn__getfunded {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 20px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--txt); transition: 0.16s var(--ease);
}
.sn__getfunded:hover { background: var(--surface-2); border-color: var(--accent-line); }
.sn__myaccount { font-size: 14px; font-weight: 600; color: var(--txt-2); padding: 0 10px; }
.sn__myaccount.is-active { color: var(--accent); }
.sn__myaccount:hover { color: var(--txt); }
.sn__lang, .sn__search { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px; border-radius: 10px; color: var(--txt-2); font-size: 13.5px; font-weight: 550; }
.sn__lang:hover, .sn__search:hover { background: var(--surface-2); color: var(--txt); }
.sn__flag { width: 22px; height: auto; border-radius: 3px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,0.10); }
.sn__langcode { font-weight: 600; letter-spacing: 0.02em; }
.sn__divider--right { height: 24px; margin: 0; }
.manage-row__ico .sn__flag { width: 24px; }

/* mega menus */
.sn__menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 320px; padding: 14px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px) scale(0.98); transform-origin: top left; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); z-index: 30;
}
.sn__item.is-open .sn__menu { opacity: 1; transform: none; pointer-events: auto; }
.sn__menu--accounts { display: grid; gap: 10px; width: 360px; }
.snacc-img { display: block; padding: 0; border-radius: 12px; overflow: hidden; line-height: 0; transition: box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.snacc-img img { display: block; width: 100%; height: auto; }
.snacc-img--classic { --sn-hover: #ff5b2e; }
.snacc-img--spark { --sn-hover: #9b8cff; }
.snacc-img--merit { --sn-hover: #eef2f7; }
.snacc-img:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--sn-hover), 0 14px 34px -12px color-mix(in srgb, var(--sn-hover) 55%, transparent); }
.snacc {
  display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface-2), var(--surface-1)); font-size: 15px; font-weight: 600;
  transition: 0.16s var(--ease); position: relative; overflow: hidden;
}
.snacc:hover { border-color: var(--line-strong); transform: translateX(2px); }
.snacc--classic { background: linear-gradient(120deg, rgba(255,91,46,0.16), var(--surface-1)); }
.snacc--spark { background: linear-gradient(120deg, rgba(106,168,255,0.16), var(--surface-1)); }
.snacc--merit { background: linear-gradient(120deg, rgba(255,255,255,0.06), var(--surface-1)); }
.snacc__tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; margin-right: 4px; }
.snacc .sq { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.snacc__logo { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; flex: 0 0 20px; }
.snacc small { display: block; font-size: 12px; font-weight: 450; color: var(--txt-3); margin-top: 4px; }
.sn__menu--eco { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 30px; width: auto; padding: 16px; }
.sn__sec { display: flex; flex-direction: column; gap: 2px; }
.sn__grid { display: grid; grid-template-columns: 236px; gap: 2px; }
.sn__grid--2 { grid-template-columns: repeat(2, 236px); }
@media (max-width: 720px) { .sn__menu--eco { grid-template-columns: 1fr; } }
.sn__menu--res { width: auto; padding: 8px; }
.sn__resgrid { display: grid; grid-template-columns: repeat(2, minmax(184px, 1fr)); gap: 0 12px; }
.sn__resico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--txt-2); }
.sn__resico svg { width: 17px; height: 17px; }
.sn__menu--res a:hover .sn__resico { color: var(--accent); }
@media (max-width: 560px) { .sn__resgrid { grid-template-columns: 1fr; } }
.sn__col { display: flex; flex-direction: column; gap: 2px; }
.sn__coltitle { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--txt-3); font-weight: 700; padding: 4px 12px; }
.sn__menu a:not(.snacc):not(.snacc-img) { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background 0.14s var(--ease); }
.sn__menu a:not(.snacc):not(.snacc-img):hover { background: var(--surface-2); }
.sn__menuico { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; border-radius: 8px; background: var(--surface-3); padding: 5px; }
.sn__menu a:not(.snacc) span:not(.sn__resico) { display: flex; flex-direction: column; min-width: 0; }
.sn__menu b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sn__menu small { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* hard-disable the card tilt hover (no wobble/glow on cards or charts) */
.tilt { transform: none !important; }
.tilt::after { display: none !important; }

/* ---------- reveal / tilt / chart draw ----------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

.tilt { transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s var(--ease); transform-style: preserve-3d; will-change: transform; }
.tilt.tilting { transition: box-shadow 0.3s var(--ease), border-color 0.2s var(--ease); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.85), 0 0 0 1px var(--line-strong) inset; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,138,76,0.10), transparent 60%);
  transition: opacity 0.3s var(--ease);
}
.tilt.tilting::after { opacity: 1; }

.eqchart { display: block; width: 100%; height: 100%; }
.chartbox { position: relative; overflow: hidden; }
/* non-distorting end-dot for stretched (preserveAspectRatio=none) interactive charts */
.eqchart__wrap { position: relative; display: block; width: 100%; height: 100%; }
.eqchart__cap { position: absolute; left: 100%; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 16%, transparent); pointer-events: none; }

/* interactive datapoints + floating tooltip (journal-style) */
.eq-hover { cursor: crosshair; }
.eq-dot-hover { opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.eq-hover:hover + .eq-dot-hover { opacity: 1; }
.eqtip {
  position: fixed; z-index: 200; min-width: 152px; padding: 11px 13px;
  background: var(--elevated); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); pointer-events: none;
}
.eqtip__date { font-size: 12px; font-weight: 600; color: var(--txt); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.eqtip__row { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 4px; }
.eqtip__row:last-child { margin-bottom: 0; }
.eqtip__label { font-size: 11px; color: var(--txt-3); }
.eqtip__val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: "Bricolage Grotesque", monospace; }
.eq-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .eq-line, .reveal.in .eq-line { animation: eqdraw 1.15s var(--ease) 0.1s forwards; }
.acct__chart .eq-line { animation: eqdraw 1.15s var(--ease) 0.15s forwards; } /* cards animate regardless */
@keyframes eqdraw { to { stroke-dashoffset: 0; } }
.eq-area, .eq-dot { opacity: 0; animation: eqfade 0.8s var(--ease) 0.5s forwards; }
@keyframes eqfade { to { opacity: 1; } }
.reduced-motion .eq-line { animation: none; stroke-dashoffset: 0; }
.reduced-motion .eq-area, .reduced-motion .eq-dot { animation: none; opacity: 1; }

/* stepper stagger on reveal */
.in .step { animation: stepIn 0.5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 0.06s); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.reduced-motion .step { animation: none; }

/* ---------- iframe slot (embedded TFeed module) -------------------------- */
.islot { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--surface-1); box-shadow: var(--shadow); }
.islot__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); }
.islot__title { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; font-family: "Bricolage Grotesque"; }
.islot__title svg { color: var(--accent); }
.islot__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--txt-3); padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-1); }
.islot__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 3px rgba(54,211,153,0.18); animation: pulse 2.2s infinite; }
.islot__tools { margin-left: auto; display: flex; gap: 6px; }
.iconbtn--xs { width: 30px; height: 30px; border-radius: 9px; }
.islot__body { position: relative; background: #0b0e14; }
.islot__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0e14; z-index: 1; }
.islot__skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.04) 40%, transparent 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; pointer-events: none; }
.islot__body iframe ~ .islot__skeleton { animation: shimmer 1.4s linear 2; }
@keyframes shimmer { to { background-position: -200% 0; } }
.islot__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 4px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,91,46,0.06), transparent 60%); }
.islot__ph code { font-family: "Bricolage Grotesque", monospace; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }
.islot__ph-badge { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px dashed var(--accent-line); border-radius: 6px; padding: 3px 9px; margin-bottom: 6px; }

/* ---------- account detail (spotlight) ----------------------------------- */
.detail { display: grid; gap: 18px; padding: 28px; }
.outlet.is-flush .detail { padding: 28px; }   /* detail keeps padding even though outlet is flush */
.detail__bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail__title { display: flex; flex-direction: column; gap: 3px; }
.detail__title h1 { font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
.detail__kindlogo { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.detail__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.detail__hero { padding: 22px; }
.detail__hero-head { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 16px; }
.detail__hero--nochart .detail__hero-head { margin-bottom: 0; }
.detail__hero-head .kpi span { font-size: 12px; color: var(--txt-3); display: block; margin-bottom: 5px; }
.detail__hero-head .kpi b { font-size: 26px; font-family: "Bricolage Grotesque"; }
.detail__hero-head .kpi b.up { color: var(--pass); } .detail__hero-head .kpi b.down { color: var(--fail); }
.detail__chart { height: 220px; }
.detail__embeds { display: grid; gap: 18px; }
/* Funded Account Goals tracker takes half the width, rules card the other half */
.detail__embeds-top { grid-template-columns: 1fr 1fr; }
.detail__rules { padding: 22px; }
.detail__meters { display: grid; gap: 14px; margin-bottom: 18px; }
.detail__terms { border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- scaling-ladder tiers (account detail) ----------------------- */
.atiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.atier { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); text-align: center; opacity: 0.62; transition: 0.2s var(--ease); }
.atier.is-active { opacity: 1; border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset, 0 20px 50px -30px rgba(255,91,46,0.6); }
.atier__name { font-size: 20px; font-family: "Bricolage Grotesque"; font-weight: 700; }
.atier__range { font-size: 12px; color: var(--txt-3); margin: 4px 0 14px; }
.atier ul { list-style: none; padding: 0; display: grid; gap: 10px; text-align: left; }
.atier li { font-size: 13px; color: var(--txt-2); padding-left: 18px; position: relative; line-height: 1.45; }
.atier li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- misc helpers ------------------------------------------------- */
.cred-group { font-size: 11px; color: var(--txt-3); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.cred-group:first-of-type { margin-top: 0; }
.table-scroll { overflow-x: auto; }
.kpi b.up { color: var(--pass); } .kpi b.down { color: var(--fail); }

/* coupons · display-only discount tickets */
.ticketgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.ticket { display: grid; grid-template-columns: 1fr 168px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--tt) 12%, var(--surface-2)), var(--surface-1)); box-shadow: var(--shadow); }
.ticket__main { padding: 20px 22px; }
.ticket__discount { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 28px; color: var(--tt); line-height: 1; }
.ticket__applies { font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.ticket__expiry { font-size: 12px; color: var(--txt-3); margin-top: 5px; }
.ticket__stub { position: relative; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(0,0,0,0.22); border-left: 2px dashed var(--line-strong); }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; left: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); }
.ticket__stub::before { top: -7px; } .ticket__stub::after { bottom: -7px; }
.ticket__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--txt-3); font-weight: 600; }
.ticket__code { font-family: "Bricolage Grotesque", monospace; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--txt); }
.ticket__stub .btn { margin-top: 4px; }
@media (max-width: 520px) { .ticket { grid-template-columns: 1fr; } .ticket__stub { border-left: none; border-top: 2px dashed var(--line-strong); } .ticket__stub::before { top: -7px; left: auto; right: -7px; } .ticket__stub::after { bottom: auto; top: -7px; left: -7px; } }

/* payout-eligible banner · make "you can withdraw" unmissable */
.payoutbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(20,168,92,0.24), rgba(25,195,125,0.10) 58%, transparent), var(--surface-1);
  border: 1px solid rgba(25,195,125,0.42); box-shadow: 0 20px 46px -28px rgba(25,195,125,0.6); }
.payoutbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--pass), #12ad6e); }
.payoutbar__left { display: flex; align-items: center; gap: 16px; min-width: 280px; flex: 1; }
.payoutbar__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 5px rgba(54,211,153,0.18); animation: pulse 2.2s infinite; flex: 0 0 12px; }
.payoutbar__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--pass); }
.payoutbar h3 { color: var(--txt); font-size: 18px; margin-top: 5px; font-weight: 600; }
.payoutbar h3 b { color: var(--pass); font-family: "Bricolage Grotesque"; }
.payoutbar__btn { background: linear-gradient(150deg, #19c37d, #0f9d63); color: #fff; border-color: transparent; height: 46px; padding: 0 22px; border-radius: 24px; font-weight: 600; font-size: 14.5px; box-shadow: 0 12px 28px -10px rgba(25,195,125,0.8); }
.payoutbar__btn:hover { background: linear-gradient(150deg, #1fd389, #12ad6e); }

/* activation-in-progress (first 24h after account creation) · deliberately loud */
.activatebar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,91,46,0.28), rgba(255,138,76,0.12) 56%, transparent), var(--surface-1);
  border: 1px solid var(--accent-line); box-shadow: 0 22px 54px -28px rgba(255,91,46,0.7); }
.activatebar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }
.activatebar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.07) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 3s linear infinite; pointer-events: none; }
.reduced-motion .activatebar::after { animation: none; }
.activatebar__pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse 1.8s infinite; flex: 0 0 14px; }
.activatebar__text { flex: 1; min-width: 280px; }
.activatebar__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--accent); }
.activatebar h3 { color: var(--txt); font-size: 18px; margin: 7px 0 0; line-height: 1.3; }
.activatebar p { color: var(--txt-2); font-size: 13px; margin-top: 9px; max-width: 82ch; line-height: 1.55; }
.activatebar p b { color: var(--txt); }
.activatebar__btn { background: var(--accent); color: #fff; border-color: transparent; height: 44px; padding: 0 20px; border-radius: 22px; font-weight: 600; flex: 0 0 auto; }
.activatebar__btn:hover { background: #ff6c43; }

/* compact activation strip on account cards */
.acct__activating { display: flex; align-items: center; gap: 11px; margin: 0 20px 14px; padding: 11px 14px; border-radius: 11px;
  background: linear-gradient(120deg, rgba(255,91,46,0.16), transparent); border: 1px solid var(--accent-line); font-size: 12.5px; color: var(--txt-2); line-height: 1.45; }
.acct__activating .activatebar__pulse { width: 11px; height: 11px; flex: 0 0 11px; box-shadow: 0 0 0 4px var(--accent-soft); }
.acct__activating b { color: var(--txt); font-weight: 650; }

/* verify-identity (passed challenge → KYC) */
.verifybar { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1c3a86, #2a5bd7 58%, #3b82f6); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 22px 54px -30px rgba(59,130,246,0.7); }
.verifybar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,0.55); }
.verifybar__text { flex: 1; min-width: 280px; }
.verifybar__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700; color: #bcd2ff; }
.verifybar h3 { color: #fff; font-size: 18px; margin: 8px 0 0; line-height: 1.25; }
.verifybar p { color: rgba(255,255,255,0.82); font-size: 13px; margin-top: 8px; max-width: 72ch; line-height: 1.55; }
.verifybar__btn { background: #fff; color: #1c3a86; border-color: transparent; font-weight: 600; height: 44px; padding: 0 20px; border-radius: 22px; }
.verifybar__btn:hover { background: #eef3ff; }

/* "Awaiting verification" banner (passed, extra manual review) · the app's
   standard coral-accent card, deliberately NOT the blue KYC .verifybar. */
.reviewbar { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-xl); background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.reviewbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }
.reviewbar__ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.reviewbar__text { flex: 1; min-width: 0; }
.reviewbar__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700; color: var(--accent); }
.reviewbar h3 { color: var(--txt); font-size: 18px; margin: 7px 0 0; line-height: 1.3; }
.reviewbar p { color: var(--txt-2); font-size: 13px; margin-top: 9px; max-width: 82ch; line-height: 1.55; }
.pill--verify { color: #bcd2ff; background: rgba(59,130,246,0.18); } .pill--verify .dot { background: #3b82f6; }
.acct__payout--verify { border-color: rgba(59,130,246,0.34); background: linear-gradient(160deg, rgba(59,130,246,0.12), transparent); }
/* awaiting-verification (passed) · coral accent, NOT the blue KYC treatment */
.pill--review { color: var(--accent); background: var(--accent-soft); } .pill--review .dot { background: var(--accent); }
.acct__payout--review { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), transparent); }
.acct__payout--ready { border-color: color-mix(in srgb, var(--pass) 40%, transparent); background: linear-gradient(160deg, var(--pass-soft), transparent); }

/* big "Get funded" call-to-action (approved passed accounts) · unmissable */
.gfhero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding: clamp(22px, 3vw, 30px) clamp(24px, 3vw, 32px); border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--surface-2); }
.gfhero--ready { border-color: var(--accent-line); background: linear-gradient(120deg, var(--accent-soft), transparent 65%), var(--surface-2); }
.gfhero__text { flex: 1 1 300px; min-width: 0; }
.gfhero__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; font-weight: 700; color: var(--accent); }
.gfhero--locked .gfhero__eyebrow { color: var(--txt-3); }
.gfhero h3 { color: var(--txt); font-size: clamp(19px, 2.2vw, 23px); margin: 8px 0 0; line-height: 1.25; letter-spacing: -0.01em; }
.gfhero p { color: var(--txt-2); font-size: 13.5px; margin-top: 9px; line-height: 1.55; max-width: 62ch; }
.gfhero__btn { flex: 0 0 auto; height: 58px; padding: 0 34px; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; border-radius: 16px; gap: 10px; }
.gfhero__btn svg { width: 21px; height: 21px; }
.gfhero__btn--locked { background: var(--surface-3); color: var(--txt-3); border: 1px solid var(--line-strong); cursor: not-allowed; }

/* KYC upload zones */
.kyc-drop { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 30px 18px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); background: var(--surface-1); color: var(--txt-2); transition: 0.16s var(--ease); }
.kyc-drop:hover { border-color: var(--accent-line); background: var(--surface-2); }
.kyc-drop__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.kyc-drop b { font-size: 14px; } .kyc-drop small { font-size: 12px; color: var(--txt-3); }

/* DEV preview panel (remove dev.js for production) */
.devbar { position: fixed; left: 16px; bottom: 16px; z-index: 400; width: 272px; border-radius: 14px; border: 1px solid var(--accent-line); background: rgba(18,15,13,0.97); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); overflow: hidden; }
.devbar.is-min .devbar__body { display: none; }
.devbar.is-dragging { user-select: none; cursor: grabbing; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.9); }
.devbar__head { display: flex; align-items: center; gap: 7px; padding: 10px 13px; background: linear-gradient(90deg, var(--accent-soft), transparent); cursor: grab; touch-action: none; }
.devbar.is-dragging .devbar__head { cursor: grabbing; }
.devbar__grip { color: var(--txt-3); flex: 0 0 13px; }
.devbar__grip circle { fill: currentColor; }
.devbar__head b { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.devbar__head .muted { margin-left: auto; font-size: 10px; color: var(--txt-3); }
.devbar__body { padding: 8px 12px 12px; max-height: 62vh; overflow-y: auto; }
.devbar__group { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt-3); font-weight: 600; margin: 11px 0 5px; }
.devbar__btn { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--txt); margin-bottom: 5px; font-size: 12.5px; transition: 0.14s var(--ease); }
.devbar__btn:hover { background: var(--surface-3); border-color: var(--line-strong); }
.devbar__btn.is-on { border-color: var(--accent-line); color: #ffd9c9; background: var(--accent-soft); }
@media (max-width: 860px) { .devbar { display: none; } }
/* dev "All banners & messages" gallery (rendered into the Overview preview) */
.devgallery { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.devgallery__head { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-3); }
.devgallery__lbl { font-size: 11px; font-weight: 600; color: var(--txt-3); margin-top: 6px; }
.devgallery > .reveal { margin: 0; }

/* feed chip (TFeed / dxFeed) */
.feedchip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.01em; color: var(--ft, var(--accent)); background: color-mix(in srgb, var(--ft, var(--accent)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--ft, var(--accent)) 38%, transparent); }
.feedchip__logo { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; flex: 0 0 14px; }

/* offline iframe slot → amber pulse instead of green */
.islot:not(.islot--live) .islot__pulse { background: var(--warn); box-shadow: 0 0 0 3px rgba(255,178,62,0.18); }
.iconbtn--xs[disabled] { opacity: 0.4; pointer-events: none; }

/* action-modal rows (manage / downloads / notifications) */
.manage-list { display: grid; gap: 7px; }
.manage-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-1); color: var(--txt); transition: 0.15s var(--ease); }
.manage-row:hover { background: var(--surface-2); border-color: var(--line-strong); }
.manage-row__ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); font-size: 16px; }
.manage-row__ico svg { width: 17px; height: 17px; }
.manage-row__logo { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.manage-row b { font-size: 13.5px; font-weight: 600; display: block; }
.manage-row small { font-size: 12px; color: var(--txt-3); display: block; margin-top: 2px; }
.manage-row > svg:last-child { margin-left: auto; color: var(--txt-3); }
.drawer--modal { width: 440px; }

/* grid items must be allowed to shrink below their min-content, or narrow
   viewports clip card content (the auto minimum of a grid item is min-content). */
.stat, .acct, .card, .panel, .eco, .cert, .islot, .atier, .acctgrid > *, .stats > * { min-width: 0; }
.outlet, .view, .main { max-width: 100%; }

/* ---------- responsive hardening ----------------------------------------- */
@media (max-width: 1180px) { .atiers { grid-template-columns: 1fr; } .detail__embeds-top { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
  .sn__nav { display: none; }
  .sitenav__inner { padding: 0 16px; }
}
@media (max-width: 1080px) { .search { width: 200px; } }
@media (max-width: 940px) { .search { display: none; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 0 1fr; }
  /* rail is position:fixed (out of flow) at this width, so .main would auto-place
     into the 0-width first column · span it across both columns instead. */
  .main { grid-column: 1 / -1; min-width: 0; }
  .detail { padding: 18px; }
  /* on mobile, ignore the desktop "collapsed" state entirely (it caused the glitch);
     the rail is a full-width slide-in overlay driven by .is-mobileopen */
  .app.is-collapsed { grid-template-columns: 0 1fr; }
  .app.is-collapsed .rail { width: var(--rail-w); }
  .app.is-collapsed .brand-mark { display: grid; }
  .app.is-collapsed .brand-text,
  .app.is-collapsed .navitem span,
  .app.is-collapsed .navitem__count,
  .app.is-collapsed .rail__user-meta,
  .app.is-collapsed .btn--block span { opacity: 1; width: auto; pointer-events: auto; }
  .app.is-collapsed .rail__collapse svg { transform: none; }
  .app.is-mobileopen::before { content: ""; position: fixed; inset: 0; background: rgba(5,7,10,0.55); backdrop-filter: blur(2px); z-index: 49; }
}
@media (max-width: 560px) {
  .sn__getfunded { display: none; }
  .detail__hero-head { gap: 18px; }
}


/* =========================================================================
   Display typography · restrained dark theme (orange accents only)
   No grain, no glow, no ember wash · clean dark surfaces.
   ========================================================================= */
.topbar__title h1 { font-weight: 700; letter-spacing: -0.03em; font-size: 20px; }
.hero h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.section-head h2 { font-size: 19px; letter-spacing: -0.025em; }
.portfolio__figure b, .kpibar__value, .pbreak b, .stat__val,
.detail__hero-head .kpi b, .kpi b, .acct__payout b, .ticket__discount { font-weight: 700; }
.portfolio::before, .kpibar::before { background: var(--accent); height: 2px; }


/* =========================================================================
   Withdrawal Center · account picker → 3-step request form (mirrors live site)
   ========================================================================= */
.accent { color: var(--accent); }

.wtitle { font-family: "Bricolage Grotesque", "Inter", sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 2px 6px; }
.wtitle::after { content: ""; display: block; width: 230px; max-width: 55%; height: 2px; background: var(--accent); margin-top: 11px; }

.wlayout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .wlayout { grid-template-columns: 1fr; } .wmenu { order: -1; } }

/* right-hand My Account menu */
.wmenu { border: 1px solid var(--line); background: var(--surface-1); border-radius: var(--r-lg); padding: 8px; }
.wmenu__head { display: flex; align-items: center; gap: 9px; padding: 10px 11px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--txt-2); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.wmenu__head svg { color: var(--accent); }
.wmenu__item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 11px; border-radius: 11px; font-size: 13.5px; font-weight: 500; color: var(--txt-2); transition: 0.15s var(--ease); }
.wmenu__item svg { color: var(--txt-3); flex: 0 0 auto; transition: 0.15s var(--ease); }
.wmenu__item:hover { background: var(--surface-2); color: var(--txt); }
.wmenu__item:hover svg { color: var(--accent); }
.wmenu__item.is-active { background: var(--accent-soft); color: var(--txt); }
.wmenu__item.is-active svg { color: var(--accent); }

/* feed chips header */
.wtabs { display: flex; gap: 10px; margin-bottom: 16px; }
.wtabs .feedchip { height: 32px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.wtabs .feedchip img { width: 15px; height: 15px; object-fit: contain; border-radius: 3px; }
.feedchip--dx { --ft: #6aa8ff; }
.feedchip--tf { --ft: var(--accent); }
.wtabs .feedchip:not(.is-active) { --ft: var(--txt-3); color: var(--txt-2); background: var(--surface-2); border-color: var(--line-strong); }

/* account picker rows */
.wpicks { display: flex; flex-direction: column; gap: 12px; }
.wpick { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); transition: 0.16s var(--ease); }
.wpick:hover:not(:disabled) { border-color: var(--accent-line); background: var(--surface-3); }
.wpick__id { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.wpick__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--txt-2); }
.wpick:hover:not(:disabled) .wpick__state { color: var(--accent); }
.wpick.is-locked { opacity: 0.55; cursor: not-allowed; }

/* the 3-step form */
.wform { padding: 26px 26px 24px; }
.backlink { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--txt-2); margin-bottom: 18px; transition: 0.15s var(--ease); }
.backlink:hover { color: var(--accent); }
.wstep { padding: 0 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.wstep:last-of-type { border-bottom: none; }
.wstep h3 { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 650; }
.wstep__n { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.wstep__sub { color: var(--txt-2); font-size: 13px; margin: 7px 0 14px 35px; }

.wacct { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; margin-left: 35px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.wacct__id { font-size: 14px; font-weight: 600; }
.wacct__fig { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.wacct__fig small { font-size: 11px; color: var(--txt-3); }
.wacct__fig b { font-size: 15px; font-weight: 650; }
@media (max-width: 560px) { .wacct { grid-template-columns: 1fr; gap: 10px; margin-left: 0; } .wacct__fig { text-align: left; } .wstep__sub, .wstep h3 + .winput { margin-left: 0; } }

.winput { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--txt); font-size: 14px; font-family: inherit; transition: 0.15s var(--ease); }
.winput::placeholder { color: var(--txt-3); }
.winput:focus { outline: none; border-color: var(--accent-line); background: var(--surface-3); }
.wstep > .winput, .wstep > .wlabel, .wstep > .wnote, .wstep > .wmethods { margin-left: 35px; }
.winput--num { max-width: 240px; }
.winput--static { display: flex; align-items: center; min-height: 46px; background: var(--surface-3); color: var(--txt); word-break: break-all; }
.wnote { font-size: 12.5px; color: var(--txt-2); margin-top: 8px; }
.wnote b { font-weight: 650; }
.wlabel { display: block; font-size: 12px; font-weight: 600; color: var(--txt-2); margin: 16px 0 8px; }

.wmethods { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.wmethod { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--txt-2); font-size: 14px; font-weight: 550; transition: 0.15s var(--ease); }
.wmethod svg { color: var(--txt-3); }
.wmethod__logo { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; border-radius: 4px; }
.wmethod:hover { border-color: var(--accent-line); color: var(--txt); }
.wmethod.is-active { border-color: var(--accent); color: var(--txt); background: var(--accent-soft); }
.wmethod.is-active svg { color: var(--accent); }
.wcontinue { margin-top: 4px; min-width: 168px; }

/* confirm modal */
.wconfirm { display: flex; flex-direction: column; }
.wconfirm__amt { font-size: 13px; color: var(--txt-2); margin-top: 14px; }
.wwarn { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; padding: 14px 15px; border-radius: var(--r); border: 1px solid var(--warn-soft); background: var(--warn-soft); }
.wwarn svg { color: var(--warn); flex: 0 0 auto; margin-top: 1px; }
.wwarn p { font-size: 13px; line-height: 1.55; color: #ffcf8f; }


/* =========================================================================
   HARD UPGRADE · Tier 0 · shared primitives, tokens & shell polish
   ========================================================================= */

/* focus ring (was absent) · keyboard-first for the Cmd-K audience */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* per-status surface tints derived from one source */
:root {
  --tint-funded: color-mix(in srgb, var(--accent) 14%, transparent);
  --tint-eval:   color-mix(in srgb, var(--warn) 14%, transparent);
  --tint-pass:   color-mix(in srgb, var(--pass) 14%, transparent);
  --tint-info:   color-mix(in srgb, var(--info) 14%, transparent);
  --tint-fail:   color-mix(in srgb, var(--fail) 14%, transparent);
}

/* amber meter zone (25–50%) beside the existing is-low */
.meter__fill.is-warn { background: linear-gradient(90deg, var(--warn), #ffd27a); }

/* ---- conic-gradient progress ring (donut via mask + -webkit-mask) ------- */
.ring { position: relative; width: var(--size, 104px); height: var(--size, 104px); flex: 0 0 auto; }
.ring__arc {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--rc, var(--accent)) calc(var(--p, 0) * 1%), var(--surface-3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - 9px), #000 calc(50% - 8px));
          mask: radial-gradient(farthest-side, transparent calc(50% - 9px), #000 calc(50% - 8px));
}
.ring__center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; gap: 1px; padding: 0 8px; }
.ring__val { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__lab { font-size: 10.5px; color: var(--txt-3); line-height: 1.2; }

/* ---- 180° needle gauge -------------------------------------------------- */
.gauge { display: flex; flex-direction: column; align-items: center; gap: 0; }
.gauge__svg { width: 100%; max-width: 156px; height: auto; }
.gauge__fill { transition: stroke-dasharray .9s var(--spring); }
.gauge__needle { transition: transform .9s var(--spring); }
.reduced-motion .gauge__fill, .reduced-motion .gauge__needle { transition: none; }
.gauge__c { text-align: center; margin-top: -8px; }
.gauge__c b { font-family: "Bricolage Grotesque"; font-size: 19px; font-variant-numeric: tabular-nums; }
.gauge__c span { display: block; font-size: 11px; color: var(--txt-3); margin-top: 2px; }

/* ---- skeleton (reuses @keyframes shimmer) ------------------------------- */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.05) 40%, transparent 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel--line { height: 12px; margin: 7px 0; } .skel--line:nth-child(2) { width: 80%; } .skel--line:nth-child(3) { width: 60%; }
.skel--kpi { height: 66px; } .skel--card { height: 160px; border-radius: var(--r-lg); }
.reduced-motion .skel::after { animation: none; }
.islot.is-loaded .islot__skeleton { opacity: 0; transition: opacity .45s var(--ease); }

/* ---- segmented control (pure-CSS sliding pill, equal-width via grid) ----- */
.segctl { --n: 3; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 4px; border-radius: 13px; background: var(--surface-1); border: 1px solid var(--line); }
.segctl__ind { position: absolute; top: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); height: calc(100% - 8px); border-radius: 9px; background: var(--surface-3); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset; transform: translateX(calc(var(--i) * 100%)); transition: transform .34s var(--spring); z-index: 0; }
.segctl > button { position: relative; z-index: 1; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--txt-3); white-space: nowrap; transition: color .16s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.segctl > button.is-active { color: var(--txt); }
.reduced-motion .segctl__ind { transition: none; }

/* ---- command palette (Cmd-K) ------------------------------------------- */
.cmdk-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(5,7,10,0.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.cmdk-scrim.is-open { opacity: 1; pointer-events: auto; }
.cmdk { position: fixed; z-index: 81; top: 13vh; left: 50%; transform: translateX(-50%) translateY(-10px) scale(.98); width: min(640px, 92vw); border-radius: 18px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--elevated) 90%, transparent); backdrop-filter: blur(24px) saturate(1.2); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .24s var(--spring); overflow: hidden; }
.cmdk.is-open { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
.cmdk__input { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk__input svg { color: var(--txt-3); flex: 0 0 auto; }
.cmdk__input input { flex: 1; background: none; border: none; outline: none; color: var(--txt); font-size: 16px; font-family: inherit; }
.cmdk__list { max-height: 54vh; overflow-y: auto; padding: 8px; }
.cmdk__group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); font-weight: 700; padding: 10px 12px 5px; }
.cmdk__row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 11px; color: var(--txt-2); position: relative; }
.cmdk__row .cmdk__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); flex: 0 0 30px; color: var(--txt-2); overflow: hidden; }
.cmdk__row .cmdk__ico img { width: 18px; height: 18px; object-fit: contain; }
.cmdk__row .cmdk__ico svg { width: 17px; height: 17px; }
.cmdk__row b { font-size: 14px; font-weight: 550; color: var(--txt); }
.cmdk__row .cmdk__sub { font-size: 12px; color: var(--txt-3); margin-left: auto; }
.cmdk__row.is-active { background: var(--surface-2); color: var(--txt); }
.cmdk__row.is-active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.cmdk__empty { padding: 34px; text-align: center; color: var(--txt-3); font-size: 13px; }
.kbd { font-size: 10.5px; font-family: "Space Grotesk", monospace; border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 6px; color: var(--txt-3); background: var(--surface-1); white-space: nowrap; }

/* ---- portfolio health strip (overview) --------------------------------- */
.hstrip { display: flex; flex-direction: column; gap: 9px; }
.hrow { display: grid; grid-template-columns: 30px minmax(110px, 1.5fr) auto 1fr 1fr 128px auto 16px; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); transition: border-color .16s var(--ease), transform .16s var(--ease); }
.hrow__feed { display: inline-flex; }
.hrow:hover { border-color: var(--line-strong); transform: translateX(2px); }
.hrow__badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; }
.hrow__badge img { width: 18px; height: 18px; object-fit: contain; }
.hrow__id { display: flex; flex-direction: column; min-width: 0; }
.hrow__id b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow__id small { font-size: 11px; color: var(--txt-3); }
.hrow__fig { display: flex; flex-direction: column; gap: 2px; }
.hrow__fig small { font-size: 10.5px; color: var(--txt-3); }
.hrow__fig b { font-size: 14px; font-variant-numeric: tabular-nums; }
.hrow__fig b.up { color: var(--pass); } .hrow__fig b.down { color: var(--fail); }
.hrow__spark { height: 30px; width: 128px; }
.hrow__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.hrow__chev { color: var(--txt-3); }
@media (max-width: 920px) { .hrow { grid-template-columns: 30px 1fr auto; } .hrow__fig, .hrow__spark, .hrow__dot, .hrow__feed, .hrow > .pill { display: none; } }

/* ---- bento grid (overview command center) ------------------------------ */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { min-width: 0; }
.bento__hero { grid-column: span 7; grid-row: span 2; }
.b3 { grid-column: span 3; } .b4 { grid-column: span 4; } .b5 { grid-column: span 5; } .b6 { grid-column: span 6; } .b7 { grid-column: span 7; } .b8 { grid-column: span 8; } .b12 { grid-column: span 12; }
@media (max-width: 1080px) { .bento__hero { grid-column: span 12; grid-row: auto; } .b3, .b4, .b5, .b7, .b8 { grid-column: span 6; } }
@media (max-width: 640px) { .b3, .b4, .b5, .b6, .b7, .b8 { grid-column: span 12; } }

/* tile shell used across bento / risk console */
.tile { padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface-1)); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-3); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__head .pill, .tile__head .feedchip { flex-shrink: 0; }
.tile { min-width: 0; }
.tile__ringwrap { display: flex; align-items: center; gap: 16px; }
.tile__body { min-width: 0; }
.tile__note { font-size: 12.5px; color: var(--txt-2); line-height: 1.5; }
.tile--link { cursor: pointer; transition: border-color .16s var(--ease), transform .16s var(--ease); }
.tile--link:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.tile__big { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.portstrip { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
.portstrip .pbreak { flex: 1; min-width: 120px; }
@media (max-width: 640px) { .portstrip .pbreak { flex: 1 0 45%; padding: 10px 14px; } }

/* overview hero composition (aggregate spark behind the big number) */
.hero__spark { position: absolute; inset: auto 0 0 0; height: 60%; opacity: 0.16; pointer-events: none; -webkit-mask: linear-gradient(180deg, transparent, #000 70%); mask: linear-gradient(180deg, transparent, #000 70%); }
.hero__inner { position: relative; z-index: 1; }
.hero__equity { margin-top: 18px; }
.hero__equity .portfolio__figure { margin-top: 8px; }
.hero__actions { margin-top: 20px; }
.bento__hero { display: flex; flex-direction: column; justify-content: center; }

/* ---- topbar EOD settlement ring ---------------------------------------- */
.eod__ring { --size: 26px; width: 26px; height: 26px; flex: 0 0 26px; }
.eod--soon { border-color: var(--accent-line); }
.eod--soon .eod__time { color: var(--accent); }

/* ---- generic bar-grow (analytics) -------------------------------------- */
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---- View Transitions (feature-detected; degrade to @keyframes viewIn) -- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}
.reduced-motion::view-transition-group(*), .reduced-motion ::view-transition-group(*) { animation: none !important; }

/* ---- breadcrumb on account detail (in the topbar title) ----------------- */
.crumb { font: inherit; color: var(--txt-3); font-weight: 600; }
.crumb:hover { color: var(--accent); }
.crumb__sep { color: var(--txt-3); margin: 0 8px; font-weight: 400; }
.crumb__cur { font-weight: 700; }

/* ---- theme accents (every component reads var(--accent)/surfaces) -------- */
[data-accent="gold"]  { --accent:#ffc24a; --accent-2:#ffd479; --accent-soft:rgba(255,194,74,0.14); --accent-line:rgba(255,194,74,0.42); --ember:linear-gradient(135deg,#ffc24a,#ffd479); }
[data-accent="mint"]  { --accent:#36d399; --accent-2:#5fe0b0; --accent-soft:rgba(54,211,153,0.14); --accent-line:rgba(54,211,153,0.42); --ember:linear-gradient(135deg,#36d399,#5fe0b0); }
[data-accent="azure"] { --accent:#6aa8ff; --accent-2:#93c5fd; --accent-soft:rgba(106,168,255,0.14); --accent-line:rgba(106,168,255,0.42); --ember:linear-gradient(135deg,#6aa8ff,#93c5fd); }
:root { transition: none; }
.app, .topbar, .rail, .card, .tile, .btn, .pill, .ring__arc { transition-property: background, color, border-color; }

/* ---- optional light theme (tasteful; embedded trading surfaces stay dark).
   The order-confirmation CENTER CARD (.cfm__wrap) opts into this light palette
   (white card, dark text, GIF reads better on white) while the page around it
   keeps the dark theme. */
[data-theme="light"], .cfm__wrap {
  --bg:#f4f6f9; --surface-1:#ffffff; --surface-2:#f7f8fb; --surface-3:#eceff4; --elevated:#ffffff;
  --line:rgba(12,15,22,0.09); --line-strong:rgba(12,15,22,0.17);
  --txt:#0e1220; --txt-2:#454d5e; --txt-3:#717a8b;
  --shadow:0 1px 0 rgba(255,255,255,0.7) inset, 0 14px 32px -26px rgba(12,15,22,0.45);
  --shadow-lg:0 32px 64px -36px rgba(12,15,22,0.34);
}
[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .rail { background: linear-gradient(180deg, var(--surface-1), var(--surface-2)); }
[data-theme="light"] .topbar { background: color-mix(in srgb, var(--surface-1) 80%, transparent); }
[data-theme="light"] .sitenav__inner { background: color-mix(in srgb, var(--surface-1) 88%, transparent); }
[data-theme="light"] #embers, [data-theme="light"] .aurora { display: none; }
[data-theme="light"] .cmdk { background: color-mix(in srgb, var(--surface-1) 92%, transparent); }
[data-theme="light"] *::-webkit-scrollbar-thumb { background: rgba(12,15,22,0.16); background-clip: padding-box; }
[data-theme="light"] .navitem.is-active { color: var(--accent); }

/* =========================================================================
   HARD UPGRADE · Tier 2 · account risk console, banners, simulator
   ========================================================================= */
.detail__subnav { width: fit-content; max-width: 100%; }
.rk { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.rk__chart { padding-top: 4px; }
.rk__side { display: flex; flex-direction: column; gap: 16px; }
.rk__ddbadge p { font-size: 12px; color: var(--txt-2); line-height: 1.5; margin-top: 9px; }
.rk__metrics { display: grid; gap: 14px; }
.rk__metric { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-1); }
.rk__metric .tile__label { align-self: flex-start; }
.rk__metrics--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* the two-dollar-questions risk console */
.rk__pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rk__hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-1); flex-wrap: wrap; }
.rk__heronum { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rk__heronum b { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.rk__herosub { font-size: 13px; color: var(--txt-2); }
.rk__herosub b { font-family: inherit; font-size: 13px; color: var(--txt); font-weight: 650; }
.rk__note { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 12.5px; color: var(--txt-2); }
.rk__note svg { color: var(--warn); flex: 0 0 auto; }
.rk__note b { color: var(--txt); }
.rk__block { margin-top: 22px; }
.rk__subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-3); font-weight: 600; margin-bottom: 13px; }
.rk__cap { font-size: 12.5px; color: var(--txt-3); margin: 9px 2px 16px; }
.rk__cap.is-good { color: var(--pass); font-weight: 600; }
.rk__gatesub { font-size: 12px; color: var(--txt-3); margin-top: 3px; }
@media (max-width: 1080px) { .rk { grid-template-columns: 1fr; } .rk__metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 560px) { .rk__hero { justify-content: center; text-align: center; } .rk__heronum { align-items: center; } }

/* dxFeed custom breach chart in the account hero */
.detail__chartwrap { margin-top: 18px; }
.detail__charttop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.detail__chartlegend { display: flex; gap: 14px; font-size: 11px; color: var(--txt-3); }
.detail__chartlegend i { font-style: normal; display: inline-flex; align-items: center; gap: 5px; }
.detail__chartlegend i::before { content: ""; width: 9px; height: 2px; border-radius: 2px; background: currentColor; }

.riskbanner { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.riskbanner svg { flex: 0 0 auto; margin-top: 1px; }
.riskbanner b { display: block; font-size: 14px; font-weight: 650; color: var(--txt); }
.riskbanner p { font-size: 12.5px; margin-top: 3px; line-height: 1.5; color: var(--txt-2); }
.riskbanner--warn { background: var(--warn-soft); border-color: rgba(255,178,62,0.3); } .riskbanner--warn svg { color: var(--warn); }
.riskbanner--fail { background: var(--fail-soft); border-color: rgba(255,84,98,0.3); } .riskbanner--fail svg { color: var(--fail); }

.sim { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sim__verdict .pill { height: 28px; padding: 0 14px; }
.sim__row { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.sim__row b { font-size: 19px; font-family: "Bricolage Grotesque"; font-variant-numeric: tabular-nums; }
.sim__range { width: 100%; accent-color: var(--accent); height: 6px; }
.sim__scale { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: var(--txt-3); }

/* ---- performance analytics suite --------------------------------------- */
.perf-kpi b { font-family: "Bricolage Grotesque"; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.perf-kpi__sub { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 5px; }

.cal { display: flex; flex-direction: column; gap: 12px; }
.cal__grid { display: grid; grid-template-rows: repeat(7, 15px); grid-auto-flow: column; grid-auto-columns: 15px; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.cal__cell { width: 15px; height: 15px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.04); }
.cal__cell.is-best { box-shadow: 0 0 0 2px var(--gold); }
.cal__legend { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--txt-3); }
.cal__legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.cal__best { margin-left: auto; color: var(--gold); font-weight: 600; }

.symbars { display: grid; gap: 12px; }
.symrow { display: grid; grid-template-columns: 52px 1fr 92px 120px; align-items: center; gap: 14px; }
.symrow__sym { font-weight: 700; font-family: "Space Grotesk"; }
.symrow__track { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.symrow__bar { height: 100%; border-radius: 6px; }
.symrow__bar.pos { background: linear-gradient(90deg, var(--pass), #6ee7b7); }
.symrow__bar.neg { background: linear-gradient(90deg, var(--fail), #ff8a93); }
.symrow__val { text-align: right; font-weight: 600; }
.symrow__meta { font-size: 11.5px; color: var(--txt-3); text-align: right; }
@media (max-width: 620px) { .symrow { grid-template-columns: 44px 1fr 80px; } .symrow__meta { display: none; } }

.histo { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.histo__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.histo__bar { width: 100%; min-height: 2px; border-radius: 5px 5px 0 0; transform-origin: bottom; animation: barGrow .6s var(--spring) backwards; }
.histo__bar.pos { background: linear-gradient(180deg, #6ee7b7, var(--pass)); }
.histo__bar.neg { background: linear-gradient(180deg, #ff8a93, var(--fail)); }
.histo__col span { font-size: 10.5px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.reduced-motion .histo__bar { animation: none; }

.vbars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 8px; }
.vbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; }
.vbar__fill { width: 100%; min-height: 2px; border-radius: 5px 5px 0 0; transform-origin: bottom; animation: barGrow .6s var(--spring) backwards; }
.vbar__fill.pos { background: linear-gradient(180deg, #6ee7b7, var(--pass)); }
.vbar__fill.neg { background: linear-gradient(180deg, #ff8a93, var(--fail)); }
.vbar span { font-size: 11px; color: var(--txt-3); }
.reduced-motion .vbar__fill { animation: none; }

/* payout readiness checklist */
.rdy__grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.rdy__list { display: grid; gap: 11px; }
.rdy__row { display: flex; align-items: center; gap: 12px; }
.rdy__ico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; }
.rdy__row.is-ok .rdy__ico { background: var(--pass-soft); color: var(--pass); }
.rdy__row.is-no .rdy__ico { background: var(--surface-3); color: var(--txt-3); }
.rdy__row b { font-size: 13.5px; font-weight: 600; display: block; }
.rdy__row small { font-size: 12px; color: var(--txt-3); display: block; margin-top: 1px; }
.rdy__row.is-no b { color: var(--txt-2); }
@media (max-width: 620px) { .rdy__grid { grid-template-columns: 1fr; } .rdy__ring { justify-self: center; } }
.acct__payout--pending { border-color: var(--line-strong); background: var(--surface-1); }

/* web-trading positions blotter + frame context */
.trade__blotter { flex: 0 0 auto; max-height: 40%; overflow: auto; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.blotter__head { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--line); font-size: 13px; position: sticky; top: 0; background: var(--surface-1); z-index: 1; }
.blotter__head b { font-weight: 650; }
.frameview__ctx { display: inline-flex; align-items: center; gap: 10px; margin-left: 14px; flex-wrap: wrap; }
@media (max-width: 720px) { .frameview__ctx { display: none; } }

/* contextual messages (dismissible, state-driven announcement cards) */
.msgs { display: flex; flex-direction: column; gap: 12px; }
.msgcard { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 48px 16px 22px; border-radius: var(--r-lg); border: 1px solid var(--line-strong); overflow: hidden; transition: opacity .26s var(--ease), height .26s var(--ease), padding .26s var(--ease), margin .26s var(--ease); }
.msgcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.msgcard--accent { background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface-1); }
.msgcard--accent::before { background: linear-gradient(var(--accent), var(--accent-2)); }
.msgcard--info { background: linear-gradient(120deg, color-mix(in srgb, var(--info) 12%, transparent), transparent 60%), var(--surface-1); border-color: color-mix(in srgb, var(--info) 32%, transparent); }
.msgcard--info::before { background: var(--info); }
.msgcard--danger { background: linear-gradient(120deg, var(--fail-soft), transparent 60%), var(--surface-1); border-color: rgba(255,84,98,0.32); }
.msgcard--danger::before { background: var(--fail); }
.msgcard__ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; padding: 8px; }
.msgcard__ico img { width: 100%; height: 100%; object-fit: contain; }
.msgcard__text { flex: 1; min-width: 0; }
.msgcard__text b { font-size: 14.5px; font-weight: 650; display: block; }
.msgcard__text p { font-size: 13px; color: var(--txt-2); line-height: 1.5; margin-top: 3px; }
/* copyable "redeem code" ticket (Thor registration message) · compact + inline,
   sized to the text line so it never grows the banner height */
.codechip { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding: 2px 4px 2px 10px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent) 4%, transparent)); cursor: pointer; vertical-align: middle; line-height: 1; transition: border-color .15s var(--ease), background .15s var(--ease); }
.codechip:hover { border-color: var(--accent); background: var(--accent-soft); }
.codechip__k { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-3); white-space: nowrap; }
.codechip__v { font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.codechip__c { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); transition: background .15s var(--ease); }
.codechip:hover .codechip__c { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.codechip__c svg { width: 12px; height: 12px; }
.msgcard__cta { flex: 0 0 auto; }
.msgcard__x { position: absolute; top: 13px; right: 13px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--txt-3); z-index: 2; }
.msgcard__x:hover { background: var(--surface-3); color: var(--txt); }

/* wide welcome card with the ecosystem showcase */
.msgcard--wide { flex-direction: column; align-items: stretch; gap: 18px; }
.msgcard--wide .msgcard__top { display: flex; align-items: center; gap: 16px; }
.msgcard--wide .msgcard__text { flex: 1; min-width: 0; }
.msgcard__cta--big { margin-left: auto; flex: 0 0 auto; height: 46px; padding: 0 24px; border-radius: 24px; font-size: 14.5px; font-weight: 650; box-shadow: 0 14px 30px -12px var(--accent); }
.msgcard__cta--big:hover { background: #ff6c43; }
.msgcard__eco { border-top: 1px solid var(--line); padding-top: 16px; }
.msgcard__ecolabel { display: block; font-size: 12px; color: var(--txt-3); margin-bottom: 13px; }
.msgcard__ecogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 10px; }
.msgeco { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface-1); transition: 0.16s var(--ease); min-width: 0; }
.msgeco:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.msgeco__ico { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone, var(--accent)) 14%, var(--surface-3)); }
.msgeco__ico img { width: 24px; height: 24px; object-fit: contain; }
.msgeco__txt { min-width: 0; }
.msgeco__txt b { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgeco__txt small { font-size: 11.5px; color: var(--txt-3); display: block; line-height: 1.35; margin-top: 2px; }
@media (max-width: 700px) { .msgcard:not(.msgcard--wide) { flex-wrap: wrap; } .msgcard:not(.msgcard--wide) .msgcard__cta { margin-left: 60px; } .msgcard__cta--big { margin-left: 60px; } }

/* dxFeed "Rules summary" checklist (native rule tracking) */
.rsum__head { display: flex; align-items: center; gap: 9px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rsum__head svg { color: var(--accent); }
.rsum__head h3 { font-size: 14px; }
.rsum { display: flex; flex-direction: column; }
.rsum__row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rsum__row:last-child { border-bottom: none; }
.rsum__ico { width: 26px; height: 26px; flex: 0 0 26px; }
.rsum__ico svg { width: 26px; height: 26px; }
.rsum__spin { animation: spin 1s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.reduced-motion .rsum__spin { animation: none; }
.rsum__main { flex: 1; min-width: 0; }
.rsum__text { font-size: 13.5px; line-height: 1.5; color: var(--txt-2); }
.rsum__text b { color: var(--txt); }
.rsum__bar { height: 7px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 9px; max-width: 480px; }
.rsum__fill { height: 100%; border-radius: 6px; width: 0; transition: width 1s var(--spring); }
.in .rsum__fill { width: var(--to); }
.reduced-motion .rsum__fill { transition: none; width: var(--to); }
.rsum__fill.is-profit { background: linear-gradient(90deg, var(--pass), #6ee7b7); }
.rsum__fill.is-days { background: linear-gradient(90deg, var(--info), #93c5fd); }
.rsum__fill.is-low { background: linear-gradient(90deg, var(--fail), #ff8a93); }
.rsum__pill { flex: 0 0 auto; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--txt-2); background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 5px 11px; white-space: nowrap; }
@media (max-width: 620px) { .rsum__pill { display: none; } }

/* accent swatches (Appearance settings tab) */
.accent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.accent-swatch { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-1); color: var(--txt-2); font-size: 12.5px; font-weight: 600; transition: 0.16s var(--ease); }
.accent-swatch:hover { border-color: var(--line-strong); color: var(--txt); }
.accent-swatch.is-active { border-color: var(--accent-line); color: var(--txt); background: var(--surface-2); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.accent-swatch__dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
@media (max-width: 520px) { .accent-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Order confirmation (immersive thank-you page) · one path, anti-bounce
   ========================================================================= */
.cfm { min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.cfm__bar { display: flex; align-items: center; gap: 14px; padding: 20px 30px; border-bottom: 1px solid var(--line); }
.cfm__brand { display: flex; align-items: center; gap: 12px; }
.cfm__brand img { display: block; }
.cfm__skip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--txt-3); font-size: 13px; font-weight: 600; }
.cfm__skip:hover { color: var(--txt); }
.cfm__skip svg { width: 14px; height: 14px; }
.cfm__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 34px; }
.cfm__wrap { width: 100%; background: #fff; color: var(--txt); border-radius: var(--r-xl); padding: 52px 40px; box-shadow: 0 30px 70px -34px rgba(0,0,0,0.6); }
.cfm__inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 560px) { .cfm__body { padding: 18px; } .cfm__wrap { padding: 34px 22px; } }
.cfm__hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 6px 0; }
.cfm__checkwrap { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--pass-soft); box-shadow: 0 0 0 8px color-mix(in srgb, var(--pass) 9%, transparent); margin-bottom: 2px; }
.cfm__check { width: 86px; height: 86px; object-fit: contain; }
.cfm__hero h1 { font-family: "Bricolage Grotesque"; font-weight: 700; font-size: 30px; line-height: 1.12; letter-spacing: -0.01em; }
.cfm__lead { font-size: 14.5px; color: var(--txt-2); line-height: 1.55; max-width: 470px; }
.cfm__lead b { color: var(--txt); font-weight: 600; }
.cfm__acctblock { display: flex; flex-direction: column; gap: 8px; }
.cfm__acct { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); }
.cfm__acct-badge { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); overflow: hidden; }
.cfm__acct-badge img { width: 24px; height: 24px; object-fit: contain; }
.cfm__acct-id { min-width: 0; flex: 1; }
.cfm__acct-id b { display: block; font-size: 14px; font-weight: 650; }
.cfm__acct-num { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt-3); margin-top: 3px; }
.cfm__acct-num .copy { color: var(--txt-3); display: grid; place-items: center; }
.cfm__acct-num .copy:hover { color: var(--accent); }
.cfm__dot { opacity: 0.5; }
.cfm__order { font-size: 12px; color: var(--txt-3); text-align: center; }
.cfm__cta .btn { height: 52px; font-size: 15.5px; }
.cfm__cta-note { font-size: 12.5px; color: var(--txt-3); text-align: center; margin-top: 11px; line-height: 1.5; }
.cfm__secondary { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cfm__secondary button { color: var(--txt-3); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.cfm__secondary button:hover { color: var(--txt); }
.cfm__secondary button svg { width: 13px; height: 13px; }
.cfm__secondary .sep { color: var(--txt-3); opacity: 0.5; }
@media (max-width: 560px) { .cfm__hero h1 { font-size: 25px; } .cfm__bar { padding: 16px 18px; } }
