/* =====================================================================
   BentVox — public pages design layer
   Sits on top of stock Bootstrap 5.3. Tokens live on :root so modals,
   dropdowns and offcanvas panels rendered outside <main> inherit them.
   ===================================================================== */

:root,
[data-bs-theme="light"] {
   /* Palette */
   --bv-ink: #17132E;          /* text, dark bands */
   --bv-paper: #F7F7FB;        /* page background */
   --bv-surface: #FFFFFF;      /* raised surfaces */
   --bv-surface-2: #EFEEF7;    /* tinted sections, incoming bubbles */
   --bv-line: #E3E1EE;
   --bv-muted: #5E5A79;
   --bv-violet: #5B3DF5;       /* brand + primary actions */
   --bv-violet-hover: #4728DE;
   --bv-violet-soft: #ECE8FF;
   --bv-violet-ink: #3A22B8;
   --bv-seal: #F2A922;         /* paid / locked content only */
   --bv-seal-soft: #FFF3D6;
   --bv-seal-ink: #6E4600;
   --bv-danger: #D6304A;
   --bv-band: #17132E;         /* closing CTA band */
   --bv-band-text: #F3F1FF;

   /* Type */
   --bv-font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
   --bv-font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

   /* Scale (≈1.25) */
   --bv-fs-sm: 0.875rem;
   --bv-fs-base: 1.0625rem;
   --bv-fs-lg: 1.25rem;
   --bv-fs-h4: 1.25rem;
   --bv-fs-h3: 1.5625rem;
   --bv-fs-h2: clamp(1.85rem, 1.3rem + 2vw, 2.6rem);
   --bv-fs-h1: clamp(2.3rem, 1.4rem + 3.6vw, 3.6rem);
   --bv-fs-display: clamp(2.6rem, 1.3rem + 5.2vw, 4.6rem);

   /* Shape */
   --bv-radius-sm: 8px;
   --bv-radius: 14px;
   --bv-radius-lg: 24px;
   --bv-shadow: 0 1px 2px rgba(23, 19, 46, .06), 0 12px 32px -12px rgba(23, 19, 46, .18);
   --bv-header-h: 72px;

   /* Bootstrap bridge */
   --bs-body-font-family: var(--bv-font-body);
   --bs-body-font-size: var(--bv-fs-base);
   --bs-body-line-height: 1.6;
   --bs-body-bg: var(--bv-paper);
   --bs-body-color: var(--bv-ink);
   --bs-emphasis-color: var(--bv-ink);
   --bs-secondary-color: var(--bv-muted);
   --bs-border-color: var(--bv-line);
   --bs-primary: var(--bv-violet);
   --bs-primary-rgb: 91, 61, 245;
   --bs-link-color: var(--bv-violet);
   --bs-link-color-rgb: 91, 61, 245;
   --bs-link-hover-color: var(--bv-violet-hover);
   --bs-link-hover-color-rgb: 71, 40, 222;
   --bs-heading-color: var(--bv-ink);
   --bs-border-radius: var(--bv-radius-sm);
   --bs-border-radius-lg: var(--bv-radius);
   --bs-focus-ring-color: rgba(91, 61, 245, .35);
   --bs-tertiary-bg: var(--bv-surface-2);
}

[data-bs-theme="dark"] {
   --bv-ink: #ECEAF8;
   --bv-paper: #100E1F;
   --bv-surface: #19162D;
   --bv-surface-2: #221E3A;
   --bv-line: #2F2A4D;
   --bv-muted: #A9A4C8;
   --bv-violet: #9A88FF;
   --bv-violet-hover: #B3A5FF;
   --bv-violet-soft: #2A2452;
   --bv-violet-ink: #CFC6FF;
   --bv-seal: #F5B740;
   --bv-seal-soft: #3A2C0E;
   --bv-seal-ink: #FFD98A;
   --bv-danger: #FF6B81;
   --bv-band: #241F45;
   --bv-band-text: #F3F1FF;
   --bv-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);

   --bs-body-bg: var(--bv-paper);
   --bs-body-color: var(--bv-ink);
   --bs-emphasis-color: var(--bv-ink);
   --bs-secondary-color: var(--bv-muted);
   --bs-border-color: var(--bv-line);
   --bs-primary: var(--bv-violet);
   --bs-primary-rgb: 154, 136, 255;
   --bs-link-color: var(--bv-violet);
   --bs-link-color-rgb: 154, 136, 255;
   --bs-link-hover-color: var(--bv-violet-hover);
   --bs-link-hover-color-rgb: 179, 165, 255;
   --bs-heading-color: var(--bv-ink);
   --bs-tertiary-bg: var(--bv-surface-2);
   --bs-focus-ring-color: rgba(154, 136, 255, .4);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--bv-header-h) + 16px); }

body.bv {
   font-family: var(--bv-font-body);
   background: var(--bv-paper);
   color: var(--bv-ink);
   -webkit-font-smoothing: antialiased;
   text-rendering: optimizeLegibility;
   font-feature-settings: "ss01", "cv11";
}

.bv h1, .bv h2, .bv h3, .bv h4, .bv h5, .bv h6,
.bv .h1, .bv .h2, .bv .h3, .bv .h4 {
   font-family: var(--bv-font-display);
   color: var(--bv-ink);
   font-weight: 700;
   letter-spacing: -0.02em;
   line-height: 1.12;
   text-wrap: balance;
}
.bv h1, .bv .h1 { font-size: var(--bv-fs-h1); letter-spacing: -0.03em; }
.bv h2, .bv .h2 { font-size: var(--bv-fs-h2); }
.bv h3, .bv .h3 { font-size: var(--bv-fs-h3); line-height: 1.2; }
.bv h4, .bv .h4 { font-size: var(--bv-fs-h4); line-height: 1.3; letter-spacing: -0.01em; }

.bv p { text-wrap: pretty; }

.bv a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

.bv :focus-visible {
   outline: 2px solid var(--bv-violet);
   outline-offset: 2px;
   border-radius: 4px;
}

.bv-skip {
   position: absolute; left: 12px; top: -60px; z-index: 2000;
   background: var(--bv-violet); color: #fff; padding: 10px 16px; border-radius: var(--bv-radius-sm);
   text-decoration: none; font-weight: 600;
}
.bv-skip:focus { top: 12px; color: #fff; }

.bv-container { max-width: 1200px; padding-left: 20px; padding-right: 20px; }

.bv-muted { color: var(--bv-muted); }

.bv-lede {
   font-size: var(--bv-fs-lg);
   line-height: 1.55;
   color: var(--bv-muted);
   max-width: 38rem;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.bv .btn {
   font-weight: 600;
   border-radius: 999px;
   padding: 0.6rem 1.15rem;
   font-size: 0.975rem;
   letter-spacing: 0;
   transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.bv .btn-lg { padding: 0.8rem 1.5rem; font-size: 1.05rem; }

.bv .btn-primary {
   --bs-btn-bg: var(--bv-violet);
   --bs-btn-border-color: var(--bv-violet);
   --bs-btn-hover-bg: var(--bv-violet-hover);
   --bs-btn-hover-border-color: var(--bv-violet-hover);
   --bs-btn-active-bg: var(--bv-violet-hover);
   --bs-btn-active-border-color: var(--bv-violet-hover);
   --bs-btn-disabled-bg: var(--bv-violet);
   --bs-btn-disabled-border-color: var(--bv-violet);
   --bs-btn-color: #fff;
   --bs-btn-hover-color: #fff;
   --bs-btn-active-color: #fff;
}
[data-bs-theme="dark"] .bv .btn-primary,
[data-bs-theme="dark"] .bv.btn-primary {
   --bs-btn-color: #120D2E;
   --bs-btn-hover-color: #120D2E;
   --bs-btn-active-color: #120D2E;
}
.bv .btn-primary:active { transform: translateY(1px); }

.bv-btn-quiet,
.bv .bv-btn-quiet {
   --bs-btn-color: var(--bv-ink);
   --bs-btn-hover-color: var(--bv-ink);
   --bs-btn-bg: transparent;
   --bs-btn-hover-bg: var(--bv-surface-2);
   --bs-btn-active-bg: var(--bv-surface-2);
   --bs-btn-border-color: transparent;
   --bs-btn-hover-border-color: transparent;
   display: inline-flex; align-items: center; gap: .45rem;
}

.bv-btn-outline,
.bv .bv-btn-outline {
   --bs-btn-color: var(--bv-ink);
   --bs-btn-hover-color: var(--bv-ink);
   --bs-btn-bg: transparent;
   --bs-btn-hover-bg: var(--bv-surface-2);
   --bs-btn-border-color: var(--bv-line);
   --bs-btn-hover-border-color: var(--bv-muted);
   --bs-btn-active-bg: var(--bv-surface-2);
}

.bv-link-arrow {
   display: inline-flex; align-items: center; gap: .4rem;
   font-weight: 600; text-decoration: none;
}
.bv-link-arrow i { transition: transform .15s ease; }
.bv-link-arrow:hover i { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.bv-header {
   position: sticky; top: 0; z-index: 1030;
   border-bottom: 1px solid color-mix(in srgb, var(--bv-line) 70%, transparent);
}
/* Frosted layer lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed-position mobile offcanvas and clip it. */
.bv-header::before {
   content: ""; position: absolute; inset: 0; z-index: -1;
   background: color-mix(in srgb, var(--bv-paper) 78%, transparent);
   -webkit-backdrop-filter: saturate(180%) blur(14px);
   backdrop-filter: saturate(180%) blur(14px);
}
.bv-header .navbar { min-height: var(--bv-header-h); padding: 0; }
.bv-brand { display: inline-flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.bv-brand { text-decoration: none; }

/* Text logo: speech-bubble mark + lowercase wordmark */
.bv-logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--bv-ink); line-height: 1; }
.bv-logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.bv-logo-bubble { fill: var(--bv-violet); }
.bv-logo-v { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
[data-bs-theme="dark"] .bv-logo-v { stroke: #100E1F; }
.bv-logo-word {
   font-family: var(--bv-font-display);
   font-weight: 800;
   font-size: 1.5rem;
   letter-spacing: -0.045em;
   font-variation-settings: "opsz" 96;
   padding-bottom: .12em; /* optical: lowercase sits on the bubble's centre line */
}
.bv-brand:hover .bv-logo-bubble { fill: var(--bv-violet-hover); }
.bv-logo--lg .bv-logo-mark { width: 40px; height: 40px; }
.bv-logo--lg .bv-logo-word { font-size: 2rem; }

.bv-menu-btn {
   margin-left: auto; border: 1px solid var(--bv-line); background: var(--bv-surface);
   color: var(--bv-ink); width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem;
   display: inline-flex; align-items: center; justify-content: center;
}

.bv-offcanvas { flex-grow: 1; }
.bv-offcanvas .offcanvas-body { align-items: center; }

.bv-nav { gap: .15rem; }
.bv-nav .nav-link {
   color: var(--bv-ink);
   font-weight: 500;
   font-size: .975rem;
   padding: .5rem .8rem !important;
   border-radius: 999px;
}
.bv-nav .nav-link:hover { background: var(--bv-surface-2); color: var(--bv-ink); }
.bv-nav .nav-link[aria-current="page"] { color: var(--bv-violet); }

.bv-nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.bv .dropdown-menu {
   --bs-dropdown-bg: var(--bv-surface);
   --bs-dropdown-border-color: var(--bv-line);
   --bs-dropdown-link-color: var(--bv-ink);
   --bs-dropdown-link-hover-bg: var(--bv-surface-2);
   --bs-dropdown-link-hover-color: var(--bv-ink);
   --bs-dropdown-link-active-bg: var(--bv-violet-soft);
   --bs-dropdown-link-active-color: var(--bv-violet-ink);
   --bs-dropdown-divider-bg: var(--bv-line);
   border-radius: var(--bv-radius);
   box-shadow: var(--bv-shadow);
   padding: .4rem;
   font-size: .95rem;
}
.bv .dropdown-item { border-radius: 8px; padding: .5rem .75rem; display: flex; align-items: center; gap: .6rem; }
.bv .dropdown-item i { color: var(--bv-muted); }
.bv .dropdown-item.bv-danger,
.bv .dropdown-item.bv-danger i { color: var(--bv-danger); }

.bv-avatar-btn {
   border: 2px solid var(--bv-surface); padding: 0; background: none; border-radius: 50%;
   box-shadow: 0 0 0 1px var(--bv-line);
}
.bv-avatar-btn img, .bv-account-id img { border-radius: 50%; object-fit: cover; }
.bv-account-menu { min-width: 250px; }
.bv-account-id { display: flex; gap: .75rem; align-items: center; padding: .5rem .75rem; }
.bv-account-id strong { display: block; line-height: 1.2; }
.bv-account-id span { color: var(--bv-muted); font-size: .875rem; overflow-wrap: anywhere; }

@media (max-width: 991.98px) {
   .bv-offcanvas {
      --bs-offcanvas-bg: var(--bv-paper);
      --bs-offcanvas-width: min(340px, 88vw);
   }
   .bv-offcanvas .offcanvas-body { flex-direction: column; align-items: stretch; gap: 1rem; }
   .bv-nav .nav-link { font-size: 1.05rem; padding: .7rem .8rem !important; }
   .bv-nav .dropdown-menu { box-shadow: none; border: 0; background: transparent; padding-left: .75rem; }
   .bv-nav-actions { margin-left: 0; flex-wrap: wrap; border-top: 1px solid var(--bv-line); padding-top: 1rem; }
   .bv-nav-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.bv-section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.bv-section--tint { background: var(--bv-surface-2); }
.bv-section--tight { padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0; }
.bv-section + .bv-section:not(.bv-section--tint):not(.bv-band) { border-top: 1px solid var(--bv-line); }
.bv-section--tint + .bv-section { border-top: 0 !important; }

.bv-section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.bv-section-head h2 { margin-bottom: 1rem; }
.bv-section-head p { font-size: var(--bv-fs-lg); color: var(--bv-muted); margin: 0; line-height: 1.55; }
.bv-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------------
   Page head (inner pages)
   --------------------------------------------------------------------- */
.bv-page-head {
   padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
   border-bottom: 1px solid var(--bv-line);
}
.bv-page-head h1 { margin-bottom: 1rem; max-width: 18ch; }
.bv-page-head .bv-lede { margin-bottom: 0; }
.bv-page-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--bv-muted); font-size: var(--bv-fs-sm); }
.bv-page-meta span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------------------------------------------------------------------
   Homepage hero + the conversation mock (the signature element)
   --------------------------------------------------------------------- */
.bv-hero {
   position: relative;
   padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
   overflow: hidden;
}
.bv-hero::before {
   /* soft violet field behind the thread, not a decoration wash across the page */
   content: ""; position: absolute; z-index: 0;
   right: -10%; top: 6%; width: 60%; height: 88%;
   background: radial-gradient(closest-side, color-mix(in srgb, var(--bv-violet) 18%, transparent), transparent);
   pointer-events: none;
}
.bv-hero > .container { position: relative; z-index: 1; }
.bv-hero-grid {
   display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
   grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
   align-items: center;
}
.bv-hero h1 {
   font-size: var(--bv-fs-display);
   line-height: 0.98;
   letter-spacing: -0.035em;
   font-weight: 800;
   margin: 0 0 1.5rem;
   max-width: 11ch;
   font-variation-settings: "opsz" 96;
}
.bv-hero .bv-lede { margin-bottom: 2rem; }
.bv-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.bv-hero-note { margin-top: 1.25rem; font-size: var(--bv-fs-sm); color: var(--bv-muted); }

@media (max-width: 991.98px) {
   .bv-hero-grid { grid-template-columns: minmax(0, 1fr); }
   .bv-hero h1 { max-width: 13ch; }
}

/* Conversation window */
.bv-thread {
   background: var(--bv-surface);
   border: 1px solid var(--bv-line);
   border-radius: var(--bv-radius-lg);
   box-shadow: var(--bv-shadow);
   overflow: hidden;
   max-width: 480px;
   margin-left: auto;
   width: 100%;
}
@media (max-width: 991.98px) { .bv-thread { margin: 0 auto; } }

.bv-thread-head {
   display: flex; align-items: center; gap: .75rem;
   padding: 1rem 1.25rem; border-bottom: 1px solid var(--bv-line);
}
.bv-thread-avatar {
   width: 40px; height: 40px; border-radius: 50%; flex: none;
   display: grid; place-items: center;
   background: var(--bv-violet-soft); color: var(--bv-violet-ink);
   font-family: var(--bv-font-display); font-weight: 700;
}
.bv-thread-who { line-height: 1.25; min-width: 0; }
.bv-thread-who strong { display: block; font-size: .975rem; }
.bv-thread-who span { font-size: .825rem; color: var(--bv-muted); }
.bv-thread-head .bv-thread-tools { margin-left: auto; color: var(--bv-muted); display: flex; gap: .9rem; font-size: 1.05rem; }

.bv-thread-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .65rem; }

.bv-msg {
   max-width: 84%;
   padding: .7rem .95rem;
   border-radius: 18px;
   font-size: .95rem;
   line-height: 1.45;
   overflow-wrap: anywhere;
}
.bv-msg--in { align-self: flex-start; background: var(--bv-surface-2); border-bottom-left-radius: 6px; }
.bv-msg--out { align-self: flex-end; background: var(--bv-violet); color: #fff; border-bottom-right-radius: 6px; }
[data-bs-theme="dark"] .bv-msg--out { color: #120D2E; }
.bv-msg-time { display: block; font-size: .72rem; color: var(--bv-muted); margin-top: .1rem; }
.bv-msg--out + .bv-msg-time { align-self: flex-end; }

/* Locked pay-per-view attachment — amber is reserved for paid content */
.bv-paid {
   align-self: flex-start;
   display: flex; align-items: center; gap: .85rem;
   width: min(84%, 320px);
   padding: .75rem .85rem;
   border-radius: 16px;
   background: var(--bv-seal-soft);
   border: 1px solid color-mix(in srgb, var(--bv-seal) 45%, transparent);
   color: var(--bv-seal-ink);
}
.bv-paid-icon {
   width: 42px; height: 42px; border-radius: 12px; flex: none;
   display: grid; place-items: center;
   background: var(--bv-seal); color: #3A2500; font-size: 1.15rem;
}
.bv-paid-text { line-height: 1.3; min-width: 0; }
.bv-paid-text strong { display: block; font-size: .925rem; color: var(--bv-ink); }
.bv-paid-text span { font-size: .8rem; }
.bv-paid-price {
   margin-left: auto; font-weight: 700; font-size: .875rem; white-space: nowrap;
   background: var(--bv-surface); color: var(--bv-ink);
   border-radius: 999px; padding: .3rem .7rem;
}

.bv-sys {
   align-self: center;
   font-size: .78rem; color: var(--bv-muted);
   display: inline-flex; align-items: center; gap: .4rem;
   padding: .25rem .7rem; border-radius: 999px; border: 1px dashed var(--bv-line);
}
.bv-sys i { color: var(--bv-seal); }

.bv-thread-compose {
   display: flex; align-items: center; gap: .6rem;
   margin: 0 1.25rem 1.25rem;
   padding: .55rem .55rem .55rem 1rem;
   border: 1px solid var(--bv-line); border-radius: 999px;
   color: var(--bv-muted); font-size: .9rem;
}
.bv-thread-compose i.bi-paperclip { margin-left: auto; }
.bv-thread-compose .bv-send {
   width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
   background: var(--bv-violet); color: #fff;
}
[data-bs-theme="dark"] .bv-thread-compose .bv-send { color: #120D2E; }

/* The one orchestrated motion moment: the thread plays in on load */
@media (prefers-reduced-motion: no-preference) {
   .bv-thread [data-step] { opacity: 0; transform: translateY(8px); animation: bv-in .45s cubic-bezier(.2,.7,.2,1) forwards; }
   .bv-thread [data-step="1"] { animation-delay: .25s; }
   .bv-thread [data-step="2"] { animation-delay: .75s; }
   .bv-thread [data-step="3"] { animation-delay: 1.35s; }
   .bv-thread [data-step="4"] { animation-delay: 1.85s; }
   .bv-thread [data-step="5"] { animation-delay: 2.35s; }
   .bv-thread [data-step="6"] { animation-delay: 2.85s; }
   @keyframes bv-in { to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------------
   Points: icon + text rows, separated by rules (not a card grid)
   --------------------------------------------------------------------- */
.bv-points {
   display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
   border-top: 1px solid var(--bv-line);
   list-style: none; padding: 0; margin: 0;
}
.bv-points > * { padding: 2rem 2rem 0 0; }
.bv-points > * + * { padding-left: 2rem; border-left: 1px solid var(--bv-line); }
.bv-points.bv-points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv-points.bv-points--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bv-point-icon {
   width: 44px; height: 44px; border-radius: 12px;
   display: grid; place-items: center; font-size: 1.25rem;
   background: var(--bv-violet-soft); color: var(--bv-violet-ink);
   margin-bottom: 1.25rem;
}
.bv-point-icon--paid { background: var(--bv-seal-soft); color: var(--bv-seal-ink); }
.bv-points h3 { font-size: var(--bv-fs-h4); margin-bottom: .6rem; }
.bv-points p { color: var(--bv-muted); margin: 0; }

@media (max-width: 991.98px) {
   .bv-points, .bv-points.bv-points--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .bv-points > * { padding: 2rem 1.5rem 2rem 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--bv-line); }
   .bv-points > *:nth-child(even) { padding-left: 1.5rem !important; border-left: 1px solid var(--bv-line) !important; }
}
@media (max-width: 575.98px) {
   .bv-points, .bv-points.bv-points--2, .bv-points.bv-points--4 { grid-template-columns: minmax(0, 1fr); }
   .bv-points > *, .bv-points > *:nth-child(even) { padding: 1.75rem 0 !important; border-left: 0 !important; }
}

/* ---------------------------------------------------------------------
   Split: text beside media / panel
   --------------------------------------------------------------------- */
.bv-split {
   display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
   align-items: center;
}
.bv-split--reverse > :first-child { order: 2; }
@media (max-width: 991.98px) {
   .bv-split { grid-template-columns: minmax(0, 1fr); }
   .bv-split--reverse > :first-child { order: 0; }
}
.bv-split h2 { margin-bottom: 1rem; }
.bv-split p { color: var(--bv-muted); }

.bv-media {
   border-radius: var(--bv-radius-lg);
   overflow: hidden;
   background: var(--bv-surface-2);
   aspect-ratio: 4 / 3;
}
.bv-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bv-checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.bv-checks li { position: relative; padding-left: 2.1rem; }
.bv-checks li::before {
   content: "\F26E"; /* bi-check2 */
   font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1;
   position: absolute; left: 0; top: .1rem;
   width: 24px; height: 24px; border-radius: 50%;
   display: grid; place-items: center;
   background: var(--bv-violet-soft); color: var(--bv-violet-ink);
}

/* ---------------------------------------------------------------------
   Audience tiles (homepage) — image-led, three different audiences
   --------------------------------------------------------------------- */
.bv-audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 991.98px) { .bv-audiences { grid-template-columns: minmax(0, 1fr); } }
.bv-audience { position: relative; text-decoration: none; color: inherit; display: block; }
.bv-audience .bv-media { aspect-ratio: 4 / 5; margin-bottom: 1.25rem; }
@media (max-width: 991.98px) { .bv-audience .bv-media { aspect-ratio: 16 / 10; } }
.bv-audience .bv-media img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.bv-audience:hover .bv-media img { transform: scale(1.03); }
.bv-audience h3 { font-size: var(--bv-fs-h3); margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.bv-audience h3 i { font-size: 1.1rem; color: var(--bv-violet); transition: transform .15s ease; }
.bv-audience:hover h3 i { transform: translate(2px, -2px); }
.bv-audience p { color: var(--bv-muted); margin: 0; }
.bv-audience:focus-visible { outline-offset: 6px; border-radius: var(--bv-radius-lg); }

/* ---------------------------------------------------------------------
   Steps (real sequences only)
   --------------------------------------------------------------------- */
.bv-steps { list-style: none; padding: 0; margin: 0; counter-reset: bv-step; display: grid; gap: 0; }
.bv-steps > li {
   counter-increment: bv-step;
   display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1.25rem;
   padding: 1.75rem 0; border-top: 1px solid var(--bv-line);
}
.bv-steps > li:last-child { border-bottom: 1px solid var(--bv-line); }
.bv-steps > li::before {
   content: counter(bv-step);
   font-family: var(--bv-font-display); font-weight: 700; font-size: 1.25rem;
   width: 3rem; height: 3rem; border-radius: 50%;
   display: grid; place-items: center;
   border: 1px solid var(--bv-line); color: var(--bv-violet); background: var(--bv-surface);
}
.bv-steps h3 { font-size: var(--bv-fs-h4); margin: .6rem 0 .4rem; }
.bv-steps p { color: var(--bv-muted); margin: 0; max-width: 44rem; }

/* ---------------------------------------------------------------------
   Panels (used sparingly: comparisons, pricing models, contact cards)
   --------------------------------------------------------------------- */
.bv-panel {
   background: var(--bv-surface);
   border: 1px solid var(--bv-line);
   border-radius: var(--bv-radius-lg);
   padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
   height: 100%;
}
.bv-panel--accent { border-color: color-mix(in srgb, var(--bv-violet) 45%, var(--bv-line)); box-shadow: 0 0 0 4px var(--bv-violet-soft); }
.bv-panel h3 { margin-bottom: .75rem; }
.bv-panel p { color: var(--bv-muted); }

.bv-tag {
   display: inline-flex; align-items: center; gap: .35rem;
   font-size: .8rem; font-weight: 600;
   padding: .25rem .65rem; border-radius: 999px;
   background: var(--bv-surface-2); color: var(--bv-muted);
}
.bv-tag--violet { background: var(--bv-violet-soft); color: var(--bv-violet-ink); }
.bv-tag--paid { background: var(--bv-seal-soft); color: var(--bv-seal-ink); }

.bv-ledger { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .95rem; }
.bv-ledger li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px dashed var(--bv-line); }
.bv-ledger li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bv-ledger li.bv-ledger-total { border-top: 1px solid var(--bv-ink); font-weight: 700; }

/* Stat strip (only where numbers carry the argument) */
.bv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bv-line); border-bottom: 1px solid var(--bv-line); }
.bv-stats > div { padding: 2rem 1.5rem; }
.bv-stats > div + div { border-left: 1px solid var(--bv-line); }
.bv-stats strong { display: block; font-family: var(--bv-font-display); font-size: var(--bv-fs-h2); letter-spacing: -0.03em; line-height: 1; margin-bottom: .5rem; }
.bv-stats span { color: var(--bv-muted); }
@media (max-width: 767.98px) {
   .bv-stats { grid-template-columns: minmax(0, 1fr); }
   .bv-stats > div + div { border-left: 0; border-top: 1px solid var(--bv-line); }
}

/* ---------------------------------------------------------------------
   Closing band
   --------------------------------------------------------------------- */
.bv-band {
   background: var(--bv-band);
   color: var(--bv-band-text);
   padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0;
   position: relative;
   overflow: hidden;
}
.bv-band::after {
   content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
   background: radial-gradient(closest-side, rgba(154, 136, 255, .35), transparent);
   pointer-events: none;
}
.bv-band .container { position: relative; z-index: 1; }
.bv-band h2 { color: var(--bv-band-text); max-width: 18ch; margin-bottom: 1rem; }
.bv-band p { color: color-mix(in srgb, var(--bv-band-text) 75%, transparent); font-size: var(--bv-fs-lg); max-width: 36rem; }
.bv-band-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.bv-band .btn-primary {
   --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: #17132E;
   --bs-btn-hover-bg: #E9E5FF; --bs-btn-hover-border-color: #E9E5FF; --bs-btn-hover-color: #17132E;
   --bs-btn-active-bg: #E9E5FF; --bs-btn-active-color: #17132E;
}
.bv-band .bv-btn-outline {
   --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
   --bs-btn-border-color: rgba(255,255,255,.35); --bs-btn-hover-border-color: rgba(255,255,255,.7);
   --bs-btn-hover-bg: rgba(255,255,255,.08);
}

/* ---------------------------------------------------------------------
   Long-form / legal
   --------------------------------------------------------------------- */
.bv-legal {
   display: grid; grid-template-columns: 250px minmax(0, 1fr);
   gap: clamp(2rem, 1rem + 4vw, 5rem);
   padding: clamp(2.5rem, 2rem + 2vw, 4rem) 0 clamp(4rem, 3rem + 3vw, 6rem);
   align-items: start;
}
@media (max-width: 991.98px) { .bv-legal { grid-template-columns: minmax(0, 1fr); } }

.bv-toc { position: sticky; top: calc(var(--bv-header-h) + 24px); max-height: calc(100vh - var(--bv-header-h) - 48px); overflow: auto; font-size: .9rem; }
.bv-toc h2 { font-family: var(--bv-font-body); font-size: .875rem; font-weight: 600; color: var(--bv-muted); letter-spacing: 0; margin-bottom: .75rem; }
.bv-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--bv-line); }
.bv-toc a {
   display: block; padding: .35rem 0 .35rem 1rem; margin-left: -1px;
   color: var(--bv-muted); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35;
}
.bv-toc a:hover { color: var(--bv-ink); }
.bv-toc a.is-active { color: var(--bv-violet); border-left-color: var(--bv-violet); font-weight: 600; }
@media (max-width: 991.98px) {
   .bv-toc { position: static; max-height: none; }
   .bv-toc details { border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: .85rem 1rem; background: var(--bv-surface); }
   .bv-toc summary { font-weight: 600; cursor: pointer; }
   .bv-toc ol { margin-top: .75rem; }
}
@media (min-width: 992px) {
   .bv-toc details > summary { display: none; }
}

.bv-prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.bv-prose > section { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--bv-line); }
.bv-prose > section:last-child { border-bottom: 0; margin-bottom: 0; }
.bv-prose h2 { font-size: 1.6rem; margin: 0 0 1rem; scroll-margin-top: calc(var(--bv-header-h) + 16px); }
.bv-prose h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.bv-prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.bv-prose p, .bv-prose ul, .bv-prose ol { margin: 0 0 1rem; }
.bv-prose ul, .bv-prose ol { padding-left: 1.25rem; }
.bv-prose li { margin-bottom: .4rem; }
.bv-prose li::marker { color: var(--bv-violet); }
.bv-prose a { overflow-wrap: anywhere; }
.bv-prose strong { font-weight: 650; }
.bv-prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.bv-prose th, .bv-prose td { border: 1px solid var(--bv-line); padding: .6rem .75rem; vertical-align: top; text-align: left; }
.bv-prose th { background: var(--bv-surface-2); font-weight: 600; }
.bv-prose .bv-table-wrap { overflow-x: auto; }
.bv-prose .bv-callout,
.bv-callout {
   background: var(--bv-violet-soft); color: var(--bv-ink);
   border-radius: var(--bv-radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem;
}

/* ---------------------------------------------------------------------
   FAQ (Bootstrap accordion restyle)
   --------------------------------------------------------------------- */
.bv .accordion {
   --bs-accordion-bg: transparent;
   --bs-accordion-border-color: var(--bv-line);
   --bs-accordion-border-radius: 0;
   --bs-accordion-inner-border-radius: 0;
   --bs-accordion-btn-padding-x: 0;
   --bs-accordion-btn-padding-y: 1.25rem;
   --bs-accordion-body-padding-x: 0;
   --bs-accordion-body-padding-y: 0;
   --bs-accordion-btn-color: var(--bv-ink);
   --bs-accordion-active-color: var(--bv-ink);
   --bs-accordion-active-bg: transparent;
   --bs-accordion-btn-focus-box-shadow: none;
   --bs-accordion-color: var(--bv-muted);
}
.bv .accordion-item { border-left: 0; border-right: 0; }
.bv .accordion-item:first-of-type { border-top: 1px solid var(--bv-line); }
.bv .accordion-button { font-family: var(--bv-font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.bv .accordion-button:focus-visible { outline: 2px solid var(--bv-violet); outline-offset: 2px; }
.bv .accordion-body { padding-bottom: 1.5rem; max-width: 64ch; }
.bv .accordion-body p:last-child { margin-bottom: 0; }

.bv-faq-group + .bv-faq-group { margin-top: 3rem; }
.bv-faq-group > h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.bv .form-control, .bv .form-select {
   background-color: var(--bv-surface);
   border: 1px solid var(--bv-line);
   color: var(--bv-ink);
   border-radius: 12px;
   padding: .75rem 1rem;
   font-size: 1rem;
}
.bv .form-control::placeholder { color: color-mix(in srgb, var(--bv-muted) 75%, transparent); }
.bv .form-control:focus, .bv .form-select:focus {
   border-color: var(--bv-violet);
   box-shadow: 0 0 0 4px var(--bs-focus-ring-color);
   background-color: var(--bv-surface);
   color: var(--bv-ink);
}
.bv .form-label { font-weight: 600; font-size: .925rem; margin-bottom: .4rem; }
.bv .form-text { color: var(--bv-muted); }
.bv .form-check-input:checked { background-color: var(--bv-violet); border-color: var(--bv-violet); }
.bv-form { display: grid; gap: 1.25rem; }
.bv-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 575.98px) { .bv-form-row { grid-template-columns: minmax(0, 1fr); } }
.bv-form-status { font-size: .95rem; margin: 0; min-height: 1.5em; }
.bv-form-status.is-error { color: var(--bv-danger); }
.bv-form-status.is-ok { color: var(--bv-violet); }

/* Contact layout */
.bv-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: start; }
@media (max-width: 991.98px) { .bv-contact { grid-template-columns: minmax(0, 1fr); } }
.bv-contact-list { list-style: none; padding: 0; margin: 0; }
.bv-contact-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--bv-line); }
.bv-contact-list li:last-child { border-bottom: 1px solid var(--bv-line); }
.bv-contact-list i { font-size: 1.2rem; color: var(--bv-violet); margin-top: .15rem; }
.bv-contact-list strong { display: block; margin-bottom: .15rem; }
.bv-contact-list span, .bv-contact-list a { color: var(--bv-muted); }
.bv-contact-list a:hover { color: var(--bv-violet); }

/* ---------------------------------------------------------------------
   Auth pages (sign in / sign up)
   --------------------------------------------------------------------- */
.bv-auth {
   min-height: calc(100vh - var(--bv-header-h));
   display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.bv-auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(2.5rem, 2rem + 3vw, 5rem) 20px; }
.bv-auth-form > div { width: 100%; max-width: 420px; }
.bv-auth-form h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: .5rem; }
.bv-auth-form .bv-lede { font-size: 1.05rem; margin-bottom: 2rem; }
.bv-auth-aside {
   background: var(--bv-band); color: var(--bv-band-text);
   display: flex; align-items: center; justify-content: center;
   padding: 3rem; position: relative; overflow: hidden;
}
.bv-auth-aside .bv-thread { margin: 0; max-width: 420px; }
.bv-auth-switch { margin-top: 1.5rem; color: var(--bv-muted); font-size: .95rem; }
@media (max-width: 991.98px) {
   .bv-auth { grid-template-columns: 1fr; min-height: 0; }
   .bv-auth-aside { display: none; }
}

/* Centered message pages (404, verify email) */
.bv-center {
   min-height: calc(70vh - var(--bv-header-h));
   display: flex; align-items: center;
   padding: clamp(3rem, 2rem + 4vw, 6rem) 0;
}
.bv-center-inner { max-width: 36rem; }
.bv-center-icon {
   width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
   font-size: 1.75rem; background: var(--bv-violet-soft); color: var(--bv-violet-ink); margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.bv-footer {
   background: var(--bv-surface);
   border-top: 1px solid var(--bv-line);
   padding: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 1.5rem;
   font-size: .95rem;
}
.bv-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; }
@media (max-width: 991.98px) { .bv-footer-top { grid-template-columns: minmax(0, 1fr); } }
.bv-footer-brand p { color: var(--bv-muted); max-width: 30rem; margin: 1rem 0 1.75rem; }

.bv-newsletter label { font-weight: 600; font-size: .9rem; margin-bottom: .5rem; display: block; }
.bv-newsletter-row { display: flex; gap: .5rem; max-width: 26rem; }
.bv-newsletter-row .form-control { border-radius: 999px; padding: .6rem 1rem; min-width: 0; }
.bv-newsletter-msg { font-size: .875rem; margin: .5rem 0 0; min-height: 1.3em; color: var(--bv-muted); }
.bv-newsletter-msg.is-error { color: var(--bv-danger); }

.bv-footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 575.98px) { .bv-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
.bv-footer-links h2 { font-family: var(--bv-font-body); font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--bv-ink); margin-bottom: .85rem; }
.bv-footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.bv-footer-links a { color: var(--bv-muted); text-decoration: none; }
.bv-footer-links a:hover { color: var(--bv-violet); }

.bv-footer-bottom {
   margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bv-line);
   display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
   color: var(--bv-muted); font-size: .875rem;
}
.bv-footer-bottom p { margin: 0; }
.bv-footer-bottom a { color: inherit; }
.bv-footer-tools { display: flex; align-items: center; gap: 1rem; }

.bv-theme { display: inline-flex; padding: 3px; border: 1px solid var(--bv-line); border-radius: 999px; background: var(--bv-paper); }
.bv-theme button {
   border: 0; background: transparent; color: var(--bv-muted);
   width: 32px; height: 28px; border-radius: 999px; display: grid; place-items: center; font-size: .9rem;
}
.bv-theme button[aria-pressed="true"] { background: var(--bv-surface); color: var(--bv-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.bv-social { display: flex; gap: .25rem; }
.bv-social a {
   width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
   color: var(--bv-muted); text-decoration: none; font-size: 1rem;
}
.bv-social a:hover { background: var(--bv-surface-2); color: var(--bv-ink); }

/* ---------------------------------------------------------------------
   SweetAlert2 alignment with tokens
   --------------------------------------------------------------------- */
.swal2-popup { font-family: var(--bv-font-body) !important; border-radius: var(--bv-radius-lg) !important; background: var(--bv-surface) !important; color: var(--bv-ink) !important; }
.swal2-title { font-family: var(--bv-font-display) !important; color: var(--bv-ink) !important; }
.swal2-html-container { color: var(--bv-muted) !important; }
.swal2-styled.swal2-confirm { background: var(--bv-violet) !important; border-radius: 999px !important; }

/* ---------------------------------------------------------------------
   Utilities
   --------------------------------------------------------------------- */
.bv-measure { max-width: 70ch; }
.bv-stack-sm > * + * { margin-top: .75rem; }
.bv-mt-0 { margin-top: 0 !important; }

@media (prefers-reduced-motion: reduce) {
   .bv *, .bv *::before, .bv *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------
   Small-screen refinements
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {
   .bv-hero::before { display: none; }
}
@media (max-width: 575.98px) {
   :root { --bv-fs-lg: 1.125rem; }
   .bv-paid { width: 100%; }
   .bv-msg { max-width: 90%; }
   .bv-hero-actions .btn { flex: 1 1 auto; }
}

/* Legal page intro under the H1 */
.bv-lede-prose { color: var(--bv-muted); font-size: 1.075rem; margin-top: .5rem; }
.bv-lede-prose p:last-child { margin-bottom: 0; }
.bv-lede-prose a { color: var(--bv-violet); }

/* Multi-row point grids: reset the divider on the first item of every row (desktop) */
@media (min-width: 992px) {
   .bv-points:not(.bv-points--2):not(.bv-points--4) > *:nth-child(3n+1),
   .bv-points.bv-points--2 > *:nth-child(2n+1),
   .bv-points.bv-points--4 > *:nth-child(4n+1) { padding-left: 0; border-left: 0; }
   .bv-points:not(.bv-points--2):not(.bv-points--4) > *:nth-child(n+4),
   .bv-points.bv-points--2 > *:nth-child(n+3),
   .bv-points.bv-points--4 > *:nth-child(n+5) { margin-top: 2rem; }
}
.bv-stats.bv-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
   .bv-stats.bv-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .bv-stats.bv-stats--4 > div:nth-child(3) { border-left: 0; }
   .bv-stats.bv-stats--4 > div:nth-child(n+3) { border-top: 1px solid var(--bv-line); }
}
@media (max-width: 575.98px) { .bv-stats.bv-stats--4 { grid-template-columns: minmax(0, 1fr); } .bv-stats.bv-stats--4 > div + div { border-left: 0; border-top: 1px solid var(--bv-line); } }

/* Thread illustrations placed on dark panels keep their own text colour */
.bv-auth-aside .bv-thread, .bv-band .bv-thread { color: var(--bv-ink); }

/* ---------------------------------------------------------------------
   Embedded illustration: a partner app with BentVox inside it
   --------------------------------------------------------------------- */
.bv-embed {
   max-width: 520px; width: 100%; margin-left: auto;
   border-radius: var(--bv-radius-lg);
   background: var(--bv-surface-2);
   border: 1px solid var(--bv-line);
   box-shadow: var(--bv-shadow);
   overflow: hidden;
}
@media (max-width: 991.98px) { .bv-embed { margin: 0 auto; } }
.bv-embed-bar {
   display: flex; align-items: center; gap: .75rem;
   padding: .7rem 1rem; border-bottom: 1px solid var(--bv-line);
   font-size: .82rem; color: var(--bv-muted);
}
.bv-embed-dots { display: flex; gap: 5px; }
.bv-embed-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--bv-line); }
.bv-embed-url {
   flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
   background: var(--bv-surface); border-radius: 999px; padding: .2rem .75rem;
}
.bv-embed-app { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; font-size: .85rem; }
.bv-embed-logo { font-family: var(--bv-font-display); font-weight: 700; color: var(--bv-ink); margin-right: auto; }
.bv-embed-app span { color: var(--bv-muted); }
.bv-embed-app span.is-active { color: var(--bv-ink); font-weight: 600; }
.bv-embed-body { padding: 0 1rem 1rem; }
.bv-embed .bv-thread { box-shadow: none; max-width: none; margin: 0; border-radius: var(--bv-radius); }
.bv-embed-foot { display: flex; justify-content: flex-end; padding: 0 1rem .9rem; }
.bv-powered {
   display: inline-flex; align-items: center; gap: .35rem;
   font-size: .75rem; font-weight: 600; color: var(--bv-violet-ink);
   background: var(--bv-violet-soft); border-radius: 999px; padding: .2rem .65rem;
}
@media (max-width: 575.98px) { .bv-embed-app span:not(.is-active) { display: none; } }
.bv-split > .bv-panel { height: auto; }

/* =====================================================================
   Logged-in account pages (app_layout.php)
   ===================================================================== */
.bv-app { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.bv-app-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); align-items: start; }

.bv-app-side { position: sticky; top: calc(var(--bv-header-h) + 20px); }
.bv-app-who { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bv-line); }
.bv-app-who img { border-radius: 50%; object-fit: cover; flex: none; background: var(--bv-surface-2); }
.bv-app-who div { min-width: 0; line-height: 1.3; }
.bv-app-who strong { display: block; overflow-wrap: anywhere; }
.bv-app-who a { font-size: .875rem; color: var(--bv-muted); text-decoration: none; overflow-wrap: anywhere; }
.bv-app-who a:hover { color: var(--bv-violet); }

.bv-app-nav ul { list-style: none; padding: 0; margin: 0; }
.bv-app-nav-group { font-size: .78rem; font-weight: 600; color: var(--bv-muted); padding: 1rem .75rem .35rem; }
.bv-app-nav-group:first-child { padding-top: 0; }
.bv-app-nav-sep { border-top: 1px solid var(--bv-line); margin: .75rem 0; }
.bv-app-nav a {
   display: flex; align-items: center; gap: .65rem;
   padding: .5rem .75rem; border-radius: 10px;
   color: var(--bv-ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.bv-app-nav a i { color: var(--bv-muted); font-size: 1rem; }
.bv-app-nav a:hover { background: var(--bv-surface-2); }
.bv-app-nav a[aria-current="page"] { background: var(--bv-violet-soft); color: var(--bv-violet-ink); font-weight: 600; }
.bv-app-nav a[aria-current="page"] i { color: var(--bv-violet-ink); }
.bv-app-nav a.bv-danger, .bv-app-nav a.bv-danger i { color: var(--bv-danger); }

@media (max-width: 991.98px) {
   .bv-app-grid { grid-template-columns: minmax(0, 1fr); }
   .bv-app-side { position: static; }
   .bv-app-who { display: none; }
   .bv-app-nav { margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--bv-line); }
   .bv-app-nav::-webkit-scrollbar { display: none; }
   .bv-app-nav ul { display: flex; gap: .25rem; padding-bottom: .75rem; }
   .bv-app-nav-group, .bv-app-nav-sep { display: none; }
   .bv-app-nav a { white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; font-size: .9rem; }
}

.bv-app-main { min-width: 0; }
.bv-app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.bv-app-head h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); margin: 0; }
.bv-app-intro { color: var(--bv-muted); margin: .5rem 0 0; max-width: 60ch; }
.bv-app-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Cards inside the app: one radius, quiet border, no stacked shadows */
.bv-card {
   background: var(--bv-surface);
   border: 1px solid var(--bv-line);
   border-radius: var(--bv-radius);
   padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.bv-card + .bv-card { margin-top: 1.25rem; }
.bv-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.bv-card-head h2 { font-size: 1.2rem; margin: 0; }
.bv-card-head p { margin: .25rem 0 0; color: var(--bv-muted); font-size: .925rem; width: 100%; }
.bv-card--flush { padding: 0; overflow: hidden; }
.bv-card--flush .bv-card-head { padding: 1.25rem 1.5rem 0; }

/* Tables */
.bv .table {
   --bs-table-bg: transparent;
   --bs-table-color: var(--bv-ink);
   --bs-table-border-color: var(--bv-line);
   --bs-table-striped-bg: transparent;
   --bs-table-hover-bg: var(--bv-surface-2);
   margin: 0;
   font-size: .95rem;
}
.bv .table > thead th {
   font-weight: 600; font-size: .825rem; color: var(--bv-muted);
   background: var(--bv-surface-2); border-bottom-width: 1px; white-space: nowrap;
   padding: .7rem 1rem;
}
.bv .table > tbody td { padding: .85rem 1rem; vertical-align: middle; overflow-wrap: anywhere; }
.bv .table > tbody tr:last-child td { border-bottom: 0; }
.bv .table-responsive { border: 1px solid var(--bv-line); border-radius: var(--bv-radius); background: var(--bv-surface); }
.bv .table .bv-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Empty state */
.bv-empty { text-align: center; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) 1rem; color: var(--bv-muted); }
.bv-empty i { font-size: 2rem; color: var(--bv-violet); display: block; margin-bottom: .75rem; }
.bv-empty h2, .bv-empty h3 { font-size: 1.15rem; color: var(--bv-ink); margin-bottom: .35rem; }
.bv-empty p { max-width: 40ch; margin: 0 auto 1rem; }

/* Balance / key figures */
.bv-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.bv-figure { background: var(--bv-surface); border: 1px solid var(--bv-line); border-radius: var(--bv-radius); padding: 1.1rem 1.25rem; }
.bv-figure span { display: block; color: var(--bv-muted); font-size: .875rem; margin-bottom: .35rem; }
.bv-figure strong { font-family: var(--bv-font-display); font-size: 1.75rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Status pills */
.bv-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--bv-surface-2); color: var(--bv-muted); white-space: nowrap; }
.bv-status--ok { background: color-mix(in srgb, #1FA971 16%, transparent); color: color-mix(in srgb, #1FA971 70%, var(--bv-ink)); }
.bv-status--warn { background: var(--bv-seal-soft); color: var(--bv-seal-ink); }
.bv-status--bad { background: color-mix(in srgb, var(--bv-danger) 14%, transparent); color: var(--bv-danger); }

/* Form sections inside settings pages */
.bv-fieldset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.bv-fieldset > .bv-span-2 { grid-column: 1 / -1; }
@media (max-width: 767.98px) { .bv-fieldset { grid-template-columns: minmax(0, 1fr); } }
.bv-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; }

/* Bootstrap components used inside app pages, aligned with tokens */
.bv .modal { --bs-modal-bg: var(--bv-surface); --bs-modal-border-color: var(--bv-line); --bs-modal-border-radius: var(--bv-radius-lg); --bs-modal-header-border-color: var(--bv-line); --bs-modal-footer-border-color: var(--bv-line); }
.bv .modal-title { font-family: var(--bv-font-display); }
.bv .nav-tabs { --bs-nav-tabs-border-color: var(--bv-line); --bs-nav-tabs-link-active-bg: transparent; --bs-nav-tabs-link-active-color: var(--bv-violet); --bs-nav-tabs-link-active-border-color: transparent transparent var(--bv-violet); --bs-nav-link-color: var(--bv-muted); --bs-nav-link-hover-color: var(--bv-ink); }
.bv .nav-tabs .nav-link { border-width: 0 0 2px; font-weight: 600; }
.bv .alert { border-radius: var(--bv-radius); }
.bv .form-check-input { background-color: var(--bv-surface); border-color: color-mix(in srgb, var(--bv-muted) 60%, transparent); }
.bv .input-group-text { background: var(--bv-surface-2); border-color: var(--bv-line); color: var(--bv-muted); }
.bv .pagination { --bs-pagination-bg: var(--bv-surface); --bs-pagination-border-color: var(--bv-line); --bs-pagination-color: var(--bv-ink); --bs-pagination-active-bg: var(--bv-violet); --bs-pagination-active-border-color: var(--bv-violet); --bs-pagination-hover-bg: var(--bv-surface-2); }
