/* ============================================================================
   D3 Aurora Restrained — design tokens + Tabler/Bootstrap override bridge.
   Loaded after tabler.min.css in _Layout — these :root declarations win cascade.
   Reference: doc/Test/design/direction-3.html
   ============================================================================ */

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Dark default tokens */
:root,
[data-bs-theme="dark"],
[data-theme="dark"] {
  /* Base / surfaces */
  --c-bg:            #0C0E14;
  --c-surface-0:     #111420;
  --c-surface-1:     #181C2B;
  --c-surface-2:     #222840;
  --c-border:        #222840;
  --c-border-dim:    #181C2B;
  /* Text */
  --c-text-primary:  #F0F2FA;
  --c-text-secondary:#8891A8;
  --c-text-tertiary: #3D4460;
  /* Accent — muted sky, NOT electric */
  --c-accent:        #5BAFD6;
  --c-accent-dim:    rgba(91,175,214,.1);
  --c-accent-hover:  #7CCAE3;
  --c-accent-glow:   rgba(91,175,214,.15);
  /* Aurora — hero ONLY */
  --aurora-1: rgba(67,107,178,.18);
  --aurora-2: rgba(56,155,173,.12);
  --aurora-3: rgba(99,75,170,.10);
  /* Semantics */
  --c-success: #34D399;
  --c-warn:    #FBBF24;
  --c-danger:  #F87171;
  /* Structure */
  --radius-sm:  4px;  --radius-md:  8px;  --radius-lg: 12px;
  --radius-xl: 16px;  --radius-2xl:24px;  --radius-pill:999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.6);
  --glow-accent: 0 0 32px rgba(91,175,214,.12);
  --nav-h: 62px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --c-accent-grad: linear-gradient(135deg, #5BAFD6 0%, #7B68EE 100%);
  --c-text-grad:   linear-gradient(135deg, var(--c-accent) 0%, #9B8AF7 100%);
  --font: 'Inter', system-ui, sans-serif;
  /* Tabler/Bootstrap bridge */
  --tblr-body-bg:        var(--c-bg);
  --tblr-body-color:     var(--c-text-primary);
  --tblr-card-bg:        var(--c-surface-1);
  --tblr-border-color:   var(--c-border);
  --tblr-primary:        #5BAFD6;
  --tblr-primary-rgb:    91, 175, 214;
  --tblr-success:        #34D399;
  --tblr-success-rgb:    52, 211, 153;
  --tblr-warning:        #FBBF24;
  --tblr-warning-rgb:    251, 191, 36;
  --tblr-danger:         #F87171;
  --tblr-danger-rgb:     248, 113, 113;
  --tblr-link-color:     var(--c-accent);
  --tblr-link-color-rgb: 91, 175, 214;
  --tblr-border-radius:  8px;
  --tblr-font-family-sans-serif: 'Inter', system-ui, sans-serif;
}

/* Light mode overrides */
[data-bs-theme="light"],
[data-theme="light"] {
  --c-bg:            #F8FAFF;
  --c-surface-0:     #FFFFFF;
  --c-surface-1:     #EEF1FB;
  --c-surface-2:     #DDE2F5;
  --c-border:        #DDE2F5;
  --c-border-dim:    #EEF1FB;
  --c-text-primary:  #0C0E14;
  --c-text-secondary:#4A5168;
  --c-text-tertiary: #9EA8C0;
  --c-accent:        #0B84C4;
  --c-accent-dim:    rgba(11,132,196,.1);
  --c-accent-hover:  #0A6FA3;
  --c-accent-glow:   rgba(11,132,196,.12);
  --aurora-1: rgba(67,107,178,.06);
  --aurora-2: rgba(56,155,173,.05);
  --aurora-3: rgba(99,75,170,.04);
  --shadow-sm: 0 1px 2px rgba(12,14,20,.06);
  --shadow-md: 0 4px 20px rgba(12,14,20,.10);
  --shadow-lg: 0 12px 48px rgba(12,14,20,.14);
  --glow-accent: 0 0 32px rgba(11,132,196,.08);
  --c-accent-grad: linear-gradient(135deg, #0B84C4 0%, #6D5DE0 100%);
  --c-text-grad:   linear-gradient(135deg, var(--c-accent) 0%, #6D5DE0 100%);
  --tblr-body-bg:      var(--c-bg);
  --tblr-body-color:   var(--c-text-primary);
  --tblr-card-bg:      var(--c-surface-0);
  --tblr-border-color: var(--c-border);
  --tblr-primary:      #0B84C4;
  --tblr-primary-rgb:  11, 132, 196;
  --tblr-link-color:   var(--c-accent);
}

/* ── Global reset + typography ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
  overflow-x: hidden;
}

/* ── NAVBAR ── */

/* Sticky nav base — transparent; .nav-scrolled added by JS on scroll > 20px */
.orbi-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 36px;
  background: transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.orbi-nav.nav-scrolled {
  background: rgba(12,14,20,.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .orbi-nav.nav-scrolled {
  background: rgba(248,250,255,.85);
}
.orbi-nav-inner {
  width: 100%; max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center;
}
/* Brand */
.orbi-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--c-text-primary);
  font-weight: 700; font-size: 15px; letter-spacing: -.4px;
  flex-shrink: 0;
}
.orbi-brand:hover { color: var(--c-text-primary); text-decoration: none; }
.orbi-logo-mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--c-accent) 0%, #7B68EE 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(91,175,214,.3);
  flex-shrink: 0;
}
/* Centre links */
.orbi-nav-links {
  display: flex; align-items: center;
  margin: 0 auto; list-style: none; padding: 0;
}
.orbi-nav-links a {
  font-size: 13.5px; font-weight: 500;
  color: var(--c-text-secondary); text-decoration: none;
  padding: 6px 14px; border-radius: var(--radius-md);
  letter-spacing: -.1px;
  transition: color .15s, background .15s;
}
.orbi-nav-links a:hover { color: var(--c-text-primary); background: var(--c-surface-2); }
/* Right cluster */
.orbi-nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* Inline theme toggle — lives inside navbar right cluster on marketing pages */
.orbi-theme-toggle {
  width: 35px; height: 35px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.04);
  color: var(--c-text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.orbi-theme-toggle:hover { background: var(--c-surface-2); color: var(--c-text-primary); }
.orbi-theme-toggle svg { width: 15px; height: 15px; }
/* Sun shown in dark mode (click to go light); moon shown in light mode (click to go dark) */
.orbi-icon-sun  { display: block; }
.orbi-icon-moon { display: none; }
[data-theme="light"] .orbi-icon-sun  { display: none; }
[data-theme="light"] .orbi-icon-moon { display: block; }
/* Ghost "Sign in" */
.orbi-btn-ghost {
  font-size: 13.5px; font-weight: 500;
  color: var(--c-text-secondary); text-decoration: none;
  padding: 7px 14px; border-radius: var(--radius-md);
  transition: color .15s, background .15s;
}
.orbi-btn-ghost:hover { color: var(--c-text-primary); background: var(--c-surface-2); text-decoration: none; }
/* Primary CTA in navbar */
.orbi-btn-primary-nav {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-accent); color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--radius-md);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: -.1px;
  box-shadow: 0 1px 3px rgba(91,175,214,.25);
}
.orbi-btn-primary-nav:hover {
  background: var(--c-accent-hover); color: #fff; text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(91,175,214,.3);
}

/* Compact URL field that slides into the header on scroll (.nav-scrolled).
   Collapsed (width 0 / invisible) at top; expands when the centre links fade. */
.orbi-nav-url {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
  background: var(--c-surface-1); border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 10px; width: 0; opacity: 0; overflow: hidden;
  transform: translateY(-4px); pointer-events: none;
  transition: width .3s ease, opacity .25s ease, transform .25s ease;
}
.orbi-nav.nav-scrolled .orbi-nav-url {
  width: 320px; opacity: 1; transform: none; pointer-events: auto;
}
.orbi-nav.nav-scrolled .orbi-nav-links { opacity: 0; pointer-events: none; transition: opacity .2s; }
.orbi-nav-url svg { width: 14px; height: 14px; color: var(--c-text-tertiary); flex: none; }
.orbi-nav-url input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--font); font-size: 12.5px; color: var(--c-text-primary);
}
.orbi-nav-url input::placeholder { color: var(--c-text-tertiary); }
.orbi-nav-url-btn { padding: 6px 14px; font-size: 12.5px; box-shadow: none; flex: none; }
@media (max-width: 720px) {
  /* On small screens the centre links already wrap/hide; keep the compact field hidden */
  .orbi-nav.nav-scrolled .orbi-nav-url { width: 0; opacity: 0; pointer-events: none; }
}

/* Body offset for fixed nav */
.orbi-page { padding-top: var(--nav-h); }

/* ── CENTERED PAGE CONTAINER ─────────────────────────────────────────
   User refinement #1: content lives in a centered max-width container
   (~1200–1280px) with comfortable gutters on BOTH sides. Background
   aurora/dot-grid may still bleed full-width, but content is centered. */
.orbi-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
/* Align the nav inner to the same content rhythm */
.orbi-nav-inner { max-width: 1240px; padding: 0 clamp(20px, 4vw, 48px); }

/* ── HERO (split: left rotating carousel + right 3D live dashboard) ── */
.orbi-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding: clamp(48px, 7vh, 96px) 0;
  overflow: hidden;
  isolation: isolate;
}
/* Centered content grid inside the bleeding background */
.orbi-hero-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) 1.25fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .orbi-hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ── HERO LEFT: rotating message carousel (STABILIZED) ──
   Slides are ALWAYS absolutely positioned and cross-fade in place inside a
   CONSTANT-height wrapper. The wrapper is sized to the TALLEST message at each
   breakpoint so the URL audit box + everything below NEVER moves on slide change. */
.orbi-hero-left { position: relative; z-index: 2; }
.orbi-slides { position: relative; min-height: 290px; margin-bottom: 8px; }
@media (max-width: 1280px) { .orbi-slides { min-height: 300px; } }
@media (max-width: 980px)  { .orbi-slides { min-height: 240px; } }
@media (max-width: 600px)  { .orbi-slides { min-height: 250px; } }
@media (max-width: 440px)  { .orbi-slides { min-height: 290px; } }
.orbi-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.orbi-slide.active {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: auto;            /* stays position:absolute — wrapper height is fixed */
}
.orbi-slide h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05; letter-spacing: -2.4px; font-weight: 700;
  color: var(--c-text-primary);
  margin: 0 0 18px; max-width: 14ch;
}
.orbi-slide p {
  font-size: clamp(15px, 1.4vw, 17px); color: var(--c-text-secondary);
  max-width: 44ch; margin: 0; line-height: 1.65;
}

/* Big URL-audit field — the primary hero action (matches design-system .ds-url-field) */
.orbi-url-field {
  display: flex; align-items: center; gap: 8px; max-width: 520px;
  background: var(--c-surface-0); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s;
}
.orbi-url-field:focus-within { border-color: var(--c-accent); box-shadow: var(--shadow-md), 0 0 0 3px var(--c-accent-dim); }
.orbi-url-field .orbi-url-globe { width: 18px; height: 18px; color: var(--c-text-tertiary); flex: none; }
.orbi-url-field input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--font); font-size: 15px; color: var(--c-text-primary);
}
.orbi-url-field input::placeholder { color: var(--c-text-tertiary); }
.orbi-url-field .orbi-btn-primary-lg { flex: none; }
.orbi-url-micro { font-size: 13px; color: var(--c-text-tertiary); margin-top: 12px; }

/* progress dots */
.orbi-dots { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.orbi-dots button {
  width: 30px; height: 4px; border-radius: 100px; border: none;
  background: var(--c-border); cursor: pointer; padding: 0;
  transition: background .3s, width .3s; position: relative; overflow: hidden;
}
.orbi-dots button.active { width: 46px; background: rgba(91,175,214,.3); }
.orbi-dots button.active::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--c-accent); transform-origin: left;
  animation: orbi-fill var(--orbi-dur, 6s) linear forwards;
}
@keyframes orbi-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.orbi-hero.paused .orbi-dots button.active::after { animation-play-state: paused; }

.orbi-hero-trust {
  margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--c-text-tertiary); font-size: 12.5px;
}
.orbi-hero-trust .orbi-sep { width: 1px; height: 14px; background: var(--c-border); }

/* ── HERO RIGHT: 3D-tilted live dashboard composition ── */
.orbi-hero-right { position: relative; z-index: 1; min-height: 480px; }
.orbi-stage {
  position: relative;
  perspective: 1800px;
  display: flex; align-items: center; justify-content: center;
}
.orbi-stage::before {
  content: ""; position: absolute; width: 78%; height: 78%; top: 8%; right: 0;
  background: radial-gradient(circle, var(--c-accent-glow), transparent 65%);
  filter: blur(50px); z-index: 0;
}
.orbi-deck {
  position: relative; width: min(700px, 100%);
  transform: rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
}
@media (max-width: 980px) { .orbi-deck { transform: none; } }

.orbi-panel {
  background: var(--c-surface-0);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* browser-chrome dashboard */
.orbi-browser { overflow: hidden; }
.orbi-browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--c-border); background: var(--c-surface-1);
}
.orbi-browser-bar .orbi-dotrow { display: flex; gap: 6px; }
.orbi-browser-bar .orbi-dotrow i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.orbi-browser-bar .orbi-url {
  margin-left: 10px; flex: 1; background: var(--c-surface-2);
  border: 1px solid var(--c-border); border-radius: 7px;
  padding: 5px 12px; font-size: 11.5px; color: var(--c-text-tertiary);
  display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap;
}
.orbi-browser-bar .orbi-url svg { width: 11px; height: 11px; color: var(--c-success); flex: none; }
.orbi-dash-body { padding: 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 13px; }

.orbi-mini-card { background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 15px; }
.orbi-mini-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.orbi-mini-h .orbi-t { font-size: 12px; font-weight: 600; color: var(--c-text-secondary); }
.orbi-badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.orbi-badge.up { color: var(--c-success); background: rgba(52,211,153,.13); }

/* health gauge */
.orbi-gauge-wrap { display: flex; align-items: center; gap: 14px; }
.orbi-gauge { position: relative; width: 96px; height: 96px; flex: none; }
.orbi-gauge svg { transform: rotate(-90deg); }
.orbi-gauge .orbi-num { position: absolute; inset: 0; display: grid; place-items: center; }
.orbi-gauge .orbi-num b { font-size: 28px; font-weight: 700; letter-spacing: -1px; color: var(--c-text-primary); }
.orbi-gauge .orbi-num small { display: block; text-align: center; font-size: 9px; color: var(--c-text-tertiary); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.orbi-gauge-legend { font-size: 11px; color: var(--c-text-secondary); display: grid; gap: 7px; }
.orbi-gauge-legend .orbi-row { display: flex; align-items: center; gap: 8px; }
.orbi-gauge-legend .orbi-pip { width: 8px; height: 8px; border-radius: 3px; flex: none; }

/* core web vitals */
.orbi-cwv { display: grid; gap: 12px; }
.orbi-cwv .orbi-metric .orbi-lbl { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 6px; }
.orbi-cwv .orbi-metric .orbi-lbl span:first-child { color: var(--c-text-secondary); }
.orbi-cwv .orbi-metric .orbi-lbl b { font-weight: 700; }
.orbi-mini-bar { height: 6px; border-radius: 100px; background: var(--c-surface-2); overflow: hidden; }
.orbi-mini-bar i { display: block; height: 100%; border-radius: 100px; }

/* issue list */
.orbi-issues { grid-column: 1 / -1; }
.orbi-issue { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-border-dim); font-size: 12.5px; }
.orbi-issue:last-child { border-bottom: none; }
.orbi-issue .orbi-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.orbi-issue .orbi-ico svg { width: 13px; height: 13px; }
.orbi-issue .orbi-desc { flex: 1; color: var(--c-text-primary); }
.orbi-issue .orbi-desc small { display: block; color: var(--c-text-tertiary); font-size: 11px; }
.orbi-pri { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; flex: none; }
.orbi-pri.high { color: var(--c-danger); background: rgba(248,113,113,.13); }
.orbi-pri.med { color: var(--c-warn); background: rgba(251,191,36,.13); }
.orbi-pri.low { color: var(--c-accent); background: var(--c-accent-dim); }

/* floating rank chip (top-right of deck) */
.orbi-rankchip {
  position: absolute; top: -22px; right: -24px; z-index: 7;
  padding: 12px 15px; transform: translateZ(40px);
  display: flex; align-items: center; gap: 12px;
}
.orbi-rankchip .orbi-spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.orbi-rankchip .orbi-spark i { width: 4px; border-radius: 2px; background: var(--c-accent); opacity: .55; }
.orbi-rankchip .orbi-chip-lbl small { display: block; font-size: 9.5px; color: var(--c-text-tertiary); text-transform: uppercase; letter-spacing: .07em; }
.orbi-rankchip .orbi-chip-lbl b { font-size: 16px; font-weight: 700; color: var(--c-text-primary); }
.orbi-rankchip .orbi-chip-lbl b em { font-style: normal; font-size: 12px; color: var(--c-success); margin-left: 4px; }

/* floating agent-activity ticker (bottom-left of deck) */
.orbi-agentlog {
  position: absolute; bottom: -26px; left: -32px; width: 290px; z-index: 7;
  padding: 14px 16px; transform: translateZ(60px);
}
.orbi-agentlog .orbi-alh { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.orbi-agentlog .orbi-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); position: relative; flex: none; }
.orbi-agentlog .orbi-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--c-success); opacity: .5; animation: orbi-ring 2s ease-out infinite; }
@keyframes orbi-ring { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.orbi-agentlog .orbi-alh .orbi-t { font-size: 12px; font-weight: 600; color: var(--c-text-primary); }
.orbi-agentlog .orbi-alh .orbi-t span { color: var(--c-text-tertiary); font-weight: 500; }
.orbi-ticker { height: 70px; overflow: hidden; position: relative; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.orbi-ticker ul { list-style: none; padding: 0; margin: 0; animation: orbi-scroll 14s linear infinite; }
.orbi-hero.paused .orbi-ticker ul { animation-play-state: paused; }
.orbi-ticker li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--c-text-secondary); padding: 5px 0; }
.orbi-ticker li b { color: var(--c-text-primary); font-weight: 600; }
.orbi-ticker li .orbi-ts { color: var(--c-text-tertiary); font-size: 10px; margin-left: auto; flex: none; }
.orbi-ticker li .orbi-tick { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); flex: none; }
@keyframes orbi-scroll { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

@media (max-width: 600px) {
  .orbi-rankchip, .orbi-agentlog { display: none; }
  .orbi-dash-body { grid-template-columns: 1fr; }
}

/* legacy single-column hero content block (kept for fallback, now unused) */
.orbi-hero-content-legacy {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center;
}
/* Aurora blobs — hero ONLY */
.orbi-aurora-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orbi-aurora-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 1;
}
.orbi-aurora-blob-1 {
  width: 700px; height: 500px; top: -100px; left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(ellipse, var(--aurora-1) 0%, transparent 70%);
}
.orbi-aurora-blob-2 {
  width: 600px; height: 400px; top: 40px; left: 60%;
  background: radial-gradient(ellipse, var(--aurora-2) 0%, transparent 70%);
}
.orbi-aurora-blob-3 {
  width: 500px; height: 350px; top: 60px; left: 10%;
  background: radial-gradient(ellipse, var(--aurora-3) 0%, transparent 70%);
}
/* Dot grid — hero ONLY */
.orbi-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, var(--c-text-tertiary) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .15;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
/* Badge */
.orbi-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-accent);
  background: var(--c-accent-dim);
  border: 1px solid rgba(91,175,214,.2);
  padding: 5px 14px; border-radius: var(--radius-pill);
  margin-bottom: 30px;
}
.orbi-hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-accent);
  animation: orbi-pulse 2s infinite;
}
@keyframes orbi-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
/* H1 — legacy single-column hero only (split hero uses .orbi-slide h1) */
.orbi-hero-content-legacy h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700; line-height: 1.04; letter-spacing: -3px;
  color: var(--c-text-primary); margin-bottom: 24px;
}
/* Gradient text — used sparingly on a single keyword per heading */
.orbi-gradient-text {
  background: linear-gradient(135deg, var(--c-accent) 0%, #9B8AF7 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Subhead — legacy single-column hero only */
.orbi-hero-content-legacy p.orbi-lead {
  font-size: 17px; font-weight: 400; line-height: 1.7;
  color: var(--c-text-secondary); max-width: 520px;
  margin: 0 auto 40px;
}
/* CTA row */
.orbi-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.orbi-btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff;
  font-size: 14.5px; font-weight: 600;
  padding: 12px 26px; border-radius: var(--radius-md);
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(91,175,214,.3), var(--glow-accent);
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: -.2px;
}
.orbi-btn-primary-lg:hover {
  background: var(--c-accent-hover); color: #fff; text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91,175,214,.35), var(--glow-accent);
}
.orbi-btn-secondary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-surface-1); color: var(--c-text-primary);
  border: 1px solid var(--c-border);
  font-size: 14.5px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  letter-spacing: -.2px;
}
.orbi-btn-secondary-lg:hover {
  background: var(--c-surface-2); border-color: var(--c-accent);
  color: var(--c-text-primary); text-decoration: none;
}

/* ── SECTIONS ── */
.orbi-section {
  padding: 96px 0; max-width: 1240px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.orbi-section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-accent);
  margin-bottom: 16px;
}
.orbi-section-tag::before { content:''; width:20px; height:1px; background: var(--c-accent); }
.orbi-section-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 700; letter-spacing: -1.8px; line-height: 1.08;
  color: var(--c-text-primary); max-width: 560px; margin-bottom: 20px;
}
.orbi-section-sub {
  font-size: 15.5px; color: var(--c-text-secondary);
  max-width: 480px; line-height: 1.7; margin-bottom: 56px;
}

/* ── FEATURE CARDS ── */
.orbi-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .orbi-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .orbi-features-grid { grid-template-columns: 1fr; } }
.orbi-feat-card {
  background: var(--c-surface-0);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-2xl);
  padding: 32px; position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.orbi-feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-dim), transparent);
  opacity: 0; transition: opacity .3s;
}
.orbi-feat-card:hover {
  border-color: rgba(91,175,214,.3);
  box-shadow: var(--shadow-md), 0 0 24px rgba(91,175,214,.06);
  transform: translateY(-2px);
}
.orbi-feat-card:hover::before { opacity: 1; }
.orbi-feat-icon {
  width: 44px; height: 44px;
  background: var(--c-accent-dim);
  border: 1px solid rgba(91,175,214,.2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); margin-bottom: 22px;
}
.orbi-feat-icon svg { width: 20px; height: 20px; }
.orbi-feat-title {
  font-size: 15px; font-weight: 650; letter-spacing: -.3px;
  color: var(--c-text-primary); margin-bottom: 10px;
}
.orbi-feat-body { font-size: 13.5px; color: var(--c-text-secondary); line-height: 1.65; }
/* Live badge on the instant-audit card */
.orbi-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--c-success);
  margin-top: 14px;
}
.orbi-live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-success);
  animation: orbi-pulse 2s infinite;
}

/* ── AGENT ACTIVITY LOG (How it works section) ── */
.orbi-how-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 900px) { .orbi-how-grid { grid-template-columns: 1fr; gap: 48px; } }
.orbi-timeline { display: flex; flex-direction: column; position: relative; }
.orbi-timeline::before {
  content: ''; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 1px;
  background: var(--c-border);
}
.orbi-timeline-item { display: flex; gap: 20px; padding: 0 0 36px; position: relative; }
.orbi-timeline-item:last-child { padding-bottom: 0; }
.orbi-timeline-circle {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--c-border); border-radius: 50%;
  background: var(--c-surface-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--c-text-tertiary);
  position: relative; z-index: 1;
  transition: border-color .2s, background .2s, color .2s;
}
.orbi-timeline-item:hover .orbi-timeline-circle {
  border-color: var(--c-accent); color: var(--c-accent);
  background: var(--c-accent-dim);
}
.orbi-timeline-body { padding-top: 10px; }
.orbi-timeline-body h3 {
  font-size: 15px; font-weight: 650; letter-spacing: -.3px;
  color: var(--c-text-primary); margin-bottom: 8px;
}
.orbi-timeline-body p { font-size: 13.5px; color: var(--c-text-secondary); line-height: 1.65; }
/* Log panel */
.orbi-log-panel {
  border: 1px solid var(--c-border); border-radius: var(--radius-2xl);
  background: var(--c-surface-0); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.orbi-log-header {
  padding: 14px 18px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 10px;
  background: var(--c-surface-1);
}
.orbi-log-dot { width: 10px; height: 10px; border-radius: 50%; }
.orbi-log-label { font-size: 12px; font-weight: 600; color: var(--c-text-secondary); margin-left: 4px; }
.orbi-log-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.orbi-log-line { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; font-family: 'SF Mono','Fira Code',monospace; }
.orbi-log-ts  { color: var(--c-text-tertiary); flex-shrink: 0; }
.orbi-log-msg { color: var(--c-text-secondary); line-height: 1.5; }
.orbi-log-msg.accent  { color: var(--c-accent); }
.orbi-log-msg.success { color: var(--c-success); }
.orbi-log-msg.dim     { color: var(--c-text-tertiary); }
.orbi-log-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; margin-left: 6px;
  background: var(--c-accent-dim); color: var(--c-accent);
  font-family: var(--font);
}
.orbi-log-tag.warn {
  background: rgba(251,191,36,.12); color: var(--c-warn);
}
.orbi-log-tag.success {
  background: rgba(52,211,153,.12); color: var(--c-success);
}

/* ── CTA BAND ── */
.orbi-cta-band {
  position: relative; overflow: hidden;
  padding: 96px 40px; text-align: center;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
/* Single low-opacity radial — only one aurora-style element allowed in CTA band */
.orbi-cta-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(91,175,214,.06) 0%, transparent 70%);
}
.orbi-cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.orbi-cta-band h2 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 700;
  letter-spacing: -1.8px; color: var(--c-text-primary); margin-bottom: 18px;
  /* Comfortable line-height so the accent underline drawn under a wrapped word
     never collides with the line below it (see .orbi-underline-accent). */
  line-height: 1.28;
}
.orbi-cta-band p { font-size: 16px; color: var(--c-text-secondary); margin-bottom: 36px; line-height: 1.65; }
.orbi-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* Accent gradient underline drawn UNDER a single keyword in a heading.
   Uses an inline background-image confined to the text box (background-position
   bottom + box-decoration-break: clone) so when the heading wraps, the underline
   stays under the word's own line — it never overlaps the wrapped line above.
   The underline is parked just ABOVE the box bottom (background-position 0 calc(100% - .06em))
   with matching padding-bottom, so the gradient band sits in the line's leading gap and
   never overlaps the glyphs of the word OR the wrapped line beneath it. box-decoration-break:
   clone makes each wrapped fragment carry its own underline. Works in both themes (keys off --c-accent). */
.orbi-underline-accent {
  position: relative;
  background-image: linear-gradient(90deg, var(--c-accent), #9B8AF7);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - .06em);
  background-size: 100% .12em;
  padding-bottom: .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[data-theme="light"] .orbi-underline-accent {
  /* Slightly stronger band in light mode so it reads against the bright surface,
     but kept as a thin underline (not a full highlight) to avoid washing the text. */
  background-size: 100% .14em;
  opacity: .85;
}

/* ── FOOTER ── */
.orbi-footer { padding: 56px 0 64px; }
.orbi-footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.orbi-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--c-border-dim);
}
@media (max-width: 800px) { .orbi-footer-top { grid-template-columns: 1fr 1fr; } }
.orbi-footer-brand-desc { font-size: 13px; color: var(--c-text-tertiary); line-height: 1.7; max-width: 240px; margin-top: 12px; }
.orbi-footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-text-tertiary); margin-bottom: 16px; }
.orbi-footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.orbi-footer-col a { font-size: 13.5px; color: var(--c-text-secondary); text-decoration: none; transition: color .15s; }
.orbi-footer-col a:hover { color: var(--c-text-primary); }
.orbi-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.orbi-footer-bottom p { font-size: 12px; color: var(--c-text-tertiary); margin: 0; }
.orbi-footer-bottom a { color: var(--c-text-tertiary); text-decoration: none; transition: color .15s; }
.orbi-footer-bottom a:hover { color: var(--c-text-secondary); }

/* ===== Lane D — Onboarding (additive; aliases legacy step/tab classes to Tabler look) ===== */

/* Verify JS still toggles .tab-active on the .nav-link tabs — make the active
   highlight track .tab-active (the JS-driven class), not Bootstrap's .active plugin. */
.onboarding-verify .nav-tabs .nav-link.tab-active {
    color: var(--tblr-primary);
    border-bottom-color: var(--tblr-primary);
    background: transparent;
}

/* Verify JS adds .step-done / .step-active on success — alias to Tabler's
   completed/active step look so the inline verify JS stays byte-identical
   (markup/CSS-only, no logic change). */
.steps .step-item.step-active::before {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
    color: #fff;
}
.steps .step-item.step-done {
    color: var(--tblr-success);
}
.steps .step-item.step-done::before {
    background-color: var(--tblr-success);
    border-color: var(--tblr-success);
    color: #fff;
}

/* ============================================================================
   === Lane E: Dashboard ===
   Minimal rules for things Tabler classes can't express. SignalR toggles the
   .ladder-step state classes (done/current/todo) live, so the marker colors key
   off those classes (not Tabler's internal .steps classes). Keyed off brand vars.
   ========================================================================== */
.dash-gauge { min-height: 200px; }

/* Ladder step markers reflect SignalR-toggled state classes. */
.ladder-steps .ladder-step-marker { font-weight: 600; margin-right: .5rem; }
.ladder-steps .ladder-step.done .ladder-step-marker { color: var(--tblr-success); }
.ladder-steps .ladder-step.current .ladder-step-marker { color: var(--tblr-primary); }
.ladder-steps .ladder-step.current .ladder-step-label { font-weight: 600; }
.ladder-steps .ladder-step.todo .ladder-step-label { opacity: .6; }

/* ============================================================================
   === Homepage additions: "see the work" + trust strip ===
   Centered-container sections; D3 token-driven; both themes via --c-* vars.
   ========================================================================== */

/* ── "SEE THE WORK" agent-activity section ── */
.orbi-work { position: relative; }
.orbi-work-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .orbi-work-grid { grid-template-columns: 1fr; gap: 40px; } }
.orbi-work-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.orbi-work-points li { display: flex; gap: 12px; font-size: 13.5px; color: var(--c-text-secondary); line-height: 1.6; }
.orbi-work-points li svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; margin-top: 2px; }
.orbi-work-points li b { color: var(--c-text-primary); font-weight: 600; }

/* ── HONEST TRUST / SOCIAL-PROOF STRIP ── */
.orbi-trust-strip {
  border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-0);
}
.orbi-trust-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  text-align: center;
}
@media (max-width: 760px) { .orbi-trust-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; } }
.orbi-trust-stat .orbi-stat-num {
  font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -1.4px;
  color: var(--c-text-primary); line-height: 1.1;
}
.orbi-trust-stat .orbi-stat-num .orbi-gradient-text { font-weight: 700; }
/* Small trailing unit/qualifier on a stat number (e.g. "30s", "0 guarantees").
   Sits on the baseline beside the big number; muted + smaller so the figure leads. */
.orbi-trust-stat .orbi-stat-num .orbi-stat-unit {
  font-size: .42em; font-weight: 600; letter-spacing: -.2px;
  color: var(--c-text-secondary); margin-left: 3px;
}
.orbi-trust-stat .orbi-stat-lbl {
  font-size: 12.5px; color: var(--c-text-secondary); margin-top: 8px; line-height: 1.5;
}
.orbi-trust-note {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 56px;
  text-align: center; font-size: 13px; color: var(--c-text-tertiary);
}

/* ============================================================================
   === D3 APP SHELL — authenticated pages (_AppLayout) ===
   Sticky LEFT sidebar + TOP bar. Dark default; both themes via --c-* tokens.
   Wide screens: sidebar is a fixed 248px rail, collapsible to a 70px icon rail.
   Narrow (<=920px): sidebar slides in off-canvas over a scrim.
   Vocabulary the page lanes consume: .orbi-app-container wraps page content;
   set ViewData["PageTitle"] for the top-bar H1. Use Tabler card/table/badge
   classes inside — Tabler tokens are bridged to --c-* in :root above.
   ========================================================================== */
:root { --orbi-side-w: 248px; --orbi-side-w-collapsed: 70px; --orbi-topbar-h: 60px; }

.orbi-app {
  --side: var(--orbi-side-w);
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text-primary);
}
.orbi-app.orbi-app--collapsed { --side: var(--orbi-side-w-collapsed); }

/* ── Sidebar ── */
.orbi-side {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1040;
  width: var(--side);
  display: flex; flex-direction: column;
  background: var(--c-surface-0);
  border-right: 1px solid var(--c-border);
  transition: width .2s ease, transform .25s ease;
  overflow: hidden;
}
.orbi-side-head {
  height: var(--orbi-topbar-h); flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--c-border);
}
.orbi-side-brand { gap: 10px; min-width: 0; }
.orbi-side-brand-text { white-space: nowrap; overflow: hidden; }
.orbi-side-collapse {
  width: 28px; height: 28px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius-md);
  background: transparent; color: var(--c-text-secondary); cursor: pointer;
  transition: color .15s, background .15s, transform .2s;
}
.orbi-side-collapse:hover { color: var(--c-text-primary); background: var(--c-surface-2); }
.orbi-side-collapse svg { width: 15px; height: 15px; }
.orbi-app--collapsed .orbi-side-collapse svg { transform: rotate(180deg); }

.orbi-side-nav {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 12px;
}
.orbi-side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius-md);
  color: var(--c-text-secondary); text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.1px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.orbi-side-link:hover { color: var(--c-text-primary); background: var(--c-surface-2); text-decoration: none; }
.orbi-side-link.active { color: var(--c-accent); background: var(--c-accent-dim); }
.orbi-side-link.active .orbi-side-ico { color: var(--c-accent); }
.orbi-side-ico { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--c-text-tertiary); }
.orbi-side-ico svg { width: 18px; height: 18px; }
.orbi-side-link:hover .orbi-side-ico { color: var(--c-text-primary); }

.orbi-side-foot { flex: none; padding: 14px 12px; border-top: 1px solid var(--c-border); }
.orbi-side-cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-md);
  border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--c-accent) 0%, #7B68EE 100%);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -.1px;
  box-shadow: 0 2px 8px rgba(91,175,214,.25);
  transition: transform .1s, box-shadow .15s;
}
.orbi-side-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(91,175,214,.3); }
.orbi-side-cta svg { width: 18px; height: 18px; flex: none; }

/* Collapsed (icon-only) rail — hide text labels, center the icons */
.orbi-app--collapsed .orbi-side-brand-text,
.orbi-app--collapsed .orbi-side-label { display: none; }
.orbi-app--collapsed .orbi-side-link,
.orbi-app--collapsed .orbi-side-cta { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.orbi-app--collapsed .orbi-side-head { padding: 0; justify-content: center; }
.orbi-app--collapsed .orbi-side-brand { justify-content: center; }
.orbi-app--collapsed .orbi-side-collapse { position: absolute; top: 16px; right: 10px; }

/* Scrim — only visible when the off-canvas nav is open on narrow screens */
.orbi-side-scrim {
  position: fixed; inset: 0; z-index: 1039;
  background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}

/* ── Main column ── */
.orbi-main {
  margin-left: var(--side);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .2s ease;
}
.orbi-topbar {
  position: sticky; top: 0; z-index: 1030;
  height: var(--orbi-topbar-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(17,20,32,.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .orbi-topbar { background: rgba(255,255,255,.85); }
.orbi-topbar-burger {
  display: none;
  width: 36px; height: 36px; flex: none;
  align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius-md);
  background: transparent; color: var(--c-text-secondary); cursor: pointer;
}
.orbi-topbar-burger:hover { color: var(--c-text-primary); background: var(--c-surface-2); }
.orbi-topbar-burger svg { width: 18px; height: 18px; }
.orbi-topbar-title {
  font-size: 16px; font-weight: 650; letter-spacing: -.4px;
  color: var(--c-text-primary); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orbi-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Account menu (reuses .orbi-theme-toggle from the navbar block above) */
.orbi-account-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: var(--radius-md);
  border: 1px solid var(--c-border); background: rgba(255,255,255,.04);
  color: var(--c-text-secondary); cursor: pointer;
  font-size: 13px; font-weight: 500;
  transition: color .15s, background .15s;
}
.orbi-account-btn:hover { color: var(--c-text-primary); background: var(--c-surface-2); }
.orbi-account-avatar {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-accent) 0%, #7B68EE 100%); color: #fff;
}
.orbi-account-avatar svg { width: 16px; height: 16px; }

/* ── Body container ── */
.orbi-app-body { flex: 1; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px); }
.orbi-app-container { width: 100%; max-width: 1240px; margin: 0 auto; }

/* ── Responsive: off-canvas sidebar on narrow screens ── */
@media (max-width: 920px) {
  .orbi-side { transform: translateX(-100%); width: var(--orbi-side-w); }
  .orbi-app--navopen .orbi-side { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .orbi-app--navopen .orbi-side-scrim { opacity: 1; visibility: visible; }
  .orbi-main { margin-left: 0; }
  .orbi-topbar-burger { display: flex; }
  /* The wide-screen collapse control is meaningless off-canvas — hide it */
  .orbi-side-collapse { display: none; }
  /* Ignore any persisted collapsed state on narrow screens */
  .orbi-app.orbi-app--collapsed { --side: var(--orbi-side-w); }
  .orbi-app.orbi-app--collapsed .orbi-side-brand-text,
  .orbi-app.orbi-app--collapsed .orbi-side-label { display: inline; }
  .orbi-app.orbi-app--collapsed .orbi-side-link,
  .orbi-app.orbi-app--collapsed .orbi-side-cta { justify-content: flex-start; gap: 12px; padding-left: 12px; padding-right: 12px; }
}
