/* ════════════════════════════════════════════════════════
   BULLETPROOF BUSINESS COMMUNITY  ·  v4 Classy Edition
   Premium editorial light theme — generous white space,
   refined typography, gold accents, deep navy sidebar
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Canvas */
  --bg:           #f5f6f8;
  --surface:      #ffffff;
  --surface2:     #f9fafb;
  --surface3:     #f2f4f7;
  --border:       #e3e8ef;
  --border-soft:  #edf0f5;

  /* Gold — warm, desaturated, magazine-grade */
  --gold:         #8a6000;
  --gold-mid:     #b8860b;
  --gold-warm:    #d4a017;
  --gold-light:   #fef8e7;
  --gold-border:  #f0d080;

  /* Navy accent */
  --navy:         #0f172a;
  --navy2:        #1e293b;
  --navy3:        #334155;

  /* Blue */
  --blue:         #1d4ed8;
  --blue-mid:     #2563eb;
  --blue-light:   #eff6ff;
  --blue-border:  #bfdbfe;

  /* Green */
  --green:        #166534;
  --green-light:  #f0fdf4;
  --green-border: #86efac;

  /* Red */
  --red:          #b91c1c;
  --red-light:    #fef2f2;

  /* Text scale */
  --ink:          #0f172a;
  --ink2:         #1e293b;
  --ink3:         #475569;
  --ink4:         #64748b;
  --ink5:         #94a3b8;

  /* Sidebar */
  --sb-bg:        #ffffff;
  --sb-bg2:       #f5f6f8;
  --sb-divider:   rgba(0,0,0,.09);
  --sb-w:         290px;

  /* Shape — generous rounding */
  --r-2:   2px;
  --r-4:   4px;
  --r-8:   8px;
  --r-12:  12px;
  --r-16:  16px;
  --r-20:  20px;
  --r-24:  24px;
  --r-32:  32px;
  --r-999: 999px;

  /* Elevation */
  --e0: none;
  --e1: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --e2: 0 4px 12px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.04);
  --e3: 0 8px 28px rgba(15,23,42,.09), 0 3px 8px rgba(15,23,42,.05);
  --e4: 0 16px 48px rgba(15,23,42,.11), 0 6px 16px rgba(15,23,42,.05);
  --e5: 0 28px 72px rgba(15,23,42,.13), 0 10px 24px rgba(15,23,42,.06);

  /* Typography */
  --font:    'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-d:  'DM Serif Display', Georgia, serif;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t-med:  240ms cubic-bezier(.4,0,.2,1);
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────── */
#bpbc-hub, #bpbc-hub *, #bpbc-hub *::before, #bpbc-hub *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#bpbc-hub a { text-decoration: none; color: inherit; }
#bpbc-hub img { display: block; max-width: 100%; }
#bpbc-hub button { font-family: var(--font); }

#bpbc-hub {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 600;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════ */
.bpbc-sidebar {
  width: var(--sb-w);
  min-width: var(--sb-w);
  background: var(--sb-bg);
  border-right: 1px solid rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--t-med), min-width var(--t-med);
  z-index: 100;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.1) transparent;
}
.bpbc-sidebar::-webkit-scrollbar { width: 3px; }
.bpbc-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 2px; }

/* ── Collapsed rail ── */
.bpbc-sidebar.collapsed { width: 64px; min-width: 64px; }
.bpbc-sidebar.collapsed .bpbc-sb-brand,
.bpbc-sidebar.collapsed .bpbc-sb-user-info,
.bpbc-sidebar.collapsed .bpbc-sb-lbl,
.bpbc-sidebar.collapsed .bpbc-sb-section-label,
.bpbc-sidebar.collapsed .bpbc-sb-badge { display: none; }
.bpbc-sidebar.collapsed .bpbc-sb-link { justify-content: center; padding: 11px 0; border-left-color: transparent; }
.bpbc-sidebar.collapsed .bpbc-sb-icon { font-size: 1.1rem; }
.bpbc-sidebar.collapsed .bpbc-sb-logo { justify-content: center; padding: 20px 0 12px; }
.bpbc-sidebar.collapsed .bpbc-sb-logo img { width: 28px; height: 28px; }
.bpbc-sidebar.collapsed .bpbc-sb-user { justify-content: center; padding: 12px 0; }
.bpbc-sidebar.collapsed .bpbc-sb-header { justify-content: center; border-bottom: none; padding: 0; }
.bpbc-sidebar.collapsed .bpbc-sb-close { margin: 14px auto 0; }

/* ── Sidebar header ── */
.bpbc-sb-header {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--sb-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.bpbc-sb-logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bpbc-sb-logo img {
  width: 28px; height: 28px;
  border-radius: 7px; object-fit: cover; flex-shrink: 0;
}
.bpbc-sb-brand { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.bpbc-sb-name {
  color: #0f172a; font-weight: 900; font-size: .92rem;
  letter-spacing: .01em; white-space: nowrap; line-height: 1.3;
}
.bpbc-sb-sub {
  color: rgba(0,0,0,.45); font-size: .65rem;
  letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; margin-top: 1px;
}

/* ── Sidebar close/toggle button — LARGE ── */
.bpbc-sb-close {
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.1);
  color: rgba(0,0,0,.5);
  width: 36px; height: 36px;
  border-radius: var(--r-8);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  line-height: 1;
}
.bpbc-sb-close:hover { background: rgba(0,0,0,.1); color: #000; transform: scale(1.05); }

/* ── User row ── */
.bpbc-sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sb-divider);
  flex-shrink: 0;
}
.bpbc-sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.12);
  flex-shrink: 0; object-fit: cover;
}
.bpbc-sb-uname { color: #0f172a; font-size: .88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpbc-sb-xp { color: #b8860b; font-size: .7rem; font-weight: 800; margin-top: 1px; }

/* ── Navigation ── */
.bpbc-sb-nav { flex: 1; padding: 10px 0 4px; overflow-y: auto; overflow-x: hidden; }
.bpbc-sb-section-label {
  color: rgba(0,0,0,.4); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .22em; font-weight: 900;
  padding: 18px 18px 7px;
}
.bpbc-sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  color: rgba(0,0,0,.65);
  font-size: .95rem; font-weight: 700;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  border-left: 3px solid transparent;
  white-space: nowrap; margin: 1px 0;
  letter-spacing: -.01em;
}
.bpbc-sb-link:hover { color: #000; background: rgba(0,0,0,.05); }
.bpbc-sb-link.active {
  color: #8a6000; background: rgba(138,96,0,.08);
  border-left-color: #8a6000; font-weight: 900;
}
.bpbc-sb-icon {
  font-size: 1.15rem; flex-shrink: 0; width: 24px; text-align: center;
  color: rgba(0,0,0,.35);
  transition: color var(--t-fast);
  font-style: normal;
}
.bpbc-sb-link:hover .bpbc-sb-icon { color: rgba(0,0,0,.7); }
.bpbc-sb-link.active .bpbc-sb-icon { color: #8a6000; }
.bpbc-sb-lbl  { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.bpbc-sb-badge {
  background: #ef4444; color: #fff;
  font-size: .58rem; font-weight: 800; letter-spacing: .02em;
  padding: 2px 7px; border-radius: var(--r-999); flex-shrink: 0; line-height: 1.5;
}
.bpbc-ch-link { font-size: .86rem; padding: 8px 18px; font-weight: 700; }

/* ── Footer ── */
.bpbc-sb-footer {
  border-top: 1px solid var(--sb-divider);
  padding: 12px 16px; flex-shrink: 0;
}
.bpbc-sb-logout {
  color: rgba(0,0,0,.45); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 2px; border-radius: var(--r-8);
  transition: color var(--t-fast);
}
.bpbc-sb-logout:hover { color: rgba(0,0,0,.85); }

/* ════════════════════════════════════════════════════════
   MAIN
   ════════════════════════════════════════════════════════ */
.bpbc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.bpbc-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 36px;
  height: 64px;
  display: flex; align-items: center; gap: 20px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--e1);
}

/* ── Topbar toggle — large, unmissable open/close button ── */
.bpbc-topbar-toggle {
  background: var(--sb-bg);
  border: none;
  color: rgba(255,255,255,.9);
  width: 56px; height: 56px;
  border-radius: var(--r-12);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  flex-shrink: 0;
  box-shadow: var(--e2);
  line-height: 1;
  letter-spacing: 0;
}
.bpbc-topbar-toggle:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  transform: translateY(-2px);
}
.bpbc-topbar-toggle:active { transform: scale(.94); }

.bpbc-topbar-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.bpbc-topbar-brand-name { font-size: .95rem; font-weight: 900; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.bpbc-topbar-brand-sub  { font-size: .65rem; color: var(--ink5); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.bpbc-topbar-title { font-weight: 900; font-size: 1.15rem; color: var(--ink); flex: 1; letter-spacing: -.01em; }

.bpbc-topbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bpbc-topbar-user {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-999);
  padding: 5px 16px 5px 5px;
}
.bpbc-topbar-user img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.bpbc-topbar-user-name { font-size: .88rem; font-weight: 800; color: var(--ink2); }
.bpbc-topbar-xp {
  font-size: .68rem; font-weight: 700; color: var(--gold);
  background: var(--gold-light); border: 1px solid var(--gold-border);
  padding: 3px 10px; border-radius: var(--r-999);
}

/* ── Page wrap ── */
.bpbc-page-wrap {
  padding: 44px 48px 80px;
  flex: 1; max-width: 1320px; width: 100%; margin: 0 auto;
}

/* ── Page header ── */
.bpbc-page-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.bpbc-page-header h1 {
  font-size: 2.5rem; font-weight: 900;
  color: var(--ink); letter-spacing: -.05em;
  margin-bottom: 10px; line-height: 1.08;
}
.bpbc-page-header p {
  font-size: 1.05rem; color: var(--ink3);
  max-width: 600px; line-height: 1.65; font-weight: 600;
}

/* ── Section heading ── */
.bpbc-section-heading {
  font-size: .82rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink3);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.bpbc-section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ════════════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════════════ */

/* ── Hero ── */
.bpbc-home-hero {
  background: var(--navy);
  border-radius: var(--r-24);
  padding: 56px 52px;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 40px;
  position: relative; overflow: hidden;
  box-shadow: var(--e4);
}
.bpbc-home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(212,160,23,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(29,78,216,.08) 0%, transparent 50%);
  pointer-events: none;
}
.bpbc-home-logo {
  width: 52px; height: 52px; border-radius: 13px; object-fit: cover;
  flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 0 2px rgba(212,160,23,.25);
}
.bpbc-home-hero-text { position: relative; z-index: 1; }
.bpbc-home-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(212,160,23,.14);
  border: 1px solid rgba(212,160,23,.28);
  color: #fcd34d;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-999);
  margin-bottom: 18px;
}
.bpbc-home-hero-text h1 {
  font-family: var(--font-d);
  color: #f8fafc;
  font-size: 3.4rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.06;
}
.bpbc-home-hero-text h1 em { font-style: normal; color: #fcd34d; font-family: var(--font-d); }
.bpbc-home-hero-text p { color: rgba(255,255,255,.72); font-size: 1rem; max-width: 480px; line-height: 1.65; font-weight: 500; }

/* ── Welcome bar ── */
.bpbc-welcome-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-bottom: 28px; box-shadow: var(--e1);
}
.bpbc-wb-left { display: flex; align-items: center; gap: 16px; }
.bpbc-wb-left img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; }
.bpbc-wb-name { font-size: 1.15rem; color: var(--ink); font-weight: 900; line-height: 1.3; }
.bpbc-wb-xp   { color: var(--gold-mid); font-size: .8rem; font-weight: 700; margin-top: 4px; }
.bpbc-wb-right { display: flex; flex-direction: column; gap: 7px; min-width: 240px; }
.bpbc-progress-label { font-size: .65rem; color: var(--ink5); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.bpbc-progress-bar   { height: 6px; background: var(--border); border-radius: var(--r-999); overflow: hidden; }
.bpbc-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-warm)); border-radius: var(--r-999); transition: width .6s var(--t-med); }
.bpbc-mb20 { margin-bottom: 20px; }
.bpbc-next-mission-link { display: inline-block; margin-top: 4px; font-size: .72rem; color: var(--ink5); font-weight: 500; transition: color var(--t-fast); }
.bpbc-next-mission-link:hover { color: var(--gold-mid); }
.bpbc-next-mission-link span { color: var(--gold-mid); font-weight: 700; }

/* ── Stats row ── */
.bpbc-stats-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.bpbc-stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 130px;
  box-shadow: var(--e1);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.bpbc-stat-pill:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.bpbc-sp-icon { font-size: 1.2rem; }
.bpbc-sp-val  { font-size: 1.75rem; font-weight: 900; color: var(--ink); letter-spacing: -.04em; }
.bpbc-sp-lbl  { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink4); font-weight: 900; margin-top: 3px; }

/* ── Featured row ── */
.bpbc-home-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 36px;
}
.bpbc-feat-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r-16);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--e1);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med), background var(--t-med);
}
.bpbc-feat-card:hover { transform: translateY(-4px); box-shadow: var(--e3); }
.bpbc-feat-channels:hover { background: var(--blue-light); border-color: var(--blue-border); }
.bpbc-feat-missions:hover  { background: var(--gold-light);  border-color: var(--gold-border); }
.bpbc-feat-trust:hover     { background: var(--green-light); border-color: var(--green-border); }
.bpbc-feat-icon  { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }
.bpbc-feat-title { color: var(--ink); font-weight: 900; font-size: 1.1rem; line-height: 1.3; }
.bpbc-feat-sub   { color: var(--ink3); font-size: .88rem; margin-top: 4px; line-height: 1.5; font-weight: 600; }
.bpbc-feat-arrow { margin-left: auto; color: var(--ink5); font-size: 1.1rem; transition: transform var(--t-fast), color var(--t-fast); flex-shrink: 0; }
.bpbc-feat-card:hover .bpbc-feat-arrow { transform: translateX(5px); color: var(--ink); }

/* ── Nav grid ── */
.bpbc-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 14px; margin-bottom: 36px;
}
.bpbc-home-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--e1);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med), background var(--t-med);
}
.bpbc-home-card:hover { transform: translateY(-4px); box-shadow: var(--e3); border-color: var(--blue-border); background: var(--blue-light); }
.bpbc-hc-icon  { font-size: 1.5rem; margin-bottom: 2px; line-height: 1; }
.bpbc-hc-title { color: var(--ink); font-weight: 900; font-size: 1rem; letter-spacing: -.01em; }
.bpbc-hc-desc  { color: var(--ink3); font-size: .88rem; line-height: 1.5; font-weight: 600; }

/* ── Channel preview ── */
.bpbc-channel-preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px; margin-bottom: 36px;
}
.bpbc-ch-preview {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-16); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--e1); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.bpbc-ch-preview:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--blue-border); }
.bpbc-chp-top  { display: flex; align-items: center; gap: 9px; }
.bpbc-chp-emoji{ font-size: .92rem; }
.bpbc-chp-name { color: var(--ink); font-weight: 900; font-size: .96rem; flex: 1; }
.bpbc-chp-count{ color: var(--ink5); font-size: .63rem; font-weight: 600; background: var(--surface3); padding: 2px 8px; border-radius: var(--r-999); }
.bpbc-chp-desc { color: var(--ink2); font-size: .88rem; line-height: 1.5; font-weight: 600; }
.bpbc-chp-last { color: var(--ink5); font-size: .7rem; border-top: 1px solid var(--border-soft); padding-top: 8px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpbc-chp-last strong { color: var(--ink3); }

/* ════════════════════════════════════════════════════════
   CARDS / GENERIC BOXES
   ════════════════════════════════════════════════════════ */
.bpbc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-16); box-shadow: var(--e1); overflow: hidden; }
.bpbc-card-header {
  padding: 22px 26px 16px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bpbc-card-header h2 { font-size: 1.08rem; font-weight: 900; color: var(--ink); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.bpbc-card-body { padding: 24px 26px; }
.bpbc-pill {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-999);
  background: var(--gold-light); color: var(--gold); border: 1px solid var(--gold-border);
}

/* ════════════════════════════════════════════════════════
   DASHBOARD BOX  [bpbc_dashboard]
   ════════════════════════════════════════════════════════ */
.bpbc-dashboard-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; padding: 4px 0;
}
.bpbc-dash-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  padding: 28px 30px;
  box-shadow: var(--e1);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.bpbc-dash-box:hover { transform: translateY(-4px); box-shadow: var(--e3); }
.bpbc-db-icon  { font-size: 2rem; line-height: 1; }
.bpbc-db-title { font-size: 1.15rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; line-height: 1.25; }
.bpbc-db-desc  { font-size: .93rem; color: var(--ink3); line-height: 1.65; flex: 1; font-weight: 600; }
.bpbc-db-meta  { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-soft); margin-top: 4px; }
.bpbc-db-stat  { font-size: .78rem; font-weight: 700; color: var(--gold-mid); }
.bpbc-db-link  { font-size: .86rem; font-weight: 800; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--t-fast); }
.bpbc-db-link:hover { gap: 8px; text-decoration: underline; }
.bpbc-db-tag { font-size: .6rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-999); background: var(--blue-light); color: var(--blue); }
.bpbc-db-tag.gold  { background: var(--gold-light);  color: var(--gold); }
.bpbc-db-tag.green { background: var(--green-light); color: var(--green); }

/* ════════════════════════════════════════════════════════
   MISSIONS
   ════════════════════════════════════════════════════════ */
.bpbc-mission-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.bpbc-ms-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-16); padding: 18px 24px;
  flex: 1 1 130px; text-align: center; box-shadow: var(--e1);
}
.bpbc-ms-val { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold-mid); letter-spacing: -.03em; }
.bpbc-ms-lbl { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink5); margin-top: 4px; font-weight: 700; }

.bpbc-missions-list { display: flex; flex-direction: column; gap: 14px; }
.bpbc-mission-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-16); overflow: hidden; box-shadow: var(--e1);
  transition: box-shadow var(--t-med);
}
.bpbc-mission-card:hover { box-shadow: var(--e3); }
.bpbc-mission-done { border-color: var(--green-border); background: var(--green-light); }
.bpbc-mc-header {
  background: var(--surface2); padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.bpbc-mc-left  { display: flex; align-items: center; gap: 14px; }
.bpbc-mc-badge { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.bpbc-mc-title { color: var(--ink); font-weight: 900; font-size: 1rem; letter-spacing: -.01em; }
.bpbc-mc-xp    { color: var(--gold-mid); font-size: .7rem; font-weight: 600; margin-top: 2px; }
.bpbc-status-done {
  color: var(--green); font-size: .72rem; font-weight: 700;
  background: var(--green-light); padding: 5px 13px;
  border-radius: var(--r-999); border: 1px solid var(--green-border);
}
.bpbc-status-todo {
  color: var(--ink5); font-size: .72rem; font-weight: 600;
  background: var(--surface3); padding: 5px 13px;
  border-radius: var(--r-999); border: 1px solid var(--border);
}
.bpbc-mc-body { padding: 22px 22px; }
.bpbc-mc-body p { color: var(--ink3); font-size: .87rem; margin-bottom: 14px; line-height: 1.7; }
.bpbc-mc-hint {
  background: var(--gold-light); border: 1px solid var(--gold-border);
  border-radius: var(--r-8); padding: 11px 15px;
  font-size: .79rem; color: #7a5200; margin-bottom: 16px; line-height: 1.6;
}
.bpbc-mission-form { display: flex; flex-direction: column; gap: 12px; }
.bpbc-mission-textarea {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-8); color: var(--ink);
  padding: 12px 14px; font-family: var(--font); font-size: .85rem;
  resize: vertical; width: 100%; line-height: 1.6;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.bpbc-mission-textarea:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.bpbc-form-row  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bpbc-form-msg  { font-size: .77rem; color: var(--green); font-weight: 600; }
.bpbc-saved-answer {
  background: var(--green-light); border: 1px solid var(--green-border);
  border-radius: var(--r-8); padding: 13px 16px; font-size: .83rem; color: var(--ink3);
}
.bpbc-answer-date { display: block; font-size: .64rem; color: var(--ink5); margin-top: 5px; }
.bpbc-login-prompt { font-size: .83rem; color: var(--ink4); }
.bpbc-login-prompt a { color: var(--blue); font-weight: 600; }

/* ════════════════════════════════════════════════════════
   CHANNELS
   ════════════════════════════════════════════════════════ */
.bpbc-channels-layout {
  display: flex; height: calc(100vh - 150px); min-height: 500px;
  border: 1px solid var(--border); border-radius: var(--r-16);
  overflow: hidden; box-shadow: var(--e2);
}
.bpbc-ch-sidebar {
  width: 212px; min-width: 212px; background: var(--surface2);
  border-right: 1px solid var(--border); overflow-y: auto; flex-shrink: 0;
}
.bpbc-ch-sb-heading {
  padding: 14px 14px 8px;
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; color: var(--ink5);
  border-bottom: 1px solid var(--border);
}
.bpbc-ch-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  color: var(--ink3); font-size: .79rem; font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-8) var(--r-8) 0; margin: 2px 6px 2px 0;
}
.bpbc-ch-item:hover { background: var(--border-soft); color: var(--ink); }
.bpbc-ch-item.active { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.bpbc-ch-emoji { font-size: .86rem; }
.bpbc-ch-name  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpbc-ch-main  { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.bpbc-ch-topbar {
  background: var(--surface); padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.bpbc-ch-tb-icon { font-size: 1.1rem; }
.bpbc-ch-tb-name { font-weight: 700; font-size: .9rem; color: var(--ink); }
.bpbc-ch-tb-desc { color: var(--ink5); font-size: .75rem; flex: 1; border-left: 1px solid var(--border); padding-left: 14px; margin-left: 4px; }
.bpbc-ch-messages { flex: 1; overflow-y: auto; padding: 20px 20px 10px; display: flex; flex-direction: column; gap: 4px; }
.bpbc-ch-welcome { text-align: center; padding: 32px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.bpbc-ch-welcome-icon { font-size: 2.5rem; margin-bottom: 10px; }
.bpbc-ch-welcome h3 { color: var(--ink); font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.bpbc-ch-welcome p  { color: var(--ink4); font-size: .82rem; }
.bpbc-msg-list { display: flex; flex-direction: column; gap: 2px; }
.bpbc-msg { display: flex; gap: 12px; padding: 7px 10px; border-radius: var(--r-8); transition: background var(--t-fast); }
.bpbc-msg:hover { background: var(--surface2); }
.bpbc-msg-avatar { width: 33px; height: 33px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--border); object-fit: cover; }
.bpbc-msg-right { flex: 1; min-width: 0; }
.bpbc-msg-meta  { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.bpbc-msg-user  { color: var(--ink); font-weight: 700; font-size: .82rem; }
.bpbc-msg-time  { color: var(--ink5); font-size: .63rem; }
.bpbc-msg-text  { color: var(--ink3); font-size: .85rem; line-height: 1.55; word-break: break-word; }
.bpbc-ch-input-wrap {
  border-top: 1px solid var(--border); padding: 14px 18px;
  background: var(--surface); display: flex; align-items: flex-end; gap: 12px; flex-shrink: 0;
}
.bpbc-ch-input-avatar { width: 33px; height: 33px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.bpbc-ch-input-box {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-8); display: flex; align-items: flex-end; overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.bpbc-ch-input-box:focus-within { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.bpbc-ch-textarea {
  flex: 1; background: none; border: none; color: var(--ink);
  padding: 11px 14px; font-family: var(--font); font-size: .85rem; resize: none; max-height: 120px; outline: none;
}
.bpbc-ch-send { background: none; border: none; color: var(--ink5); padding: 10px 14px; cursor: pointer; font-size: 1.05rem; transition: color var(--t-fast); }
.bpbc-ch-send:hover { color: var(--blue); }
.bpbc-ch-login-prompt { border-top: 1px solid var(--border); padding: 16px 20px; text-align: center; color: var(--ink4); font-size: .84rem; flex-shrink: 0; }
.bpbc-ch-login-prompt a { color: var(--blue); font-weight: 600; }
.bpbc-ch-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink5); font-size: .88rem; }

/* ════════════════════════════════════════════════════════
   DISCUSSIONS
   ════════════════════════════════════════════════════════ */
.bpbc-disc-intro {
  background: var(--blue-light); border: 1px solid var(--blue-border);
  border-radius: var(--r-8); padding: 14px 20px; margin-bottom: 24px;
  font-size: .85rem; color: var(--ink2); line-height: 1.65;
}
.bpbc-disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 16px; margin-bottom: 36px; }
.bpbc-disc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-16); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--e1); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.bpbc-disc-card:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--blue-border); }
.bpbc-disc-cat  { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--blue); }
.bpbc-disc-q    { color: var(--ink); font-size: .87rem; line-height: 1.6; flex: 1; font-weight: 500; }
.bpbc-disc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ════════════════════════════════════════════════════════
   TRUST GUIDE
   ════════════════════════════════════════════════════════ */
.bpbc-trust-disclaimer {
  background: var(--gold-light); border: 1px solid var(--gold-border);
  border-radius: var(--r-8); padding: 13px 18px;
  font-size: .82rem; color: #7a5200; margin-bottom: 20px;
}
.bpbc-trust-intro {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-12); padding: 22px 26px; margin-bottom: 28px;
  color: var(--ink3); font-size: .9rem; font-weight: 500; line-height: 1.75; box-shadow: var(--e1);
}
.bpbc-trust-step {
  display: flex; gap: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-16);
  padding: 24px 26px; margin-bottom: 14px; box-shadow: var(--e1);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.bpbc-trust-step:hover { transform: translateY(-2px); box-shadow: var(--e3); }
.bpbc-ts-num {
  min-width: 40px; width: 40px; height: 40px;
  background: var(--navy); color: #fcd34d; font-weight: 800; font-size: .88rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; box-shadow: 0 2px 8px rgba(15,23,42,.3);
}
.bpbc-ts-content { flex: 1; min-width: 0; }
.bpbc-ts-title { color: var(--ink); font-size: .97rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.bpbc-ts-body  { color: var(--ink3); font-size: .86rem; font-weight: 500; line-height: 1.7; margin-bottom: 12px; }
.bpbc-ts-body strong { color: var(--ink); }
.bpbc-ts-action {
  background: var(--gold-light); border: 1px solid var(--gold-border);
  border-radius: var(--r-8); padding: 11px 15px;
  font-size: .8rem; color: #7a5200; margin-bottom: 10px; line-height: 1.55;
}
.bpbc-ts-resources { font-size: .79rem; color: var(--ink3); }
.bpbc-ts-resources ul { margin-left: 18px; }
.bpbc-ts-resources li { margin-bottom: 5px; }
.bpbc-trust-cta {
  background: var(--navy);
  border-radius: var(--r-24); padding: 40px 36px;
  text-align: center; margin-top: 28px; box-shadow: var(--e4);
}
.bpbc-trust-cta h3 { color: #fcd34d; font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }
.bpbc-trust-cta p  { color: rgba(255,255,255,.45); font-size: .87rem; margin-bottom: 22px; }

/* ════════════════════════════════════════════════════════
   CREDIT PAGES
   ════════════════════════════════════════════════════════ */
.bpbc-credit-hero {
  background: var(--navy); border-radius: var(--r-24);
  padding: 40px 40px; margin-bottom: 32px; color: #f8fafc; box-shadow: var(--e4);
  position: relative; overflow: hidden;
}
.bpbc-credit-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(212,160,23,.1) 0%, transparent 60%);
  pointer-events: none;
}
.bpbc-credit-hero h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -.03em; line-height: 1.2; position: relative; }
.bpbc-credit-hero h2 span { color: #fcd34d; }
.bpbc-credit-hero p  { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 580px; line-height: 1.7; position: relative; }
.bpbc-credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-bottom: 28px; }
.bpbc-credit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-16); overflow: hidden; box-shadow: var(--e1);
  display: flex; flex-direction: column; transition: transform var(--t-med), box-shadow var(--t-med);
}
.bpbc-credit-card:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.bpbc-cc-top { padding: 20px 22px 16px; border-bottom: 1px solid var(--border-soft); }
.bpbc-cc-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.bpbc-cc-icon { font-size: 1.55rem; }
.bpbc-cc-title { font-size: .96rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.bpbc-cc-subtitle { font-size: .73rem; color: var(--ink5); font-weight: 500; margin-top: 2px; }
.bpbc-cc-body { padding: 18px 22px; flex: 1; }
.bpbc-cc-body p { font-size: .85rem; color: var(--ink3); line-height: 1.7; margin-bottom: 14px; }
.bpbc-cc-body p:last-child { margin-bottom: 0; }
.bpbc-cc-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bpbc-cc-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: .84rem; color: var(--ink3); line-height: 1.5; }
.bpbc-cc-step-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.bpbc-cc-step-num.gold { background: var(--gold-light); color: var(--gold); }
.bpbc-score-meter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-16); padding: 24px 28px; margin-bottom: 22px; box-shadow: var(--e1); }
.bpbc-score-ranges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.bpbc-score-range  { flex: 1 1 90px; padding: 13px 14px; border-radius: var(--r-12); text-align: center; font-size: .72rem; font-weight: 700; }
.bpbc-score-range .bpbc-sr-range { display: block; font-size: .84rem; font-weight: 900; margin-bottom: 4px; letter-spacing: -.02em; }
.bpbc-score-range.poor        { background: var(--red-light); color: var(--red); }
.bpbc-score-range.fair        { background: #fff7ed; color: #c2410c; }
.bpbc-score-range.good        { background: #fefce8; color: #a16207; }
.bpbc-score-range.very-good   { background: var(--green-light); color: var(--green); }
.bpbc-score-range.exceptional { background: var(--blue-light); color: var(--blue); }
.bpbc-tip-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.bpbc-tip-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-12); padding: 16px 20px;
  box-shadow: var(--e1); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.bpbc-tip-item:hover { transform: translateX(3px); box-shadow: var(--e2); }
.bpbc-tip-icon  { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.bpbc-tip-title { font-size: .87rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -.01em; }
.bpbc-tip-desc  { font-size: .81rem; color: var(--ink3); line-height: 1.65; }

/* ════════════════════════════════════════════════════════
   AUTH PAGE
   ════════════════════════════════════════════════════════ */
.bpbc-auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #eef2ff 0%, #f5f6f8 50%, #f0f4ff 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
.bpbc-auth-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-24);
  padding: 48px 44px 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--e5);
}
.bpbc-auth-logo { text-align: center; margin-bottom: 32px; }
.bpbc-auth-logo img {
  width: 44px; height: 44px;
  border-radius: 11px; object-fit: cover;
  display: inline-block;
  box-shadow: var(--e2);
  margin-bottom: 16px;
}
.bpbc-auth-logo h2 {
  font-family: var(--font-d);
  color: var(--ink); font-size: 1.55rem;
  font-weight: 500; font-style: italic;
  margin-bottom: 5px; letter-spacing: -.01em;
}
.bpbc-auth-logo h2 em { font-style: normal; color: var(--gold-mid); }
.bpbc-auth-logo p { color: var(--ink5); font-size: .84rem; }

.bpbc-auth-tabs {
  display: flex; margin-bottom: 28px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-12); padding: 4px;
}
.bpbc-auth-tab {
  flex: 1; text-align: center; padding: 9px 10px;
  font-size: .79rem; font-weight: 600; color: var(--ink5);
  border-radius: var(--r-8); cursor: pointer;
  transition: all var(--t-fast); border: none; background: none; font-family: var(--font);
}
.bpbc-auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--e1); }

.bpbc-auth-form  { display: flex; flex-direction: column; gap: 16px; }
.bpbc-auth-panel { display: none; }
.bpbc-auth-panel.active { display: block; }
.bpbc-field-group { display: flex; flex-direction: column; gap: 6px; }
.bpbc-field-label { font-size: .78rem; font-weight: 600; color: var(--ink2); }
.bpbc-field-input {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-8); padding: 12px 15px;
  font-family: var(--font); font-size: .89rem; color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast); width: 100%;
}
.bpbc-field-input:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: var(--surface); }
.bpbc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bpbc-auth-forgot { font-size: .75rem; color: var(--blue); font-weight: 600; }
.bpbc-auth-forgot:hover { text-decoration: underline; }
.bpbc-auth-msg  { font-size: .8rem; padding: 12px 16px; border-radius: var(--r-8); display: none; margin-bottom: 2px; line-height: 1.5; }
.bpbc-auth-msg.error   { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; display: block; }
.bpbc-auth-msg.success { background: var(--green-light); color: var(--green); border: 1px solid var(--green-border); display: block; }
.bpbc-auth-footer { text-align: center; margin-top: 22px; font-size: .78rem; color: var(--ink5); }
.bpbc-auth-footer a { color: var(--blue); font-weight: 700; }
.bpbc-auth-spinner { display: none; }
.bpbc-auth-spinner.active { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: bpbcSpin .65s linear infinite; }
@keyframes bpbcSpin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */
.bpbc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-8);
  font-family: var(--font); font-size: .95rem; font-weight: 800;
  letter-spacing: -.005em; cursor: pointer; border: 1px solid transparent;
  transition: all var(--t-fast); line-height: 1;
}
.bpbc-btn:hover { text-decoration: none; }
.bpbc-btn-gold  { background: var(--gold-mid); color: #fff; border-color: var(--gold-mid); }
.bpbc-btn-gold:hover  { background: var(--gold); box-shadow: 0 4px 14px rgba(180,134,11,.3); transform: translateY(-1px); }
.bpbc-btn-blue  { background: var(--blue-mid); color: #fff; border-color: var(--blue-mid); }
.bpbc-btn-blue:hover  { background: var(--blue); box-shadow: 0 4px 14px rgba(37,99,235,.3); transform: translateY(-1px); }
.bpbc-btn-outline { background: transparent; color: var(--blue); border-color: var(--blue-border); }
.bpbc-btn-outline:hover { background: var(--blue-light); transform: translateY(-1px); }
.bpbc-btn-ghost { background: var(--surface2); color: var(--ink3); border-color: var(--border); }
.bpbc-btn-ghost:hover { background: var(--surface3); }
.bpbc-btn-sm { padding: 8px 16px; font-size: .82rem; border-radius: var(--r-4); }
.bpbc-btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--r-12); }

/* Alerts */
.bpbc-alert { border-radius: var(--r-8); padding: 14px 20px; font-size: .86rem; margin-bottom: 20px; line-height: 1.6; }
.bpbc-alert-info    { background: var(--blue-light);  border: 1px solid var(--blue-border);  color: #1e40af; }
.bpbc-alert-success { background: var(--green-light); border: 1px solid var(--green-border); color: var(--green); }
.bpbc-alert-warning { background: var(--gold-light);  border: 1px solid var(--gold-border);  color: #7a5200; }
.bpbc-alert-info a, .bpbc-alert-warning a { font-weight: 700; color: inherit; text-decoration: underline; }

/* Shortcode wrap */
.bpbc-sc-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-16); padding: 28px; box-shadow: var(--e1); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bpbc-home-featured { grid-template-columns: 1fr; }
  .bpbc-page-wrap { padding: 32px 28px 64px; }
}
@media (max-width: 1024px) {
  .bpbc-channels-layout { height: auto; flex-direction: column; }
  .bpbc-ch-sidebar { width: 100%; min-width: unset; border-right: none; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .bpbc-ch-sb-heading { width: 100%; }
  .bpbc-ch-item { flex: 0 1 auto; border-left: none; border-bottom: 2px solid transparent; border-radius: var(--r-8); padding: 6px 12px; margin: 0; }
  .bpbc-ch-item.active { border-bottom-color: var(--blue); border-left-color: transparent; }
  .bpbc-ch-messages { max-height: 380px; }
}
@media (max-width: 768px) {
  #bpbc-hub { flex-direction: column; }
  .bpbc-sidebar { position: fixed; top: 0; left: -100%; height: 100vh; width: 280px; transition: left var(--t-med); z-index: 999; border-right: 1px solid rgba(0,0,0,.1); }
  .bpbc-sidebar.mobile-open { left: 0; }
  .bpbc-sidebar.collapsed { width: 280px; min-width: 280px; }
  .bpbc-sidebar.collapsed .bpbc-sb-brand, .bpbc-sidebar.collapsed .bpbc-sb-user-info,
  .bpbc-sidebar.collapsed .bpbc-sb-lbl,   .bpbc-sidebar.collapsed .bpbc-sb-section-label,
  .bpbc-sidebar.collapsed .bpbc-sb-badge  { display: unset; }
  .bpbc-page-wrap { padding: 20px 16px 56px; }
  .bpbc-feat-card { padding: 18px 18px; gap: 14px; }
  .bpbc-stat-pill { padding: 16px 18px; }
  .bpbc-welcome-bar { padding: 18px 18px; }
  .bpbc-section-heading { font-size: .78rem; }
  .bpbc-channel-preview-row { grid-template-columns: 1fr; }
  .bpbc-page-header h1 { font-size: 1.8rem; font-weight: 900; }
  .bpbc-home-hero { flex-direction: column; text-align: center; padding: 32px 22px; gap: 18px; }
  .bpbc-home-hero-text h1 { font-size: 2.3rem; }
  .bpbc-home-logo { margin: 0 auto; }
  .bpbc-home-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bpbc-topbar { padding: 0 16px; height: 64px; }
  .bpbc-topbar-logo, .bpbc-topbar-brand-name, .bpbc-topbar-brand-sub { display: none; }
  .bpbc-auth-box { padding: 32px 24px; }
  .bpbc-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bpbc-home-grid { grid-template-columns: repeat(2, 1fr); }
  .bpbc-disc-grid { grid-template-columns: 1fr; }
  .bpbc-credit-grid { grid-template-columns: 1fr; }
  .bpbc-dashboard-wrap { grid-template-columns: 1fr; }
  .bpbc-stats-bar .bpbc-stat-pill { flex: 1 1 calc(50% - 14px); }
}

/* ════════════════════════════════════════════════════════
   HOME — Hero CTA row
   ════════════════════════════════════════════════════════ */
.bpbc-hero-cta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
}

/* ════════════════════════════════════════════════════════
   AI TOOLS SECTION
   ════════════════════════════════════════════════════════ */
.bpbc-ai-section { margin-bottom: 40px; }

.bpbc-ai-hero {
  background: var(--navy);
  border-radius: var(--r-20) var(--r-20) 0 0;
  padding: 36px 40px 32px;
  position: relative; overflow: hidden;
}
.bpbc-ai-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 95% 50%, rgba(37,99,235,.18) 0%, transparent 60%);
  pointer-events: none;
}
.bpbc-ai-hero-label {
  font-size: .62rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: #60a5fa;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.bpbc-ai-hero h2 {
  font-family: var(--font-d);
  color: #f8fafc; font-size: 2rem;
  font-weight: 500; font-style: italic;
  margin-bottom: 12px; letter-spacing: -.01em; line-height: 1.1;
  position: relative; z-index: 1;
}
.bpbc-ai-hero h2 em { font-style: normal; color: #fcd34d; }
.bpbc-ai-hero p {
  color: rgba(255,255,255,.45); font-size: .9rem;
  max-width: 580px; line-height: 1.7; position: relative; z-index: 1;
}

.bpbc-ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-20) var(--r-20);
  overflow: hidden;
}
.bpbc-ai-tool-card {
  padding: 24px 26px 22px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--t-med), transform var(--t-med);
  position: relative;
}
.bpbc-ai-tool-card:nth-child(3n) { border-right: none; }
.bpbc-ai-tool-card:nth-child(n+4) { border-bottom: none; }
.bpbc-ai-tool-card:hover { background: var(--surface2); }

.bpbc-ai-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bpbc-ai-icon { font-size: 1.1rem; color: var(--ink4); font-style: normal; }
.bpbc-ai-tag {
  font-size: .57rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-999);
  white-space: nowrap;
}
.bpbc-ai-tag-blue  { background: var(--blue-light);  color: var(--blue); }
.bpbc-ai-tag-gold  { background: var(--gold-light);  color: var(--gold); }
.bpbc-ai-tag-green { background: var(--green-light); color: var(--green); }
.bpbc-ai-tag-navy  { background: var(--surface3);    color: var(--ink3); }

.bpbc-ai-card-title {
  font-size: .92rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.25;
}
.bpbc-ai-card-desc {
  font-size: .8rem; color: var(--ink3); line-height: 1.65; flex: 1;
}
.bpbc-ai-card-link {
  font-size: .74rem; font-weight: 700; color: var(--blue);
  margin-top: 4px; transition: gap var(--t-fast);
}
.bpbc-ai-tool-card:hover .bpbc-ai-card-link { text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   FOUR PILLARS
   ════════════════════════════════════════════════════════ */
.bpbc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--e2);
}
.bpbc-pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  transition: background var(--t-med);
  position: relative;
}
.bpbc-pillar:last-child { border-right: none; }
.bpbc-pillar:hover { background: var(--surface2); }
.bpbc-pillar::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-warm));
}
.bpbc-pillar-num {
  font-size: .6rem; font-weight: 800; letter-spacing: .2em;
  color: var(--ink5); text-transform: uppercase;
}
.bpbc-pillar-icon {
  font-size: 1.4rem; color: var(--gold-mid);
  font-style: normal; line-height: 1;
}
.bpbc-pillar-title {
  font-size: .96rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.25;
}
.bpbc-pillar-body {
  font-size: .81rem; color: var(--ink3);
  line-height: 1.7; flex: 1;
}
.bpbc-pillar-link {
  font-size: .75rem; font-weight: 700; color: var(--blue);
  margin-top: 4px; display: inline-block;
  transition: color var(--t-fast);
}
.bpbc-pillar-link:hover { color: var(--navy); text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   MEMBER SPOTLIGHT
   ════════════════════════════════════════════════════════ */
.bpbc-spotlight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.bpbc-spotlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  padding: 28px 26px 24px;
  box-shadow: var(--e1);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform var(--t-med), box-shadow var(--t-med);
  position: relative;
}
.bpbc-spotlight-card::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 22px;
  font-family: var(--font-d);
  font-size: 4rem; line-height: 1;
  color: var(--gold-light);
  pointer-events: none;
}
.bpbc-spotlight-card:hover { transform: translateY(-3px); box-shadow: var(--e3); }
.bpbc-spotlight-quote {
  font-size: .86rem; color: var(--ink2);
  line-height: 1.75; font-style: italic;
  padding-top: 24px; flex: 1;
}
.bpbc-spotlight-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}
.bpbc-spotlight-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fcd34d; font-weight: 800; font-size: .86rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bpbc-spotlight-name { font-size: .83rem; font-weight: 700; color: var(--ink); }
.bpbc-spotlight-role { font-size: .72rem; color: var(--ink5); margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   DISCUSSIONS — enhanced
   ════════════════════════════════════════════════════════ */
.bpbc-disc-how {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-16);
  overflow: hidden; margin-bottom: 32px; box-shadow: var(--e1);
}
.bpbc-disc-how-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-size: .84rem; color: var(--ink2); line-height: 1.6;
}
.bpbc-disc-how-item:last-child { border-right: none; }
.bpbc-disc-how-item strong { color: var(--ink); font-weight: 700; font-size: .84rem; display: block; margin-bottom: 4px; }
.bpbc-disc-how-num {
  font-size: .62rem; font-weight: 800; letter-spacing: .16em;
  color: var(--ink5); background: var(--surface3);
  border: 1px solid var(--border);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bpbc-disc-category-block { margin-bottom: 32px; }
.bpbc-disc-cat-heading {
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .2em; padding: 8px 0; margin-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.bpbc-disc-cat-gold  { color: var(--gold);  border-bottom-color: var(--gold-border); }
.bpbc-disc-cat-blue  { color: var(--blue);  border-bottom-color: var(--blue-border); }
.bpbc-disc-cat-green { color: var(--green); border-bottom-color: var(--green-border); }
.bpbc-disc-cat-navy  { color: var(--navy3); border-bottom-color: var(--border); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE — new sections
   ════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bpbc-pillars-grid     { grid-template-columns: repeat(2,1fr); }
  .bpbc-ai-tools-grid    { grid-template-columns: repeat(2,1fr); }
  .bpbc-spotlight-row    { grid-template-columns: 1fr; }
  .bpbc-ai-tool-card:nth-child(3n)   { border-right: 1px solid var(--border); }
  .bpbc-ai-tool-card:nth-child(2n)   { border-right: none; }
  .bpbc-ai-tool-card:nth-child(n+5)  { border-bottom: none; }
  .bpbc-ai-tool-card:nth-child(n+4):nth-child(-n+4) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .bpbc-pillars-grid   { grid-template-columns: 1fr; }
  .bpbc-pillar         { border-right: none; border-bottom: 1px solid var(--border); }
  .bpbc-pillar:last-child { border-bottom: none; }
  .bpbc-ai-tools-grid  { grid-template-columns: 1fr; }
  .bpbc-ai-tool-card   { border-right: none; }
  .bpbc-disc-how       { grid-template-columns: 1fr; }
  .bpbc-disc-how-item  { border-right: none; border-bottom: 1px solid var(--border); }
  .bpbc-disc-how-item:last-child { border-bottom: none; }
  .bpbc-hero-cta-row   { flex-direction: column; align-items: flex-start; }
}
