/* ============================================================
   CBMS Design System v4 — Premium Dark
   Brand: cyan→blue gradient wordmark
   Type: Geist (display + body), Inter fallback
   ============================================================ */

:root {
  /* === Brand gradient === */
  --brand-cyan:     #7DDBFF;
  --brand-sky:      #00B4FF;
  --brand-blue:     #0066CC;
  --brand-deep:     #003D9E;
  --brand-grad:     linear-gradient(135deg, #7DDBFF 0%, #00B4FF 25%, #0066CC 65%, #003D9E 100%);
  --brand-grad-soft:linear-gradient(135deg, rgba(125,219,255,0.18) 0%, rgba(0,180,255,0.14) 50%, rgba(0,102,204,0.10) 100%);

  --primary:        #00B4FF;
  --primary-strong: #0066CC;
  --primary-dark:   #003D9E;

  /* legacy alias so older inline styles still resolve */
  --green:          #00B4FF;
  --green-dark:     #0066CC;
  --green-soft:     rgba(0,180,255,0.12);
  --primary-soft:   rgba(0,180,255,0.12);

  /* === Dark surfaces === */
  --bg:             #060B1A;
  --bg-2:           #0A1430;
  --bg-3:           #0F1B3D;
  --surface:        rgba(255,255,255,0.04);
  --surface-2:      rgba(255,255,255,0.06);
  --surface-hover:  rgba(255,255,255,0.09);
  --surface-strong: rgba(255,255,255,0.10);
  --glass-bg:       rgba(255,255,255,0.05);
  --glass-border:   rgba(255,255,255,0.10);
  --hairline:       rgba(255,255,255,0.06);
  --card-border:    rgba(255,255,255,0.10);

  /* === Type colors === */
  --text:           #F8FAFC;
  --text-2:         rgba(255,255,255,0.78);
  --text-muted:     rgba(255,255,255,0.60);
  --muted:          rgba(255,255,255,0.55);
  --muted-light:    rgba(255,255,255,0.40);
  --text-light:     rgba(255,255,255,0.78);
  --white:          #FFFFFF;
  --navy:           #060B1A;
  --bg-alt:         rgba(255,255,255,0.04);

  /* === Status === */
  --emerald:        #34D399;
  --emerald-soft:   rgba(52,211,153,0.14);
  --amber:          #FBBF24;
  --amber-soft:     rgba(251,191,36,0.14);
  --red:            #F87171;
  --red-soft:       rgba(248,113,113,0.16);
  --info:           #60A5FA;
  --info-soft:      rgba(96,165,250,0.16);
  --blue:           #60A5FA;
  --blue-soft:      rgba(96,165,250,0.16);

  /* === Sidebar (dashboard) === */
  --sidebar:        #050912;
  --sidebar-hover:  rgba(255,255,255,0.06);
  --sidebar-active: rgba(0,180,255,0.18);

  /* === Radii === */
  --radius-sm:      10px;
  --radius:         14px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-2xl:     32px;
  --radius-full:    999px;

  /* === Shadows / glows === */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.40);
  --shadow:         0 2px 6px rgba(0,0,0,0.25), 0 10px 28px rgba(0,0,0,0.32);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:      0 16px 48px rgba(0,0,0,0.45);
  --shadow-xl:      0 32px 72px rgba(0,0,0,0.55);
  --shadow-primary: 0 6px 24px rgba(0,180,255,0.35), 0 2px 6px rgba(0,102,204,0.25);
  --shadow-primary-lg: 0 12px 36px rgba(0,180,255,0.45), 0 4px 12px rgba(0,102,204,0.35);
  --glow-cyan:      0 0 1px rgba(125,219,255,0.6), 0 0 24px rgba(0,180,255,0.30);

  /* === Type === */
  --font:           'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display:   'Geist', 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono:      'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max-width:      1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 85% -10%, rgba(0,180,255,0.10) 0%, transparent 55%),
    radial-gradient(circle at -5% 30%, rgba(0,102,204,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(0,61,158,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #060B1A 0%, #0A1430 50%, #060B1A 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.12;
}

a { color: var(--brand-sky); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { color: var(--brand-cyan); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(0,180,255,0.35); color: var(--white); }

/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  font-family: var(--font);
  transition: all .2s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap; text-decoration: none; position: relative;
}
.btn-primary {
  background: var(--brand-grad);
  background-size: 200% 200%;
  background-position: 0% 0%;
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-1px); color: var(--white);
  box-shadow: var(--shadow-primary-lg);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--glass-bg); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-hover); color: var(--text);
  border-color: rgba(255,255,255,0.18);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--brand-sky); color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(0,180,255,0.10);
}
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--glass-border); }
.btn-outline-dark:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-icon { padding: 10px; }

/* ============================================================
   CARDS (glass)
   ============================================================ */
.card {
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0,180,255,0.30);
  background: var(--surface-2);
  box-shadow: 0 24px 56px rgba(0,180,255,0.10), 0 8px 24px rgba(0,0,0,0.40);
}
.card-flat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}
.card-elevated {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.card-featured {
  background: linear-gradient(180deg, rgba(0,180,255,0.10) 0%, rgba(0,102,204,0.05) 100%);
  border: 1.5px solid rgba(0,180,255,0.40);
  box-shadow: 0 12px 36px rgba(0,180,255,0.18), 0 4px 12px rgba(0,0,0,0.35);
  position: relative;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.badge-success { background: var(--emerald-soft); color: #6EE7B7; border-color: rgba(52,211,153,0.30); }
.badge-warning { background: var(--amber-soft); color: #FCD34D; border-color: rgba(251,191,36,0.30); }
.badge-danger  { background: var(--red-soft); color: #FCA5A5; border-color: rgba(248,113,113,0.30); }
.badge-info    { background: var(--info-soft); color: #93C5FD; border-color: rgba(96,165,250,0.30); }
.badge-primary { background: rgba(0,180,255,0.14); color: var(--brand-cyan); border-color: rgba(0,180,255,0.30); }
.badge-muted   { background: var(--surface-2); color: var(--text-muted); border-color: var(--glass-border); }
.badge-glow {
  background: rgba(0,180,255,0.14); color: var(--brand-cyan);
  border-color: rgba(0,180,255,0.35);
  box-shadow: 0 0 16px rgba(0,180,255,0.25);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

/* ============================================================
   FORMS
   ============================================================ */
.input, .select, .textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius);
  border: 1px solid var(--glass-border); font-size: 15px;
  background: var(--surface); color: var(--text);
  font-family: var(--font);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-sky);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(0,180,255,0.16);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-light); }
.label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-2); margin-bottom: 8px;
}
.form-group { margin-bottom: 20px; }
.help-text { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 22px; font-family: var(--font-display); font-weight: 700; }
.text-2xl { font-size: 28px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.text-3xl { font-size: 38px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }
.text-4xl { font-size: 52px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.text-5xl { font-size: 68px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }

.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.text-primary { color: var(--brand-cyan); }
.text-navy { color: var(--white); }
.text-green { color: var(--brand-cyan); }

.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }

.p-4 { padding: 16px; } .p-6 { padding: 24px; } .p-8 { padding: 32px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress-bar {
  height: 8px; background: var(--surface-2); border-radius: var(--radius-full); overflow: hidden;
}
.progress-bar > div {
  height: 100%;
  background: var(--brand-grad);
  border-radius: var(--radius-full);
  transition: width .4s ease;
  box-shadow: 0 0 12px rgba(0,180,255,0.45);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px;
  width: 2px; background: var(--glass-border);
}
.timeline-item { position: relative; padding-bottom: 20px; color: var(--text-2); }
.timeline-item::before {
  content: ''; position: absolute; left: -26px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2);
  border: 2px solid var(--bg-2); box-shadow: 0 0 0 2px var(--glass-border);
}
.timeline-item.done::before { background: var(--brand-sky); box-shadow: 0 0 0 2px rgba(0,180,255,0.45), 0 0 16px rgba(0,180,255,0.30); }
.timeline-item.active::before { background: var(--brand-cyan); box-shadow: 0 0 0 6px rgba(0,180,255,0.20), 0 0 24px rgba(0,180,255,0.55); }

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--glass-border);
  border-top-color: var(--brand-sky); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   ICONS
   ============================================================ */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.icon-chip {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: rgba(0,180,255,0.14); color: var(--brand-cyan);
  border: 1px solid rgba(0,180,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-chip svg { width: 24px; height: 24px; }

/* ============================================================
   SHARED HEADER (injected by /shared/cbms-nav.js)
   ============================================================ */
.cbms-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,11,26,0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.cbms-header.scrolled {
  background: rgba(6,11,26,0.88);
  border-bottom-color: rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.50);
}
.cbms-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--max-width); margin: 0 auto; padding: 0 28px;
}
.cbms-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-family: var(--font-display);
  font-weight: 800; font-size: 22px; text-decoration: none;
  letter-spacing: -0.02em;
}
.cbms-logo:hover { color: var(--white); }
.cbms-logo img { height: 28px; width: auto; }
.cbms-nav {
  display: flex; gap: 36px; align-items: center;
}
.cbms-nav a {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color .15s ease;
  position: relative;
}
.cbms-nav a:hover { color: var(--white); }
.cbms-nav a.active { color: var(--white); }
.cbms-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--brand-grad); border-radius: 2px;
  box-shadow: 0 0 12px rgba(0,180,255,0.5);
}
.cbms-nav .btn { font-size: 14px; padding: 10px 20px; }
.cbms-menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--white); cursor: pointer;
}
.cbms-menu-btn svg { width: 20px; height: 20px; }
.cbms-mobile-panel {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(6,11,26,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 24px 24px; z-index: 99;
  box-shadow: 0 16px 32px rgba(0,0,0,0.50);
}
.cbms-mobile-panel.open { display: block; }
.cbms-mobile-panel a {
  display: block; padding: 14px 4px; font-size: 16px;
  font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.cbms-mobile-panel a:last-of-type { border-bottom: none; }
.cbms-mobile-panel .btn { width: 100%; margin-top: 12px; justify-content: center; }

@media (max-width: 900px) {
  .cbms-nav { display: none; }
  .cbms-menu-btn { display: inline-flex; }
}

body.has-cbms-header { padding-top: 72px; }

/* ============================================================
   SHARED FOOTER
   ============================================================ */
.cbms-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.40) 100%);
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  padding: 80px 0 32px; margin-top: 120px;
  position: relative;
}
.cbms-footer::before {
  content: ''; position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 600px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,255,0.55), transparent);
}
.cbms-footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.cbms-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.cbms-footer h4 {
  color: var(--white); font-family: var(--font-display);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cbms-footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cbms-footer a { color: var(--text-muted); font-size: 14px; }
.cbms-footer a:hover { color: var(--white); }
.cbms-footer-brand p { font-size: 14px; max-width: 320px; margin-top: 16px; line-height: 1.6; color: var(--text-muted); }
.cbms-footer-brand img.footer-logo { height: 36px; width: auto; }
.cbms-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--muted-light);
  flex-wrap: wrap; gap: 16px;
}
.cbms-footer-bottom .trust-badges { display: flex; gap: 12px; align-items: center; }
.cbms-footer-bottom .trust-badges span {
  padding: 4px 10px; border: 1px solid var(--glass-border);
  border-radius: var(--radius-full); font-size: 11px;
  background: var(--surface);
}
.cbms-footer-bottom .footer-legal { display: flex; gap: 20px; align-items: center; }
.cbms-footer-bottom .footer-legal a { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color .15s ease; }
.cbms-footer-bottom .footer-legal a:hover { color: var(--brand-cyan); }
@media (max-width: 900px) {
  .cbms-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cbms-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cbms-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cbms-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cbms-footer-bottom .footer-legal { flex-wrap: wrap; gap: 14px; }
  .cbms-footer-bottom .trust-badges { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .text-5xl { font-size: 52px; }
  .text-4xl { font-size: 40px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .text-5xl { font-size: 40px; }
  .text-4xl { font-size: 32px; }
  .text-3xl { font-size: 28px; }
  .text-2xl { font-size: 22px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   MOBILE BOTTOM NAV (≤900px)
   ============================================================ */
.cbms-bottom-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(6, 11, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  height: auto;
}
.cbms-bottom-nav {
  display: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-around;
}
.cbms-bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .15s ease;
  min-width: 0;
  border: none;
  background: none;
}
.cbms-bn-item:hover { color: var(--white); }
.cbms-bn-item.cbms-bn-active {
  color: var(--brand-cyan);
}
.cbms-bn-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cbms-bn-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
}
.cbms-bn-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
  font-size: 10px;
  line-height: 1.2;
}
/* CTA item — "Get started" gets brand gradient pill */
.cbms-bn-cta {
  color: var(--brand-cyan);
}
.cbms-bn-cta .cbms-bn-icon {
  background: linear-gradient(135deg, #7DDBFF22, #0066CC22);
  border: 1px solid var(--brand-cyan);
  border-radius: 50%;
  padding: 3px;
  width: 32px; height: 32px;
}
.cbms-bn-cta .cbms-bn-icon svg {
  width: 16px; height: 16px;
}
/* Show only on mobile */
@media (max-width: 900px) {
  .cbms-bottom-nav { display: flex; }
  /* Add bottom padding so page content isn't hidden behind bar */
  body.has-cbms-header { padding-bottom: 68px; }
}
