/* ============================================================
   Boomeerang Opportunity Engine — Design System V3
   ============================================================ */

:root {
  /* Brand */
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #dbeafe;
  --green:       #059669;
  --green-light: #d1fae5;
  --orange:      #d97706;
  --orange-light:#fef3c7;
  --purple:      #7c3aed;
  --purple-light:#ede9fe;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --teal:        #0d9488;
  --teal-light:  #ccfbf1;
  --pink:        #db2777;
  --pink-light:  #fce7f3;

  /* Neutrals */
  --page-bg:     #f1f5f9;
  --card-bg:     #ffffff;
  --sidebar-bg:  #06101f;
  --sidebar-active: #1e3a8a;
  --sidebar-hover:  rgba(255,255,255,.06);
  --border:      #e2e8f0;
  --border-2:    #f1f5f9;
  --text:        #0f172a;
  --text-2:      #64748b;
  --text-3:      #94a3b8;
  --text-4:      #cbd5e1;

  /* Layout */
  --sidebar-w:   168px;
  --topbar-h:    64px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 14px; line-height: 1.55;
  color: var(--text); background: var(--page-bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; color: var(--blue-dark); }
img { max-width: 100%; }

/* ── Sidebar layout ───────────────────────────────────── */
.bm-layout { display: flex; min-height: 100vh; }

.bm-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto; overflow-x: hidden;
}

/* Sidebar brand */
.bm-brand {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: center;
  flex-shrink: 0;
}
.bm-brand-logo {
  width: 100px; height: auto;
  margin: 0 auto 6px;
  display: block;
  filter: brightness(1.05);
}
.bm-brand-name {
  font-size: .8rem; font-weight: 800;
  color: #3b82f6; letter-spacing: .04em;
  margin: 0; line-height: 1.1;
}
.bm-brand-tagline {
  font-size: .6rem; color: rgba(255,255,255,.3);
  line-height: 1.4; margin-top: 2px;
}

/* Sidebar nav */
.bm-nav { flex: 1; padding: 10px 0; }
.bm-nav-section {
  padding: 10px 14px 3px;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.24);
}
.bm-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; margin: 1px 8px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.58);
  font-size: .8rem; font-weight: 450;
  cursor: pointer; transition: all .12s;
  text-decoration: none; white-space: nowrap;
}
.bm-nav-link:hover {
  color: rgba(255,255,255,.9);
  background: var(--sidebar-hover);
  text-decoration: none;
}
.bm-nav-link.active {
  color: #fff;
  background: var(--sidebar-active);
}
.bm-nav-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.bm-nav-link.active svg, .bm-nav-link:hover svg { opacity: 1; }

/* Sidebar user + footer */
.bm-sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bm-user-row {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  cursor: pointer; transition: background .12s;
}
.bm-user-row:hover { background: var(--sidebar-hover); }
.bm-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.bm-avatar-lg {
  width: 40px; height: 40px;
  font-size: .85rem;
}
.bm-user-name { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.2; }
.bm-user-role { font-size: .65rem; color: rgba(255,255,255,.38); }
.bm-user-chevron { margin-left: auto; color: rgba(255,255,255,.3); flex-shrink: 0; }
.bm-logout-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 14px;
  font-size: .78rem; color: rgba(255,255,255,.38);
  text-decoration: none; transition: color .12s;
}
.bm-logout-link:hover { color: rgba(255,255,255,.7); text-decoration: none; }
.bm-version {
  padding: 8px 14px 14px;
  font-size: .65rem; color: rgba(255,255,255,.22);
  display: flex; align-items: center; gap: 6px;
}

/* ── Main area ────────────────────────────────────────── */
.bm-main { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* ── Topbar ───────────────────────────────────────────── */
.bm-topbar {
  height: var(--topbar-h); background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
}
.bm-search-bar {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: var(--r); padding: 0 14px; height: 40px;
}
.bm-search-bar input {
  border: none; background: transparent; outline: none;
  font-size: .85rem; color: var(--text); width: 100%;
}
.bm-search-bar input::placeholder { color: var(--text-3); }
.bm-search-icon { color: var(--text-3); flex-shrink: 0; }
.bm-topbar-spacer { flex: 1; }
.bm-topbar-actions { display: flex; align-items: center; gap: 8px; }
.bm-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; border: none;
  background: transparent; transition: background .12s; position: relative;
}
.bm-icon-btn:hover { background: var(--page-bg); }
.bm-icon-btn svg { width: 18px; height: 18px; }
.bm-notif-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.bm-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--border); border-radius: 100px;
  cursor: pointer; transition: background .12s;
}
.bm-user-pill:hover { background: var(--page-bg); }
.bm-user-pill-name { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.bm-user-pill-role { font-size: .68rem; color: var(--text-2); }

/* ── Content ──────────────────────────────────────────── */
.bm-content { padding: 24px 28px; flex: 1; }

/* ── Greeting ─────────────────────────────────────────── */
.bm-greeting { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; }
.bm-greeting-text h1 { font-size: 1.5rem; font-weight: 700; margin: 0 0 2px; }
.bm-greeting-text p { color: var(--text-2); font-size: .875rem; margin: 0; }

/* ── Buttons ──────────────────────────────────────────── */
.bm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all .15s; text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.bm-btn:hover { text-decoration: none; }
.bm-btn-primary { background: var(--blue); color: #fff; }
.bm-btn-primary:hover { background: var(--blue-dark); color: #fff; }
.bm-btn-outline { background: #fff; color: var(--blue); border-color: var(--blue-light); }
.bm-btn-outline:hover { background: var(--blue-light); }
.bm-btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.bm-btn-ghost:hover { background: var(--page-bg); color: var(--text); }
.bm-btn-sm { padding: 6px 12px; font-size: .8rem; }
.bm-btn-xs { padding: 4px 9px; font-size: .75rem; }
.bm-btn-danger { background: var(--red); color: #fff; }
.bm-btn-danger:hover { background: #b91c1c; color: #fff; }
.bm-btn-green { background: var(--green); color: #fff; }
.bm-btn-green:hover { background: #047857; color: #fff; }

/* ── KPI cards ────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
}
.kpi-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-icon.blue   { background: var(--blue-light);   color: var(--blue); }
.kpi-icon.green  { background: var(--green-light);  color: var(--green); }
.kpi-icon.orange { background: var(--orange-light); color: var(--orange); }
.kpi-icon.purple { background: var(--purple-light); color: var(--purple); }
.kpi-icon.red    { background: var(--red-light);    color: var(--red); }
.kpi-body { flex: 1; min-width: 0; }
.kpi-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 2px; }
.kpi-value { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.kpi-sub { font-size: .75rem; margin-top: 3px; }
.kpi-sub.up   { color: var(--green); }
.kpi-sub.down { color: var(--red); }
.kpi-sub.neutral { color: var(--text-2); }
.kpi-sub.warn { color: var(--orange); }

/* ── Cards ────────────────────────────────────────────── */
.bm-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.bm-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.bm-card-title { font-size: .92rem; font-weight: 600; color: var(--text); margin: 0; }
.bm-card-body { padding: 20px; }
.bm-card-body-np { padding: 0; }

/* ── Tables ───────────────────────────────────────────── */
.bm-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bm-table th {
  padding: 9px 16px; text-align: left;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap; background: #fafbff;
}
.bm-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bm-table tr:last-child td { border-bottom: none; }
.bm-table tbody tr { transition: background .1s; }
.bm-table tbody tr:hover td { background: #fafbff; }
.bm-table-wrap { overflow-x: auto; }

/* ── Badges ───────────────────────────────────────────── */
.bm-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.bm-badge-blue   { background: var(--blue-light);   color: #1e40af; }
.bm-badge-green  { background: var(--green-light);  color: #065f46; }
.bm-badge-orange { background: var(--orange-light); color: #92400e; }
.bm-badge-purple { background: var(--purple-light); color: #5b21b6; }
.bm-badge-red    { background: var(--red-light);    color: #991b1b; }
.bm-badge-teal   { background: var(--teal-light);   color: #115e59; }
.bm-badge-pink   { background: var(--pink-light);   color: #9d174d; }
.bm-badge-gray   { background: #f1f5f9;             color: #475569; }
/* Status */
.bm-badge-new       { background: var(--blue-light);   color: #1e40af; }
.bm-badge-contacted { background: #e0f2fe;             color: #075985; }
.bm-badge-proposal  { background: var(--orange-light); color: #92400e; }
.bm-badge-won       { background: var(--green-light);  color: #065f46; }
.bm-badge-lost      { background: var(--red-light);    color: #991b1b; }
.bm-badge-completed { background: var(--green-light);  color: #065f46; }
.bm-badge-pending   { background: var(--orange-light); color: #92400e; }
.bm-badge-queued    { background: #f1f5f9;             color: #475569; }
.bm-badge-failed    { background: var(--red-light);    color: #991b1b; }
.bm-badge-processing{ background: var(--blue-light);   color: #1e40af; }

/* ── Score circle ─────────────────────────────────────── */
.score-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  font-weight: 700; font-size: .85rem;
}
.score-high   { background: var(--green-light);  color: #065f46; }
.score-mid    { background: var(--orange-light); color: #92400e; }
.score-low    { background: var(--red-light);    color: #991b1b; }

/* ── Business avatar ──────────────────────────────────── */
.biz-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ── AI Insight card ──────────────────────────────────── */
.ai-insight-card {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
  border-radius: var(--r-lg); padding: 20px;
  color: #fff; position: relative; overflow: hidden; height: 100%;
}
.ai-insight-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.ai-insight-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-insight-label { font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ai-insight-impact { background: rgba(255,255,255,.2); border-radius: 100px; padding: 2px 8px; font-size: .68rem; font-weight: 600; }
.ai-insight-text { font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 16px; }
.ai-insight-revenue-label { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.ai-insight-revenue { font-size: 1.6rem; font-weight: 700; margin-bottom: 14px; }
.ai-insight-ball {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 3rem; opacity: .5; pointer-events: none;
}
.ai-insight-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm);
  padding: 7px 14px; font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.ai-insight-btn:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

/* ── Activity feed ────────────────────────────────────── */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .8rem;
}
.activity-icon.search  { background: var(--blue-light);   color: var(--blue); }
.activity-icon.doc     { background: var(--green-light);  color: var(--green); }
.activity-icon.person  { background: var(--orange-light); color: var(--orange); }
.activity-icon.food    { background: var(--teal-light);   color: var(--teal); }
.activity-icon.plus    { background: var(--purple-light); color: var(--purple); }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.activity-meta { font-size: .72rem; color: var(--text-3); margin-top: 1px; }

/* ── Recommended action card ──────────────────────────── */
.rec-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-radius: var(--r-lg); padding: 16px;
  color: #fff;
}
.rec-label { font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.rec-biz-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rec-biz-name { font-size: .9rem; font-weight: 700; }
.rec-biz-meta { font-size: .72rem; color: rgba(255,255,255,.6); }
.rec-ai-text { font-size: .78rem; color: rgba(255,255,255,.75); margin-bottom: 12px; line-height: 1.5; }
.rec-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm);
  padding: 8px; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.rec-btn:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }

/* ── Recent searches (bottom cards) ──────────────────── */
.recent-searches-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rs-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  transition: box-shadow .15s, transform .1s;
}
.rs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.rs-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--page-bg); color: var(--text-2); flex-shrink: 0; font-size: .9rem;
}
.rs-name { font-size: .82rem; font-weight: 600; line-height: 1.3; }
.rs-date { font-size: .7rem; color: var(--text-3); }

/* ── Forms ────────────────────────────────────────────── */
.bm-form-group { margin-bottom: 16px; }
.bm-form-label { display: block; font-size: .85rem; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.bm-form-control {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: .9rem; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.bm-form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.bm-form-control::placeholder { color: var(--text-3); }
.bm-form-hint { font-size: .78rem; color: var(--text-2); margin-top: 4px; }

/* ── Alerts ───────────────────────────────────────────── */
.bm-alert { padding: 11px 16px; border-radius: var(--r-sm); font-size: .875rem; margin-bottom: 16px; border: 1px solid; }
.bm-alert-error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.bm-alert-success { background: #f0fdf4; color: #166534; border-color: #86efac; }
.bm-alert-info    { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }
.bm-alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }

/* ── Auth layout ──────────────────────────────────────── */
.bm-auth-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #020c1c 0%, #0a1f3d 50%, #06101f 100%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.bm-auth-card {
  background: var(--card-bg); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; overflow: hidden;
}
.bm-auth-top {
  background: var(--sidebar-bg);
  padding: 28px 32px 22px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-auth-logo { width: 64px; height: auto; margin: 0 auto 8px; display: block; }
.bm-auth-brand-name {
  font-size: .85rem; font-weight: 800;
  color: #3b82f6; letter-spacing: .06em;
  margin: 0 0 4px;
}
.bm-auth-tagline { font-size: .72rem; color: rgba(255,255,255,.35); margin: 0; }
.bm-auth-body { padding: 28px 32px; }
.bm-auth-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.bm-auth-sub { color: var(--text-2); font-size: .875rem; margin-bottom: 22px; }
.bm-auth-footer { text-align: center; padding: 0 32px 24px; font-size: .85rem; color: var(--text-2); }
.bm-auth-footer a { color: var(--blue); font-weight: 500; }
.bm-auth-divider { height: 1px; background: var(--border); margin: 18px 0; border: none; }

/* ── Welcome page ─────────────────────────────────────── */
.bm-welcome { min-height: 100vh; background: var(--sidebar-bg); }
.bm-welcome-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.bm-welcome-nav-logo { display: flex; align-items: center; gap: 12px; }
.bm-welcome-nav-logo img { height: 40px; width: auto; }
.bm-welcome-nav-brand { color: #3b82f6; font-weight: 800; font-size: .95rem; }
.bm-welcome-nav-links { display: flex; gap: 8px; }
.bm-welcome-hero {
  text-align: center; padding: 80px 40px 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.25) 0%, transparent 65%);
}
.bm-welcome-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.bm-welcome-title {
  font-size: 3rem; font-weight: 800; color: #fff;
  letter-spacing: -.04em; margin-bottom: 16px;
}
.bm-welcome-title span { color: #3b82f6; }
.bm-welcome-sub {
  font-size: 1.05rem; color: rgba(255,255,255,.55);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.bm-welcome-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bm-welcome-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; padding: 48px 48px 64px; max-width: 1100px; margin: 0 auto;
}
.bm-feature-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 22px;
}
.bm-feature-icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.bm-feature-name { color: #fff; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.bm-feature-desc { color: rgba(255,255,255,.45); font-size: .82rem; line-height: 1.6; margin: 0; }
.bm-welcome-footer {
  text-align: center; padding: 24px; font-size: .78rem;
  color: rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Public site foundation ───────────────────────────── */
.bm-public-body {
  min-height: 100%;
  background: var(--sidebar-bg);
}
.bm-public-dark { background: var(--sidebar-bg); }
.bm-public-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bm-public-main { flex: 1; }
.bm-public-nav {
  position: relative;
  z-index: 10;
}
.bm-public-nav-left,
.bm-public-brand {
  display: flex;
  align-items: center;
}
.bm-public-brand { gap: 12px; }
.bm-public-brand > span {
  display: flex;
  flex-direction: column;
}
.bm-public-brand-tagline {
  font-size: .6rem;
  color: rgba(255,255,255,.3);
  line-height: 1.4;
}
.bm-public-nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.bm-public-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bm-public-nav-links a {
  color: rgba(255,255,255,.62);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.bm-public-nav-links a:hover,
.bm-public-nav-links a[aria-current="page"] {
  color: #fff;
}
.bm-public-nav-actions { gap: 8px; }
.bm-public-nav-actions .bm-btn-ghost {
  color: rgba(255,255,255,.7);
}
/* Override the generic .bm-btn-ghost:hover (light background + dark text,
   meant for light dashboard surfaces): on the dark public nav it painted a
   pale box behind "Sign In" with near-invisible text. Here hover should
   only brighten the text itself, like the other nav links. */
.bm-public-nav-actions .bm-btn-ghost:hover {
  background: transparent;
  color: #fff;
}
.bm-public-menu-toggle {
  display: none;
  width: 40px;
  height: 38px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}
.bm-public-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}
.bm-public-footer {
  padding: 42px 48px 20px;
  background: #040c18;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
}
.bm-public-footer-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.5fr) repeat(5, minmax(90px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.bm-public-footer-brand .bm-welcome-nav-logo img {
  height: 32px;
}
.bm-public-footer-brand p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.34);
  font-size: .75rem;
}
.bm-public-footer h2 {
  margin: 0 0 12px;
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bm-public-footer a:not(.bm-welcome-nav-logo) {
  display: block;
  margin: 8px 0;
  color: rgba(255,255,255,.42);
  font-size: .78rem;
}
.bm-public-footer a:not(.bm-welcome-nav-logo):hover {
  color: rgba(255,255,255,.85);
}
.bm-public-footer-bottom {
  max-width: 1180px;
  margin: 38px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.25);
  font-size: .72rem;
}
.bm-public-page-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 92px 32px 56px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.24) 0%, transparent 68%);
}
.bm-public-page-hero h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.bm-public-page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,.58);
  font-size: 1rem;
  line-height: 1.75;
}
.bm-public-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  padding: 0 32px 38px;
  margin: 0 auto;
}
.bm-public-info-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
}
.bm-public-info-icon {
  display: block;
  margin-bottom: 18px;
  color: #93bbfc;
  font-size: 1.35rem;
  font-weight: 800;
}
.bm-public-info-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}
.bm-public-info-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
}
.bm-public-info-card p {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  line-height: 1.65;
}
.bm-public-placeholder-note {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 32px 76px;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}
.bm-public-placeholder-note strong {
  color: rgba(255,255,255,.7);
}
.bm-public-placeholder-note p { margin: 5px 0 0; }

/* ── Public legal documents ────────────────────────────── */
.bm-legal-page {
  padding: 70px 20px 96px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.2) 0%, transparent 42%),
    var(--sidebar-bg);
}
.bm-legal-document {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  color: rgba(255,255,255,.92);
}
.bm-legal-header {
  padding: 52px clamp(24px, 6vw, 78px) 42px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.bm-legal-header .bm-platform-badge {
  margin-bottom: 18px;
  color: #2563eb;
  background: #eaf1ff;
  border-color: #d5e3ff;
}
.bm-legal-header h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.bm-legal-dates {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.bm-legal-dates span { margin: 0 7px; color: rgba(255,255,255,.5); }
.bm-legal-content {
  max-width: 790px;
  margin: 0 auto;
  padding: 46px clamp(24px, 6vw, 72px) 76px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255,255,255,.9);
}
.bm-legal-content p {
  margin: 0 0 1.18em;
}
.bm-legal-content ul.bm-legal-list {
  margin: -.2em 0 1.35em;
  padding-left: 1.45em;
}
.bm-legal-content ul.bm-legal-list li {
  margin: .42em 0;
  padding-left: .25em;
}
.bm-legal-content h2,
.bm-legal-content h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-margin-top: 24px;
}
.bm-legal-content h2 {
  margin: 2.2em 0 .72em;
  padding-top: .25em;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -.012em;
}
.bm-legal-content h3 {
  margin: 1.7em 0 .65em;
  color: #d2e2ff;
  font-size: 1rem;
  line-height: 1.4;
}
.bm-legal-content address {
  margin-top: 1.25em;
  padding: 18px 20px;
  color: rgba(255,255,255,.9);
  font-style: normal;
  line-height: 1.75;
  background: rgba(255,255,255,.06);
  border-left: 3px solid #4f8df7;
  border-radius: 0 8px 8px 0;
}
.bm-legal-uppercase {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* ── Public Features page ──────────────────────────────── */
.bm-features-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.22) 0%, transparent 46%),
    var(--sidebar-bg);
}
.bm-features-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 92px 32px 60px;
  text-align: center;
}
.bm-features-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.bm-features-hero-sub {
  margin: 0 0 22px;
  color: #cfe0ff;
  font-size: 1.15rem;
  font-weight: 600;
}
.bm-features-hero p {
  max-width: 620px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.75;
}
.bm-features-hero-cta {
  display: inline-flex;
  margin-top: 14px;
}
.bm-features-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-features-eyebrow {
  margin-bottom: 10px;
  color: #93bbfc;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.bm-features-block h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.bm-features-block p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  line-height: 1.75;
}
.bm-features-block p:last-child { margin-bottom: 0; }
.bm-features-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.bm-features-list li {
  padding-left: 22px;
  position: relative;
  color: rgba(255,255,255,.75);
  font-size: .94rem;
  line-height: 1.55;
}
.bm-features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4f8df7;
  font-weight: 700;
}
.bm-features-tagline {
  color: #cfe0ff !important;
  font-weight: 600;
}
.bm-features-callout {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-features-callout h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.bm-features-callout p {
  margin: 0 0 14px;
  color: rgba(255,255,255,.68);
  font-size: 1rem;
  line-height: 1.75;
}
.bm-features-callout-lead {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 700;
}
.bm-features-workflow {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-features-workflow h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.bm-features-workflow p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.75;
}
.bm-features-workflow-steps {
  margin: 0 0 22px;
  padding: 18px 22px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #cfe0ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.7;
}
.bm-features-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 32px 92px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-features-cta h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.9rem;
  letter-spacing: -.03em;
}
.bm-features-cta p {
  margin: 0 0 24px;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Public FAQ page ────────────────────────────────────── */
.bm-faq-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.22) 0%, transparent 46%),
    var(--sidebar-bg);
}
.bm-faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px 30px;
}
.bm-faq-item {
  border-top: 1px solid rgba(255,255,255,.08);
}
.bm-faq-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.bm-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.bm-faq-item summary::-webkit-details-marker { display: none; }
.bm-faq-item summary:focus-visible {
  outline: 2px solid #4f8df7;
  outline-offset: 4px;
  border-radius: 6px;
}
.bm-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.bm-faq-icon::before,
.bm-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #93bbfc;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.bm-faq-icon::before { width: 12px; height: 2px; }
.bm-faq-icon::after { width: 2px; height: 12px; }
.bm-faq-item[open] .bm-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.bm-faq-answer {
  padding: 0 26px 24px 4px;
}
.bm-faq-answer p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: .95rem;
  line-height: 1.75;
}
.bm-faq-answer a {
  color: #93bbfc;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Public About page ─────────────────────────────────── */
.bm-about-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.22) 0%, transparent 46%),
    var(--sidebar-bg);
}
.bm-about-does {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-about-does h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}
.bm-about-does-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bm-about-approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.bm-about-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.bm-about-split-item {
  padding: 22px 24px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
}
.bm-about-split-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.02rem;
}
.bm-about-split-item p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .92rem;
  line-height: 1.65;
}

/* ── Public Contact page ───────────────────────────────── */
.bm-contact-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.22) 0%, transparent 46%),
    var(--sidebar-bg);
}
.bm-contact-form-section {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 0 20px;
}
.bm-contact-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 32px 28px;
}
.bm-contact-card .bm-form-label { color: #e2e8f0; }
.bm-contact-card textarea.bm-form-control { resize: vertical; min-height: 120px; }
.bm-form-optional { color: #64748b; font-weight: 400; }
.bm-contact-error {
  background: #450a0a;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .85rem;
  margin-bottom: 20px;
}
.bm-contact-honeypot {
  /* display:none (not just off-screen positioning) so browser/password-manager
     autofill does not target this field for real visitors; bots that fill
     forms without rendering CSS still populate it. */
  display: none;
}
.bm-contact-privacy-note {
  margin: 4px 0 18px;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  line-height: 1.6;
}
.bm-contact-privacy-note a {
  color: #93bbfc;
  text-decoration: underline;
}
.bm-contact-submit {
  width: 100%;
  justify-content: center;
}
.bm-contact-success {
  text-align: center;
}
.bm-contact-success-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #4ade80;
}
.bm-contact-success h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.3rem;
}
.bm-contact-success p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}
.bm-contact-alt {
  margin: 22px 0 0;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}
.bm-contact-alt a {
  color: #93bbfc;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Public Pricing page ───────────────────────────────── */
.bm-pricing-primary {
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 32px 56px;
}
.bm-pricing-card {
  padding: 44px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(37,99,235,.16) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(79,141,247,.45);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(79,141,247,.08), 0 24px 60px -20px rgba(37,99,235,.55);
}
.bm-pricing-card-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 14px;
  background: #2563eb;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 100px;
}
.bm-pricing-card-price {
  margin-bottom: 10px;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.bm-pricing-card-price span {
  display: block;
  margin-top: 8px;
  color: #93bbfc;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.bm-pricing-card-note {
  margin: 0 0 8px;
  color: rgba(255,255,255,.68);
  font-size: .95rem;
  line-height: 1.6;
}
.bm-pricing-card-cta {
  display: inline-flex;
  margin-top: 18px;
}
.bm-pricing-card-secondary {
  max-width: 420px;
  margin: 0 auto;
}
.bm-pricing-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.bm-pricing-faq h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  text-align: center;
}
.bm-pricing-faq-item {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.bm-pricing-faq-item:last-child { padding-bottom: 0; }
.bm-pricing-faq-item h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.bm-pricing-faq-item p {
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: .95rem;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .bm-public-nav { padding-left: 28px; padding-right: 28px; }
  .bm-public-nav-menu { gap: 14px; }
  .bm-public-nav-links { gap: 12px; }
}
@media (max-width: 820px) {
  .bm-public-nav {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  .bm-public-menu-toggle { display: block; }
  .bm-public-nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 16px;
  }
  .bm-public-nav-menu.is-open { display: flex; }
  .bm-public-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .bm-public-nav-links a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .bm-public-nav-actions { justify-content: flex-end; }
  .bm-public-footer { padding-left: 24px; padding-right: 24px; }
  .bm-public-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-public-footer-brand { grid-column: 1 / -1; }
  .bm-public-placeholder-grid { grid-template-columns: 1fr; max-width: 560px; }
  .bm-features-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bm-public-brand-tagline { display: none; }
  .bm-public-nav-actions { flex-direction: column; align-items: stretch; }
  .bm-public-nav-actions .bm-btn { justify-content: center; }
  .bm-public-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .bm-public-footer-bottom { margin-top: 28px; }
  .bm-public-page-hero { padding: 64px 20px 42px; }
  .bm-public-placeholder-grid { padding-left: 20px; padding-right: 20px; }
  .bm-legal-page { padding: 44px 12px 64px; }
  .bm-legal-header { padding-top: 36px; padding-bottom: 32px; }
  .bm-legal-content { padding-top: 34px; padding-bottom: 52px; font-size: .97rem; }
  .bm-features-hero { padding: 64px 20px 44px; }
  .bm-features-block,
  .bm-features-callout,
  .bm-features-workflow { padding-left: 20px; padding-right: 20px; }
  .bm-features-cta { padding: 48px 20px 72px; }
  .bm-features-workflow-steps { font-size: .88rem; padding: 16px; }
  .bm-pricing-primary { padding: 8px 20px 44px; }
  .bm-pricing-card { padding: 34px 22px; }
  .bm-pricing-card-price { font-size: 2.6rem; }
  .bm-pricing-faq { padding: 40px 20px; }
  .bm-faq-list { padding-left: 20px; padding-right: 20px; }
  .bm-faq-item summary { font-size: .95rem; padding: 18px 2px; }
  .bm-faq-answer { padding-left: 2px; padding-right: 18px; }
  .bm-about-does { padding-left: 20px; padding-right: 20px; }
  .bm-about-does-grid,
  .bm-about-approach-grid,
  .bm-about-split { grid-template-columns: 1fr; }
  .bm-contact-form-section { padding: 0 12px; }
  .bm-contact-card { padding: 26px 18px; }
}

/* ── Landing page: dual-path architecture ─────────────── */
.bm-platform-badge {
  display: inline-block;
  padding: 5px 14px; border-radius: 100px;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px;
}

/* Path section wrapper */
.bm-path-section {
  padding: 0 32px 64px;
  max-width: 1060px; margin: 0 auto;
}
.bm-path-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 720px) {
  .bm-path-grid { grid-template-columns: 1fr; }
}

/* Path card base */
.bm-path-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px; padding: 32px;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.bm-path-card:hover { transform: translateY(-4px); text-decoration: none; }

/* Agency card hover */
.bm-path-agency { border-color: rgba(37,99,235,.2); }
.bm-path-agency:hover {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 48px rgba(37,99,235,.18), 0 8px 32px rgba(0,0,0,.3);
}

/* Business owner card hover */
.bm-path-biz { border-color: rgba(124,58,237,.2); }
.bm-path-biz:hover {
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 48px rgba(124,58,237,.18), 0 8px 32px rgba(0,0,0,.3);
}

/* Background glow blobs */
.bm-path-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  opacity: .12; pointer-events: none;
}
.bm-path-glow-blue  { background: radial-gradient(circle, #2563eb 0%, transparent 70%); }
.bm-path-glow-purple { background: radial-gradient(circle, #7c3aed 0%, transparent 70%); }

/* Badge */
.bm-path-badge {
  display: inline-block; align-self: flex-start;
  padding: 4px 12px; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 20px;
}
.bm-badge-agency {
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  color: #93bbfc;
}
.bm-badge-biz {
  background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3);
  color: #c4b5fd;
}

/* Card content */
.bm-path-icon { font-size: 2.4rem; margin-bottom: 14px; line-height: 1; }
.bm-path-title {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin: 0 0 10px;
}
.bm-path-desc {
  font-size: .88rem; color: rgba(255,255,255,.5);
  line-height: 1.7; margin: 0 0 22px;
}

/* Feature list */
.bm-path-features {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.bm-path-features li {
  font-size: .83rem; color: rgba(255,255,255,.65);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.bm-path-check {
  font-size: .8rem; font-weight: 800; flex-shrink: 0;
  margin-top: 1px;
}
.bm-check-blue   { color: #60a5fa; }
.bm-check-purple { color: #a78bfa; }

/* CTA button inside card */
.bm-path-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 10px;
  font-size: .9rem; font-weight: 700; margin-bottom: 14px;
  transition: opacity .15s ease, transform .15s ease;
}
.bm-path-card:hover .bm-path-cta { transform: scale(1.01); }
.bm-path-cta-blue   { background: #2563eb; color: #fff; }
.bm-path-cta-purple { background: #7c3aed; color: #fff; }

/* Sub-note below CTA */
.bm-path-note {
  font-size: .73rem; color: rgba(255,255,255,.28);
  text-align: center; margin: 0; line-height: 1.5;
}

/* Sign in nudge */
.bm-path-signin {
  text-align: center; margin-top: 28px;
  font-size: .83rem; color: rgba(255,255,255,.3);
}

/* How it works section */
.bm-how-section {
  padding: 48px 32px 64px; max-width: 860px; margin: 0 auto; text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}
.bm-how-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 36px;
}
.bm-how-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.bm-how-card {
  flex: 1; min-width: 180px; max-width: 240px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 24px 20px;
}
.bm-how-connector {
  font-size: 1.4rem; color: rgba(255,255,255,.15); flex-shrink: 0;
}
.bm-how-step {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; margin: 0 auto 12px;
}
.bm-step-blue { background: rgba(37,99,235,.2); color: #60a5fa; }
.bm-how-title {
  font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.bm-how-desc {
  font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.65; margin: 0;
}

/* ── Utility ──────────────────────────────────────────── */
.text-muted   { color: var(--text-2) !important; }
.text-success { color: var(--green) !important; }
.text-danger  { color: var(--red) !important; }
.text-warning { color: var(--orange) !important; }
.text-blue    { color: var(--blue) !important; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .bm-sidebar { transform: translateX(-100%); }
  .bm-main { margin-left: 0; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .recent-searches-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .bm-content { padding: 16px; }
  .recent-searches-grid { grid-template-columns: 1fr; }
}

/* ── Toast Notifications ──────────────────────────────── */
.bm-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.bm-toast {
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 280px; max-width: 420px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
}
.bm-toast.show { transform: translateX(0); opacity: 1; }
.bm-toast.hide { transform: translateX(120%); opacity: 0; }
.bm-toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.bm-toast-body { flex: 1; min-width: 0; }
.bm-toast-title { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.bm-toast-msg   { font-size: .8rem; color: var(--text-2); line-height: 1.4; }
.bm-toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: .9rem; padding: 0; flex-shrink: 0;
  line-height: 1;
}
.bm-toast-close:hover { color: var(--text); }
.bm-toast.success { border-left: 3px solid var(--green); }
.bm-toast.error   { border-left: 3px solid var(--red); }
.bm-toast.warning { border-left: 3px solid var(--orange); }
.bm-toast.info    { border-left: 3px solid var(--blue); }

/* ── Loading spinner ──────────────────────────────────── */
.bm-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: bm-spin .7s linear infinite;
  vertical-align: middle;
}
.bm-spinner-dark {
  border-color: rgba(0,0,0,.1); border-top-color: var(--blue);
}
@keyframes bm-spin { to { transform: rotate(360deg); } }

/* ── Form dirty indicator ─────────────────────────────── */
.bm-dirty-bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--orange); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 600;
  display: none; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.bm-dirty-bar.visible { display: flex; }

/* ── Auth page improvements ───────────────────────────── */
.bm-form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: var(--text-2); cursor: pointer;
}
.bm-form-check input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue); }

/* ── Button variants added in Phase 5 ─────────────────── */
.bm-btn-warning {
  background: var(--orange, #f59e0b); color: #fff;
  border-color: var(--orange, #f59e0b);
}
.bm-btn-warning:hover { filter: brightness(.9); }
.bm-btn-danger {
  background: var(--red, #dc2626); color: #fff;
  border-color: var(--red, #dc2626);
}
.bm-btn-danger:hover { filter: brightness(.9); }

/* ── Password strength meter ───────────────────────────── */
.pw-strength-bar {
  height: 4px; border-radius: 2px; margin-top: 5px;
  background: var(--border); overflow: hidden;
  transition: none;
}
.pw-strength-bar .fill {
  height: 100%; border-radius: 2px;
  transition: width .25s, background .25s;
}
.pw-strength-label {
  font-size: .72rem; color: var(--text-3); margin-top: 3px;
}
