/* ============================================================
   BadFox Design System — extracted from Claude Design handoff
   Source: badfox/project/screens.jsx + BadFox App.html
   Version: 2026-04-30
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces */
  --bf-ink: #050507;
  --bf-bg: #0A0A0B;
  --bf-surface: #15151A;
  --bf-surface-2: #1F1F26;
  --bf-surface-3: #2E2E36;
  --bf-stroke: rgba(255,255,255,0.06);
  --bf-stroke-2: rgba(255,255,255,0.08);
  --bf-stroke-soft: rgba(255,255,255,0.05);
  --bf-stroke-faint: rgba(255,255,255,0.04);

  /* Brand */
  --bf-accent: #FF6A1A;
  --bf-accent-hi: #FF8A4C;
  --bf-accent-lo: #C84A0F;
  --bf-accent-deep: #E45710;
  --bf-amber: #FFB37A;

  /* Status */
  --bf-success: #3FCB85;
  --bf-success-hi: #7BE0A8;
  --bf-info: #6EAAFF;
  --bf-info-hi: #9CC2FF;
  --bf-warn: #F59E0B;
  --bf-error: #F03A3A;

  /* Text */
  --bf-text: #fff;
  --bf-text-2: #B5B5BF;
  --bf-text-3: #9A9AA3;
  --bf-text-muted: #7A7A85;
  --bf-text-faint: #5A5A65;

  /* Type */
  --bf-font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --bf-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --bf-r-xs: 8px;
  --bf-r-sm: 10px;
  --bf-r-md: 12px;
  --bf-r-lg: 14px;
  --bf-r-xl: 16px;
  --bf-r-2xl: 18px;
  --bf-r-3xl: 20px;
  --bf-r-4xl: 24px;
  --bf-r-5xl: 28px;
  --bf-r-pill: 999px;

  /* Shadows */
  --bf-shadow-card: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  --bf-shadow-glow: 0 12px 28px rgba(255,106,26,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  --bf-shadow-cta: 0 12px 28px rgba(255,106,26,0.55);
  --bf-shadow-pill: 0 8px 20px rgba(255,106,26,0.33);
  --bf-shadow-tab: 0 16px 40px rgba(0,0,0,0.6);
  --bf-shadow-sheet: 0 24px 60px rgba(0,0,0,0.6);

  /* Gradients (use as background-image) */
  --bf-grad-accent: linear-gradient(180deg, #FF6A1A 0%, #E45710 100%);
  --bf-grad-accent-135: linear-gradient(135deg, #FF6A1A, #C84A0F);
  --bf-grad-card-hero: radial-gradient(120% 80% at 50% 30%, #2A1810 0%, #0F0A08 60%, #0A0A0B 100%);
  --bf-grad-page-bg: radial-gradient(60% 50% at 20% 0%, rgba(255,106,26,0.10), transparent 60%),
                    radial-gradient(60% 50% at 80% 100%, rgba(255,106,26,0.06), transparent 60%),
                    #050507;
  --bf-grad-text: linear-gradient(180deg, #fff 0%, #FF6A1A 140%);
}

/* ---------- BASE / RESET ---------- */
.bf-app, .bf-app * { box-sizing: border-box; }
.bf-app *::-webkit-scrollbar { display: none; }
.bf-app * { scrollbar-width: none; }

.bf-app {
  background: var(--bf-grad-page-bg);
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* When applied to body for full-screen pages */
body.bf-body {
  margin: 0;
  background: var(--bf-grad-page-bg) fixed;
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  -webkit-font-smoothing: antialiased;
}
body.bf-body *::-webkit-scrollbar { display: none; }
body.bf-body * { scrollbar-width: none; box-sizing: border-box; }

/* ---------- ANIMATIONS ---------- */
@keyframes bf-ping {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes bf-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bf-spin {
  to { transform: rotate(360deg); }
}
@keyframes bf-pulse-soft {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.bf-screen-anim { animation: bf-fade-up 0.32s cubic-bezier(0.2,0.7,0.2,1); }

/* ---------- LAYOUT PRIMITIVES ---------- */
.bf-page {
  padding: 8px 20px 110px;
  min-height: 100vh;
  position: relative;
}

.bf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bf-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf-logo-mark {
  width: 36px; height: 36px;
  border-radius: var(--bf-r-sm);
  background: var(--bf-grad-accent-135);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(255,106,26,0.33);
  font-family: var(--bf-font-display);
  font-weight: 800; font-size: 18px;
  color: #0A0A0B;
  letter-spacing: -0.5px;
}

.bf-topbar-greeting {
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.bf-topbar-greeting > .label {
  font-size: 11px;
  color: var(--bf-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: var(--bf-font-mono);
}
.bf-topbar-greeting > .name {
  font-size: 16px; font-weight: 700;
  font-family: var(--bf-font-display);
}

/* ---------- PILL / BADGE ---------- */
.bf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--bf-r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: var(--bf-font-mono);
}
.bf-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  display: inline-block;
}
.bf-pill.no-dot::before { display: none; }

.bf-pill.tone-orange { background: rgba(255,106,26,0.13); color: var(--bf-accent-hi); }
.bf-pill.tone-orange::before { background: var(--bf-accent); box-shadow: 0 0 8px var(--bf-accent); }
.bf-pill.tone-green  { background: rgba(80,210,140,0.13); color: var(--bf-success-hi); }
.bf-pill.tone-green::before { background: var(--bf-success); box-shadow: 0 0 8px var(--bf-success); }
.bf-pill.tone-blue   { background: rgba(110,170,255,0.13); color: var(--bf-info-hi); }
.bf-pill.tone-blue::before { background: var(--bf-info); box-shadow: 0 0 8px var(--bf-info); }
.bf-pill.tone-gray   { background: rgba(255,255,255,0.06); color: var(--bf-text-2); }
.bf-pill.tone-gray::before { background: var(--bf-text-muted); }

/* ---------- CARDS ---------- */
.bf-card {
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-3xl);
  padding: 16px;
}

.bf-card-hero {
  position: relative;
  border-radius: var(--bf-r-5xl);
  overflow: hidden;
  background: var(--bf-grad-card-hero);
  border: 1px solid var(--bf-stroke);
  box-shadow: var(--bf-shadow-card);
  padding: 22px 22px 24px;
  margin-bottom: 16px;
}
.bf-card-hero::before {
  content: '';
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,26,0.20) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}
.bf-card-hero > * { position: relative; z-index: 2; }

.bf-card-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.bf-card-hero-head .meta {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bf-bignum {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.bf-bignum .num {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 112px;
  line-height: 0.85;
  letter-spacing: -6px;
  background: var(--bf-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bf-bignum .unit {
  font-family: var(--bf-font-mono);
  font-size: 11px;
  color: var(--bf-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding-bottom: 14px;
}

.bf-card-hero h1 {
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.6px;
  color: var(--bf-text);
}
.bf-card-hero p {
  margin: 0;
  color: var(--bf-text-3);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- LIVE PROGRESS STRIP ---------- */
.bf-progress-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bf-surface);
  border-radius: var(--bf-r-2xl);
  border: 1px solid var(--bf-stroke-soft);
  margin-bottom: 14px;
}
.bf-progress-strip .ring {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.bf-progress-strip .ring svg { display: block; }
.bf-progress-strip .ring .icon {
  position: absolute; top: 13px; left: 13px;
  width: 18px; height: 18px;
}
.bf-progress-strip .body { flex: 1; min-width: 0; }
.bf-progress-strip .body .title {
  font-size: 13px; font-weight: 700;
  color: var(--bf-text);
  font-family: var(--bf-font-display);
}
.bf-progress-strip .body .sub {
  font-size: 11px; color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  margin-top: 2px;
}
.bf-progress-strip .pct {
  font-size: 13px; font-weight: 700;
  color: var(--bf-accent);
  font-family: var(--bf-font-mono);
}
.bf-progress-strip.loading .ring > svg:first-of-type {
  animation: bf-spin 1.1s linear infinite;
  transform-origin: 22px 22px;
}
.bf-progress-strip.loading .ring .icon { display: none; }
.bf-progress-strip.loading .body .sub::after {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  margin-left: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: bf-pulse-soft 1s infinite;
}

/* ---------- STAT TILES ---------- */
.bf-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.bf-stat-tile {
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-2xl);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.bf-stat-tile .head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.bf-stat-tile .icon-wrap {
  width: 34px; height: 34px;
  border-radius: var(--bf-r-sm);
  display: grid; place-items: center;
  background: var(--bf-grad-accent-135);
  box-shadow: 0 4px 12px rgba(255,106,26,0.33);
  flex-shrink: 0;
}
.bf-stat-tile .icon-wrap svg { width: 16px; height: 16px; color: #0A0A0B; }
.bf-stat-tile .label {
  font-size: 11px; color: var(--bf-text-3);
  font-family: var(--bf-font-mono);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.bf-stat-tile .value {
  font-family: var(--bf-font-display);
  font-weight: 800; font-size: 28px;
  line-height: 1; color: var(--bf-text);
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.bf-stat-tile .trend {
  font-size: 10.5px;
  font-family: var(--bf-font-mono);
  letter-spacing: 0.3px;
}
.bf-stat-tile .trend.green { color: var(--bf-success-hi); }
.bf-stat-tile .trend.orange { color: var(--bf-accent-hi); }

/* ---------- KPI CARD (large left, narrow right) ---------- */
.bf-kpi-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.bf-kpi {
  background: linear-gradient(135deg, #1A1208 0%, #0F0A05 100%);
  border: 1px solid rgba(255,106,26,0.20);
  border-radius: var(--bf-r-2xl);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.bf-kpi.muted {
  background: var(--bf-surface);
  border-color: var(--bf-stroke-soft);
}
.bf-kpi .label {
  display: flex; align-items: center; gap: 6px;
  color: var(--bf-accent-hi);
  font-size: 10.5px;
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.bf-kpi.muted .label { color: var(--bf-text-muted); }
.bf-kpi .value {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1;
}
.bf-kpi .value .unit {
  font-size: 16px;
  color: var(--bf-text-muted);
  font-weight: 600;
  margin-left: 4px;
}
.bf-kpi .delta {
  font-size: 11px;
  font-family: var(--bf-font-mono);
  margin-top: 6px;
  color: var(--bf-success-hi);
}
.bf-kpi .delta.muted { color: var(--bf-text-muted); }
.bf-kpi .sparkline {
  position: absolute; right: 0; bottom: 0;
  width: 110px; height: 38px;
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- CTAs ---------- */
.bf-btn-primary {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: var(--bf-r-xl);
  background: var(--bf-grad-accent);
  color: #0A0A0B;
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: var(--bf-shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.bf-btn-primary:hover { transform: translateY(-1px); }
.bf-btn-primary:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(255,106,26,0.4); }
.bf-btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.bf-btn-primary svg { width: 20px; height: 20px; stroke: #0A0A0B; stroke-width: 2.4; }

.bf-btn-secondary {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-xl);
  background: var(--bf-surface);
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background 0.15s;
}
.bf-btn-secondary:hover { background: var(--bf-surface-2); }
.bf-btn-secondary .left { display: flex; align-items: center; gap: 10px; }
.bf-btn-secondary .right { font-size: 12px; color: var(--bf-text-muted); font-family: var(--bf-font-mono); }
.bf-btn-secondary svg { width: 18px; height: 18px; stroke: var(--bf-accent); stroke-width: 1.8; }

.bf-btn-icon {
  width: 38px; height: 38px;
  border-radius: var(--bf-r-md);
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--bf-text);
}
.bf-btn-icon svg { width: 18px; height: 18px; stroke-width: 1.8; }

.bf-btn-icon-44 { width: 44px; height: 44px; border-radius: var(--bf-r-lg); }

.bf-btn-ghost {
  background: transparent;
  border: none;
  color: var(--bf-accent-hi);
  font-family: var(--bf-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  white-space: nowrap;
}

/* ---------- SEGMENTED CONTROL ---------- */
.bf-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-lg);
  margin-bottom: 18px;
}
.bf-segmented.cols-2 { grid-template-columns: 1fr 1fr; }
.bf-segmented.cols-4 { grid-template-columns: repeat(4, 1fr); }
.bf-segmented-btn {
  padding: 10px 0;
  border: none;
  border-radius: var(--bf-r-sm);
  cursor: pointer;
  background: transparent;
  color: var(--bf-text-3);
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}
.bf-segmented-btn.active {
  background: var(--bf-grad-accent);
  color: #0A0A0B;
  box-shadow: 0 6px 16px rgba(255,106,26,0.25);
}

/* ---------- BAR CHART ---------- */
.bf-chart-card {
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-3xl);
  padding: 18px;
  margin-bottom: 18px;
}
.bf-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.bf-chart-head .title {
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 14px;
}
.bf-chart-head .meta {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
}
.bf-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  height: 120px;
  align-items: end;
}
.bf-chart-bar {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.bf-chart-bar .fill {
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--bf-surface-3), var(--bf-surface-2));
  transition: all 0.3s;
  position: relative;
}
.bf-chart-bar.active .fill {
  background: linear-gradient(180deg, var(--bf-accent), var(--bf-accent-lo));
  box-shadow: 0 4px 16px rgba(255,106,26,0.4);
}
.bf-chart-bar .day-label {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  font-weight: 400;
}
.bf-chart-bar.active .day-label {
  color: var(--bf-accent);
  font-weight: 700;
}
.bf-chart-tip {
  position: absolute;
  top: -28px; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #0A0A0B;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--bf-font-mono);
  white-space: nowrap;
}

/* ---------- LIST / RIDE ROWS ---------- */
.bf-list-card {
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-3xl);
  overflow: hidden;
}
.bf-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bf-stroke-faint);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-left: none; border-right: none; border-top: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.bf-list-row:last-child { border-bottom: none; }
.bf-list-row:hover { background: rgba(255,255,255,0.02); }
.bf-list-row .icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--bf-r-sm);
  background: rgba(255,106,26,0.10);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.bf-list-row .icon-wrap svg {
  width: 16px; height: 16px;
  stroke: var(--bf-accent);
  stroke-width: 2.2;
}
.bf-list-row.tone-green .icon-wrap { background: rgba(80,210,140,0.13); }
.bf-list-row.tone-green .icon-wrap svg { stroke: var(--bf-success-hi); }
.bf-list-row .body { flex: 1; min-width: 0; }
.bf-list-row .body .title {
  font-size: 14px; font-weight: 700;
  font-family: var(--bf-font-display);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-list-row .body .sub {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  margin-top: 2px;
}
.bf-list-row .right {
  font-family: var(--bf-font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--bf-text);
  white-space: nowrap;
}
.bf-list-row .right.credit { color: var(--bf-success-hi); }
.bf-list-row .chevron { color: var(--bf-text-muted); width: 16px; height: 16px; }

/* Standalone bf-row for rides (compact, with margin between) */
.bf-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-lg);
}
.bf-row + .bf-row { margin-top: 8px; }

/* ---------- WALLET CARD (orange gradient) ---------- */
.bf-wallet {
  background: var(--bf-grad-accent-135);
  border-radius: var(--bf-r-3xl);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(255,106,26,0.20);
}
.bf-wallet::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  filter: blur(20px);
}
.bf-wallet > * { position: relative; }
.bf-wallet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.bf-wallet-head .label {
  font-size: 11px;
  color: rgba(10,10,11,0.7);
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.bf-wallet-head svg { width: 18px; height: 18px; stroke: #0A0A0B; stroke-width: 2.2; }
.bf-wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.bf-wallet-balance .num {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 36px;
  color: #0A0A0B;
  letter-spacing: -1.5px;
  line-height: 1;
}
.bf-wallet-balance .cur {
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #0A0A0B;
}
.bf-wallet-balance .meta {
  margin-left: auto;
  font-size: 11px;
  color: rgba(10,10,11,0.6);
  font-family: var(--bf-font-mono);
}
.bf-wallet-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.bf-wallet-actions > button,
.bf-wallet-actions > a {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: var(--bf-r-md);
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-sizing: border-box;
}
.bf-wallet-actions .primary {
  background: #0A0A0B;
  color: #fff;
}
.bf-wallet-actions .ghost {
  background: rgba(10,10,11,0.15);
  color: #0A0A0B;
  text-decoration: none;
}
.bf-wallet-actions svg { width: 14px; height: 14px; stroke-width: 2.4; }
.bf-wallet-actions .primary svg { stroke: #fff; }
.bf-wallet-actions .ghost svg { stroke: #0A0A0B; }

/* ---------- PROFILE HEADER ---------- */
.bf-profile-header {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255,106,26,0.13), transparent 60%), var(--bf-surface);
  border: 1px solid var(--bf-stroke);
  border-radius: var(--bf-r-4xl);
  padding: 22px 18px 18px;
  margin-bottom: 16px;
  overflow: hidden;
}
.bf-profile-logout {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--bf-r-sm);
  border: 1px solid var(--bf-stroke);
  background: rgba(255,255,255,0.02);
  color: var(--bf-text-3);
  cursor: pointer;
  display: grid; place-items: center;
}
.bf-profile-logout svg { width: 16px; height: 16px; stroke: var(--bf-text-3); stroke-width: 2; }

.bf-profile-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bf-avatar {
  position: relative;
  flex-shrink: 0;
}
.bf-avatar .img {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bf-grad-accent-135);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(255,106,26,0.33), inset 0 -6px 12px rgba(0,0,0,0.3);
  overflow: hidden;
}
.bf-avatar .img svg { width: 36px; height: 36px; stroke: #0A0A0B; stroke-width: 2; }
.bf-avatar .img img { width: 100%; height: 100%; object-fit: cover; }
.bf-avatar .online-dot {
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bf-success);
  border: 3px solid var(--bf-surface);
}
.bf-profile-head-info { flex: 1; min-width: 0; }
.bf-profile-head-info h2 {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  letterSpacing: -0.6px;
  letter-spacing: -0.6px;
}
.bf-profile-head-info .id-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.bf-profile-head-info .id-row .id {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
}

.bf-prof-stats {
  display: flex; gap: 8px;
  margin-top: 10px;
}
.bf-prof-stat {
  display: flex; flex-direction: column;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-sm);
}
.bf-prof-stat .n {
  font-family: var(--bf-font-display);
  font-weight: 800; font-size: 14px;
  color: var(--bf-text);
  display: flex; align-items: center; gap: 3px;
}
.bf-prof-stat .l {
  font-size: 9.5px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- TAB BAR (bottom nav) ---------- */
.bf-tabbar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px;
  border-radius: var(--bf-r-4xl);
  background: rgba(15,15,18,0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--bf-stroke-2);
  box-shadow: var(--bf-shadow-tab);
}
.bf-tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  cursor: pointer;
  background: transparent;
  border-radius: var(--bf-r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  text-decoration: none;
  color: var(--bf-text-muted);
}
.bf-tab.active {
  background: linear-gradient(180deg, rgba(255,106,26,0.13), transparent);
  color: var(--bf-accent);
}
.bf-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%; right: 30%;
  height: 2px;
  border-radius: 2px;
  background: var(--bf-accent);
}
.bf-tab svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bf-tab.active svg { stroke-width: 2.2; }
.bf-tab span {
  font-size: 9.5px;
  font-family: var(--bf-font-display);
  font-weight: 500;
  letter-spacing: 0.2px;
}
.bf-tab.active span { font-weight: 700; }

/* ---------- INPUTS ---------- */
.bf-input,
.bf-app input[type="tel"],
.bf-app input[type="text"],
.bf-app input[type="email"],
.bf-app input[type="password"],
.bf-app input[type="number"],
.bf-app input[type="date"],
.bf-app select,
.bf-app textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-md);
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.bf-input:focus,
.bf-app input:focus,
.bf-app select:focus,
.bf-app textarea:focus {
  border-color: var(--bf-accent);
  background: var(--bf-surface-2);
}
.bf-input::placeholder { color: var(--bf-text-muted); }

.bf-otp-input {
  width: 100%;
  padding: 18px;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-xl);
  color: var(--bf-text);
  font-family: var(--bf-font-mono);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 12px;
  outline: none;
}
.bf-otp-input:focus { border-color: var(--bf-accent); }

.bf-form-group { margin-bottom: 14px; }
.bf-label {
  display: block;
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.bf-hint {
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  margin-top: 6px;
}

/* ---------- MODALS ---------- */
.bf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: bf-fade-up 0.2s ease;
}
@media (min-width: 480px) {
  .bf-modal-overlay { align-items: center; padding: 24px; }
}
.bf-modal-overlay.hidden { display: none; }
.bf-modal-content {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-4xl) var(--bf-r-4xl) 0 0;
  padding: 22px 20px 28px;
  overflow-y: auto;
  box-shadow: var(--bf-shadow-sheet);
}
@media (min-width: 480px) {
  .bf-modal-content { border-radius: var(--bf-r-4xl); }
}
.bf-modal-content::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.bf-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--bf-r-sm);
  border: 1px solid var(--bf-stroke);
  background: rgba(255,255,255,0.02);
  color: var(--bf-text);
  cursor: pointer;
  font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.bf-modal-content h2 {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 4px 0 16px;
  letter-spacing: -0.6px;
  padding-right: 50px;
}

/* ---------- BF MODAL SHEET (glassmorphic bottom sheet — design v2) ---------- */
@keyframes bf-sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.bf-modal-sheet {
  align-items: flex-end !important;
  padding: 0 !important;
  background: rgba(0,0,0,0.6) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.bf-modal-sheet > .bf-modal-content,
.bf-modal-sheet > .modal-content {
  position: relative;
  margin: 12px;
  max-width: calc(100% - 24px);
  width: calc(100% - 24px);
  background: rgba(15,15,18,0.94);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 -24px 80px rgba(0,0,0,0.7);
  animation: bf-sheet-up 0.32s cubic-bezier(0.2,0.8,0.2,1);
  max-height: 88vh;
  overflow-y: auto;
}
.bf-modal-sheet > .bf-modal-content::before,
.bf-modal-sheet > .modal-content::before {
  content: '';
  display: block;
  width: 42px; height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.bf-modal-sheet h2 {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--bf-text);
  margin: 0 0 16px;
  padding-right: 50px;
}
.bf-modal-sheet .bf-modal-close,
.bf-modal-sheet .modal-close {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--bf-text);
  top: 18px; right: 18px;
  font-size: 18px;
  line-height: 1;
}
.bf-modal-sheet .bf-modal-close::before,
.bf-modal-sheet .modal-close::before { display: none; }

.bf-modal-sheet .disclaimer-text,
.bf-modal-sheet .bf-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  line-height: 1.5;
}

/* Tariff rows (radio-button cards) */
.bf-modal-sheet .bike-list,
.bf-modal-sheet .bf-list-card {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  padding: 0 !important;
  margin: 8px 0 4px;
  overflow: visible;
}
.bf-modal-sheet .bike-list-item,
.bf-modal-sheet .tariff-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 16px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 16px !important;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  position: relative;
  margin: 0 !important;
  text-decoration: none;
}
.bf-modal-sheet .bike-list-item:hover,
.bf-modal-sheet .tariff-option:hover {
  border-color: rgba(255,255,255,0.14) !important;
  background: rgba(255,255,255,0.05) !important;
}
.bf-modal-sheet .bike-list-item.selected,
.bf-modal-sheet .tariff-option.selected,
.bf-modal-sheet .bike-list-item.active,
.bf-modal-sheet .tariff-option.active {
  background: linear-gradient(135deg, rgba(255,106,26,0.10), transparent) !important;
  border-color: var(--bf-accent) !important;
}
/* Fake radio circle on left */
.bf-modal-sheet .bike-list-item::before,
.bf-modal-sheet .tariff-option::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  background: transparent;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}
.bf-modal-sheet .bike-list-item.selected::before,
.bf-modal-sheet .tariff-option.selected::before,
.bf-modal-sheet .bike-list-item.active::before,
.bf-modal-sheet .tariff-option.active::before {
  border-color: var(--bf-accent);
  background:
    radial-gradient(circle at center, #0A0A0B 0 4px, transparent 4.5px),
    var(--bf-accent);
}

.bf-modal-sheet .bike-list-item .body,
.bf-modal-sheet .tariff-option .body {
  flex: 1;
  min-width: 0;
}
.bf-modal-sheet .bike-list-item .body .title,
.bf-modal-sheet .tariff-option .body .title {
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--bf-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bf-modal-sheet .bike-list-item .body .sub,
.bf-modal-sheet .tariff-option .body .sub {
  font-family: var(--bf-font-mono);
  font-size: 11px;
  color: var(--bf-text-muted);
  margin-top: 2px;
}
.bf-modal-sheet .bike-list-item .right,
.bf-modal-sheet .tariff-option .right {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--bf-text);
  letter-spacing: -0.5px;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.bf-modal-sheet .bike-list-item .right .amount,
.bf-modal-sheet .tariff-option .right .amount {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--bf-text);
  letter-spacing: -0.5px;
}
.bf-modal-sheet .bike-list-item .right .period,
.bf-modal-sheet .tariff-option .right .period {
  font-family: var(--bf-font-mono);
  font-size: 11px;
  color: var(--bf-text-muted);
  font-weight: 600;
  margin-left: 2px;
}
.bf-modal-sheet .tariff-badge-buyout {
  display: inline-block;
  background: rgba(255,106,26,0.18);
  color: var(--bf-accent-hi);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
}
.bf-modal-sheet .tariff-buyout-total {
  font-size: 11px;
  color: var(--bf-accent-hi);
  font-family: var(--bf-font-mono);
  margin-top: 4px;
}

/* ---------- TARIFF CAROUSEL (inside #tariff-modal) ---------- */
.bf-tariff-carousel {
  position: relative;
  display: block;
  margin: 8px 0 12px;
}
.bf-tariff-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: var(--bf-r-3xl);
}
.bf-tariff-track {
  display: flex;
  width: 100%;
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  will-change: transform;
  touch-action: pan-y;
}
.bf-tariff-card {
  flex: 0 0 100%;
  width: 100%;
  background: linear-gradient(180deg, var(--bf-surface) 0%, var(--bf-surface-2) 100%);
  border: 1px solid var(--bf-stroke-soft);
  border-radius: var(--bf-r-3xl);
  overflow: hidden;
  box-shadow: var(--bf-shadow-card);
  display: flex;
  flex-direction: column;
}
.bf-tariff-card-photo {
  position: relative;
  height: 220px;
  background: transparent;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}
.bf-tariff-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bf-tariff-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bf-tariff-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bf-tariff-card-title {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--bf-text);
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.bf-tariff-card-badge {
  display: inline-block;
  background: rgba(255,106,26,0.18);
  color: var(--bf-accent-hi);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--bf-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
}
.bf-tariff-card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bf-text-3);
  font-family: var(--bf-font-display);
}
.bf-tariff-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--bf-stroke-soft);
}
.bf-tariff-card-price-label {
  font-family: var(--bf-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--bf-text-muted);
}
.bf-tariff-card-price {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--bf-accent);
}

/* Arrows — absolute overlay so the card spans full width */
.bf-tariff-arrow {
  position: absolute;
  top: 110px;
  width: 36px; height: 36px;
  z-index: 5;
  border-radius: 50%;
  background: rgba(15,15,18,0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bf-stroke-2);
  color: var(--bf-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.bf-tariff-arrow.prev { left: 8px; }
.bf-tariff-arrow.next { right: 8px; }
.bf-tariff-arrow:hover { background: rgba(25,25,30,0.92); }
.bf-tariff-arrow:active { transform: scale(0.90); }
.bf-tariff-arrow:disabled { opacity: 0; pointer-events: none; }
.bf-tariff-arrow svg { stroke: currentColor; }

/* Dots indicator */
.bf-tariff-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.bf-tariff-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.bf-tariff-dot.active {
  width: 22px;
  border-radius: 999px;
  background: var(--bf-accent);
}

/* Empty state */
.bf-tariff-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--bf-text-muted);
  font-family: var(--bf-font-mono);
  font-size: 13px;
  background: var(--bf-surface);
  border: 1px dashed var(--bf-stroke-2);
  border-radius: var(--bf-r-2xl);
  margin: 8px 0;
}

/* ---------- GLASS BAR (top floating on map) ---------- */
.bf-glass-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(15,15,18,0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-lg);
  font-size: 13px;
  font-weight: 600;
}
.bf-glass-btn {
  width: 44px; height: 44px;
  border-radius: var(--bf-r-lg);
  border: 1px solid var(--bf-stroke-2);
  background: rgba(15,15,18,0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--bf-text);
}

/* ---------- BOTTOM SHEET (map) ---------- */
.bf-sheet {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 96px;
  z-index: 5;
  background: rgba(15,15,18,0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-4xl);
  padding: 18px;
  box-shadow: var(--bf-shadow-sheet);
}
.bf-sheet::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0 auto 14px;
}

/* ---------- FILTER CHIPS ---------- */
.bf-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.bf-chip {
  padding: 7px 14px;
  border-radius: var(--bf-r-pill);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--bf-font-display);
  white-space: nowrap;
  cursor: pointer;
  background: rgba(15,15,18,0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--bf-text);
  border: 1px solid var(--bf-stroke-2);
}
.bf-chip.active {
  background: #fff;
  color: #0A0A0B;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- STATION PIN ---------- */
.bf-pin-btn {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: translate(-50%, -100%);
}
.bf-pin {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--bf-surface-2);
  border: 2px solid var(--bf-accent);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.2s;
}
.bf-pin .count {
  transform: rotate(45deg);
  font-family: var(--bf-font-mono);
  font-weight: 800; font-size: 11px;
  color: var(--bf-text);
}
.bf-pin-btn.active .bf-pin {
  width: 44px; height: 44px;
  background: var(--bf-grad-accent-135);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(255,106,26,0.55);
}
.bf-pin-btn.active .bf-pin .count { color: #0A0A0B; }
.bf-pin-btn.active::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  border-radius: 50%;
  background: var(--bf-accent);
  opacity: 0.3;
  animation: bf-ping 1.6s infinite;
}

/* ---------- SECTION HEADERS ---------- */
.bf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.bf-section-head .title {
  font-family: var(--bf-font-display);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- PAGE HEADER (h1 + caption) ---------- */
.bf-page-title {
  font-family: var(--bf-font-display);
  font-weight: 800;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.8px;
  color: var(--bf-text);
}
.bf-page-caption {
  margin: 2px 0 0;
  color: var(--bf-text-muted);
  font-size: 12px;
  font-family: var(--bf-font-mono);
}

/* ---------- VERSION FOOTER ---------- */
.bf-version {
  text-align: center;
  color: var(--bf-text-faint);
  font-size: 10.5px;
  font-family: var(--bf-font-mono);
  margin-top: 16px;
  letter-spacing: 0.3px;
}

/* Logout button (profile bottom) — small, neutral gray */
.bf-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 18px auto 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-pill);
  color: var(--bf-text-muted);
  font-family: var(--bf-font-display);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bf-logout-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--bf-text-2);
  border-color: rgba(255,255,255,0.15);
}
.bf-logout-btn svg { stroke: currentColor; stroke-width: 2; width: 12px; height: 12px; }

/* ---------- TOAST ---------- */
.bf-toast {
  position: fixed;
  bottom: 96px;
  left: 16px; right: 16px;
  background: var(--bf-surface-2);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-md);
  padding: 14px 16px;
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  font-size: 14px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: var(--bf-shadow-tab);
  animation: bf-fade-up 0.25s ease;
}
.bf-toast.success { border-color: rgba(80,210,140,0.4); }
.bf-toast.error { border-color: rgba(240,58,58,0.4); }

/* ---------- HEADER BAR (general pages) ---------- */
.bf-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.bf-back-btn {
  width: 38px; height: 38px;
  border-radius: var(--bf-r-md);
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--bf-text);
}
.bf-back-btn svg { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- STEP DOTS ---------- */
.bf-step-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 18px 0;
}
.bf-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bf-surface-3);
  transition: all 0.3s;
}
.bf-step-dot.active {
  width: 24px;
  border-radius: var(--bf-r-pill);
  background: var(--bf-accent);
}

/* ---------- LOADER ---------- */
.bf-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--bf-stroke-2);
  border-top-color: var(--bf-accent);
  border-radius: 50%;
  animation: bf-spin 0.9s linear infinite;
}

/* ---------- MENU OVERLAY (burger) ---------- */
.bf-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bf-menu-overlay.hidden { display: none; }
.bf-menu-container {
  width: 100%;
  background: var(--bf-surface);
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-4xl) var(--bf-r-4xl) 0 0;
  padding: 22px 20px 32px;
  position: relative;
  box-shadow: var(--bf-shadow-sheet);
}
.bf-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: var(--bf-r-sm);
  border: 1px solid var(--bf-stroke);
  background: rgba(255,255,255,0.02);
  color: var(--bf-text);
  cursor: pointer;
  font-size: 22px;
}
.bf-menu-items {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.bf-menu-item {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--bf-stroke-2);
  border-radius: var(--bf-r-xl);
  background: var(--bf-surface-2);
  color: var(--bf-text);
  font-family: var(--bf-font-display);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.bf-menu-item.primary {
  background: var(--bf-grad-accent);
  color: #0A0A0B;
  border-color: transparent;
  font-weight: 800;
}

/* ---------- HELPERS ---------- */
.bf-mono { font-family: var(--bf-font-mono); }
.bf-display { font-family: var(--bf-font-display); }
.bf-text-muted { color: var(--bf-text-muted); }
.bf-text-accent { color: var(--bf-accent); }
.bf-stack-8 > * + * { margin-top: 8px; }
.bf-stack-12 > * + * { margin-top: 12px; }
.bf-stack-16 > * + * { margin-top: 16px; }
.bf-stack-20 > * + * { margin-top: 20px; }
.bf-hidden { display: none !important; }
.bf-flex { display: flex; }
.bf-flex-1 { flex: 1; }
.bf-flex-center { display: flex; align-items: center; justify-content: center; }
.bf-flex-between { display: flex; align-items: center; justify-content: space-between; }
.bf-gap-8 { gap: 8px; }
.bf-gap-10 { gap: 10px; }
.bf-gap-12 { gap: 12px; }
.bf-gap-14 { gap: 14px; }
.bf-mt-8  { margin-top: 8px; }
.bf-mt-12 { margin-top: 12px; }
.bf-mt-16 { margin-top: 16px; }
.bf-mt-18 { margin-top: 18px; }
.bf-mb-8  { margin-bottom: 8px; }
.bf-mb-12 { margin-bottom: 12px; }
.bf-mb-16 { margin-bottom: 16px; }
.bf-mb-18 { margin-bottom: 18px; }

/* ---------- FONTS PRELOAD HOOK ----------
   Add to <head> of every page:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
   <link rel="stylesheet" href="bf-theme.css?v=2026.04.30">
*/
