/* ============================================================
   BankCore — Core Banking Security Assessment Platform
   Vergent Technology Solutions
   Brand: Navy (#0d2137) + Emerald Green (#059669)
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bc-navy:        #0d2137;
  --bc-navy-light:  #1a3a5c;
  --bc-green:       #059669;
  --bc-green-light: #d1fae5;
  --bc-green-dark:  #047857;
  --bc-orange:      #f59e0b;
  --bc-red:         #dc2626;
  --bc-amber:       #d97706;
  --bc-blue:        #2563eb;
  --bc-card:        #ffffff;
  --bc-bg:          #f0f7f4;
  --bc-border:      #d1d5db;
  --bc-muted:       #6b7280;
  --bc-text:        #111827;
  --bc-sidebar-w:   240px;
  --bc-radius:      10px;
  --bc-shadow:      0 1px 4px rgba(13, 33, 55, 0.08);
  --bc-shadow-md:   0 4px 16px rgba(13, 33, 55, 0.12);
}

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bc-bg);
  color: var(--bc-text);
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--bc-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--bc-navy); }
code, pre, kbd, .mono { font-family: 'DM Mono', 'Cascadia Code', 'Fira Code', monospace; }

/* ── Navbar (matches AuditCore va-nav structure) ───────────── */
/* Legacy bc-navbar kept for backwards compat */
.bc-navbar, .bc-nav {
  background: var(--bc-navy);
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  gap: 0.6rem;
}

/* Brand */
.bc-brand { display: flex; align-items: baseline; text-decoration: none; flex-shrink: 0; gap: 0.1rem; }
.bc-brand-bank { font-size: 1.25rem; font-weight: 800; color: #fff; }
.bc-brand-core { font-size: 1.25rem; font-weight: 800; color: var(--bc-green); }
.bc-brand-sub  { font-size: 0.55rem; color: rgba(255,255,255,.3); white-space: nowrap; display: none; letter-spacing: -0.5px; }
@media (min-width: 1100px) { .bc-brand-sub { display: inline; } }

.bc-brand:hover { text-decoration: none; opacity: 0.9; }

/* Nav links */
.bc-nav-links { display: flex; align-items: center; gap: 0; flex: 1; flex-wrap: nowrap; }
.bc-nav-link {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  padding: 0.18rem 0.4rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}
.bc-nav-link:hover, .bc-nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

/* Right side */
.bc-nav-right { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex-wrap: nowrap; }

/* Legacy nav support */
.bc-navbar-brand { font-size: 1.25rem; letter-spacing: -0.5px; color: #fff !important; text-decoration: none; }
.bc-navbar-nav { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.bc-navbar-nav a { color: rgba(255,255,255,0.8); font-size: 0.75rem; padding: 0.18rem 0.4rem; border-radius: 5px; transition: all 0.15s; }
.bc-navbar-nav a:hover, .bc-navbar-nav a.active { color: #fff; background: rgba(255,255,255,0.12); text-decoration: none; }
.bc-navbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.2); margin: 0 0.25rem; }

/* ── Nav buttons (exactly mirror AuditCore .btn-nav pattern) ── */
.bc-btn-nav {
  padding: 0.18rem 0.65rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.bc-btn-nav-buy  { background: var(--bc-green); color: #fff; }
.bc-btn-nav-buy:hover { background: var(--bc-green-dark); color: #fff; text-decoration: none; }
.bc-btn-nav-out  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.18); }
.bc-btn-nav-out:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

/* Legacy aliases kept for backwards compat */
.bc-btn-nav-buy-legacy { background: var(--bc-green); color: #fff; padding: 0.18rem 0.65rem; border-radius: 5px; font-size: 0.75rem; font-weight: 600; text-decoration: none; border: none; }

/* ── Credits pill ──────────────────────────────────────────── */
.bc-credits-pill {
  background: rgba(5,150,105,.18);
  color: #6ee7b7;
  border: 1px solid rgba(5,150,105,.3);
  border-radius: 15px;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}
.bc-credits-pill.low {
  background: rgba(220,38,38,.18);
  color: #fca5a5;
  border-color: rgba(220,38,38,.3);
}

/* ── Layout ────────────────────────────────────────────────── */
.bc-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.bc-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ── Page header ───────────────────────────────────────────── */
.bc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bc-page-header h1,
.bc-page-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bc-navy);
}

/* ── Cards ─────────────────────────────────────────────────── */
.bc-card {
  background: var(--bc-card);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 1.25rem;
  box-shadow: var(--bc-shadow);
}

.bc-card-header {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bc-navy);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bc-border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.bc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.bc-btn:hover { text-decoration: none; filter: brightness(0.92); }
.bc-btn:active { transform: translateY(1px); }

.bc-btn-primary {
  background: var(--bc-navy);
  color: #fff;
}

.bc-btn-green {
  background: var(--bc-green);
  color: #fff;
}

.bc-btn-outline {
  background: transparent;
  color: var(--bc-navy);
  border: 1.5px solid var(--bc-navy);
}

.bc-btn-outline:hover { background: var(--bc-navy); color: #fff; }

.bc-btn-danger {
  background: var(--bc-red);
  color: #fff;
}

.bc-btn-ghost {
  background: transparent;
  color: var(--bc-muted);
  border: 1px solid var(--bc-border);
}

.bc-btn-ghost:hover { background: var(--bc-bg); color: var(--bc-text); }

.bc-btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.bc-btn-lg {
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
}

/* ── Severity badges ───────────────────────────────────────── */
.bc-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bc-badge-critical { background: #fef2f2; color: var(--bc-red);    border: 1px solid #fecaca; }
.bc-badge-high     { background: #fffbeb; color: var(--bc-orange);  border: 1px solid #fde68a; }
.bc-badge-medium   { background: #fffbeb; color: var(--bc-amber);   border: 1px solid #fde68a; }
.bc-badge-low      { background: #eff6ff; color: var(--bc-blue);    border: 1px solid #bfdbfe; }
.bc-badge-pass     { background: var(--bc-green-light); color: var(--bc-green-dark); border: 1px solid #6ee7b7; }
.bc-badge-info     { background: #f3f4f6; color: var(--bc-muted);   border: 1px solid var(--bc-border); }
.bc-badge-warning  { background: #fffbeb; color: var(--bc-amber);   border: 1px solid #fde68a; }

/* ── Status badges ─────────────────────────────────────────── */
.bc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.bc-status-running  { background: #eff6ff; color: var(--bc-blue); }
.bc-status-complete { background: var(--bc-green-light); color: var(--bc-green-dark); }
.bc-status-error    { background: #fef2f2; color: var(--bc-red); }
.bc-status-pending  { background: #f3f4f6; color: var(--bc-muted); }

.bc-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.bc-status-running .bc-status-dot {
  animation: bc-pulse 1.2s ease-in-out infinite;
}

@keyframes bc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Risk score circle ─────────────────────────────────────── */
.risk-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}

.risk-circle .risk-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.risk-critical { background: var(--bc-red); }
.risk-high      { background: var(--bc-orange); }
.risk-medium    { background: var(--bc-amber); }
.risk-low       { background: var(--bc-green); }
.risk-none      { background: var(--bc-muted); }

/* ── Platform badges ───────────────────────────────────────── */
.bc-plat-badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.plat-t24        { background: #e8f0fb; color: #0070f2; }
.plat-flexcube   { background: #fdecea; color: #c74634; }
.plat-finacle    { background: #e8f8ef; color: #0a8a4a; }
.plat-finastra   { background: #fdf5e8; color: #d97706; }
.plat-fis        { background: #f0f4ff; color: #4f46e5; }
.plat-fiserv     { background: #fdf0ee; color: #e84b37; }
.plat-cs         { background: #f0fdf4; color: #059669; }

/* ── Forms ─────────────────────────────────────────────────── */
.bc-form-group {
  margin-bottom: 1rem;
}

.bc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bc-navy);
  margin-bottom: 0.35rem;
}

.bc-form-group .bc-help {
  font-size: 0.78rem;
  color: var(--bc-muted);
  margin-top: 0.25rem;
}

.bc-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid var(--bc-border);
  border-radius: 7px;
  font-size: 0.9rem;
  color: var(--bc-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.bc-input:focus {
  border-color: var(--bc-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.bc-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* ── Alerts (floating top-right, matches AuditCore va-alerts) ── */
.bc-alerts {
  position: fixed;
  top: 68px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.bc-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  animation: bc-slideIn 0.2s ease;
  margin-bottom: 0;
}

@keyframes bc-slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.bc-alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1.1rem;
  color: inherit;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.bc-alert-close:hover { opacity: 1; }

.bc-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.bc-alert-danger  { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.bc-alert-warning { background: #fef9c3; color: #713f12; border: 1px solid #fde68a; }
.bc-alert-info    { background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd; }

/* ── Empty state ───────────────────────────────────────────── */
.bc-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--bc-muted);
}

.bc-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: var(--bc-border);
}

.bc-empty h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bc-navy);
  margin-bottom: 0.35rem;
}

.bc-empty p {
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto 1.25rem;
}

/* ── Tables ────────────────────────────────────────────────── */
.bc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bc-table th {
  background: var(--bc-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.bc-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--bc-border);
  vertical-align: middle;
}

.bc-table tr:last-child td { border-bottom: none; }
.bc-table tr:hover td      { background: var(--bc-bg); }

/* ── Domain stat cards ─────────────────────────────────────── */
.bc-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.bc-domain-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.bc-domain-card:hover {
  box-shadow: var(--bc-shadow-md);
  border-color: var(--bc-green);
}

.bc-domain-card.active {
  border-color: var(--bc-green);
  box-shadow: 0 0 0 2px var(--bc-green-light);
}

.bc-domain-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bc-navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.bc-domain-count {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bc-red);
  line-height: 1;
}

.bc-domain-count.zero { color: var(--bc-green); font-size: 1.2rem; }

/* ── Finding card ──────────────────────────────────────────── */
.bc-finding-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-left: 4px solid var(--bc-border);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  transition: box-shadow 0.15s;
}

.bc-finding-card:hover { box-shadow: var(--bc-shadow-md); }

.bc-finding-card.sev-critical { border-left-color: var(--bc-red);    }
.bc-finding-card.sev-high     { border-left-color: var(--bc-orange); }
.bc-finding-card.sev-medium   { border-left-color: var(--bc-amber);  }
.bc-finding-card.sev-low      { border-left-color: var(--bc-blue);   }
.bc-finding-card.sev-info     { border-left-color: var(--bc-muted);  }

.bc-finding-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.bc-finding-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bc-text);
  margin-bottom: 0.3rem;
}

.bc-finding-rec {
  font-size: 0.83rem;
  color: #065f46;
  background: #f0fdf4;
  border-left: 3px solid var(--bc-green);
  padding: 0.5rem 0.75rem;
  border-radius: 0 5px 5px 0;
  margin-top: 0.5rem;
}

.bc-finding-tech {
  font-size: 0.78rem;
  color: var(--bc-muted);
  margin-top: 0.35rem;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
}

.bc-reg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.bc-reg-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Risk statement callout ────────────────────────────────── */
.bc-finding-risk {
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  border-radius: 0 6px 6px 0;
  padding: 0.6rem 0.85rem;
  margin: 0.5rem 0 0.4rem;
}
.bc-finding-risk-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #b45309;
  margin-bottom: 0.25rem;
}
.bc-finding-risk-body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #451a03;
}

/* ── Framework control reference table ─────────────────────── */
.bc-framework-refs {
  margin-top: 0.65rem;
  border: 1px solid var(--bc-border);
  border-radius: 6px;
  overflow: hidden;
}
.bc-framework-refs-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bc-navy);
  background: var(--bc-bg);
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid var(--bc-border);
}
.bc-framework-refs-grid {
  display: flex;
  flex-direction: column;
}
.bc-fw-ref-row {
  display: grid;
  grid-template-columns: 7rem 14rem 1fr;
  border-bottom: 1px solid var(--bc-border);
  font-size: 0.77rem;
  line-height: 1.4;
}
.bc-fw-ref-row:last-child { border-bottom: none; }
.bc-fw-code {
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  padding: 0.4rem 0.6rem;
  background: #f0f9ff;
  border-right: 1px solid var(--bc-border);
}
.bc-fw-name {
  font-size: 0.74rem;
  color: var(--bc-muted);
  padding: 0.4rem 0.6rem;
  border-right: 1px solid var(--bc-border);
}
.bc-fw-ctrl {
  font-size: 0.74rem;
  color: var(--bc-text);
  padding: 0.4rem 0.6rem;
}
@media (max-width: 680px) {
  .bc-fw-ref-row { grid-template-columns: 1fr; }
  .bc-fw-code, .bc-fw-name { border-right: none; border-bottom: 1px solid var(--bc-border); }
}

/* ── Summary bar ───────────────────────────────────────────── */
.bc-summary-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bc-navy);
  border-radius: var(--bc-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  color: #fff;
}

.bc-summary-stat {
  text-align: center;
}

.bc-summary-stat .value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.bc-summary-stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}

.bc-summary-stat.critical .value { color: #fca5a5; }
.bc-summary-stat.high     .value { color: #fcd34d; }
.bc-summary-stat.medium   .value { color: #fde68a; }
.bc-summary-stat.low      .value { color: #bfdbfe; }

/* ── Auth pages ────────────────────────────────────────────── */
.bc-auth-wrap {
  min-height: 100vh;
  background: var(--bc-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bc-auth-card {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.bc-auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.bc-auth-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.bc-auth-logo .tagline {
  font-size: 0.78rem;
  color: var(--bc-muted);
  margin-top: 0.15rem;
}

/* ── Landing hero ──────────────────────────────────────────── */
.bc-hero {
  background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-light) 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.bc-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.bc-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.bc-hero-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features section ──────────────────────────────────────── */
.bc-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bc-feature-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.bc-feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--bc-green);
}

.bc-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bc-navy);
  margin-bottom: 0.5rem;
}

.bc-feature-card p {
  font-size: 0.875rem;
  color: var(--bc-muted);
}

/* ── Wizard ────────────────────────────────────────────────── */
.bc-wizard-slot {
  background: #fff;
  border: 2px dashed var(--bc-border);
  border-radius: 9px;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  text-align: center;
}

.bc-wizard-slot:hover,
.bc-wizard-slot.dragover {
  border-color: var(--bc-green);
  background: var(--bc-green-light);
}

.bc-wizard-slot.has-file {
  border-style: solid;
  border-color: var(--bc-green);
  background: #f0fdf4;
}

.bc-wizard-slot-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bc-navy);
  margin-bottom: 0.2rem;
}

.bc-wizard-slot-desc {
  font-size: 0.75rem;
  color: var(--bc-muted);
}

.bc-wizard-slot input[type="file"] {
  display: none;
}

/* ── Modal ─────────────────────────────────────────────────── */
.bc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bc-modal-overlay.hidden { display: none; }

.bc-modal {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.bc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.bc-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bc-navy);
}

.bc-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--bc-muted);
  padding: 0.2rem;
  border-radius: 4px;
  transition: background 0.1s;
}

.bc-modal-close:hover { background: var(--bc-bg); }

/* ── Section divider ───────────────────────────────────────── */
.bc-divider {
  border: none;
  border-top: 1px solid var(--bc-border);
  margin: 1.25rem 0;
}

/* ── Progress bar ──────────────────────────────────────────── */
.bc-progress {
  height: 6px;
  background: var(--bc-border);
  border-radius: 999px;
  overflow: hidden;
}

.bc-progress-bar {
  height: 100%;
  background: var(--bc-green);
  border-radius: 999px;
  transition: width 0.3s;
}

/* ── Tabs ──────────────────────────────────────────────────── */
.bc-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--bc-border);
  margin-bottom: 1.25rem;
}

.bc-tab {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bc-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  text-decoration: none;
}

.bc-tab:hover { color: var(--bc-navy); text-decoration: none; }

.bc-tab.active {
  color: var(--bc-green);
  border-bottom-color: var(--bc-green);
}

/* ── Anomaly alert ─────────────────────────────────────────── */
.bc-anomaly-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--bc-orange);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.bc-anomaly-score {
  display: inline-block;
  background: var(--bc-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15em 0.5em;
  border-radius: 4px;
}

/* ── Guide ─────────────────────────────────────────────────── */
.bc-guide-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bc-guide-step-num {
  width: 32px;
  height: 32px;
  background: var(--bc-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bc-guide-step-content h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bc-navy);
}

.bc-guide-step-content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bc-text);
}

.bc-code-block {
  background: var(--bc-navy);
  color: #e2e8f0;
  font-family: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  margin: 0.5rem 0;
  line-height: 1.7;
}

.bc-code-comment { color: #6ee7b7; }
.bc-code-keyword { color: #93c5fd; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-muted   { color: var(--bc-muted); }
.text-navy    { color: var(--bc-navy); }
.text-green   { color: var(--bc-green); }
.text-red     { color: var(--bc-red); }
.text-orange  { color: var(--bc-orange); }
.fw-bold      { font-weight: 700; }
.fw-800       { font-weight: 800; }
.fs-sm        { font-size: 0.8rem; }
.fs-xs        { font-size: 0.72rem; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-1        { gap: 0.5rem; }
.gap-2        { gap: 1rem; }
.flex-wrap    { flex-wrap: wrap; }
.mb-0         { margin-bottom: 0; }
.mb-1         { margin-bottom: 0.5rem; }
.mb-2         { margin-bottom: 1rem; }
.mb-3         { margin-bottom: 1.5rem; }
.mt-1         { margin-top: 0.5rem; }
.mt-2         { margin-top: 1rem; }
.mt-3         { margin-top: 1.5rem; }
.w-100        { width: 100%; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bc-hero h1   { font-size: 1.75rem; }
  .bc-navbar    { padding: 0 1rem; }
  .bc-main      { padding: 1rem 0.75rem; }
  .bc-summary-bar { gap: 1rem; }
  .bc-domain-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .bc-card-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .bc-auth-card { padding: 1.5rem; }
  .bc-hero      { padding: 3rem 1rem; }
}
