/* Ported VERBATIM from BrooksCorp-Design-Framework/src/wwwroot/css/brookscorp.components.css (BCDF v1.0).
   Do not edit. Province colours are mapped onto these tokens in ../sa/sa.brand.css;
   anything SmartAdmit needs beyond BCDF lives in ../sa/. */
/* ==========================================================================
   BrooksCorp Design Framework — 3. COMPONENTS
   Covers the full component contract (see docs/BrooksCorp-Design-Standard.md §6)
   ========================================================================== */

/* --------------------------------------------------------------------------
   3.1  BUTTONS
   -------------------------------------------------------------------------- */
.bc-btn {
  --_bg: transparent; --_fg: var(--bc-text-strong); --_bd: transparent; --_sh: none;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bc-s-2);
  font-family: var(--bc-font-body);
  font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi);
  line-height: 1; letter-spacing: -.005em;
  padding: 0 var(--bc-s-5); height: 44px;
  border: 1px solid var(--_bd); border-radius: var(--bc-r-btn);
  background: var(--_bg); color: var(--_fg); box-shadow: var(--_sh);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--bc-transition), border-color var(--bc-transition),
              color var(--bc-transition), box-shadow var(--bc-transition), transform var(--bc-transition);
}
.bc-btn:hover  { transform: translateY(-1px); }
.bc-btn:active { transform: translateY(0); }
.bc-btn:focus-visible { box-shadow: var(--bc-focus-ring); }
.bc-btn[disabled], .bc-btn.is-disabled { opacity: .45; pointer-events: none; transform: none; }
.bc-btn svg { width: 18px; height: 18px; flex: none; }

.bc-btn--primary   { --_bg: var(--bc-accent-500); --_fg: #fff; --_sh: 0 2px 8px rgba(15,163,154,.28); }
.bc-btn--primary:hover  { --_bg: var(--bc-accent-600); --_sh: 0 6px 16px rgba(15,163,154,.34); }

.bc-btn--navy      { --_bg: var(--bc-brand-600); --_fg: #fff; --_sh: 0 2px 8px rgba(11,29,58,.22); }
.bc-btn--navy:hover     { --_bg: var(--bc-brand-500); --_sh: 0 6px 16px rgba(11,29,58,.28); }

.bc-btn--secondary { --_bg: var(--bc-bg-surface); --_fg: var(--bc-text-strong); --_bd: var(--bc-border-strong); }
.bc-btn--secondary:hover{ --_bd: var(--bc-accent-400); --_fg: var(--bc-accent-700); }

.bc-btn--ghost     { --_fg: var(--bc-text-body); }
.bc-btn--ghost:hover    { --_bg: var(--bc-grey-100); --_fg: var(--bc-text-strong); }

.bc-btn--success   { --_bg: var(--bc-success); --_fg: #fff; --_sh: 0 2px 8px rgba(39,174,96,.26); }
.bc-btn--success:hover  { --_bg: #219653; }

.bc-btn--danger    { --_bg: var(--bc-danger); --_fg: #fff; }
.bc-btn--danger:hover   { --_bg: #cf3f30; }
.bc-btn--danger-soft { --_bg: var(--bc-danger-bg); --_fg: var(--bc-danger-fg); --_bd: rgba(231,76,60,.22); }

.bc-btn--link      { --_fg: var(--bc-accent-600); height: auto; padding: 0; }
.bc-btn--link:hover     { text-decoration: underline; transform: none; }

.bc-btn--lg   { height: 52px; font-size: var(--bc-fs-lg); padding-inline: var(--bc-s-7); border-radius: 12px; }
.bc-btn--sm   { height: 36px; font-size: var(--bc-fs-sm); padding-inline: var(--bc-s-4); border-radius: var(--bc-r-sm); }
.bc-btn--xs   { height: 30px; font-size: var(--bc-fs-xs); padding-inline: var(--bc-s-3); border-radius: var(--bc-r-xs); gap: 6px; }
.bc-btn--xs svg { width: 14px; height: 14px; }
.bc-btn--block{ width: 100%; }
.bc-btn--icon { width: 40px; padding: 0; }
.bc-btn--icon.bc-btn--sm { width: 36px; }

.bc-btn-group { display: inline-flex; gap: var(--bc-s-2); }

/* --------------------------------------------------------------------------
   3.2  CARDS
   -------------------------------------------------------------------------- */
.bc-card {
  background: var(--bc-bg-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-r-card);
  box-shadow: var(--bc-sh-sm);
}
.bc-card--flat    { box-shadow: none; }
.bc-card--raised  { box-shadow: var(--bc-sh-md); }
.bc-card--float   { box-shadow: var(--bc-sh-xl); border-color: transparent; }
.bc-card--feature { border-radius: var(--bc-r-lg); }
.bc-card--warm    { background: var(--bc-bg-warm); border-color: var(--bc-warm-200); box-shadow: none; }
.bc-card--navy    { background: var(--bc-brand-600); border-color: transparent; color: rgba(255,255,255,.82); }
.bc-card--navy h1,.bc-card--navy h2,.bc-card--navy h3,.bc-card--navy h4 { color: #fff; }
.bc-card--accent  { background: var(--bc-accent-500); border-color: transparent; color: rgba(255,255,255,.88); }
.bc-card--accent h1,.bc-card--accent h2,.bc-card--accent h3,.bc-card--accent h4 { color: #fff; }
.bc-card--interactive { cursor: pointer; transition: box-shadow var(--bc-transition), border-color var(--bc-transition), transform var(--bc-transition); }
.bc-card--interactive:hover { box-shadow: var(--bc-sh-lg); border-color: var(--bc-accent-200); transform: translateY(-2px); }

.bc-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-4);
                 padding: var(--bc-s-5) var(--bc-s-6); border-bottom: 1px solid var(--bc-border-subtle); }
.bc-card__title{ font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
                 color: var(--bc-text-strong); letter-spacing: -.01em; margin: 0; }
.bc-card__body { padding: var(--bc-s-6); }
.bc-card__body--tight { padding: var(--bc-s-4) var(--bc-s-5); }
.bc-card__foot { padding: var(--bc-s-4) var(--bc-s-6); border-top: 1px solid var(--bc-border-subtle); background: var(--bc-grey-25); border-radius: 0 0 var(--bc-r-card) var(--bc-r-card); }

/* --------------------------------------------------------------------------
   3.3  FORM CONTROLS
   -------------------------------------------------------------------------- */
.bc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--bc-s-5); }
.bc-label { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body); }
.bc-label .bc-req { color: var(--bc-danger); margin-left: 2px; }
.bc-help  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); line-height: 1.5; }
.bc-error { font-size: var(--bc-fs-xs); color: var(--bc-danger-fg); display: flex; align-items: center; gap: 5px; }

.bc-input, .bc-select, .bc-textarea {
  width: 100%; font-family: var(--bc-font-body); font-size: var(--bc-fs-base);
  color: var(--bc-text-strong); background: var(--bc-bg-surface);
  border: 1px solid var(--bc-border-strong); border-radius: var(--bc-r-ctrl);
  padding: 0 var(--bc-s-4); height: 46px;
  transition: border-color var(--bc-transition), box-shadow var(--bc-transition), background var(--bc-transition);
}
.bc-textarea { height: auto; min-height: 110px; padding: var(--bc-s-3) var(--bc-s-4); line-height: 1.55; resize: vertical; }
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--bc-text-subtle); }
.bc-input:hover, .bc-select:hover, .bc-textarea:hover { border-color: var(--bc-grey-400); }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus {
  outline: none; border-color: var(--bc-accent-500); box-shadow: var(--bc-focus-ring);
}
.bc-input[readonly], .bc-input[disabled] { background: var(--bc-grey-50); color: var(--bc-text-muted); }
.bc-input.is-invalid, .bc-select.is-invalid { border-color: var(--bc-danger); box-shadow: 0 0 0 3px rgba(231,76,60,.16); }
.bc-input.is-valid { border-color: var(--bc-success); }

.bc-select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237D8794' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* Input with leading affix (R, +27, search icon) */
.bc-input-group { display: flex; align-items: stretch; position: relative; }
.bc-input-group .bc-input { border-radius: var(--bc-r-ctrl); }
.bc-input-group__affix {
  display: flex; align-items: center; padding: 0 var(--bc-s-3);
  background: var(--bc-grey-50); border: 1px solid var(--bc-border-strong); border-right: 0;
  border-radius: var(--bc-r-ctrl) 0 0 var(--bc-r-ctrl);
  font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi); color: var(--bc-text-muted);
}
.bc-input-group__affix + .bc-input { border-radius: 0 var(--bc-r-ctrl) var(--bc-r-ctrl) 0; }
.bc-input--currency { font-family: var(--bc-font-display); font-variant-numeric: tabular-nums; font-weight: var(--bc-fw-semi); letter-spacing: -.01em; }

.bc-input-icon { position: relative; }
.bc-input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--bc-text-subtle); pointer-events: none; }
.bc-input-icon .bc-input { padding-left: 40px; }
.bc-input-icon--trail svg { left: auto; right: 14px; }
.bc-input-icon--trail .bc-input { padding-left: var(--bc-s-4); padding-right: 40px; }

/* Checkbox / radio */
.bc-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--bc-fs-base); color: var(--bc-text-body); }
.bc-check input { appearance: none; margin: 0; flex: none; width: 19px; height: 19px; margin-top: 1px;
  border: 1.5px solid var(--bc-border-strong); border-radius: 5px; background: var(--bc-bg-surface);
  cursor: pointer; transition: all var(--bc-transition); position: relative; }
.bc-check input[type="radio"] { border-radius: 50%; }
.bc-check input:checked { background: var(--bc-accent-500); border-color: var(--bc-accent-500); }
.bc-check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bc-check input[type="radio"]:checked::after { content:""; position:absolute; inset:4px; border-radius:50%; background:#fff; }
.bc-check input:focus-visible { box-shadow: var(--bc-focus-ring); }

/* Toggle */
.bc-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.bc-toggle input { appearance: none; margin: 0; width: 42px; height: 24px; border-radius: 999px;
  background: var(--bc-grey-300); cursor: pointer; position: relative; transition: background var(--bc-transition); }
.bc-toggle input::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%;
  background:#fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform var(--bc-transition); }
.bc-toggle input:checked { background: var(--bc-accent-500); }
.bc-toggle input:checked::after { transform: translateX(18px); }

/* Segmented / term selector pills */
.bc-pills { display: flex; gap: var(--bc-s-2); flex-wrap: wrap; }
.bc-pill {
  flex: 1 1 0; min-width: 74px;
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 var(--bc-s-3);
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body);
  background: var(--bc-bg-surface); border: 1px solid var(--bc-border-strong); border-radius: var(--bc-r-sm);
  cursor: pointer; white-space: nowrap; transition: all var(--bc-transition);
}
.bc-pill:hover { border-color: var(--bc-accent-300); color: var(--bc-accent-700); }
.bc-pill.is-active { background: var(--bc-accent-500); border-color: var(--bc-accent-500); color: #fff; font-weight: var(--bc-fw-semi); box-shadow: 0 2px 8px rgba(15,163,154,.26); }

/* Slider */
.bc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: var(--bc-grey-200); outline: none; cursor: pointer; margin: var(--bc-s-3) 0; }
.bc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bc-accent-500); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,29,58,.28); cursor: grab; }
.bc-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--bc-accent-500);
  border: 4px solid #fff; box-shadow: 0 2px 8px rgba(11,29,58,.28); cursor: grab; }
.bc-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.bc-slider__scale { display: flex; justify-content: space-between; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); font-variant-numeric: tabular-nums; }

/* OTP */
.bc-otp { display: flex; gap: var(--bc-s-2); justify-content: center; }
.bc-otp input { width: 52px; height: 60px; text-align: center; font-family: var(--bc-font-display);
  font-size: 1.5rem; font-weight: var(--bc-fw-semi); color: var(--bc-text-strong);
  border: 1.5px solid var(--bc-border-strong); border-radius: var(--bc-r-ctrl); background: var(--bc-bg-surface); }
.bc-otp input:focus { outline: none; border-color: var(--bc-accent-500); box-shadow: var(--bc-focus-ring); }
.bc-otp input.is-filled { border-color: var(--bc-accent-500); background: var(--bc-accent-50); }

/* --------------------------------------------------------------------------
   3.4  BADGES / STATUS SYSTEM
   One badge component, one status vocabulary, across MIS + portal.
   -------------------------------------------------------------------------- */
.bc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--bc-r-pill);
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); line-height: 1.5;
  letter-spacing: -.005em; white-space: nowrap;
  background: var(--bc-neutral-bg); color: var(--bc-neutral-fg);
}
.bc-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.bc-badge--sq { border-radius: var(--bc-r-xs); }

.bc-badge--new        { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--info-req   { background: var(--bc-info-bg);    color: var(--bc-info-fg); }
.bc-badge--verify     { background: #E4F1FD;              color: #1B5E9E; }
.bc-badge--afford     { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--credit     { background: var(--bc-purple-bg);  color: var(--bc-purple-fg); }
.bc-badge--approved   { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--offer      { background: var(--bc-accent-50);  color: var(--bc-accent-700); }
.bc-badge--accepted   { background: var(--bc-accent-50);  color: var(--bc-accent-700); }
.bc-badge--declined   { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }
.bc-badge--disbursed  { background: #E7F0FF;              color: #24478F; }
.bc-badge--active     { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--arrears    { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }
.bc-badge--closed     { background: var(--bc-neutral-bg); color: var(--bc-neutral-fg); }
.bc-badge--pending    { background: var(--bc-neutral-bg); color: var(--bc-neutral-fg); }

.bc-badge--risk-low   { background: var(--bc-success-bg); color: var(--bc-success-fg); }
.bc-badge--risk-med   { background: var(--bc-warning-bg); color: var(--bc-warning-fg); }
.bc-badge--risk-high  { background: var(--bc-danger-bg);  color: var(--bc-danger-fg); }

.bc-badge--count { background: var(--bc-danger); color: #fff; min-width: 18px; height: 18px; padding: 0 5px;
  justify-content: center; font-size: var(--bc-fs-2xs); }

/* --------------------------------------------------------------------------
   3.5  KPI / STAT CARD
   -------------------------------------------------------------------------- */
.bc-kpi { background: var(--bc-bg-surface); border: 1px solid var(--bc-border); border-radius: var(--bc-r-card);
  padding: var(--bc-s-5); box-shadow: var(--bc-sh-xs); position: relative; overflow: hidden; }
.bc-kpi__label { font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted);
  text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.bc-kpi__value { font-family: var(--bc-font-display); font-size: 1.75rem; font-weight: var(--bc-fw-bold);
  color: var(--bc-text-strong); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bc-kpi__delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); }
.bc-kpi__delta--up   { color: var(--bc-success-fg); }
.bc-kpi__delta--down { color: var(--bc-danger-fg); }
.bc-kpi__delta--flat { color: var(--bc-text-muted); }
.bc-kpi--accent::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--bc-accent-500); }
.bc-kpi--danger::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--bc-danger); }
.bc-kpi__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bc-accent-50); color: var(--bc-accent-600); flex: none; }
.bc-kpi__icon svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   3.6  DATA TABLE
   -------------------------------------------------------------------------- */
.bc-table-wrap { width: 100%; overflow-x: auto; border-radius: var(--bc-r-card); }
.bc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--bc-fs-sm); }
.bc-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bc-grey-25);
  padding: 11px var(--bc-s-4);
  text-align: left; white-space: nowrap;
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semi); color: var(--bc-text-muted);
  letter-spacing: .02em;
  border-bottom: 1px solid var(--bc-border);
}
.bc-table tbody td {
  padding: 13px var(--bc-s-4);
  border-bottom: 1px solid var(--bc-border-subtle);
  color: var(--bc-text-body); vertical-align: middle;
}
.bc-table tbody tr:last-child td { border-bottom: 0; }
.bc-table tbody tr { transition: background var(--bc-transition); }
.bc-table tbody tr:hover { background: var(--bc-grey-25); }
.bc-table tbody tr.is-selected { background: var(--bc-accent-50); }
.bc-table__id  { font-family: var(--bc-font-mono); font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.bc-table__key { font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-table__num { text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--bc-fw-medium); color: var(--bc-text-strong); }
.bc-table--compact tbody td { padding: 9px var(--bc-s-3); }
.bc-table--compact thead th { padding: 8px var(--bc-s-3); }

/* Filter bar */
.bc-filterbar { display: flex; align-items: center; gap: var(--bc-s-3); flex-wrap: wrap;
  padding: var(--bc-s-4) var(--bc-s-5); border-bottom: 1px solid var(--bc-border-subtle); }
/* Controls inside a filter bar sit side by side, so they must size to content
   rather than inherit the full-width default used in stacked forms. */
.bc-filterbar .bc-select, .bc-filterbar .bc-input { height: 38px; font-size: var(--bc-fs-sm); width: auto; }
.bc-filterbar .bc-select { min-width: 132px; }
.bc-filterbar .bc-input-icon { display: flex; }
.bc-filterbar .bc-input-icon .bc-input { width: 100%; }
.bc-filterbar__search { flex: 1 1 220px; min-width: 180px; max-width: 340px; }

/* Pagination */
.bc-pagination { display: flex; align-items: center; gap: 4px; }
.bc-pagination button, .bc-pagination a {
  min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--bc-r-xs); background: transparent;
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-body); cursor: pointer;
  transition: all var(--bc-transition);
}
.bc-pagination button:hover { background: var(--bc-grey-100); color: var(--bc-text-strong); }
.bc-pagination .is-active { background: var(--bc-accent-500); border-color: var(--bc-accent-500); color: #fff; }

/* --------------------------------------------------------------------------
   3.7  TABS
   -------------------------------------------------------------------------- */
.bc-tabs { display: flex; gap: var(--bc-s-6); border-bottom: 1px solid var(--bc-border); overflow-x: auto; scrollbar-width: none; }
.bc-tabs::-webkit-scrollbar { display: none; }
.bc-tab {
  position: relative; padding: 12px 0 13px; background: none; border: 0; cursor: pointer;
  font-family: var(--bc-font-body); font-size: var(--bc-fs-base); font-weight: var(--bc-fw-medium);
  color: var(--bc-text-muted); white-space: nowrap; transition: color var(--bc-transition);
}
.bc-tab:hover { color: var(--bc-text-strong); }
.bc-tab.is-active { color: var(--bc-accent-600); font-weight: var(--bc-fw-semi); }
.bc-tab.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
  background: var(--bc-accent-500); border-radius: 2px 2px 0 0; }
.bc-tab__count { margin-left: 5px; font-size: var(--bc-fs-xs); color: var(--bc-text-subtle); font-weight: var(--bc-fw-regular); }
.bc-tabs--pill { border-bottom: 0; gap: 4px; background: var(--bc-grey-50); padding: 4px; border-radius: var(--bc-r-ctrl); display: inline-flex; }
.bc-tabs--pill .bc-tab { padding: 7px 14px; border-radius: var(--bc-r-sm); font-size: var(--bc-fs-sm); }
.bc-tabs--pill .bc-tab.is-active { background: var(--bc-bg-surface); color: var(--bc-text-strong); box-shadow: var(--bc-sh-xs); }
.bc-tabs--pill .bc-tab.is-active::after { display: none; }

/* --------------------------------------------------------------------------
   3.8  STEPPER (application wizard)
   -------------------------------------------------------------------------- */
.bc-stepper { display: flex; align-items: center; gap: 0; }
.bc-step { display: flex; align-items: center; gap: 9px; flex: none; }
.bc-step__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi);
  background: var(--bc-grey-100); color: var(--bc-text-muted);
  border: 1.5px solid transparent; transition: all var(--bc-transition);
}
.bc-step__label { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); white-space: nowrap; }
.bc-step.is-active .bc-step__dot   { background: var(--bc-accent-500); color: #fff; box-shadow: 0 0 0 4px var(--bc-accent-50); }
.bc-step.is-active .bc-step__label { color: var(--bc-text-strong); font-weight: var(--bc-fw-semi); }
.bc-step.is-done .bc-step__dot { background: var(--bc-accent-50); color: var(--bc-accent-600); border-color: var(--bc-accent-200); }
.bc-step.is-done .bc-step__label { color: var(--bc-text-body); }
.bc-stepper__line { flex: 1 1 auto; height: 1.5px; background: var(--bc-grey-200); margin: 0 var(--bc-s-3); min-width: 18px; }
.bc-stepper__line.is-done { background: var(--bc-accent-200); }

.bc-progress-steps { display: flex; align-items: center; justify-content: space-between; gap: var(--bc-s-3); }

/* --------------------------------------------------------------------------
   3.9  PROGRESS
   -------------------------------------------------------------------------- */
.bc-progress { height: 8px; border-radius: 999px; background: var(--bc-grey-100); overflow: hidden; }
.bc-progress__bar { height: 100%; border-radius: 999px; background: var(--bc-support-300); transition: width 400ms ease; }
.bc-progress__bar--accent { background: var(--bc-accent-500); }
.bc-progress__bar--warn   { background: var(--bc-warning); }
.bc-progress__bar--danger { background: var(--bc-danger); }
.bc-progress--sm { height: 5px; }
.bc-progress--lg { height: 12px; }

.bc-ring { --_p: 0; --_size: 92px; --_track: var(--bc-grey-100); --_fill: var(--bc-accent-500);
  width: var(--_size); height: var(--_size); border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--_fill) calc(var(--_p) * 1%), var(--_track) 0); flex: none; }
.bc-ring::before { content:""; position:absolute; inset: 11px; border-radius: 50%; background: var(--bc-bg-surface); }
.bc-ring__val { position: relative; font-family: var(--bc-font-display); font-weight: var(--bc-fw-bold);
  font-size: var(--bc-fs-lg); color: var(--bc-text-strong); line-height: 1.1; text-align: center; }
.bc-ring__val small { display:block; font-size: var(--bc-fs-2xs); font-weight: var(--bc-fw-medium); color: var(--bc-text-muted); }
.bc-ring--lg { --_size: 120px; }
.bc-ring--sm { --_size: 64px; }
.bc-ring--sm::before { inset: 8px; }

/* --------------------------------------------------------------------------
   3.10  ALERTS / INFO PANELS
   -------------------------------------------------------------------------- */
.bc-alert { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-4); border-radius: var(--bc-r-ctrl);
  font-size: var(--bc-fs-sm); line-height: 1.55; border: 1px solid transparent; }
.bc-alert__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.bc-alert__title { font-weight: var(--bc-fw-semi); display: block; margin-bottom: 2px; }
.bc-alert--info    { background: var(--bc-info-bg);    color: var(--bc-info-fg);    border-color: rgba(94,123,214,.18); }
.bc-alert--success { background: var(--bc-success-bg); color: var(--bc-success-fg); border-color: rgba(39,174,96,.18); }
.bc-alert--warning { background: var(--bc-warning-bg); color: var(--bc-warning-fg); border-color: rgba(245,158,11,.20); }
.bc-alert--danger  { background: var(--bc-danger-bg);  color: var(--bc-danger-fg);  border-color: rgba(231,76,60,.18); }

/* "Why do we need this?" explainer — consumer-facing plain-English panel */
.bc-explainer { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-4); border-radius: var(--bc-r-ctrl);
  background: var(--bc-warm-100); border: 1px solid var(--bc-warm-200); }
.bc-explainer__icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bc-brand-600); color: var(--bc-accent-300); }
.bc-explainer__icon svg { width: 16px; height: 16px; }
.bc-explainer__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); margin-bottom: 2px; }
.bc-explainer__body  { font-size: var(--bc-fs-sm); color: var(--bc-grey-600); line-height: 1.55; }

/* --------------------------------------------------------------------------
   3.11  TIMELINE
   -------------------------------------------------------------------------- */
.bc-timeline { position: relative; padding-left: 26px; }
.bc-timeline::before { content:""; position:absolute; left: 9px; top: 6px; bottom: 6px; width: 1.5px; background: var(--bc-border); }
.bc-timeline__item { position: relative; padding-bottom: var(--bc-s-5); }
.bc-timeline__item:last-child { padding-bottom: 0; }
.bc-timeline__item::before { content:""; position:absolute; left: -22px; top: 4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bc-bg-surface); border: 2px solid var(--bc-border-strong); }
.bc-timeline__item.is-done::before   { background: var(--bc-success); border-color: var(--bc-success); }
.bc-timeline__item.is-active::before { background: var(--bc-accent-500); border-color: var(--bc-accent-500); box-shadow: 0 0 0 3px var(--bc-accent-50); }
.bc-timeline__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-timeline__meta  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.12  DEFINITION / SUMMARY LIST
   -------------------------------------------------------------------------- */
.bc-dl { display: grid; gap: 0; }
.bc-dl__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--bc-s-4);
  padding: 9px 0; border-bottom: 1px dashed var(--bc-border-subtle); }
.bc-dl__row:last-child { border-bottom: 0; }
.bc-dl__row--total { border-bottom: 0; border-top: 1px solid var(--bc-border); margin-top: 4px; padding-top: 13px; }
.bc-dl__k { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); }
.bc-dl__v { font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong);
  font-variant-numeric: tabular-nums; text-align: right; }
.bc-dl--grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--bc-s-4) var(--bc-s-6); }
.bc-dl--grid .bc-dl__row { display: block; border: 0; padding: 0; }
.bc-dl--grid .bc-dl__k { display: block; margin-bottom: 2px; font-size: var(--bc-fs-xs); }
.bc-dl--grid .bc-dl__v { text-align: left; font-weight: var(--bc-fw-medium); }

/* --------------------------------------------------------------------------
   3.13  AVATAR
   -------------------------------------------------------------------------- */
.bc-avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--bc-accent-100); color: var(--bc-accent-800); font-weight: var(--bc-fw-semi);
  font-size: var(--bc-fs-sm); overflow: hidden; font-family: var(--bc-font-display); }
.bc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bc-avatar--sm { width: 30px; height: 30px; font-size: var(--bc-fs-xs); }
.bc-avatar--lg { width: 56px; height: 56px; font-size: var(--bc-fs-h4); }
.bc-avatar--xl { width: 76px; height: 76px; font-size: var(--bc-fs-h3); }
.bc-avatar--navy { background: var(--bc-brand-600); color: #fff; }

/* --------------------------------------------------------------------------
   3.14  MODAL / DRAWER / TOAST
   -------------------------------------------------------------------------- */
.bc-modal-backdrop { position: fixed; inset: 0; background: rgba(11,29,58,.48); backdrop-filter: blur(2px);
  z-index: var(--bc-z-modal); display: grid; place-items: center; padding: var(--bc-s-5); }
.bc-modal { width: 100%; max-width: 520px; background: var(--bc-bg-surface); border-radius: var(--bc-r-lg);
  box-shadow: var(--bc-sh-xl); overflow: hidden; }
.bc-modal__head { display:flex; align-items:center; justify-content:space-between; gap: var(--bc-s-4);
  padding: var(--bc-s-5) var(--bc-s-6); border-bottom: 1px solid var(--bc-border-subtle); }
.bc-modal__body { padding: var(--bc-s-6); }
.bc-modal__foot { display:flex; justify-content:flex-end; gap: var(--bc-s-3);
  padding: var(--bc-s-4) var(--bc-s-6); background: var(--bc-grey-25); border-top: 1px solid var(--bc-border-subtle); }
.bc-modal--wide { max-width: 800px; }

.bc-toast { display:flex; align-items:flex-start; gap: var(--bc-s-3); width: 360px; padding: var(--bc-s-4);
  background: var(--bc-bg-surface); border: 1px solid var(--bc-border); border-left: 3px solid var(--bc-accent-500);
  border-radius: var(--bc-r-ctrl); box-shadow: var(--bc-sh-lg); }
.bc-toast--success { border-left-color: var(--bc-success); }
.bc-toast--danger  { border-left-color: var(--bc-danger); }
.bc-toast--warning { border-left-color: var(--bc-warning); }
.bc-toast__title { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-semi); color: var(--bc-text-strong); }
.bc-toast__body  { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.15  DOCUMENT UPLOAD / FILE ROW
   -------------------------------------------------------------------------- */
.bc-dropzone { border: 1.5px dashed var(--bc-border-strong); border-radius: var(--bc-r-ctrl);
  padding: var(--bc-s-7) var(--bc-s-5); text-align: center; background: var(--bc-grey-25);
  transition: all var(--bc-transition); cursor: pointer; }
.bc-dropzone:hover { border-color: var(--bc-accent-400); background: var(--bc-accent-50); }
.bc-dropzone__icon { width: 42px; height: 42px; margin: 0 auto var(--bc-s-3); border-radius: 11px;
  display: grid; place-items: center; background: var(--bc-accent-50); color: var(--bc-accent-600); }

.bc-file { display: flex; align-items: center; gap: var(--bc-s-3); padding: var(--bc-s-3) var(--bc-s-4);
  border: 1px solid var(--bc-border); border-radius: var(--bc-r-ctrl); background: var(--bc-bg-surface); }
.bc-file__icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--bc-grey-50); color: var(--bc-text-muted); }
.bc-file__name { font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-medium); color: var(--bc-text-strong); }
.bc-file__meta { font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }

/* --------------------------------------------------------------------------
   3.16  EMPTY / ERROR / SKELETON
   -------------------------------------------------------------------------- */
.bc-empty { text-align: center; padding: var(--bc-s-10) var(--bc-s-5); }
.bc-empty__icon { width: 60px; height: 60px; margin: 0 auto var(--bc-s-4); border-radius: 16px;
  display: grid; place-items: center; background: var(--bc-grey-50); color: var(--bc-text-subtle); }
.bc-empty__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); margin-bottom: 5px; }
.bc-empty__body { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); max-width: 360px; margin: 0 auto var(--bc-s-5); }

.bc-skel { background: linear-gradient(90deg, var(--bc-grey-100) 25%, var(--bc-grey-50) 50%, var(--bc-grey-100) 75%);
  background-size: 200% 100%; animation: bc-shimmer 1.4s infinite; border-radius: var(--bc-r-xs); }
.bc-skel--text { height: 12px; margin-bottom: 8px; }
.bc-skel--title{ height: 20px; width: 45%; margin-bottom: 14px; }
.bc-skel--block{ height: 96px; border-radius: var(--bc-r-ctrl); }
@keyframes bc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   3.17  TRUST STRIP (public marketing)
   -------------------------------------------------------------------------- */
.bc-trust { background: var(--bc-brand-600); color: rgba(255,255,255,.72); }
.bc-trust__grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.bc-trust__item { display: flex; gap: var(--bc-s-3); padding: var(--bc-s-6) var(--bc-s-5);
  border-right: 1px solid rgba(255,255,255,.10); }
.bc-trust__item:last-child { border-right: 0; }
.bc-trust__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.20); color: var(--bc-accent-300); }
.bc-trust__icon svg { width: 17px; height: 17px; }
.bc-trust__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-base); font-weight: var(--bc-fw-semi);
  color: #fff; margin-bottom: 2px; letter-spacing: -.01em; }
.bc-trust__body  { font-size: var(--bc-fs-xs); line-height: 1.5; color: rgba(255,255,255,.62); }

/* --------------------------------------------------------------------------
   3.18  JOURNEY / NUMBERED STEPS (marketing "How it works")
   -------------------------------------------------------------------------- */
.bc-journey { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--bc-s-6); position: relative; }
.bc-journey__item { text-align: left; position: relative; }
.bc-journey__no { font-family: var(--bc-font-display); font-size: var(--bc-fs-sm); font-weight: var(--bc-fw-bold);
  color: var(--bc-accent-500); letter-spacing: .06em; margin-bottom: var(--bc-s-3); }
.bc-journey__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  border: 1.5px solid var(--bc-accent-200); color: var(--bc-accent-600); background: var(--bc-accent-50);
  margin-bottom: var(--bc-s-4); }
.bc-journey__title { font-family: var(--bc-font-display); font-size: var(--bc-fs-h4); font-weight: var(--bc-fw-semi);
  color: var(--bc-text-strong); margin-bottom: 6px; }
.bc-journey__body { font-size: var(--bc-fs-sm); color: var(--bc-text-muted); line-height: 1.6; }
.bc-journey__connector { position: absolute; top: 88px; left: 62px; right: -24px; height: 1.5px;
  background: linear-gradient(90deg, var(--bc-accent-200), var(--bc-accent-100)); }

/* --------------------------------------------------------------------------
   3.19  CHART SHELL  (SVG charts are hand-rolled; this is the frame)
   -------------------------------------------------------------------------- */
.bc-chart { width: 100%; }
.bc-chart__legend { display: flex; gap: var(--bc-s-4); flex-wrap: wrap; font-size: var(--bc-fs-xs); color: var(--bc-text-muted); }
.bc-chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bc-chart__legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.bc-axis  { font-size: 10px; fill: var(--bc-text-subtle); font-family: var(--bc-font-body); }
.bc-gridline { stroke: var(--bc-border-subtle); stroke-width: 1; }
