/* =========================================================================
   AIBRIDGE â€” Design System v2 "Airy Neobank"
   Subscribe. Automate. Earn Smarter.
   -------------------------------------------------------------------------
   A fintech shell with two nav surfaces: a persistent sidebar (fixed rail on
   desktop, off-canvas drawer on mobile) plus a compact docked tab bar at the
   bottom, on every breakpoint. Cream canvas, flat pastel colour-block cards
   (not white-card-plus-icon-chip), fully pill buttons and inputs, one bold
   violet "hero" card for the number that matters most.
   ========================================================================= */

/* ---------- 1. TOKENS -------------------------------------------------- */
:root {
  /* Brand */
  --violet-700: #4C2FB0;
  --violet-600: #7C5CFC;
  --violet-400: #A78BFA;
  --cyan:       #22D3EE;
  --amber:      #F5B400;
  --pink:       #EC7FC2;
  --pos:        #1E9E5A;   /* financial-convention positive green */

  /* Canvas */
  --bg:        #FAF7F1;
  --surface:   #FFFFFF;
  --surface-2: #FFF;
  --border:    #ECE5D8;

  /* Text */
  --ink:       #17141F;
  --ink-soft:  #5B5768;
  --ink-mute:  #938FA0;

  /* Pastel colour-block fills (background, ink-on-it) */
  --p-violet:     #ECE6FF; --p-violet-ink: #5B3DD1;
  --p-cyan:       #DEF7FB; --p-cyan-ink:   #0E7C90;
  --p-amber:      #FFF1D2; --p-amber-ink:  #A66A00;
  --p-pink:       #FCE4F1; --p-pink-ink:   #BE297A;
  --p-green:      #E1F7E8; --p-green-ink:  #15803D;
  --p-slate:      #ECEAF5; --p-slate-ink:  #423D5C;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #7C5CFC 0%, #9C7CFF 55%, #22D3EE 130%);
  --grad-deep:  linear-gradient(160deg, #171232 0%, #382569 55%, #171232 100%);
  --grad-hero:  linear-gradient(135deg, #6D4CFA 0%, #8C6BFF 100%);

  /* Elevation â€” soft, warm-tinted, low spread */
  --e1: 0 1px 2px rgba(76, 60, 29, .05);
  --e2: 0 6px 20px -6px rgba(76, 60, 29, .12);
  --e3: 0 20px 46px -18px rgba(76, 46, 29, .22), 0 4px 12px rgba(76,46,29,.06);
  --glow-violet: 0 12px 28px -10px rgba(124, 92, 252, .55);

  /* Radius â€” big and round, the signature of this pass */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: .18s var(--ease);
  --base: .32s var(--ease);
  --slow: .6s var(--ease);

  --header-h: 64px;
  --tabbar-h: 64px;
  --screen-w: 640px;
  --sidebar-w: 264px;
}

html.dark {
  --bg:        #15121F;
  --surface:   #1E1A2E;
  --surface-2: #241F37;
  --border:    rgba(255,255,255,.08);
  --ink:       #F5F3FA;
  --ink-soft:  #C7C2DA;
  --ink-mute:  #8B87A3;

  --p-violet:     #2C2350; --p-violet-ink: #C9B8FF;
  --p-cyan:       #163038; --p-cyan-ink:   #7CE6F5;
  --p-amber:      #362A12; --p-amber-ink:  #F5C542;
  --p-pink:       #35202E; --p-pink-ink:   #F5A8D6;
  --p-green:      #14301F; --p-green-ink:  #6EE0A0;
  --p-slate:      #241F37; --p-slate-ink:  #C9C4DE;

  --e1: 0 1px 2px rgba(0,0,0,.4);
  --e2: 0 6px 20px -6px rgba(0,0,0,.5);
  --e3: 0 20px 46px -18px rgba(0,0,0,.7);
}

/* ---------- 2. BASE ---------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv02","cv03","cv04";
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.data, .stat-value, .eyebrow, .kpi {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mute);
}

.muted  { color: var(--ink-soft); }
.mutest { color: var(--ink-mute); }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

::selection { background: rgba(124,92,252,.25); }

:focus-visible {
  outline: 2px solid var(--violet-400);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-400); background-clip: content-box; }

html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.data, .break-all { overflow-wrap: anywhere; }

/* ---------- 3. APP SHELL -------------------------------------------------- */
/* One column, capped at phone-ish width and centred, offset by the sidebar
   rail on wide screens. A persistent sidebar (fixed on desktop, an
   off-canvas drawer on mobile) and a compact docked tab bar are both nav
   chrome at every breakpoint. */
.appwrap { min-height: 100vh; min-height: 100dvh; display: flex !important; flex-direction: column; }
@media (min-width: 1024px) { .appwrap { margin-left: var(--sidebar-w); } }

.topbar-mini {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex !important; align-items: center; gap: 10px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-mini .brandmark { display: flex !important; align-items: center; gap: 9px; }
.topbar-mini .brandmark img { width: 32px; height: 32px; border-radius: 10px; }
.topbar-mini .brandmark span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; }
@media (min-width: 1024px) { .sidebar-toggle { display: none !important; } }

.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid !important; place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--fast);
  flex: 0 0 auto;
}
.icon-btn:hover { color: var(--violet-600); border-color: var(--violet-400); transform: translateY(-1px); }
html.dark .icon-btn:hover { color: var(--violet-400); }

.searchbar {
  display: flex !important; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px; flex: 1 1 auto; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); color: var(--ink-mute);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.searchbar:focus-within { border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(124,92,252,.13); }
.searchbar input { background: transparent; border: 0; outline: 0; width: 100%; font-size: 14px; color: var(--ink); }
.searchbar kbd { font-size: 10px; font-weight: 700; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; color: var(--ink-mute); }

.screen {
  flex: 1 1 auto; width: 100%; max-width: var(--screen-w); margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) { .screen { padding: 24px 20px calc(var(--tabbar-h) + 32px); } }

/* legacy alias â€” some includes still reference .page */
.page { padding: 16px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); max-width: var(--screen-w); width: 100%; margin: 0 auto; }
@media (min-width: 640px) { .page { padding: 24px 20px calc(var(--tabbar-h) + 32px); } }

/* Docked tab bar â€” flat, compact toolbar pinned to the bottom */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex !important; justify-content: center;
  padding: 0 10px calc(8px + env(safe-area-inset-bottom));
  pointer-events: none;
}
@media (min-width: 1024px) { .tabbar { left: var(--sidebar-w); } }
.tabbar__inner {
  pointer-events: auto;
  width: 100%; max-width: 400px;
  display: grid !important; grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--e2);
  padding: 5px 5px;
  gap: 1px;
}
.tabbar a, .tabbar button {
  display: flex !important; flex-direction: column; align-items: center; gap: 2px;
  font-size: 9.5px; font-weight: 700; color: var(--ink-mute);
  padding: 6px 2px 4px; border-radius: 10px; transition: color var(--fast), background var(--fast);
}
.tabbar a svg, .tabbar button svg { width: 18px; height: 18px; }
.tabbar a.is-active, .tabbar button.is-active { color: var(--violet-600); background: var(--p-violet); }
html.dark .tabbar a.is-active, html.dark .tabbar button.is-active { color: var(--violet-400); }
.tabbar .tab--raised {
  position: relative; top: -12px;
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: var(--r-md);
  background: var(--grad-hero); color: #fff;
  display: grid !important; place-items: center;
  box-shadow: var(--glow-violet);
  font-size: 0;
}
.tabbar .tab--raised svg { width: 21px; height: 21px; }

/* ---------- 3a. SIDEBAR (persistent rail / off-canvas drawer) ------------ */
.sidebar-scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(23,20,31,.45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--base);
}
body.is-drawer-open .sidebar-scrim { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 70;
  width: var(--sidebar-w);
  display: flex !important; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-100%);
  transition: transform var(--base);
  overflow-y: auto;
}
body.is-drawer-open .sidebar { transform: translateX(0); box-shadow: var(--e3); }

.sidebar__brand { display: flex !important; align-items: center; justify-content: space-between; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.sidebar__close { width: 34px; height: 34px; }

.sidebar__nav { display: flex !important; flex-direction: column; gap: 1px; flex: 1 1 auto; }
.sidebar__group { padding: 14px 10px 4px; }
.sidebar__group:first-child { padding-top: 2px; }
.sidebar__link {
  display: flex !important; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background var(--fast), color var(--fast);
}
.sidebar__link:hover { background: var(--p-slate); color: var(--ink); }
.sidebar__link.is-active { background: var(--p-violet); color: var(--violet-600); font-weight: 700; }
html.dark .sidebar__link.is-active { color: var(--violet-400); }
.sidebar__ico {
  width: 32px; height: 32px; border-radius: var(--r-pill); flex: 0 0 auto;
  display: grid !important; place-items: center;
  background: var(--p-slate); color: var(--p-slate-ink);
}
.sidebar__ico svg { width: 15px; height: 15px; }
.sidebar__link.is-active .sidebar__ico { background: rgba(255,255,255,.6); color: inherit; }
html.dark .sidebar__link.is-active .sidebar__ico { background: rgba(255,255,255,.12); }
.sidebar__signout { color: #C0271F; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); flex: 0 0 auto; }
.sidebar__signout:hover { background: #FDE4E4; color: #C0271F; }
html.dark .sidebar__signout:hover { background: #3A1A1A; }

/* Desktop: sidebar becomes a permanent rail â€” no scrim, no toggle, no slide */
@media (min-width: 1024px) {
  .sidebar { transform: none !important; box-shadow: none; }
  .sidebar-scrim { display: none !important; }
}

/* ---------- 4. COMPONENTS ------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--e1);
  transition: transform var(--base), box-shadow var(--base), border-color var(--base);
}
.card--pad { padding: clamp(14px, 1.7vw, 20px); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: rgba(124,92,252,.35); }

/* Pastel colour-block card modifiers â€” the visual signature of this pass.
   Used instead of "white card + coloured icon chip" wherever a section
   benefits from being instantly, playfully identifiable by colour.        */
.card--violet { background: var(--p-violet); color: var(--p-violet-ink); border-color: transparent; }
.card--cyan   { background: var(--p-cyan);   color: var(--p-cyan-ink);   border-color: transparent; }
.card--amber  { background: var(--p-amber);  color: var(--p-amber-ink);  border-color: transparent; }
.card--pink   { background: var(--p-pink);   color: var(--p-pink-ink);   border-color: transparent; }
.card--green  { background: var(--p-green);  color: var(--p-green-ink); border-color: transparent; }
.card--slate  { background: var(--p-slate);  color: var(--p-slate-ink); border-color: transparent; }
.card--violet .stat-value, .card--cyan .stat-value, .card--amber .stat-value,
.card--pink .stat-value, .card--green .stat-value, .card--slate .stat-value,
.card--violet h1, .card--violet h2, .card--violet h3,
.card--cyan h1, .card--cyan h2, .card--cyan h3,
.card--amber h1, .card--amber h2, .card--amber h3 { color: inherit; }

.glass {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.sec-head { display: flex !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(17px, 2vw, 20px); font-weight: 700; }
.sec-head p { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }

/* Buttons â€” fully pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 24px;
  touch-action: manipulation;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--grad-hero); color: #fff; box-shadow: var(--glow-violet); }
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(124,92,252,.65); transform: translateY(-2px); }
.btn--solar { background: var(--amber); color: #3D2C00; box-shadow: 0 10px 26px -10px rgba(245,180,0,.55); }
.btn--solar:hover { transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--violet-400); color: var(--violet-600); transform: translateY(-2px); }
html.dark .btn--ghost:hover { color: var(--violet-400); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { transform: translateY(-2px); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 13.5px; }
@media (min-width: 1024px) { .btn--sm { height: 40px; font-size: 13px; } }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
  background: var(--p-violet); color: var(--p-violet-ink);
  border: none;
}
.chip--solar, .chip--amber { background: var(--p-amber); color: var(--p-amber-ink); }
.chip--hydro, .chip--cyan  { background: var(--p-cyan);  color: var(--p-cyan-ink); }
.chip--wind  { background: var(--p-cyan); color: var(--p-cyan-ink); opacity: .85; }
.chip--grey  { background: var(--p-slate); color: var(--p-slate-ink); }
.chip--danger{ background: #FDE4E4; color: #C0271F; }
html.dark .chip--danger { background: #3A1A1A; color: #F5A3A3; }

.dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.dot--live { box-shadow: 0 0 0 0 rgba(124,92,252,.6); animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(124,92,252,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(124,92,252,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,92,252,0); }
}

/* Stat card */
.stat {
  position: relative; overflow: hidden;
  background: var(--p-slate); color: var(--p-slate-ink);
  border: none;
  border-radius: var(--r-lg); padding: 18px;
  transition: transform var(--base), box-shadow var(--base);
}
.stat:hover { transform: translateY(-3px); }
.stat__icon { width: 34px; height: 34px; border-radius: var(--r-pill); display: grid !important; place-items: center; color: #fff; background: var(--grad-hero); }
.stat__icon svg { width: 16px; height: 16px; }
.stat-value { font-size: clamp(17px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat__spark { position: absolute; right: 0; bottom: 0; width: 120px; height: 46px; opacity: .5; pointer-events: none; }

/* Tone classes for icon chips placed on top of pastel cards (white glass circle) */
.i-violet, .i-green { background: rgba(255,255,255,.55); color: var(--p-violet-ink) !important; }
.i-amber,  .i-solar  { background: rgba(255,255,255,.55); color: var(--p-amber-ink) !important; }
.i-cyan,   .i-hydro  { background: rgba(255,255,255,.55); color: var(--p-cyan-ink) !important; }
.i-slate,  .i-dark   { background: rgba(255,255,255,.55); color: var(--p-slate-ink) !important; }
html.dark .i-violet, html.dark .i-green { background: rgba(255,255,255,.08); }
html.dark .i-amber,  html.dark .i-solar { background: rgba(255,255,255,.08); }
html.dark .i-cyan,   html.dark .i-hydro { background: rgba(255,255,255,.08); }
html.dark .i-slate,  html.dark .i-dark  { background: rgba(255,255,255,.08); }
/* Stand-alone icon chips (not on a pastel card) still want a filled look */
.stat__icon.i-violet, .stat__icon.i-green,
.stat__icon.i-amber,  .stat__icon.i-solar,
.stat__icon.i-cyan,   .stat__icon.i-hydro,
.stat__icon.i-slate,  .stat__icon.i-dark { color: #fff !important; }
.stat__icon.i-violet, .stat__icon.i-green { background: var(--grad-hero); }
.stat__icon.i-amber,  .stat__icon.i-solar  { background: linear-gradient(135deg,#F5B400,#FFD766); color: #3D2C00 !important; }
.stat__icon.i-cyan,   .stat__icon.i-hydro  { background: linear-gradient(135deg,#22D3EE,#67E8F9); color: #06414A !important; }
.stat__icon.i-slate,  .stat__icon.i-dark   { background: var(--ink); }
/* `html.dark .i-*` above outranks the plain `.stat__icon.i-*` pair, which left
   filled chips with a glass background but their dark on-gradient ink — i.e.
   an invisible icon in dark mode. Restate the fills at matching specificity. */
html.dark .stat__icon.i-violet, html.dark .stat__icon.i-green { background: var(--grad-hero); }
html.dark .stat__icon.i-amber,  html.dark .stat__icon.i-solar { background: linear-gradient(135deg,#F5B400,#FFD766); }
html.dark .stat__icon.i-cyan,   html.dark .stat__icon.i-hydro { background: linear-gradient(135deg,#22D3EE,#67E8F9); }
html.dark .stat__icon.i-slate,  html.dark .stat__icon.i-dark  { background: #0F0C18; color: #F5F3FA !important; }

/* Meter */
.meter { height: 8px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
html.dark .meter { background: rgba(255,255,255,.1); }
.meter__fill { height: 100%; width: 0; border-radius: 99px; background: var(--grad-hero); transition: width 1.4s var(--ease); }
.meter__fill--solar, .meter__fill--amber { background: var(--amber); }
.meter__fill--hydro, .meter__fill--cyan  { background: var(--cyan); }

/* Forms â€” pill inputs */
.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; height: 54px; padding: 0 20px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-size: 16px;
  outline: 0;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
@media (min-width: 1024px) { .input, .select, .textarea { height: 50px; font-size: 14.5px; } }
.textarea { height: auto; padding: 16px 20px; min-height: 120px; resize: vertical; border-radius: var(--r-md); }
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(124,92,252,.13); }
.input-group { position: relative; }
.input-group .input { padding-left: 48px; }
.input-group__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); width: 18px; height: 18px; }
.input-group__action { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); padding: 6px; border-radius: 8px; }
.input-group__action:hover { color: var(--violet-600); }
.hint { font-size: 12px; color: var(--ink-mute); margin-top: 7px; padding-left: 6px; }
.hint--error { color: #C0271F; }
html.dark .hint--error { color: #F5A3A3; }

.checkbox { display: flex !important; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.checkbox input { appearance: none; width: 19px; height: 19px; flex: 0 0 19px; border: 1.5px solid var(--border); border-radius: 7px; margin-top: 1px; transition: all var(--fast); position: relative; }
.checkbox input:checked { background: var(--grad-hero); border-color: transparent; }
.checkbox input:checked::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat; }

.strength { display: flex !important; gap: 5px; margin-top: 9px; padding: 0 6px; }
.strength span { height: 5px; flex: 1; border-radius: 99px; background: var(--border); transition: background var(--base); }

/* Segmented control â€” pill */
.seg {
  display: flex !important; padding: 4px; background: var(--p-slate);
  border: none; border-radius: var(--r-pill); gap: 3px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; color: var(--p-slate-ink); opacity: .6; transition: all var(--fast); white-space: nowrap; }
@media (min-width: 1024px) { .seg { display: inline-flex; } .seg button { min-height: 0; font-size: 13px; } }
.seg button.is-active { background: var(--surface); color: var(--violet-600); opacity: 1; box-shadow: var(--e1); }

/* Table (kept minimal â€” used for pure comparison grids) */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 15px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background var(--fast); }
.table tbody tr:hover { background: var(--p-violet); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; max-width: 100%; }
.table th, .table td { white-space: nowrap; }
.table th:first-child, .table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
@media (min-width: 1024px) { .table th:first-child, .table td:first-child { position: static; } }

.avatar { border-radius: var(--r-pill); background: var(--grad-hero); color: #fff; display: grid !important; place-items: center; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; flex: 0 0 auto; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 99px; background: var(--surface); border: 2px solid var(--border); }
.tl-item.is-done::before { background: var(--violet-400); border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(124,92,252,.16); }
.tl-item.is-current::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,180,0,.2); animation: pulse-dot 2s infinite; }

.acc { border-bottom: 1px solid var(--border); }
.acc__btn { display: flex !important; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; text-align: left; font-weight: 700; font-size: 15px; font-family: 'Plus Jakarta Sans', sans-serif; }
.acc__btn svg { transition: transform var(--base); color: var(--ink-mute); flex: 0 0 auto; }
.acc.is-open .acc__btn svg { transform: rotate(180deg); color: var(--violet-600); }
.acc__body { display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows var(--base); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 4px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

.state { text-align: center; padding: 52px 20px; }
.state__icon { width: 68px; height: 68px; border-radius: var(--r-pill); display: grid !important; place-items: center; margin: 0 auto 18px; background: var(--p-violet); color: var(--p-violet-ink); }
.state__icon svg { width: 28px; height: 28px; }
.state h3 { font-size: 17px; margin-bottom: 6px; }
.state p { color: var(--ink-mute); font-size: 14px; max-width: 380px; margin: 0 auto 20px; }

.skeleton { position: relative; overflow: hidden; background: var(--border); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.4s infinite; }
html.dark .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Toast â€” sits above the floating tab bar */
.toast-wrap { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); display: flex !important; flex-direction: column; gap: 10px; align-items: center; }
@media (min-width: 640px) { .toast-wrap { left: auto; right: 20px; width: 380px; align-items: stretch; } }
.toast {
  display: flex !important; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 14px 20px; border-radius: var(--r-pill); box-shadow: var(--e3);
  font-size: 13.5px; font-weight: 600;
  animation: toast-in .4s var(--ease);
  max-width: 92vw;
}
.toast--error { background: #C0271F; color: #fff; }
.toast--solar { background: var(--amber); color: #3D2C00; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* Modal / sheet â€” ALWAYS a bottom sheet, on every screen size. This is a
   deliberate mobile-first choice: dialogs never "become a desktop dialog." */
.modal { position: fixed; inset: 0; z-index: 150; display: none; place-items: end center; padding: 0; }
.modal.is-open { display: grid !important; }
.modal__scrim { position: absolute; inset: 0; background: rgba(23,20,31,.55); backdrop-filter: blur(4px); animation: fade .3s var(--ease); }
.modal__panel {
  position: relative; width: 100%; max-width: var(--screen-w);
  max-height: 88dvh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: var(--e3);
  animation: sheet-in .4s var(--ease);
}
.modal__panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--border); margin: -6px auto 16px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* FAB â€” repositioned above the floating tab bar */
.fabs { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); z-index: 55; display: flex !important; flex-direction: column; gap: 12px; }
.fab { width: 52px; height: 52px; border-radius: var(--r-pill); display: grid !important; place-items: center; color: #fff; box-shadow: var(--e3); transition: transform var(--base), box-shadow var(--base); position: relative; }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 22px; height: 22px; }
.fab--chat { background: var(--grad-hero); }
.fab::after {
  content: attr(data-label);
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: all var(--fast);
}
.fab:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

/* AI Assistant chat thread */
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
.chat-thread { max-height: 42vh; overflow-y: auto; display: flex !important; flex-direction: column; gap: 10px; padding: 2px 2px 4px; margin-bottom: 14px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 1.55; animation: bubble-in .25s var(--ease); }
.chat-bubble--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.chat-bubble--user { align-self: flex-end; background: var(--grad-hero); color: #fff; border-bottom-right-radius: 6px; }
.chat-bubble__link { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--violet-600); }
html.dark .chat-bubble__link { color: var(--violet-400); }
.chat-typing { display: inline-flex !important; gap: 4px; padding: 3px 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: chat-typing-dot 1.1s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Hero utilities (marketing + section heroes) */
.hero-deep { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; border-radius: var(--r-xl); }
.hero-deep h1, .hero-deep h2, .hero-deep h3 { color: #fff; }
.mesh::before, .mesh::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.mesh::before { width: 420px; height: 420px; background: rgba(124,92,252,.4); top: -120px; right: -70px; animation: float-a 16s ease-in-out infinite; }
.mesh::after  { width: 340px; height: 340px; background: rgba(34,211,238,.22); bottom: -130px; left: -50px; animation: float-b 20s ease-in-out infinite; }
@keyframes float-a { 50% { transform: translate(-40px, 50px) scale(1.12); } }
@keyframes float-b { 50% { transform: translate(50px, -40px) scale(1.08); } }

/* ---------- 5. HERO BALANCE + ACTION ROW (new flagship components) ------ */
.hero-balance {
  background: var(--grad-hero); color: #fff;
  border-radius: var(--r-lg);
  padding: 18px 18px;
  position: relative; overflow: hidden;
}
.hero-balance::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12); top: -80px; right: -50px; }
.hero-balance::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -60px; left: -30px; }
.hero-balance__label { position: relative; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.75); }
.hero-balance__value { position: relative; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(24px, 5.5vw, 32px); letter-spacing: -.02em; margin-top: 4px; }
.hero-balance__row { position: relative; display: flex !important; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-balance__pill { background: rgba(255,255,255,.16); border-radius: var(--r-sm); padding: 8px 11px; flex: 1 1 auto; min-width: 96px; }
.hero-balance__pill p:first-child { font-size: 9.5px; color: rgba(255,255,255,.7); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-balance__pill p:last-child { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; margin-top: 2px; }

.actionrow { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actionrow--5 { grid-template-columns: repeat(5, 1fr); }
.action-circle { display: flex !important; flex-direction: column; align-items: center; gap: 8px; }
.action-circle__ico {
  width: 56px; height: 56px; border-radius: var(--r-pill);
  display: grid !important; place-items: center;
  background: var(--p-violet); color: var(--p-violet-ink);
  transition: transform var(--fast), box-shadow var(--fast);
}
.action-circle:active .action-circle__ico { transform: scale(.93); }
.action-circle__ico svg { width: 22px; height: 22px; }
.action-circle__label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; }

/* ---------- 6. WALLET CARDS (AI Workspace plans as debit-card visuals) --- */
.walletcards {
  display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 4px 10px; margin: 0 -4px;
}
.walletcards::-webkit-scrollbar { display: none; }
.walletcard {
  flex: 0 0 auto; scroll-snap-align: start;
  width: min(64vw, 250px); aspect-ratio: 1.75 / 1;
  border-radius: var(--r-md); padding: 15px;
  display: flex !important; flex-direction: column; justify-content: space-between;
  color: #fff; position: relative; overflow: hidden;
}
.walletcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.walletcard__top { position: relative; display: flex !important; align-items: flex-start; justify-content: space-between; }
.walletcard__ico { width: 32px; height: 32px; border-radius: var(--r-pill); background: rgba(255,255,255,.22); display: grid !important; place-items: center; }
.walletcard__ico svg { width: 15px; height: 15px; }
.walletcard__bottom { position: relative; }
.walletcard__price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.walletcard__name { font-size: 11px; font-weight: 700; opacity: .9; margin-top: 2px; }

/* ---------- 6a. SUBSCRIBE FLOW: plan list + confirm modal ---------------- */
.plan-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px 14px; margin-bottom: 10px;
  transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast);
}
.plan-item:hover { transform: translateY(-2px); box-shadow: var(--e2); border-color: rgba(124,92,252,.3); }
.plan-item:active { transform: scale(.985); }
.plan-item__ico { width: 34px; height: 34px; border-radius: var(--r-pill); display: grid !important; place-items: center; flex: 0 0 auto; }
.plan-item__ico svg { width: 16px; height: 16px; }
.plan-item__body { flex: 1 1 auto; min-width: 0; }
.plan-item__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.plan-item__sub { font-size: 12px; color: var(--ink-mute); margin-top: 1px; }

/* Nicely-styled confirm modal, with distinct success / error result states */
.buy-banner {
  border-radius: var(--r-lg); padding: 24px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.buy-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.buy-banner__ico { position: relative; width: 52px; height: 52px; border-radius: var(--r-pill); background: rgba(255,255,255,.22); display: grid !important; place-items: center; margin: 0 auto; }
.buy-banner__ico svg { width: 24px; height: 24px; }
.buy-banner__name { position: relative; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; margin-top: 12px; }
.buy-banner__sub { position: relative; font-size: 13px; opacity: .85; margin-top: 2px; }

.buy-detail { background: var(--p-slate); color: var(--p-slate-ink); border-radius: var(--r-md); padding: 6px 16px; margin-top: 16px; }
.buy-detail > div { padding: 9px 0; font-size: 14px; }

/* Crossfade between confirm / success / error panels inside the modal */
[data-buy-state] { transition: opacity .32s var(--ease), transform .32s var(--ease); opacity: 0; transform: translateY(10px) scale(.98); }
[data-buy-state].is-active { opacity: 1; transform: none; }

@keyframes buy-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes buy-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes buy-ring { from { transform: scale(.7); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }
.buy-result { position: relative; width: 74px; height: 74px; border-radius: var(--r-pill); display: grid !important; place-items: center; margin: 4px auto 18px; animation: buy-pop .5s var(--ease); }
.buy-result--ok { background: var(--p-green); color: var(--p-green-ink); }
.buy-result--ok::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--p-green-ink); animation: buy-ring 1s ease-out .15s; }
.buy-result--err { background: #FDE4E4; color: #C0271F; animation: buy-pop .5s var(--ease), buy-shake .45s .5s var(--ease); }
html.dark .buy-result--err { background: #3A1A1A; color: #F5A3A3; }
.buy-result svg { width: 34px; height: 34px; }
.buy-result__title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 19px; text-align: center; }
.buy-result__msg { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-top: 6px; line-height: 1.55; }

/* Modal actions — one confident gradient CTA + a quiet text link, not two competing pills */
.buy-actions { margin-top: 22px; }
.buy-btn-primary {
  position: relative; overflow: hidden; width: 100%; height: 54px;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-pill); background: var(--grad-hero); color: #fff;
  font-weight: 800; font-size: 15px; letter-spacing: .01em;
  box-shadow: var(--glow-violet);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.buy-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(124,92,252,.65); }
.buy-btn-primary:active { transform: scale(.97); }
.buy-btn-primary:disabled { opacity: .6; pointer-events: none; }
.buy-btn-primary::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.buy-btn-primary:hover::before { left: 130%; }
.buy-btn-primary svg { position: relative; width: 18px; height: 18px; transition: transform .25s var(--ease); }
.buy-btn-primary:hover svg { transform: translateX(3px); }
.buy-cancel-link {
  display: block; width: 100%; text-align: center; background: none; border: none;
  padding: 14px 0 2px; margin-top: 2px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-mute);
  transition: color .2s var(--ease);
}
.buy-cancel-link:hover { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 6b. AUTH (login / register) — mobile-first ------------------ */
/* Phone: one column, a compact sticky bar, the form starting near the top and
   centring only when there is room to spare. Desktop (lg+): a two-pane split
   with the brand/value panel on the deep gradient beside the form. Inputs are
   16px — anything smaller makes iOS Safari zoom the whole page on focus. */

.auth { min-height: 100vh; min-height: 100dvh; display: grid !important; grid-template-columns: 1fr; background: var(--bg); }
@media (min-width: 1024px) { .auth { grid-template-columns: .95fr 1.05fr; } }

/* Brand pane — desktop only */
.auth__aside { display: none !important; }
@media (min-width: 1024px) {
  .auth__aside {
    display: flex !important; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    padding: 44px 48px; background: var(--grad-deep); color: #fff;
  }
}
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.auth__aside p { color: rgba(255,255,255,.7); font-size: 15.5px; line-height: 1.7; margin-top: 16px; max-width: 420px; }

.auth__points { display: grid !important; gap: 14px; margin-top: 30px; }
.auth__point { display: flex !important; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.82); line-height: 1.5; }
.auth__point svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: #22D3EE; }

.auth__figs { display: flex !important; gap: 30px; }
.auth__figs b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 21px; color: #fff; letter-spacing: -.02em; }
.auth__figs span { display: block; font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 3px; }

/* Form pane */
.auth__main { display: flex !important; flex-direction: column; min-width: 0; }

.auth__topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex !important; align-items: center; gap: 10px;
  height: 62px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .auth__topbar { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; justify-content: flex-end; height: 76px; padding: 0 40px; } }
.auth__back { display: flex !important; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-right: auto; }
.auth__back:hover { color: var(--violet-600); }
.auth__back svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .auth__back { display: none !important; } }
.auth__mark { display: flex !important; align-items: center; gap: 8px; margin-right: auto; }
.auth__mark img { width: 30px; height: 30px; border-radius: 9px; }
.auth__mark b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px; }
@media (min-width: 1024px) { .auth__mark { display: none !important; } }

.auth__body {
  flex: 1 1 auto; display: flex !important; flex-direction: column;
  padding: 22px 18px calc(36px + env(safe-area-inset-bottom));
}
@media (min-width: 640px)  { .auth__body { padding: 26px 28px 44px; } }
@media (min-width: 1024px) { .auth__body { padding: 8px 48px 56px; justify-content: center; } }
/* Centres when the form is short, scrolls from the top when it isn't. */
.auth__box { width: 100%; max-width: 430px; margin: auto; }
@media (min-width: 1024px) { .auth__box { margin-inline: 0; } }

.auth__head { margin-bottom: 22px; }
.auth__head h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(24px, 5.2vw, 30px); letter-spacing: -.025em; line-height: 1.15; }
.auth__head p { font-size: 14px; color: var(--ink-mute); margin-top: 8px; }
.auth__head a { color: var(--violet-600); font-weight: 700; }
html.dark .auth__head a { color: var(--violet-400); }

/* Progress stepper */
.auth-steps { display: flex !important; gap: 7px; margin-bottom: 22px; }
.auth-steps > div { flex: 1 1 0; }
.auth-steps i { display: block; height: 4px; border-radius: 99px; background: var(--border); transition: background var(--base); }
.auth-steps span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-mute); margin-top: 7px; letter-spacing: .01em; }
.auth-steps .is-now i, .auth-steps .is-done i { background: var(--grad-hero); }
.auth-steps .is-now span { color: var(--violet-600); }
html.dark .auth-steps .is-now span { color: var(--violet-400); }

/* Fields */
.auth-field { margin-bottom: 15px; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.auth-label span { font-weight: 500; color: var(--ink-mute); }
.auth-input-group { position: relative; }
.auth-input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 14px;
  font-size: 16px; outline: 0; appearance: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.auth-input::placeholder { color: var(--ink-mute); }
.auth-input:focus { border-color: var(--violet-400); box-shadow: 0 0 0 4px rgba(124,92,252,.14); }
.auth-input:disabled { opacity: .55; }
.auth-input[aria-invalid="true"] { border-color: #DC2626; }
select.auth-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23938FA0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 17px;
  padding-right: 42px;
}
.auth-input--icon { padding-left: 46px; }
.auth-input--action { padding-right: 48px; }
.auth-input-group__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); width: 17px; height: 17px; pointer-events: none; }
.auth-input-group__action {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px;
  display: grid !important; place-items: center;
  color: var(--ink-mute); transition: color var(--fast), background var(--fast);
}
.auth-input-group__action:hover { color: var(--violet-600); background: var(--p-slate); }

.auth-row { display: grid !important; gap: 0; }
@media (min-width: 480px) { .auth-row { grid-template-columns: 1fr 1fr; column-gap: 12px; } }

/* Account-type picker */
.auth-pick {
  display: flex !important; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 16px; border: 1.5px solid var(--border); border-radius: 18px;
  background: var(--surface); margin-bottom: 12px;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}
.auth-pick:hover { border-color: var(--violet-400); }
.auth-pick:active { transform: scale(.99); }
.auth-pick.is-sel { border-color: var(--violet-600); background: var(--p-violet); }
.auth-pick__ico { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; display: grid !important; place-items: center; background: var(--p-violet); color: var(--p-violet-ink); }
.auth-pick.is-sel .auth-pick__ico { background: var(--grad-hero); color: #fff; }
.auth-pick--cyan .auth-pick__ico { background: var(--p-cyan); color: var(--p-cyan-ink); }
.auth-pick__ico svg { width: 20px; height: 20px; }
.auth-pick strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15.5px; }
.auth-pick p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.55; }
.auth-pick em { display: flex !important; align-items: center; gap: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-mute); margin-top: 8px; }
.auth-pick em svg { width: 13px; height: 13px; }
.auth-pick.is-sel p, .auth-pick.is-sel em { color: inherit; opacity: .8; }

/* Buttons */
.auth-btn {
  width: 100%; height: 52px; border-radius: 14px;
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-hero); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--glow-violet);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(124,92,252,.6); }
.auth-btn:active { transform: scale(.985); }
.auth-btn svg { width: 17px; height: 17px; }
.auth-btn[disabled] { opacity: .6; pointer-events: none; }
.auth-btn--quiet {
  background: var(--surface); color: var(--ink-soft); border: 1.5px solid var(--border);
  box-shadow: none; font-size: 14px;
}
.auth-btn--quiet:hover { border-color: var(--violet-400); color: var(--violet-600); transform: none; box-shadow: none; }
.auth-actions { display: flex !important; gap: 10px; margin-top: 20px; }
.auth-actions .auth-btn--quiet { width: auto; padding: 0 20px; flex: 0 0 auto; }

/* Inline messages */
.auth-alert {
  display: flex !important; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: 14px; margin-bottom: 16px;
  font-size: 13.5px; line-height: 1.55;
  background: #FDE4E4; color: #8E1D16; border: 1px solid rgba(192,39,31,.18);
}
html.dark .auth-alert { background: rgba(192,39,31,.16); color: #FFC3C0; border-color: rgba(255,255,255,.09); }
.auth-alert svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.auth-alert--info { background: var(--p-violet); color: var(--p-violet-ink); border-color: transparent; }
/* The display above is !important, which would beat an inline display:none —
   so these are toggled with the hidden attribute instead. */
.auth-alert[hidden] { display: none !important; }

.auth-note { display: flex !important; align-items: flex-start; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.55; color: var(--ink-mute); }
.auth-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--violet-600); }
html.dark .auth-note svg { color: var(--violet-400); }

.auth-legal { font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; margin-top: 18px; text-align: center; }
.auth-legal a { color: var(--violet-600); font-weight: 600; }
html.dark .auth-legal a { color: var(--violet-400); }

/* ---------- 7. GROUPED FEED (transactions / activity) -------------------- */
.feed__date { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); padding: 18px 4px 8px; }
.feed__date:first-child { padding-top: 4px; }
.feed__row { display: flex !important; align-items: center; gap: 13px; padding: 11px 6px; border-radius: var(--r-md); transition: background var(--fast); }
.feed__row:hover { background: var(--p-slate); }
.feed__ico { width: 42px; height: 42px; border-radius: var(--r-pill); display: grid !important; place-items: center; flex: 0 0 auto; }
.feed__ico svg { width: 18px; height: 18px; }
.feed__body { flex: 1 1 auto; min-width: 0; }
.feed__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.feed__sub { font-size: 12px; color: var(--ink-mute); margin-top: 1px; }
.feed__amt { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; white-space: nowrap; }

/* ---------- 8. SIGNATURE: AI PIPELINE + CHARTS --------------------------- */
.gridflow { position: relative; }
.gridflow svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow-path { fill: none; stroke-width: 2; stroke-linecap: round; opacity: .30; }
.flow-particle { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -220; } }
.node-pulse { transform-origin: center; animation: node-breathe 3s ease-in-out infinite; }
@keyframes node-breathe { 50% { opacity: .35; transform: scale(1.35); } }

.chart { width: 100%; display: block; overflow: visible; }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-label { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; fill: var(--ink-mute); }
.chart-bar { transition: opacity var(--fast); }
.chart-bar:hover { opacity: .78; }
.draw-in { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.8s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { transform-origin: bottom; animation: rise .9s var(--ease) backwards; }
@keyframes rise { from { transform: scaleY(0); } }

/* ---------- MOTION ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.page-enter { animation: page-in .5s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.float-y { animation: float-y 6s ease-in-out infinite; }
@keyframes float-y { 50% { transform: translateY(-14px); } }
.spin-slow { animation: spin 14s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.marquee { display: flex !important; gap: 48px; animation: marquee 32s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .tabbar, .topbar-mini, .fabs, .no-print { display: none !important; }
  .screen, .page { padding: 0; }
  .card { box-shadow: none; border-color: #ddd; }
}

/* ---------- 9. LEGACY PATTERNS (still used by a few pages) --------------- */
.hero-shot { position: relative; overflow: hidden; border-radius: var(--r-xl); height: 190px; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,50,.15) 0%, rgba(23,18,50,.35) 55%, rgba(23,18,50,.82) 100%); }
.hero-shot__copy { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }

.tiles { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 8px; }
.tile { display: flex !important; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: var(--r-md); transition: transform var(--fast), background var(--fast); }
.tile:active { transform: scale(.94); }
.tile:hover { background: var(--p-slate); }
.tile__ico { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid !important; place-items: center; color: #fff; }
.tile__ico svg { width: 20px; height: 20px; }
.tile__label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; line-height: 1.2; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(8, 1fr); } .tile__ico { width: 50px; height: 50px; } }

.rail { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin: 0 -4px; padding-inline: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 76%; scroll-snap-align: start; max-width: 300px; }
@media (min-width: 640px) { .rail > * { flex: 0 0 280px; } }

.trust { display: grid !important; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 6px; }
.trust__item { text-align: center; padding: 0 4px; position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.trust__item i { color: var(--violet-600); }
.trust__item p { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); margin-top: 7px; line-height: 1.3; }

.rating { display: flex !important; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; }
.rating i { color: var(--amber); }

.carousel { position: relative; }
.carousel__track { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 170px; padding: 22px; display: flex !important; flex-direction: column; justify-content: center; color: #fff; background: var(--grad-deep); }
.slide__body { position: relative; max-width: 80%; }
.dots { display: flex !important; gap: 6px; justify-content: center; margin-top: 12px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: all var(--base); }
.dots button.is-on { width: 22px; background: var(--violet-600); }

.qgrid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qtile { display: flex !important; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); transition: transform var(--fast), box-shadow var(--fast), border-color var(--fast); }
.qtile:active { transform: scale(.95); }
.qtile:hover { border-color: var(--violet-400); }
.qtile__ico { display: grid !important; place-items: center; width: 30px; height: 30px; color: var(--violet-600); }
.qtile__label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; }

/* ---------- 10. FONT UTILITY REMAP --------------------------------------- */
.font-data { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- 10a. PUBLIC TOP NAV (_includes/topnav.php) ------------------- */
/* Marketing-site header. Three top-level items, two of which open rich panels,
   plus a real mobile sheet — the previous version hid every link behind
   `lg:` and left phones with no navigation at all. Prefixed .abnav- so it
   cannot collide with the member-app sidebar or tab bar. */

.abnav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base), box-shadow var(--base), background var(--base);
}
.abnav.is-stuck { border-bottom-color: var(--border); box-shadow: 0 4px 20px -12px rgba(76,60,29,.3); }
html.dark .abnav.is-stuck { box-shadow: 0 4px 20px -10px rgba(0,0,0,.6); }

/* The sheet and scrim are positioned children of .abnav, so they would paint
   over the bar's static content. Everything inside the header is layered
   explicitly instead: bar on top, sheet behind it, scrim behind that. */
.abnav__bar {
  position: relative; z-index: 3;
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  height: 76px; display: flex !important; align-items: center; gap: 10px;
  transition: height var(--base);
}
@media (min-width: 640px) { .abnav__bar { padding: 0 20px; gap: 18px; } }
.abnav.is-stuck .abnav__bar { height: 64px; }

/* Brand */
.abnav__brand { display: flex !important; align-items: center; gap: 10px; flex: 0 0 auto; }
.abnav__brand img { width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; }
.abnav__brand b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.05; }
.abnav__brand small { display: none; font-size: 8.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); }
@media (min-width: 400px) { .abnav__brand small { display: block; } }

/* Desktop link row */
.abnav__links { display: none !important; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .abnav__links { display: flex !important; } }

.abnav__item {
  display: inline-flex !important; align-items: center; gap: 6px;
  height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: color var(--fast), background var(--fast);
  white-space: nowrap;
}
.abnav__item:hover { color: var(--ink); background: var(--p-slate); }
.abnav__item.is-active { color: var(--violet-600); background: var(--p-violet); font-weight: 700; }
html.dark .abnav__item.is-active { color: var(--violet-400); }
.abnav__caret { width: 15px; height: 15px; opacity: .6; transition: transform var(--base); }

/* Dropdown panels */
.abnav__drop { position: relative; }
.abnav__drop:has(> [data-menu]:not(.hidden)) .abnav__item { color: var(--ink); background: var(--p-slate); }
.abnav__drop:has(> [data-menu]:not(.hidden)) .abnav__caret { transform: rotate(180deg); }

.abnav__pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--e3);
  padding: 10px; animation: abnav-pop .2s var(--ease);
}
.abnav__pop--wide { width: 560px; }
.abnav__pop--right { left: auto; right: 0; }
@keyframes abnav-pop { from { opacity: 0; transform: translateY(-7px); } }

.abnav__mega { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; }
.abnav__col-head { grid-column: 1 / -1; padding: 6px 12px 2px; }

.abnav__mi {
  display: flex !important; gap: 12px; align-items: flex-start;
  padding: 11px 12px; border-radius: var(--r-md);
  transition: background var(--fast);
}
.abnav__mi:hover { background: var(--p-slate); }
.abnav__mi__ico {
  width: 36px; height: 36px; border-radius: 12px; flex: 0 0 auto;
  display: grid !important; place-items: center;
  background: var(--p-violet); color: var(--p-violet-ink);
}
.abnav__mi__ico svg { width: 17px; height: 17px; }
.abnav__mi--cyan .abnav__mi__ico { background: var(--p-cyan); color: var(--p-cyan-ink); }
.abnav__mi strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.abnav__mi span { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; line-height: 1.45; }

.abnav__pop-foot {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 12px 14px;
  background: var(--p-slate); border-radius: var(--r-md);
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.abnav__pop-foot svg { width: 16px; height: 16px; }

/* Compact menu (language) */
.abnav__pop--menu { width: 190px; padding: 6px; }
.abnav__mlink {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background var(--fast), color var(--fast);
}
.abnav__mlink:hover { background: var(--p-slate); color: var(--ink); }
.abnav__mlink.is-active { background: var(--p-violet); color: var(--violet-600); font-weight: 700; }
html.dark .abnav__mlink.is-active { color: var(--violet-400); }
.abnav__mlink svg { width: 15px; height: 15px; }

/* Right-hand actions */
.abnav__actions { margin-left: auto; display: flex !important; align-items: center; gap: 8px; flex: 0 0 auto; }
.abnav__icon {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid !important; place-items: center;
  color: var(--ink-soft); border: 1px solid var(--border); background: var(--surface);
  transition: color var(--fast), border-color var(--fast), transform var(--fast);
  flex: 0 0 auto;
}
.abnav__icon:hover { color: var(--violet-600); border-color: var(--violet-400); transform: translateY(-1px); }
html.dark .abnav__icon:hover { color: var(--violet-400); }
.abnav__icon svg { width: 18px; height: 18px; }
.abnav__hide-sm { display: none !important; }
@media (min-width: 640px) { .abnav__hide-sm { display: grid !important; } }
.abnav__signin { display: none !important; }
@media (min-width: 640px) { .abnav__signin { display: inline-flex !important; } }

/* Burger — flex, not grid: grid would stretch the three implicit rows to fill
   the 40px box and the bars would never meet in the middle when they cross. */
.abnav__burger {
  display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: 0 0 auto;
}
@media (min-width: 1024px) { .abnav__burger { display: none !important; } }
.abnav__burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--base), opacity var(--fast); }
.abnav__burger i + i { margin-top: 4px; }
body.abnav-open .abnav__burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.abnav-open .abnav__burger i:nth-child(2) { opacity: 0; }
body.abnav-open .abnav__burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile sheet */
.abnav__scrim {
  position: fixed; inset: 0; z-index: 1; background: rgba(23,20,31,.5);
  opacity: 0; pointer-events: none; transition: opacity var(--base);
}
body.abnav-open .abnav__scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .abnav__scrim { display: none; } }

.abnav__sheet {
  position: fixed; left: 0; right: 0; z-index: 2;
  top: 0; padding-top: 76px;
  max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--e3);
  transform: translateY(-102%); transition: transform .34s var(--ease);
}
body.abnav-open .abnav__sheet { transform: none; }
@media (min-width: 1024px) { .abnav__sheet { display: none; } }
/* The sheet slides out from behind the bar, so the bar has to stop being
   translucent while it is open — and match the compact height when stuck. */
body.abnav-open .abnav { background: var(--bg); }
/* .abnav's own background paints below the sheet, so the bar needs its own
   opaque fill or sheet content scrolls up through it. */
body.abnav-open .abnav__bar { background: var(--bg); }
.abnav.is-stuck .abnav__sheet { padding-top: 64px; }
.abnav__sheet-in { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }

.abnav__ghead { padding: 14px 12px 6px; }
.abnav__slink {
  display: flex !important; align-items: center; gap: 12px;
  padding: 13px 12px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background var(--fast);
}
.abnav__slink:active { background: var(--p-slate); }
.abnav__slink.is-active { background: var(--p-violet); color: var(--violet-600); font-weight: 700; }
html.dark .abnav__slink.is-active { color: var(--violet-400); }
.abnav__slink__ico { width: 34px; height: 34px; border-radius: 11px; flex: 0 0 auto; display: grid !important; place-items: center; background: var(--p-slate); color: var(--ink-soft); }
.abnav__slink.is-active .abnav__slink__ico { background: rgba(124,92,252,.16); color: inherit; }
.abnav__slink__ico svg { width: 17px; height: 17px; }
.abnav__slink small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-mute); margin-top: 1px; }
.abnav__sheet-cta { display: grid !important; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.abnav__langrow { display: flex !important; flex-wrap: wrap; gap: 7px; padding: 4px 12px 0; }
.abnav__langrow a {
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
}
.abnav__langrow a.is-active { background: var(--p-violet); color: var(--violet-600); border-color: transparent; }
html.dark .abnav__langrow a.is-active { color: var(--violet-400); }

/* ---------- 11. LANDING PAGE (welcome.php) ------------------------------- */
/* The public front page is the only screen that has to sell BOTH sides of the
   platform at once, so it gets its own vocabulary: a role switcher in the hero,
   a stepped rail, seat meters on the sector grid. All prefixed .wl- so nothing
   here can leak into the member app. */

.wl-shell { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.wl-sec   { padding-block: clamp(56px, 7vw, 92px); }
.wl-sec--tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.wl-kicker { font-size: clamp(33px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.wl-h2     { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.wl-lede   { font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.75; }

/* Role switcher — segmented control living on the dark hero panel */
.wl-switch {
  display: flex !important; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
}
.wl-switch button {
  flex: 1 1 0; display: flex !important; align-items: center; justify-content: center; gap: 7px;
  height: 42px; border-radius: var(--r-pill);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px;
  color: rgba(255,255,255,.62); transition: all var(--fast); white-space: nowrap;
}
.wl-switch button svg { width: 16px; height: 16px; }
.wl-switch button[aria-selected="true"] { background: #fff; color: #241F37; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }

.wl-panel[hidden] { display: none !important; }
.wl-panel { animation: wl-fade .38s var(--ease); }
@keyframes wl-fade { from { opacity: 0; transform: translateY(8px); } }

/* Key/value rows inside the hero panel */
.wl-kv { display: flex !important; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.14); }
.wl-kv:last-child { border-bottom: 0; }
.wl-kv dt { font-size: 12.5px; color: rgba(255,255,255,.58); font-weight: 600; }
.wl-kv dd { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px; color: #fff; text-align: right; }

/* Stat band under the hero */
.wl-band { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 768px) { .wl-band { grid-template-columns: repeat(4, 1fr); } }
.wl-band__cell { background: var(--surface); padding: 22px 18px; }
.wl-band__cell .stat-value { font-size: clamp(24px, 3vw, 32px); }

/* The two path cards */
.wl-path { position: relative; overflow: hidden; display: flex !important; flex-direction: column; }
.wl-path::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-hero); }
.wl-path--earner::before { background: linear-gradient(90deg, #22D3EE, #7C5CFC); }
.wl-path ul { margin-top: 18px; display: grid !important; gap: 11px; }
.wl-path li { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.wl-path li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--violet-600); }
.wl-path--earner li svg { color: var(--p-cyan-ink); }

/* Stepped rail */
.wl-steps { position: relative; display: grid !important; gap: 0; }
.wl-step { position: relative; display: grid !important; grid-template-columns: 46px 1fr; gap: 16px; padding-bottom: 26px; }
.wl-step:last-child { padding-bottom: 0; }
.wl-step::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--border); }
.wl-step:last-child::before { display: none; }
.wl-step__n {
  width: 46px; height: 46px; border-radius: var(--r-pill); display: grid !important; place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px;
  background: var(--p-violet); color: var(--p-violet-ink); position: relative; z-index: 1;
}
.wl-step h3 { font-size: 16.5px; font-weight: 700; margin-top: 11px; }
.wl-step p  { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin-top: 5px; }

/* Sector tiles with a seat meter */
.wl-sector { display: flex !important; flex-direction: column; gap: 12px; }
.wl-sector__top { display: flex !important; align-items: center; gap: 12px; }
.wl-meter { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.wl-meter > span { display: block; height: 100%; border-radius: 99px; background: var(--grad-hero); width: 0; transition: width 1.1s var(--ease); }

/* Marquee strip of sector names */
.wl-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.wl-strip span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; color: var(--ink-mute); white-space: nowrap; display: inline-flex !important; align-items: center; gap: 10px; }
.wl-strip span::after { content: ""; width: 5px; height: 5px; border-radius: 99px; background: var(--violet-400); }

/* Plan cards */
.wl-plan { position: relative; display: flex !important; flex-direction: column; }
.wl-plan__tier { position: absolute; top: 14px; right: 14px; }
.wl-plan__price { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1; }

/* Small print — the honest framing blocks */
.wl-note { display: flex !important; gap: 13px; align-items: flex-start; }
.wl-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.wl-note p { font-size: 13.5px; line-height: 1.7; }
