  .bb-page {
    --bb-bg0: #0b1020;
    --bb-bg1: #121a33;
    --bb-accent: #6366f1;
    --bb-accent2: #22d3ee;
    --bb-surface: rgba(255, 255, 255, 0.06);
    --bb-surface2: rgba(255, 255, 255, 0.92);
    --bb-border: rgba(255, 255, 255, 0.12);
    --bb-text: #0f172a;
    --bb-muted: #64748b;
    --bb-radius: 16px;
    --bb-radius-sm: 12px;
    --bb-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
    position: relative;
    padding: 56px 0 96px;
    min-height: 70vh;
    font-family: "Sora", system-ui, sans-serif;
    color: var(--bb-text);
  }
  .bb-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(900px 420px at 12% -8%, rgba(99, 102, 241, 0.45), transparent 60%),
      radial-gradient(700px 380px at 88% 12%, rgba(34, 211, 238, 0.35), transparent 55%),
      linear-gradient(165deg, var(--bb-bg0), var(--bb-bg1) 48%);
    pointer-events: none;
  }
  .bb-wrap { position: relative; z-index: 1; }
  .bb-hero { max-width: 720px; margin-bottom: 28px; color: #e2e8f0; }
  .bb-eyebrow {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 8px;
  }
  .bb-title {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.12;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    /* Global main.css sets h1 { color: var(--heading-color) }; force hero contrast */
    color: #f8fafc;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
  .bb-lead {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.82);
    max-width: 56ch;
  }
  .bb-shell {
    background: var(--bb-surface2);
    border-radius: calc(var(--bb-radius) + 6px);
    box-shadow: var(--bb-shadow);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    overflow: hidden;
  }
  .bb-form { padding: clamp(20px, 3vw, 36px); }
  .bb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--bb-radius);
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  }
  .bb-card-pad { padding: clamp(18px, 2.5vw, 26px); }
  .bb-modules-card { background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
  .bb-section-title {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
  }
  .bb-muted { color: var(--bb-muted); }
  .bb-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 8px;
  }
  .bb-input {
    border-radius: var(--bb-radius-sm);
    border: 1px solid #cbd5e1;
    padding: 0.62rem 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .bb-input:focus {
    border-color: var(--bb-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  }
  .bb-hint { display: block; margin-top: 8px; color: var(--bb-muted); font-size: 0.82rem; }
  .bb-name-status { margin-top: 10px; font-size: 0.88rem; min-height: 1.2em; }
  .bb-name-status.ok { color: #059669; font-weight: 500; }
  .bb-name-status.bad { color: #dc2626; font-weight: 500; }
  .bb-name-status.idle { color: var(--bb-muted); }

  .bb-file { position: relative; }
  .bb-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
  }
  .bb-file-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px dashed #94a3b8;
    border-radius: var(--bb-radius-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin: 0;
    background: #f8fafc;
    pointer-events: none;
  }
  .bb-file-label:hover { border-color: var(--bb-accent); background: #f1f5f9; }
  .bb-file-icon { font-size: 1.35rem; color: var(--bb-accent); }
  .bb-file-text { display: flex; flex-direction: column; gap: 2px; }
  .bb-file-text strong { font-weight: 600; color: #0f172a; }
  .bb-file-sub { font-size: 0.82rem; color: var(--bb-muted); }

  .bb-module-list { display: flex; flex-direction: column; gap: 10px; }
  .bb-module {
    border: 1px solid #e2e8f0;
    border-radius: var(--bb-radius-sm);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .bb-module[open] {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.08);
  }
  .bb-module-core {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%);
  }
  .bb-module-core.bb-module[open] {
    border-color: #059669;
    box-shadow: 0 12px 36px rgba(5, 150, 105, 0.14);
  }
  .bb-module-core .bb-module-name { color: #065f46; }
  .bb-module-core .bb-module-key { color: #059669; font-family: inherit; }
  .bb-module-core .bb-module-body {
    background: #f0fdf4;
    border-top-color: #bbf7d0;
  }
  .bb-price-free {
    background: linear-gradient(135deg, #10b981, #047857) !important;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
  .bb-module-core .bb-module-checkbox { accent-color: #059669; cursor: not-allowed; }
  .bb-module-core[open] .bb-chevron { color: #059669; }
  .bb-module-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    user-select: none;
  }
  .bb-module-summary::-webkit-details-marker { display: none; }
  .bb-module-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .bb-module-name { font-weight: 600; font-size: 1rem; color: #0f172a; }
  .bb-module-key { font-size: 0.78rem; color: var(--bb-muted); font-family: ui-monospace, monospace; }
  .bb-module-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .bb-price {
    background: linear-gradient(135deg, var(--bb-accent), #4f46e5);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
  }
  .bb-module-checkbox { width: 1.15em; height: 1.15em; margin: 0; accent-color: var(--bb-accent); }
  .bb-chevron {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
  }
  .bb-module[open] .bb-chevron { transform: rotate(180deg); color: var(--bb-accent); }
  .bb-module-body {
    border-top: 1px solid #f1f5f9;
    padding: 16px 18px 18px;
    background: #fafafa;
  }
  .bb-prose {
    font-size: 0.94rem;
    line-height: 1.62;
    color: #334155;
  }
  .bb-prose :is(h1, h2, h3) { font-family: "Outfit", sans-serif; font-size: 1rem; margin: 0.75em 0 0.35em; }
  .bb-prose ul { padding-left: 1.2em; margin: 0.5em 0; }
  .bb-prose p:first-child { margin-top: 0; }
  .bb-prose p:last-child { margin-bottom: 0; }
  .bb-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .bb-img-link { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
  .bb-img-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease;
    display: block;
  }
  .bb-img-link:hover .bb-img-thumb { transform: scale(1.03); }

  .bb-quote {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--bb-radius-sm);
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #e2e8f0;
  }
  .bb-quote-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    padding: 6px 0;
    color: #475569;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }
  .bb-quote-row:last-of-type { border-bottom: none; }
  .bb-quote-total {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px dashed rgba(99, 102, 241, 0.35);
    border-bottom: none;
  }
  .bb-quote-note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--bb-muted);
    line-height: 1.5;
  }
  .bb-btn {
    border-radius: var(--bb-radius-sm);
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  }
  .bb-btn:active { transform: translateY(1px); }
  .bb-btn-primary {
    background: linear-gradient(135deg, var(--bb-accent), #4338ca);
    color: #fff;
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
  }
  .bb-btn-primary:hover { filter: brightness(1.05); color: #fff; }
  .bb-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
  }
  .bb-btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
  }
  .bb-btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
  .bb-btn-lg { padding: 0.75rem 1.35rem; font-size: 1rem; }
  .bb-notice { color: var(--bb-muted); }

  /* Success modal */
  .bb-modal .modal-content.bb-modal-content {
    border: none;
    border-radius: calc(var(--bb-radius) + 4px);
    box-shadow: 0 32px 100px rgba(15, 23, 42, 0.45);
    font-family: "Sora", system-ui, sans-serif;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 28%);
  }
  .bb-modal-head { padding: 1.35rem 1.35rem 0 1.35rem; }
  .bb-modal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 700;
    color: #6366f1;
    margin: 0;
  }
  .bb-modal-title {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0;
  }
  .bb-modal-close { opacity: 0.55; }
  .bb-kpi {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--bb-radius-sm);
    padding: 14px 16px;
    height: 100%;
  }
  .bb-kpi-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
  }
  .bb-kpi-value { font-weight: 600; font-size: 1.05rem; color: #0f172a; word-break: break-all; }
  .bb-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .bb-code {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #4338ca;
  }
  .bb-icon-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .bb-icon-btn:hover { background: #f8fafc; color: var(--bb-accent); }
  .bb-kpi-hint { font-size: 0.75rem; color: #64748b; }
  .bb-manage-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: var(--bb-radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.06));
    text-decoration: none;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .bb-manage-strip:hover {
    border-color: var(--bb-accent);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    color: #0f172a;
  }
  .bb-manage-url { font-family: ui-monospace, monospace; font-size: 0.8rem; color: #4338ca; word-break: break-all; }
  .bb-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  @media (max-width: 576px) { .bb-action-grid { grid-template-columns: 1fr; } }
  .bb-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--bb-radius-sm);
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  }
  .bb-action:hover { border-color: var(--bb-accent); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12); color: #0f172a; }
  .bb-action-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    color: #fff;
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
  }
  .bb-action-primary:hover { color: #fff; filter: brightness(1.04); }
  .bb-action-primary .bb-action-icon,
  .bb-action-primary .bb-action-arrow { color: rgba(255, 255, 255, 0.9); }
  .bb-action-icon { font-size: 1.35rem; color: var(--bb-accent); flex-shrink: 0; }
  .bb-action-primary .bb-action-sub { color: rgba(255, 255, 255, 0.82); }
  .bb-action-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .bb-action-title { font-weight: 700; font-size: 0.95rem; }
  .bb-action-sub { font-size: 0.8rem; color: #64748b; }
  .bb-action-arrow { font-size: 0.95rem; color: #94a3b8; }
  .bb-pay-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; max-width: 36rem; }
  .bb-pay-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--bb-radius-sm);
    padding: 14px 16px;
  }
  .bb-pay-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin: 0 0 8px;
  }
  .bb-pay-line { font-size: 0.88rem; line-height: 1.55; color: #334155; margin: 0; }
  .bb-pay-line code { font-size: 0.85em; background: #e2e8f0; padding: 2px 6px; border-radius: 4px; }
  .bb-modal-foot { font-size: 0.8rem; color: #64748b; }
  .bb-inline-link { font-weight: 600; color: var(--bb-accent); text-decoration: none; }
  .bb-inline-link:hover { text-decoration: underline; }
  .bb-trial-countdown-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--bb-radius-sm);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .bb-trial-countdown-modal {
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    border: 1px solid #a5b4fc;
    color: #334155;
  }
  .bb-trial-countdown-modal .bi-hourglass-split { color: #6366f1; font-size: 1.1rem; }
  .bb-manage-trial-note {
    font-size: 0.8rem;
    color: #4338ca;
    font-weight: 600;
  }

/* Landing page overrides */
.bb-page.lp-page {
  padding: 32px 0 72px;
  min-height: auto;
}
.lp-hero {
  max-width: 820px;
  margin-bottom: 0;
}
.lp-hero .bb-lead {
  max-width: 62ch;
  margin-bottom: 24px;
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lp-cta-row .bb-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bb-btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.35);
}
.bb-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.55);
}
.lp-shell {
  margin-top: 40px;
}
.lp-module .bb-module-summary {
  padding-right: 18px;
}
.lp-module .bb-module-right {
  gap: 8px;
}
.lp-module .bb-module-key {
  font-family: inherit;
  font-style: italic;
}
.lp-footer-cta {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--bb-radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  text-align: center;
}
.lp-footer-cta h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.lp-footer-cta p {
  color: var(--bb-muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
}
