/* ==========================================================================
   BarcodeReport design system
   Loaded after Bootstrap 5.3. Ink + cobalt, with a "laser" red scan line as
   the brand accent. Space Grotesk for display, Inter for text, JetBrains Mono
   for codes and data.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Ink (dark surfaces, headings) */
    --ink-950: #060a13;
    --ink-900: #0b1220;
    --ink-850: #0f1829;
    --ink-800: #142036;
    --ink-700: #1d2b47;
    --ink-600: #2c3b5c;
    --ink-500: #44547a;

    /* Neutrals */
    --slate-25:  #fbfcfd;
    --slate-50:  #f6f7fa;
    --slate-100: #eef1f5;
    --slate-150: #e5e9f0;
    --slate-200: #d9dee8;
    --slate-300: #c2c9d6;
    --slate-400: #959fb3;
    --slate-500: #687286;
    --slate-600: #4b5466;
    --slate-700: #353c4b;
    --slate-800: #222733;
    --slate-900: #12161f;

    /* Cobalt (actions, links) */
    --cobalt-50:  #eef1ff;
    --cobalt-100: #e0e6ff;
    --cobalt-200: #c4cfff;
    --cobalt-300: #9eafff;
    --cobalt-400: #7088ff;
    --cobalt-500: #3d5afe;
    --cobalt-600: #2b46e8;
    --cobalt-700: #2236c2;
    --cobalt-800: #1e2f99;

    /* Laser (brand accent: the scan line) */
    --laser-300: #ff9b8f;
    --laser-400: #ff6a5a;
    --laser-500: #ff4433;
    --laser-600: #e33222;

    /* Status */
    --mint-50:  #e7f8f1;
    --mint-500: #0fa776;
    --mint-600: #0b8a61;
    --amber-50: #fff6e5;
    --amber-500: #e88a00;
    --amber-700: #8a5100;
    --red-50:  #fdeeee;
    --red-500: #d92d20;
    --red-700: #9b1c13;

    /* Semantic */
    --br-bg: #ffffff;
    --br-surface: #ffffff;
    --br-surface-2: var(--slate-50);
    --br-surface-3: var(--slate-100);
    --br-border: var(--slate-150);
    --br-border-strong: var(--slate-200);
    --br-text: var(--slate-700);
    --br-text-strong: var(--slate-900);
    --br-muted: var(--slate-500);
    --br-subtle: var(--slate-400);
    --br-ink: var(--ink-900);
    --br-primary: var(--cobalt-500);
    --br-primary-rgb: 61, 90, 254;
    --br-primary-hover: var(--cobalt-600);
    --br-primary-active: var(--cobalt-700);
    --br-primary-tint: var(--cobalt-50);
    --br-accent: var(--laser-500);
    --br-success: var(--mint-500);
    --br-warning: var(--amber-500);
    --br-danger: var(--red-500);
    --br-focus: 0 0 0 3px rgba(61, 90, 254, 0.28);

    /* Type */
    --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Shape & depth */
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 999px;
    --sh-xs: 0 1px 2px rgba(11, 18, 32, 0.06);
    --sh-sm: 0 1px 3px rgba(11, 18, 32, 0.08), 0 1px 2px rgba(11, 18, 32, 0.04);
    --sh-md: 0 6px 16px -4px rgba(11, 18, 32, 0.10), 0 2px 4px rgba(11, 18, 32, 0.04);
    --sh-lg: 0 18px 40px -12px rgba(11, 18, 32, 0.18), 0 4px 10px rgba(11, 18, 32, 0.05);
    --sh-xl: 0 32px 64px -20px rgba(11, 18, 32, 0.30);
    --sh-primary: 0 8px 22px -8px rgba(61, 90, 254, 0.55);

    /* Layout */
    --header-h: 68px;
    --container: 1200px;
    --gutter: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* Legacy aliases: older views and inline styles reference these names. */
    --primary-color: var(--br-primary);
    --color-primary: var(--br-primary);
    --color-primary-hover: var(--br-primary-hover);
    --color-primary-active: var(--br-primary-active);
    --color-primary-tint: var(--br-primary-tint);
    --color-primary-deep: var(--ink-900);
    --color-text: var(--br-text);
    --color-text-strong: var(--br-text-strong);
    --color-text-muted: var(--br-muted);
    --color-text-subtle: var(--br-subtle);
    --color-text-on-primary: #fff;
    --color-bg: var(--br-bg);
    --color-surface: var(--br-surface);
    --color-surface-alt: var(--br-surface-2);
    --color-surface-tint: var(--br-surface-3);
    --color-border: var(--br-border);
    --color-border-strong: var(--br-border-strong);
    --color-success: var(--br-success);
    --color-danger: var(--br-danger);
    --color-warning: var(--br-warning);
    --color-info: var(--br-primary);
    --surface-color: var(--br-surface);
    --hero-gradient: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
    --white: #ffffff;
    --black: #000000;
    --gray-400: var(--slate-400);
    --gray-500: var(--slate-500);
    --gray-700: var(--slate-700);
    --gray-900: var(--slate-900);
    --font-heading: var(--font-display);
    --font-ui: var(--font-body);
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --lh-tight: 1.2;
    --lh-snug: 1.35;
    --lh-base: 1.6;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --radius-sm: var(--r-xs);
    --radius-md: var(--r-sm);
    --radius-lg: var(--r-md);
    --radius-xl: var(--r-xl);
    --radius-pill: var(--r-pill);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;

    /* Bootstrap variables */
    --bs-primary: #3d5afe;
    --bs-primary-rgb: 61, 90, 254;
    --bs-link-color: #2b46e8;
    --bs-link-color-rgb: 43, 70, 232;
    --bs-link-hover-color: #2236c2;
    --bs-link-hover-color-rgb: 34, 54, 194;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: #353c4b;
    --bs-body-color-rgb: 53, 60, 75;
    --bs-border-color: #e5e9f0;
    --bs-border-radius: 8px;
    --bs-secondary-color: #687286;
    --bs-emphasis-color: #12161f;
    --bs-focus-ring-color: rgba(61, 90, 254, 0.28);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--br-bg);
    color: var(--br-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--br-text-strong);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; }

a {
    color: var(--br-primary-hover);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--br-primary-active); }

::selection { background: rgba(var(--br-primary-rgb), 0.18); color: inherit; }

:focus-visible {
    outline: 2px solid var(--br-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

:not(pre) > code {
    padding: 0.12em 0.4em;
    border: 1px solid var(--br-border);
    border-radius: 6px;
    background: var(--br-surface-2);
    color: var(--ink-700);
    font-size: 0.86em;
    word-break: break-word;
}

img { max-width: 100%; }

hr { border-color: var(--br-border); opacity: 1; }

/* Body scroll lock while the mobile menu is open (script.js toggles the class). */
body.mobile-nav-active {
    position: fixed;
    left: 0;
    right: 0;
    overflow: hidden;
}

#main { min-height: 50vh; }

/* --------------------------------------------------------------------------
   3. Bootstrap refinements
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); }

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--r-sm);
    font-family: var(--font-body);
    letter-spacing: -0.005em;
}

.btn-primary {
    --bs-btn-bg: var(--cobalt-500);
    --bs-btn-border-color: var(--cobalt-500);
    --bs-btn-hover-bg: var(--cobalt-600);
    --bs-btn-hover-border-color: var(--cobalt-600);
    --bs-btn-active-bg: var(--cobalt-700);
    --bs-btn-active-border-color: var(--cobalt-700);
    --bs-btn-disabled-bg: var(--cobalt-300);
    --bs-btn-disabled-border-color: var(--cobalt-300);
}

.btn-outline-primary {
    --bs-btn-color: var(--cobalt-600);
    --bs-btn-border-color: var(--cobalt-200);
    --bs-btn-hover-bg: var(--cobalt-50);
    --bs-btn-hover-color: var(--cobalt-700);
    --bs-btn-hover-border-color: var(--cobalt-300);
    --bs-btn-active-bg: var(--cobalt-100);
    --bs-btn-active-color: var(--cobalt-700);
}

.text-primary { color: var(--br-primary) !important; }
.bg-primary { background-color: var(--br-primary) !important; }

.form-control, .form-select {
    border-color: var(--br-border-strong);
    border-radius: var(--r-sm);
    color: var(--br-text-strong);
    font-size: 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cobalt-400);
    box-shadow: var(--br-focus);
}

.form-label { color: var(--br-text-strong); font-weight: 600; font-size: 14px; }

.form-check-input:checked { background-color: var(--br-primary); border-color: var(--br-primary); }

.table {
    --bs-table-border-color: var(--br-border);
    --bs-table-striped-bg: var(--slate-25);
    color: var(--br-text);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--slate-300);
    --bs-breadcrumb-item-active-color: var(--br-muted);
    margin: 0;
    font-size: 13.5px;
}

.breadcrumb a { color: var(--br-muted); }
.breadcrumb a:hover { color: var(--br-primary-hover); }

.pagination {
    --bs-pagination-color: var(--br-text);
    --bs-pagination-border-color: var(--br-border);
    --bs-pagination-hover-bg: var(--br-surface-2);
    --bs-pagination-hover-color: var(--br-primary-hover);
    --bs-pagination-active-bg: var(--br-ink);
    --bs-pagination-active-border-color: var(--br-ink);
    --bs-pagination-focus-box-shadow: var(--br-focus);
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-link { border-radius: var(--r-sm) !important; font-weight: 600; font-size: 14px; }

.badge { font-weight: 600; letter-spacing: 0.01em; }

.alert { border-radius: var(--r-md); }

.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-xl); }

.accordion {
    --bs-accordion-border-color: var(--br-border);
    --bs-accordion-active-bg: var(--br-surface-2);
    --bs-accordion-active-color: var(--br-text-strong);
    --bs-accordion-btn-focus-box-shadow: var(--br-focus);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.br-container,
.container-br {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.br-section { padding: clamp(56px, 7vw, 104px) 0; }
.br-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.br-section--alt { background: var(--br-surface-2); }
.br-section--ink { background: var(--ink-900); color: #c9d2e3; }
.br-section--ink h2, .br-section--ink h3 { color: #fff; }
.br-section + .br-section:not(.br-section--alt):not(.br-section--ink) { border-top: 1px solid var(--br-border); }

.br-section-head {
    max-width: 720px;
    margin: 0 auto clamp(32px, 4vw, 52px);
    text-align: center;
}

.br-section-head--left { margin-left: 0; text-align: left; }
.br-section-head h2 { margin-bottom: 14px; }
.br-section-head p { color: var(--br-muted); font-size: 1.075rem; margin: 0; }
.br-section--ink .br-section-head p { color: #9aa6bd; }

.br-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--br-primary-hover);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.br-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--br-accent);
}

.br-section--ink .br-eyebrow { color: var(--cobalt-300); }

.br-lead { font-size: 1.125rem; color: var(--br-muted); }

.br-grid {
    display: grid;
    gap: 20px;
}

.br-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
    .br-grid--3, .br-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639.98px) {
    .br-grid--2, .br-grid--3, .br-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.br-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

@media (max-width: 991.98px) {
    .br-split { grid-template-columns: minmax(0, 1fr); }
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.br-skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    background: var(--ink-900);
    color: #fff;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.br-btn,
.btn-br {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.br-btn:active, .btn-br:active { transform: translateY(1px); }
.br-btn i, .btn-br i { font-size: 1.05em; }

.br-btn--primary,
.btn-br--primary {
    background: var(--br-primary);
    color: #fff;
    box-shadow: var(--sh-primary);
}

.br-btn--primary:hover,
.btn-br--primary:hover {
    background: var(--br-primary-hover);
    color: #fff;
}

.br-btn--dark {
    background: var(--ink-900);
    color: #fff;
}

.br-btn--dark:hover { background: var(--ink-700); color: #fff; }

.br-btn--outline,
.btn-br--outline {
    border-color: var(--br-border-strong);
    background: #fff;
    color: var(--br-text-strong);
}

.br-btn--outline:hover,
.btn-br--outline:hover {
    border-color: var(--slate-300);
    background: var(--br-surface-2);
    color: var(--br-text-strong);
}

.br-btn--ghost {
    background: transparent;
    color: var(--br-text-strong);
}

.br-btn--ghost:hover { background: var(--br-surface-3); color: var(--br-text-strong); }

.br-btn--light {
    background: #fff;
    color: var(--ink-900);
}

.br-btn--light:hover { background: var(--cobalt-50); color: var(--ink-900); }

.br-btn--glass {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.br-btn--glass:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.12); color: #fff; }

.br-btn--sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.br-btn--lg, .btn-br--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.br-btn--block, .btn-br--block { display: flex; width: 100%; }

.br-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.br-link-arrow i { transition: transform var(--transition-fast); }
.br-link-arrow:hover i { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Brand logo
   -------------------------------------------------------------------------- */
.br-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-900);
    text-decoration: none;
    flex-shrink: 0;
}

.br-logo:hover { color: var(--ink-900); }

.br-logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.br-logo__bg { fill: var(--logo-bg, var(--ink-900)); }
.br-logo__bars { fill: var(--logo-bars, #ffffff); }
.br-logo__laser { fill: var(--br-accent); }

.br-logo__word {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
}

.br-logo__word span { color: var(--br-primary); }

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.br-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.br-header.header-scrolled,
.br-header--solid {
    border-bottom-color: var(--br-border);
    box-shadow: 0 1px 0 rgba(11, 18, 32, 0.02), 0 8px 24px -16px rgba(11, 18, 32, 0.25);
}

.br-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 100%;
}

.br-nav { flex: 1; min-width: 0; }

.br-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.br-nav__item { position: relative; }

.br-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--slate-600);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.br-nav__link i { font-size: 11px; transition: transform var(--transition-fast); }

.br-nav__link:hover,
.br-nav__item:focus-within > .br-nav__link,
.br-nav__item.is-open > .br-nav__link {
    background: var(--br-surface-3);
    color: var(--br-text-strong);
}

.br-nav__link.active { color: var(--br-text-strong); }

.br-nav__item.is-open > .br-nav__link i { transform: rotate(180deg); }

.br-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -12px;
    z-index: 10;
    width: 520px;
    padding: 10px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
}

/* Hover bridge so the pointer can travel from the link to the panel. */
.br-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.br-nav__item:hover > .br-menu,
.br-nav__item:focus-within > .br-menu,
.br-nav__item.is-open > .br-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.br-menu--narrow { width: 360px; }

.br-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.br-menu--narrow .br-menu__grid { grid-template-columns: 1fr; }

.br-menu__link {
    display: flex;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--r-md);
    color: var(--br-text);
}

.br-menu__link:hover { background: var(--br-surface-2); color: var(--br-text); }

.br-menu__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--br-border);
    border-radius: 9px;
    background: #fff;
    color: var(--br-primary);
    font-size: 16px;
    box-shadow: var(--sh-xs);
}

.br-menu__link:hover .br-menu__icon { border-color: var(--cobalt-200); background: var(--cobalt-50); }

.br-menu__title {
    display: block;
    color: var(--br-text-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.br-menu__desc {
    display: block;
    margin-top: 2px;
    color: var(--br-muted);
    font-size: 12.5px;
    line-height: 1.4;
}

.br-menu__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    background: var(--br-surface-2);
    font-size: 13px;
    color: var(--br-muted);
}

.br-menu__foot a { font-weight: 600; }

.br-header__search {
    position: relative;
    width: 250px;
    flex-shrink: 1;
}

.br-header__search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--br-border-strong);
    border-radius: var(--r-pill);
    background: var(--br-surface-2);
    color: var(--br-text-strong);
    font-family: var(--font-mono);
    font-size: 13px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.br-header__search input::placeholder { color: var(--br-subtle); font-family: var(--font-body); font-size: 13.5px; }

.br-header__search input:focus {
    border-color: var(--cobalt-400);
    background: #fff;
    box-shadow: var(--br-focus);
    outline: none;
}

.br-header__search i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--br-subtle);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.br-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.mobile-nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--br-border);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink-900);
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 1199.98px) {
    .br-header__search { display: none; }
}

@media (max-width: 991.98px) {
    .br-nav, .br-header__actions { display: none; }
    .mobile-nav-toggle { display: grid; }
    .br-header__inner { gap: 12px; }
}

/* --------------------------------------------------------------------------
   8. Mobile menu (structure and toggling owned by script.js)
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(6, 10, 19, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 0s linear 200ms;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    width: min(380px, 88vw);
    background: #fff;
    box-shadow: var(--sh-xl);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms var(--ease), visibility 0s linear 260ms;
}

body.mobile-nav-active .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms ease;
}

body.mobile-nav-active .mobile-menu {
    transform: none;
    visibility: visible;
    transition: transform 260ms var(--ease);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 18px 0 20px;
    border-bottom: 1px solid var(--br-border);
}

.mobile-menu-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink-900);
    font-size: 24px;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 28px;
}

.mobile-menu__search { position: relative; margin-bottom: 18px; }
.mobile-menu__search input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--br-border-strong);
    border-radius: var(--r-md);
    background: var(--br-surface-2);
    font-size: 15px;
}
.mobile-menu__search i { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--br-subtle); }

.mobile-menu__label {
    margin: 18px 0 6px;
    color: var(--br-subtle);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-nav-list, .mobile-auth-list { margin: 0; padding: 0; list-style: none; }

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--slate-100);
    color: var(--br-text-strong);
    font-size: 15.5px;
    font-weight: 500;
}

.mobile-nav-list a i { color: var(--br-primary); font-size: 17px; width: 20px; text-align: center; }

.mobile-auth-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.mobile-auth-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: var(--r-sm);
    font-weight: 600;
}

.mobile-auth-list .btn-signup { background: var(--br-primary); color: #fff; }
.mobile-auth-list .btn-login { border: 1px solid var(--br-border-strong); color: var(--br-text-strong); }

@media (min-width: 992px) {
    .mobile-menu, .mobile-nav-overlay { display: none; }
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.br-footer {
    position: relative;
    overflow: hidden;
    background: var(--ink-950);
    color: #94a0b8;
    font-size: 14.5px;
}

.br-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 51, 0.7) 30%, rgba(61, 90, 254, 0.7) 70%, transparent);
}

.br-footer a { color: #c3cbdb; }
.br-footer a:hover { color: #fff; }

.br-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: 40px 32px;
    padding: 72px 0 48px;
}

.br-footer__brand { --logo-bg: #1b2846; color: #fff; }
.br-footer__brand .br-logo { color: #fff; }
.br-footer__brand .br-logo:hover { color: #fff; }
.br-footer__brand .br-logo__word span { color: var(--cobalt-300); }

.br-footer__tagline { max-width: 320px; margin: 16px 0 20px; color: #94a0b8; line-height: 1.6; }

.br-footer h4 {
    margin: 4px 0 16px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.br-footer ul { margin: 0; padding: 0; list-style: none; }
.br-footer li + li { margin-top: 10px; }

.br-footer__social { display: flex; gap: 8px; margin-bottom: 18px; }

.br-footer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    color: #c3cbdb;
    font-size: 16px;
}

.br-footer__social a:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }

.br-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.br-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }

.br-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a0b8;
    font-family: var(--font-mono);
    font-size: 12px;
}

.br-footer__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint-500);
    box-shadow: 0 0 0 3px rgba(15, 167, 118, 0.2);
}

@media (max-width: 991.98px) {
    .br-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .br-footer__brand { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   10. Back to top (script.js toggles .active)
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 996;
    display: grid !important;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--ink-900);
    color: #fff;
    font-size: 24px;
    box-shadow: var(--sh-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility 0s linear 250ms;
}

.back-to-top.active { opacity: 1; visibility: visible; transition: opacity var(--transition-base); }
.back-to-top:hover { background: var(--br-primary); color: #fff; }
body.mobile-nav-active .back-to-top { display: none !important; }

/* --------------------------------------------------------------------------
   11. Chips, badges, cards
   -------------------------------------------------------------------------- */
.br-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--br-text-strong);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.br-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--br-accent);
    box-shadow: 0 0 0 3px rgba(255, 68, 51, 0.18);
}

.br-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--br-surface-3);
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.br-badge--success { background: var(--mint-50); color: var(--mint-600); }
.br-badge--warning { background: var(--amber-50); color: var(--amber-700); }
.br-badge--danger { background: var(--red-50); color: var(--red-700); }
.br-badge--primary { background: var(--cobalt-50); color: var(--cobalt-700); }
.br-badge--ink { background: var(--ink-900); color: #fff; }

.br-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh-xs);
}

.br-card--hover { transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base); }
.br-card--hover:hover { border-color: var(--slate-200); box-shadow: var(--sh-md); transform: translateY(-2px); }

.br-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.br-card p { margin: 0; color: var(--br-muted); font-size: 15px; }

.br-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--cobalt-50);
    color: var(--br-primary);
    font-size: 21px;
}

.br-card__icon--ink { background: var(--ink-900); color: #fff; }
.br-card__icon--laser { background: #fff0ee; color: var(--laser-600); }
.br-card__icon--mint { background: var(--mint-50); color: var(--mint-600); }
.br-card__icon--amber { background: var(--amber-50); color: var(--amber-500); }

.br-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14.5px;
    font-weight: 600;
}

.br-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.br-card__link i { transition: transform var(--transition-fast); }
.br-card:hover .br-card__link i { transform: translateX(3px); }

.br-checklist { margin: 18px 0 0; padding: 0; list-style: none; }
.br-checklist li {
    position: relative;
    padding: 5px 0 5px 28px;
    color: var(--br-text);
    font-size: 15px;
}
.br-checklist li::before {
    content: "\F26E";
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--br-success);
    font-family: "bootstrap-icons";
    font-size: 17px;
    line-height: 1;
}
.br-section--ink .br-checklist li { color: #c9d2e3; }

/* --------------------------------------------------------------------------
   12. Home hero
   -------------------------------------------------------------------------- */
.br-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 0;
    background: var(--ink-950);
    color: #b8c2d6;
    isolation: isolate;
}

.br-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(61, 90, 254, 0.28), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(255, 68, 51, 0.10), transparent 60%),
        var(--ink-950);
}

/* Barcode-bar texture fading out from the top right. */
.br-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px,
        rgba(255, 255, 255, 0.05) 7px 8px, transparent 8px 12px,
        rgba(255, 255, 255, 0.05) 12px 16px, transparent 16px 23px);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 0%, transparent 70%);
}

.br-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.br-hero .br-chip {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #dbe2f0;
}

.br-hero__title { margin: 22px 0 28px; }

.br-hero__title h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.br-hero__title h1 span {
    background: linear-gradient(92deg, #ffffff 0%, var(--cobalt-300) 55%, var(--laser-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.br-hero__title p {
    max-width: 540px;
    margin: 0;
    color: #a7b2c8;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
    line-height: 1.55;
}

.br-hero-search {
    display: flex;
    gap: 8px;
    max-width: 580px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.br-hero-search:focus-within { border-color: rgba(112, 136, 255, 0.7); box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.25), 0 20px 50px -20px rgba(0, 0, 0, 0.6); }

.br-hero-search__field { position: relative; flex: 1; min-width: 0; }

.br-hero-search__field i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #7d89a3;
    font-size: 18px;
    transform: translateY(-50%);
}

.br-hero-search input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-900);
    font-size: 16.5px;
    font-weight: 500;
}

.br-hero-search input::placeholder { color: var(--slate-400); font-weight: 400; }
.br-hero-search input:focus { outline: none; }

.br-hero-search button {
    flex-shrink: 0;
    height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: var(--br-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.br-hero-search button:hover { background: var(--br-primary-hover); }

.br-hero .search-hint { margin: 12px 2px 0; color: #7d89a3; font-size: 13.5px; }

.br-hero__try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #7d89a3;
    font-size: 13px;
}

.br-hero__try a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-pill);
    color: #dbe2f0;
    font-size: 13px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.br-hero__try a:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; }
.br-hero__try code { padding: 0; border: 0; background: none; color: #8fa0ff; font-size: 12px; }

/* Product card that "scans" in the hero */
.br-scan {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.br-scan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #8c98b2;
    font-family: var(--font-mono);
    font-size: 12px;
}

.br-scan__head .br-badge { background: rgba(15, 167, 118, 0.15); color: #4ade9d; font-family: var(--font-body); }

.br-scan__code {
    position: relative;
    overflow: hidden;
    padding: 18px 26px 12px;
    border-radius: 12px;
    background: #fff;
    color: var(--ink-900);
}

.br-scan__code .br-barcode { display: block; width: 100%; height: auto; max-height: 132px; }

.br-scan__laser {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 2px;
    border-radius: 2px;
    background: var(--laser-500);
    box-shadow: 0 0 12px 2px rgba(255, 68, 51, 0.65), 0 0 2px rgba(255, 68, 51, 1);
    animation: br-scan 3.2s var(--ease) infinite;
}

@keyframes br-scan {
    0%, 100% { top: 14%; }
    50% { top: 74%; }
}

@media (prefers-reduced-motion: reduce) {
    .br-scan__laser { animation: none; }
}

.br-scan__product {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

.br-scan__thumb {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.br-scan__thumb img { width: 100%; height: 100%; object-fit: contain; }

.br-scan__title { margin: 0; color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.br-scan__meta { margin: 4px 0 0; color: #8c98b2; font-size: 13px; }

.br-scan__json {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    color: #c9d2e3;
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.tok-k { color: #8fa0ff; }
.tok-s { color: #8ee0b5; }
.tok-n { color: #ffb38a; }
.tok-p { color: #6b7896; }

.br-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(48px, 6vw, 80px) 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.br-hero__stats li { padding: 26px 24px 30px 0; }
.br-hero__stats li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.08); }

.br-hero__stat-num {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.br-hero__stat-label { display: block; margin-top: 6px; color: #8c98b2; font-size: 13.5px; line-height: 1.4; }

@media (max-width: 991.98px) {
    .br-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .br-hero__visual { max-width: 560px; }
    .br-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .br-hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
    .br-hero__stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 575.98px) {
    .br-hero-search { flex-direction: column; }
    .br-hero-search button { width: 100%; }
}

/* Open-data provenance strip */
.br-sources {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 34px;
    padding: 26px 0;
    border-bottom: 1px solid var(--br-border);
    color: var(--br-muted);
    font-size: 14px;
}

.br-sources__label { color: var(--br-subtle); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.br-sources span:not(.br-sources__label) { color: var(--slate-600); font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* Audience split */
.br-audience {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--r-xl);
}

.br-audience h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); }
.br-audience > p { margin: 0; font-size: 16px; }
.br-audience .br-btn { margin-top: 26px; }

.br-audience--b2b { background: var(--ink-900); color: #a7b2c8; }
.br-audience--b2b h3 { color: #fff; }
.br-audience--b2b .br-checklist li { color: #c9d2e3; }
.br-audience--b2c { border: 1px solid var(--br-border); background: linear-gradient(160deg, #fff 0%, var(--cobalt-50) 100%); color: var(--br-muted); }

.br-audience__tag {
    display: inline-block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.br-audience--b2b .br-audience__tag { color: var(--cobalt-300); }
.br-audience--b2c .br-audience__tag { color: var(--br-primary-hover); }

/* --------------------------------------------------------------------------
   13. Code panels
   -------------------------------------------------------------------------- */
.br-code {
    overflow: hidden;
    border: 1px solid #1f2a42;
    border-radius: var(--r-lg);
    background: #0a101d;
    box-shadow: var(--sh-xl);
}

.br-code__bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px 0;
    border-bottom: 1px solid #1a2438;
    background: #0d1424;
}

.br-code__tab {
    position: relative;
    padding: 9px 13px 11px;
    border: 0;
    background: transparent;
    color: #7d89a3;
    font-family: var(--font-mono);
    font-size: 12.5px;
    cursor: pointer;
}

.br-code__tab:hover { color: #c9d2e3; }
.br-code__tab.is-active { color: #fff; }
.br-code__tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--laser-500); }

.br-code__copy {
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid #263252;
    border-radius: 6px;
    background: transparent;
    color: #9aa6bd;
    font-size: 12px;
    font-weight: 500;
}

.br-code__copy:hover { border-color: #3a4a72; color: #fff; }
.br-code__copy.is-copied { border-color: rgba(15, 167, 118, 0.5); color: #4ade9d; }

.br-code pre {
    margin: 0;
    padding: 20px 22px;
    color: #c9d2e3;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-x: auto;
}

.br-code__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-top: 1px solid #1a2438;
    background: #0d1424;
    color: #7d89a3;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.br-code__label .br-badge { background: rgba(15, 167, 118, 0.15); color: #4ade9d; letter-spacing: 0; text-transform: none; }

.br-feature-list { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.br-feature-list li { display: flex; gap: 14px; }
.br-feature-list i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(61, 90, 254, 0.16);
    color: var(--cobalt-300);
    font-size: 17px;
}
.br-feature-list strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.br-feature-list span { color: #9aa6bd; font-size: 14.5px; }

.br-dev-copy h2 { margin: 0 0 16px; color: #fff; }
.br-dev-copy p { color: #a7b2c8; font-size: 16.5px; }
.br-dev-copy .br-actions { margin-top: 30px; }

.br-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------------------
   14. Bulk band, anatomy, posts, FAQ, CTA
   -------------------------------------------------------------------------- */
.br-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--br-border);
    border-radius: var(--r-xl);
    background:
        radial-gradient(500px 200px at 100% 0%, rgba(61, 90, 254, 0.08), transparent 70%),
        #fff;
    box-shadow: var(--sh-sm);
}

.br-band__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--ink-900);
    color: #fff;
    font-size: 28px;
}

.br-band h2 { margin: 0 0 8px; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); }
.br-band p { margin: 0; color: var(--br-muted); }
.br-band .br-checklist { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; }
.br-band .br-checklist li { font-size: 14px; }
.br-band__cta { text-align: center; }
.br-band__cta small { display: block; margin-top: 8px; color: var(--br-muted); font-size: 12.5px; }

@media (max-width: 991.98px) {
    .br-band { grid-template-columns: minmax(0, 1fr); }
    .br-band__cta { text-align: left; }
}

.br-prose-block h2 { margin: 0 0 16px; }
.br-prose-block p { color: var(--br-muted); font-size: 16.5px; line-height: 1.7; }

.br-anatomy {
    padding: 26px 26px 18px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--sh-md);
}

.br-anatomy svg { display: block; width: 100%; height: auto; color: var(--ink-900); }
.br-anatomy figcaption { margin-top: 12px; color: var(--br-muted); font-size: 13px; text-align: center; }

.br-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.br-post-card:hover { border-color: var(--slate-200); box-shadow: var(--sh-md); transform: translateY(-2px); }

.br-post-card__media {
    position: relative;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background: var(--ink-900);
}

.br-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.br-post-card:hover .br-post-card__media img { transform: scale(1.03); }

.br-post-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 42px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, transparent 3px 9px), var(--ink-800);
}

.br-post-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }

.br-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 10px;
    color: var(--br-muted);
    font-size: 12.5px;
}

.br-post-card__cat { color: var(--br-primary-hover); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.br-post-card h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }
.br-post-card h3 a { color: var(--br-text-strong); }
.br-post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.br-post-card { position: relative; }
.br-post-card p { margin: 0; color: var(--br-muted); font-size: 14.5px; line-height: 1.55; }

.br-faq { max-width: 860px; margin: 0 auto; }

.br-faq details {
    border-bottom: 1px solid var(--br-border);
}

.br-faq details:first-child { border-top: 1px solid var(--br-border); }

.br-faq summary {
    position: relative;
    padding: 22px 48px 22px 0;
    color: var(--br-text-strong);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
}

.br-faq summary::-webkit-details-marker { display: none; }

.br-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--br-border);
    border-radius: 50%;
    color: var(--br-muted);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    transform: translateY(-50%);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.br-faq details[open] summary::after { content: "–"; background: var(--br-surface-2); }
.br-faq details > div { padding: 0 48px 24px 0; color: var(--br-muted); font-size: 15.5px; line-height: 1.7; }
.br-faq details > div p:last-child { margin-bottom: 0; }

.br-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border-radius: 28px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(61, 90, 254, 0.45), transparent 60%),
        radial-gradient(500px 260px at 0% 100%, rgba(255, 68, 51, 0.18), transparent 60%),
        var(--ink-900);
    color: #a7b2c8;
    text-align: center;
}

.br-cta h2 { margin: 0 0 14px; color: #fff; }
.br-cta p { max-width: 560px; margin: 0 auto; font-size: 17px; }
.br-cta .br-actions { justify-content: center; margin-top: 30px; }

/* Use-case cards (who uses) */
.br-usecase { padding: 28px; }
.br-usecase h3 { margin-bottom: 10px; }
.br-usecase .br-checklist { margin-top: 16px; }
.br-usecase--feature { border-color: var(--ink-900); background: var(--ink-900); }
.br-usecase--feature h3 { color: #fff; }
.br-usecase--feature p, .br-usecase--feature .br-checklist li { color: #b8c2d6; }

/* Plan flexibility strip */
.br-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 40px auto 0; }
.br-assurances > div { display: flex; gap: 14px; align-items: flex-start; }
.br-assurances i { color: var(--br-primary); font-size: 22px; line-height: 1.2; }
.br-assurances strong { display: block; color: var(--br-text-strong); font-size: 15px; }
.br-assurances span { color: var(--br-muted); font-size: 14px; }

@media (max-width: 767.98px) {
    .br-assurances { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   15. Pricing (frontend/partials/pricing-plans)
   -------------------------------------------------------------------------- */
.free-tier-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    max-width: 1100px;
    margin: 0 auto 22px;
    padding: 16px 18px 16px 22px;
    border: 1px dashed var(--cobalt-300);
    border-radius: var(--r-md);
    background: var(--cobalt-50);
    color: var(--br-text);
    font-size: 15px;
}

.free-tier-strip strong { color: var(--br-text-strong); }
.free-tier-strip a { white-space: nowrap; }
.free-tier-strip .br-btn { width: auto; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px 22px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh-xs);
}

.plan-card.featured {
    border-color: var(--ink-900);
    background: var(--ink-900);
    box-shadow: var(--sh-lg);
}

.popular-badge {
    position: absolute;
    top: -11px;
    left: 22px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--laser-500);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.plan-name {
    color: var(--br-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-price {
    margin: 10px 0 18px;
    color: var(--br-text-strong);
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.plan-price span { color: var(--br-muted); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; }

.plan-features { flex: 1; margin: 0 0 22px; padding: 18px 0 0; border-top: 1px solid var(--br-border); list-style: none; }
.plan-features li { display: flex; gap: 9px; padding: 5px 0; color: var(--br-text); font-size: 14px; line-height: 1.45; }
.plan-features i { color: var(--br-success); font-size: 14px; line-height: 1.45; }

.plan-card.featured .plan-name { color: var(--cobalt-300); }
.plan-card.featured .plan-price { color: #fff; }
.plan-card.featured .plan-price span { color: #8c98b2; }
.plan-card.featured .plan-features { border-top-color: rgba(255, 255, 255, 0.12); }
.plan-card.featured .plan-features li { color: #c9d2e3; }
.plan-card.featured .plan-features i { color: #4ade9d; }

@media (max-width: 991.98px) { .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539.98px) { .plans-grid { grid-template-columns: minmax(0, 1fr); } }

.br-anatomy__legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--br-border);
    list-style: none;
    font-size: 13.5px;
}

.br-anatomy__legend li { display: flex; align-items: center; gap: 8px; color: var(--br-muted); }
.br-anatomy__legend span { width: 10px; height: 10px; flex-shrink: 0; border-radius: 3px; }
.br-anatomy__legend strong { color: var(--br-text-strong); font-weight: 600; }
.br-anatomy__legend code { margin-left: auto; }
.br-scan__code .br-barcode { max-height: none; }
.br-code pre { font-size: 13px; }

/* --------------------------------------------------------------------------
   16. Product page (frontend/barcode/product + partials)
   -------------------------------------------------------------------------- */
.br-pdp { padding: 22px 0 72px; background: linear-gradient(180deg, var(--slate-50) 0, #fff 420px); }
.br-pdp__crumbs { margin-bottom: 18px; }

.br-pdp__head {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--br-border);
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--sh-md);
}

.br-pdp__visual { display: grid; gap: 14px; align-content: start; }

.br-pdp__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
}

.br-pdp__media img { width: 100%; height: 100%; padding: 18px; object-fit: contain; }
.br-pdp__media-empty { display: none; }
.br-pdp__media.is-empty {
    background: repeating-linear-gradient(90deg, rgba(11, 18, 32, 0.035) 0 3px, transparent 3px 9px), var(--slate-50);
}
.br-pdp__media.is-empty .br-pdp__media-empty {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: #fff;
    color: var(--slate-400);
    font-size: 38px;
    box-shadow: var(--sh-sm);
}

.br-pdp__barcode {
    position: relative;
    padding: 16px 18px 12px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    color: var(--ink-900);
}

.br-pdp__barcode .br-barcode { display: block; width: 100%; height: auto; }

.br-pdp__download {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--br-surface-2);
    color: var(--br-muted);
    font-size: 11.5px;
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.br-pdp__barcode:hover .br-pdp__download, .br-pdp__download:focus { opacity: 1; }

.br-pdp__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.br-pdp__title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.br-pdp__sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--br-muted);
    font-size: 15px;
}

.br-pdp__sub code { font-size: 14px; }
.br-pdp__sub span:last-child { color: var(--br-text-strong); font-weight: 600; }
.br-pdp__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--slate-300); }

.br-pdp__cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.br-pdp__cats li {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--br-surface-3);
    color: var(--slate-600);
    font-size: 12.5px;
    font-weight: 500;
}
.br-pdp__cats li + li::before { content: "› "; color: var(--slate-400); }

.br-pdp__answer {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 3px solid var(--br-accent);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    background: var(--slate-50);
    color: var(--br-text);
    font-size: 15px;
    line-height: 1.6;
}

.br-pdp__ids {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 0 0 24px;
}

.br-pdp__ids > div {
    padding: 10px 12px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-md);
    background: #fff;
}

.br-pdp__ids dt { color: var(--br-subtle); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.br-pdp__ids dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.br-pdp__ids code { padding: 0; border: 0; background: none; color: var(--br-text-strong); font-size: 14.5px; font-weight: 500; }

.br-pdp__copy {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--br-subtle);
    font-size: 14px;
}

.br-pdp__copy:hover { background: var(--br-surface-3); color: var(--br-text-strong); }
.br-pdp__copy.is-copied { color: var(--br-success); }

.br-pdp__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    margin-top: 28px;
    align-items: start;
}

.br-pdp__main { display: grid; gap: 20px; min-width: 0; }
.br-pdp__main > * { margin: 0; }

.br-pdp__card,
.barcode-detail-block {
    padding: 24px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
}

.barcode-detail-heading {
    margin: 0 0 16px;
    font-size: 1.15rem;
    letter-spacing: -0.015em;
}

.product-data-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.product-data-table th, .product-data-table td { padding: 11px 0; border-bottom: 1px solid var(--slate-100); vertical-align: top; }
.product-data-table tr:last-child th, .product-data-table tr:last-child td { border-bottom: 0; }
.product-data-table th {
    width: 34%;
    padding-right: 16px;
    color: var(--br-muted);
    font-size: 13px;
    font-weight: 500;
}
.product-data-table td { color: var(--br-text-strong); overflow-wrap: anywhere; }
.product-data-table td.is-description { color: var(--br-text); line-height: 1.65; }
.product-thumb { max-width: 140px; max-height: 140px; border: 1px solid var(--br-border); border-radius: var(--r-sm); object-fit: contain; }

.enriched-product-details-heading { margin: 0 0 12px; font-size: 1.05rem; }
.br-pdp__main .table-responsive-br, .br-pdp__main .mb-4 { margin-bottom: 0 !important; }
[data-role="data-attribution"] { margin-top: -8px !important; color: var(--br-muted) !important; font-size: 12.5px !important; }

.br-pdp__hint { margin-left: 6px; color: var(--br-subtle); font-size: 12px; }
.br-pdp__note { display: flex; gap: 8px; margin: 14px 0 0; color: var(--br-muted); font-size: 13.5px; }

.br-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.br-related a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-md);
    color: inherit;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.br-related a:hover { border-color: var(--slate-200); background: var(--slate-25); }
.br-related__thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--slate-50);
    color: var(--slate-400);
}
.br-related__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; object-fit: contain; background: #fff; }
.br-related__text { min-width: 0; }
.br-related__title { display: block; overflow: hidden; color: var(--br-text-strong); font-size: 14px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.br-related__code { display: block; color: var(--br-muted); font-family: var(--font-mono); font-size: 12px; }

.barcode-neighbours { display: flex; justify-content: space-between; gap: 16px; padding: 4px 2px; font-size: 14px; }
.br-pdp__block-text { color: var(--br-muted); font-size: 14.5px; }
.br-pdp__block-text p { margin-bottom: 6px; }

.br-pdp__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }

.br-aside-card {
    padding: 22px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
}

.br-aside-card h3 { margin: 4px 0 8px; font-size: 1.05rem; }
.br-aside-card p { margin: 0 0 14px; color: var(--br-muted); font-size: 14px; }
.br-aside-card__kicker { color: var(--br-primary-hover); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.br-aside-card .br-link-arrow { font-size: 14px; }
.br-aside-card--ink { border-color: var(--ink-900); background: var(--ink-900); }
.br-aside-card--ink h3 { color: #fff; }
.br-aside-card--ink p { color: #a7b2c8; }
.br-aside-card--ink .br-aside-card__kicker { color: var(--cobalt-300); }

@media (max-width: 1099.98px) {
    .br-pdp__body { grid-template-columns: minmax(0, 1fr); }
    .br-pdp__aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 767.98px) {
    .br-pdp__head { grid-template-columns: minmax(0, 1fr); }
    .br-pdp__visual { grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
    .br-related { grid-template-columns: minmax(0, 1fr); }
    .product-data-table th { width: 40%; }
}

/* API panel partial */
.api-panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    border-color: var(--ink-900) !important;
    background: var(--ink-900) !important;
    color: #a7b2c8;
}
.api-panel .barcode-detail-heading { color: #fff; }
.api-panel__intro p { color: #a7b2c8; font-size: 15px; }
.api-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.api-panel .btn-br--outline { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: #fff; }
.api-panel .btn-br--outline:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); color: #fff; }
.api-panel__more { margin: 6px 0 0 !important; font-size: 13.5px !important; }
.api-panel__more a { color: var(--cobalt-300); }
.api-panel__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 6px;
    color: #7d89a3;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.api-panel__label + pre + .api-panel__label { margin-top: 14px; }
.api-panel__code pre {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #1f2a42;
    border-radius: var(--r-md);
    background: #060a13;
    color: #c9d2e3;
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}
.api-panel__copy {
    padding: 3px 9px;
    border: 1px solid #263252;
    border-radius: 6px;
    background: transparent;
    color: #9aa6bd;
    font-family: var(--font-body);
    font-size: 11.5px;
    letter-spacing: 0;
    text-transform: none;
}
.api-panel__copy:hover { color: #fff; border-color: #3a4a72; }
@media (max-width: 767.98px) { .api-panel { grid-template-columns: minmax(0, 1fr); } }

/* Not-found partial */
.notfound-panel { border: 1px dashed var(--amber-500) !important; background: var(--amber-50) !important; }
.notfound-panel p { color: var(--br-text); }
.notfound-panel__form { margin: 18px 0; }
.notfound-panel__form label { display: block; margin-bottom: 6px; color: var(--br-text-strong); font-size: 14px; font-weight: 600; }
.notfound-panel__row { display: flex; gap: 8px; max-width: 520px; }
.notfound-panel__row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--br-border-strong);
    border-radius: var(--r-sm);
    background: #fff;
    font-size: 15px;
}
.notfound-panel__row input:focus { border-color: var(--cobalt-400); box-shadow: var(--br-focus); outline: none; }
.notfound-panel__hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notfound-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 16px; font-size: 14.5px; }
.notfound-panel__status { margin: 14px 0; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; }
.notfound-panel__status.is-ok { background: var(--mint-50); color: var(--mint-600); }
.notfound-panel__status.is-error { background: var(--red-50); color: var(--red-700); }
.notfound-panel__api { margin: 0 !important; padding-top: 14px; border-top: 1px solid rgba(232, 138, 0, 0.25); color: var(--br-muted) !important; font-size: 14px; }
@media (max-width: 539.98px) { .notfound-panel__row { flex-direction: column; } }
.br-pdp__card--enriched .enriched-product-details-heading { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   17. Auth pages (login, register, password forgot/reset)
   -------------------------------------------------------------------------- */
.auth-section {
    position: relative;
    padding: clamp(40px, 6vw, 80px) 0;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(61, 90, 254, 0.08), transparent 60%),
        var(--slate-50);
    min-height: calc(100vh - var(--header-h));
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}

.auth-layout--single { grid-template-columns: minmax(0, 460px); justify-content: center; }

.auth-aside h2 { margin: 14px 0 14px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.auth-aside > p { color: var(--br-muted); font-size: 16.5px; }
.auth-aside .br-checklist li { font-size: 15.5px; padding-top: 7px; padding-bottom: 7px; }

.auth-aside__code {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--ink-900);
    color: #c9d2e3;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}

.auth-card {
    width: 100%;
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid var(--br-border);
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--sh-lg);
}

.auth-header { margin-bottom: 26px; }
.auth-header h1 { margin: 0 0 8px; font-size: 1.75rem; letter-spacing: -0.025em; }
.auth-header p { margin: 0; color: var(--br-muted); font-size: 15px; }

.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-row { display: flex; gap: 14px; }
.auth-form .form-row .form-group { flex: 1; min-width: 0; }
.auth-form .form-label { margin-bottom: 6px; }

.input-group-icon { position: relative; }
.input-group-icon .input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--br-subtle);
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}
.input-group-icon .form-control { height: 48px; padding-left: 42px; border-radius: var(--r-sm); }

.auth-form .error-message,
.auth-form .inline-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    color: var(--br-danger);
    font-size: 12.5px;
}
.auth-form .error-message::before,
.auth-form .inline-error::before { content: "\F333"; font-family: "bootstrap-icons"; font-size: 13px; }
.auth-form .inline-error { display: none; }
.auth-form .inline-error.show { display: flex; }

.alert-error {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 45, 32, 0.25);
    border-radius: var(--r-sm);
    background: var(--red-50);
    color: var(--red-700);
    font-size: 14px;
}

.btn-auth-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--br-primary);
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    box-shadow: var(--sh-primary);
    transition: background-color var(--transition-fast);
}
.btn-auth-primary:hover { background: var(--br-primary-hover); color: #fff; }
.btn-auth-primary:disabled { opacity: 0.7; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--br-subtle);
    font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--br-border); }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border: 1px solid var(--br-border-strong);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--br-text-strong);
    font-size: 15px;
    font-weight: 600;
}
.btn-google svg { width: 18px; height: 18px; }
.btn-google:hover { background: var(--br-surface-2); color: var(--br-text-strong); }

.auth-footer { margin-top: 22px; text-align: center; }
.auth-footer p { margin: 0; color: var(--br-muted); font-size: 14.5px; }
.auth-footer a { font-weight: 600; }

.cf-turnstile { max-width: 100%; overflow: hidden; }

@media (max-width: 991.98px) {
    .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .auth-aside { order: 2; }
}

@media (max-width: 575.98px) {
    .auth-form .form-row { flex-direction: column; gap: 0; }
    .cf-turnstile { transform: scale(0.9); transform-origin: left top; }
}

/* --------------------------------------------------------------------------
   18. Shared Blade components (resources/views/components)
   -------------------------------------------------------------------------- */
.alert-br {
    padding: 13px 16px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-md);
    background: var(--br-surface-2);
    color: var(--br-text);
    font-size: 14.5px;
}
.alert-br--success { border-color: rgba(15, 167, 118, 0.3); background: var(--mint-50); color: var(--mint-600); }
.alert-br--error, .alert-br--danger { border-color: rgba(217, 45, 32, 0.25); background: var(--red-50); color: var(--red-700); }
.alert-br--warning { border-color: rgba(232, 138, 0, 0.3); background: var(--amber-50); color: var(--amber-700); }
.alert-br--info { border-color: var(--cobalt-200); background: var(--cobalt-50); color: var(--cobalt-700); }
.u-stack-sm > * + * { margin-top: 10px; }

.card-br {
    padding: 24px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--sh-xs);
}
.card-br__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--cobalt-50); color: var(--br-primary); font-size: 20px; }
.card-br__title { margin: 0 0 8px; font-size: 1.1rem; }
.card-br__body { color: var(--br-muted); font-size: 15px; }
.card-br__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; }

.page-hero-br { padding: clamp(48px, 7vw, 88px) 0; background: var(--ink-950); color: #a7b2c8; }
.page-hero-br__title { margin: 0 0 14px; color: #fff; }
.page-hero-br__subtitle { max-width: 640px; margin: 0; color: #a7b2c8; font-size: 1.1rem; }
.page-hero-br__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.plan-card-br { padding: 26px 22px; border: 1px solid var(--br-border); border-radius: var(--r-lg); background: #fff; }
.plan-card-br__badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--laser-500); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; }
.plan-card-br__name { color: var(--br-muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-card-br__price { margin: 10px 0 16px; color: var(--br-text-strong); font-family: var(--font-display); }
.plan-card-br__amount { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-card-br__period { color: var(--br-muted); font-size: 14px; }
.plan-card-br__features { margin: 0 0 20px; padding: 0; list-style: none; }
.plan-card-br__features li { padding: 5px 0; font-size: 14px; }
.plan-card-br__cta { width: 100%; }

.stat-card-br__icon { color: var(--br-primary); font-size: 22px; }
.stat-card-br__value { color: var(--br-text-strong); font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.stat-card-br__label { color: var(--br-muted); font-size: 14px; }

.testimonial-card-br__quote { color: var(--br-text); font-size: 15.5px; line-height: 1.65; }
.testimonial-card-br__cite { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card-br__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--br-surface-3); }
.testimonial-card-br__author { color: var(--br-text-strong); font-weight: 600; }
.testimonial-card-br__role { color: var(--br-muted); font-size: 13px; }

/* --------------------------------------------------------------------------
   19. Blog index
   -------------------------------------------------------------------------- */
.br-blog-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 40px);
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(61, 90, 254, 0.3), transparent 60%),
        var(--ink-950);
    color: #a7b2c8;
}
.br-blog-hero h1 { margin: 0 0 12px; color: #fff; }
.br-blog-hero .lead { max-width: 640px; margin: 0; color: #a7b2c8; font-size: 1.1rem; }
.br-blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.br-blog-cats a {
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-pill);
    color: #c9d2e3;
    font-size: 13.5px;
    font-weight: 500;
}
.br-blog-cats a:hover { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.br-blog-cats a.is-active { border-color: #fff; background: #fff; color: var(--ink-900); }

.blog-filter-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px 16px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-md);
    background: var(--br-surface-2);
    font-size: 14.5px;
}
.blog-filter-notice .filter-label { color: var(--br-muted); }
.blog-filter-notice .filter-value { color: var(--br-text-strong); font-weight: 600; }
.blog-filter-notice .clear-filter { margin-left: auto; font-weight: 600; }

.br-post-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--br-border);
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--sh-sm);
}
.br-post-lead__media { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ink-900); }
.br-post-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.br-post-lead__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 44px); }
.br-post-lead h2 { margin: 6px 0 12px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; }
.br-post-lead h2 a { color: var(--br-text-strong); }
.br-post-lead h2 a:hover { color: var(--br-primary-hover); }
.br-post-lead p { color: var(--br-muted); font-size: 16px; }

.br-post-card .featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-900);
    font-size: 11.5px;
    font-weight: 600;
}
.br-post-card .featured-badge i { color: var(--amber-500); }
.blog-card-title { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }
.blog-card-title a { color: var(--br-text-strong); }
.blog-card-title a:hover { color: var(--br-primary-hover); }
.blog-card-excerpt { flex: 1; margin: 0; color: var(--br-muted); font-size: 14.5px; line-height: 1.55; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--slate-100); }
.blog-card-footer .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-card-footer .tag, .post-tags .tag {
    position: relative;
    z-index: 1;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    background: var(--br-surface-3);
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 500;
}
.blog-card-footer .tag:hover, .post-tags .tag:hover { background: var(--cobalt-50); color: var(--cobalt-700); }
.blog-card-footer .read-more-link { position: relative; z-index: 1; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.br-post-card .category-link { position: relative; z-index: 1; }
.no-posts { padding: 60px 20px; text-align: center; color: var(--br-muted); }
.no-posts i { font-size: 44px; color: var(--slate-300); }
.no-posts h3 { margin: 12px 0 8px; }

@media (max-width: 860px) { .br-post-lead { grid-template-columns: minmax(0, 1fr); } }
.br-post-lead__media { aspect-ratio: auto; min-height: 100%; } @media (max-width: 860px) { .br-post-lead__media { aspect-ratio: 1200 / 630; } }

/* --------------------------------------------------------------------------
   20. Blog article + MDX components
   -------------------------------------------------------------------------- */
.br-article-head { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); background: linear-gradient(180deg, var(--slate-50), #fff); }
.br-article-head__inner { max-width: 880px; }
.br-article-head .breadcrumb { margin-bottom: 26px; }
.br-article-head .category-badge { margin-bottom: 14px; }
.blog-single-title { margin: 0 0 16px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem); line-height: 1.08; letter-spacing: -0.035em; }
.blog-single-excerpt { max-width: 760px; margin: 0 0 26px; color: var(--br-muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.blog-single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--br-muted); font-size: 14px; }
.blog-single-meta i { margin-right: 4px; }
.meta-divider { width: 1px; height: 22px; background: var(--br-border); }
.br-article-author { display: inline-flex; align-items: center; gap: 10px; }
.br-article-author__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-weight: 700; }
.br-article-author .author { display: block; color: var(--br-text-strong); font-weight: 600; line-height: 1.2; }
.br-article-author__role { display: block; color: var(--br-muted); font-size: 12.5px; }

.blog-single-image { margin-top: 8px; }
.blog-single-image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-md); }

.br-article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px) 280px;
    gap: 44px;
    justify-content: center;
    padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 5vw, 64px);
}

.br-article-toc__inner, .br-article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.br-article-aside { display: grid; gap: 14px; align-content: start; }
.br-article-toc__label { display: block; margin-bottom: 10px; color: var(--br-subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.br-article-toc ol { margin: 0; padding: 0; border-left: 1px solid var(--br-border); list-style: none; counter-reset: toc; }
.br-article-toc li a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    color: var(--br-muted);
    font-size: 13.5px;
    line-height: 1.4;
}
.br-article-toc li a:hover { border-left-color: var(--br-primary); color: var(--br-text-strong); }

.br-aside-search { padding: 18px; border: 1px solid var(--br-border); border-radius: var(--r-lg); background: #fff; }
.br-aside-search label { display: block; margin-bottom: 8px; color: var(--br-text-strong); font-size: 14px; font-weight: 600; }
.br-aside-search div { display: flex; gap: 6px; }
.br-aside-search input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--br-border-strong); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: 13px; }
.br-aside-search input:focus { border-color: var(--cobalt-400); box-shadow: var(--br-focus); outline: none; }
.br-aside-search button { width: 40px; border: 0; border-radius: var(--r-sm); background: var(--ink-900); color: #fff; }

/* Long-form typography */
.br-prose { color: var(--slate-700); font-size: 17.5px; line-height: 1.78; }
.br-prose > *:first-child { margin-top: 0; }
.br-prose p, .br-prose ul, .br-prose ol, .br-prose blockquote { margin: 0 0 1.25em; }
.br-prose h2 { margin: 2.1em 0 0.7em; font-size: 1.65rem; letter-spacing: -0.025em; scroll-margin-top: calc(var(--header-h) + 20px); }
.br-prose h3 { margin: 1.8em 0 0.6em; font-size: 1.28rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.br-prose h4 { margin: 1.5em 0 0.5em; font-size: 1.08rem; }
.br-prose a { color: var(--br-primary-hover); text-decoration: underline; text-decoration-color: rgba(61, 90, 254, 0.35); text-underline-offset: 3px; }
.br-prose a:hover { text-decoration-color: currentColor; }
.br-prose strong { color: var(--br-text-strong); font-weight: 650; }
.br-prose ul, .br-prose ol { padding-left: 1.4em; }
.br-prose li { margin: 0.35em 0; padding-left: 0.2em; }
.br-prose li::marker { color: var(--slate-400); }
.br-prose ol > li::marker { font-family: var(--font-mono); font-size: 0.85em; }
.br-prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--br-accent); color: var(--br-text); font-style: italic; }
.br-prose hr { margin: 2.4em 0; }
.br-prose img, .br-prose .mdx-image { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border: 1px solid var(--br-border); border-radius: var(--r-lg); }
.br-prose :not(pre) > code { font-size: 0.84em; }

.br-prose pre, .br-prose .mdx-pre {
    margin: 0 0 1.5em;
    padding: 18px 20px;
    border: 1px solid #1f2a42;
    border-radius: var(--r-md);
    background: #0a101d;
    color: #d3dbea;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-x: auto;
}
.br-prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }

.mdx-code-block { margin: 0 0 1.5em; overflow: hidden; border: 1px solid #1f2a42; border-radius: var(--r-md); background: #0a101d; }
.mdx-code-block pre, .mdx-code-block .mdx-pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
.mdx-code-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-bottom: 1px solid #1a2438;
    background: #0d1424;
    color: #9aa6bd;
    font-family: var(--font-mono);
    font-size: 12px;
}
.mdx-code-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--laser-500); box-shadow: 14px 0 0 #f5b301, 28px 0 0 #2fbf71; margin-right: 34px; }

.br-prose .table-responsive { margin: 0 0 1.6em; border: 1px solid var(--br-border); border-radius: var(--r-md); }
.br-prose table, .mdx-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.br-prose .table-bordered > :not(caption) > * > * { border-width: 0; }
.br-prose th { padding: 11px 14px; border-bottom: 1px solid var(--br-border) !important; background: var(--slate-50); color: var(--br-text-strong); font-weight: 600; text-align: left; white-space: nowrap; }
.br-prose td { padding: 11px 14px; border-bottom: 1px solid var(--slate-100) !important; vertical-align: top; }
.br-prose tr:last-child td { border-bottom: 0 !important; }

.mdx-callout {
    display: flex;
    gap: 14px;
    margin: 0 0 1.5em;
    padding: 16px 18px;
    border: 1px solid var(--cobalt-200);
    border-radius: var(--r-md);
    background: var(--cobalt-50);
    font-size: 16px;
    line-height: 1.65;
}
.mdx-callout > i { color: var(--br-primary); font-size: 19px; line-height: 1.5; }
.mdx-callout-content > *:last-child { margin-bottom: 0; }
.mdx-callout-tip, .mdx-callout-success { border-color: rgba(15, 167, 118, 0.3); background: var(--mint-50); }
.mdx-callout-tip > i, .mdx-callout-success > i { color: var(--mint-600); }
.mdx-callout-warning { border-color: rgba(232, 138, 0, 0.35); background: var(--amber-50); }
.mdx-callout-warning > i { color: var(--amber-500); }
.mdx-callout-error { border-color: rgba(217, 45, 32, 0.25); background: var(--red-50); }
.mdx-callout-error > i { color: var(--red-500); }
.mdx-callout-note { border-color: var(--br-border); background: var(--slate-50); }
.mdx-callout-note > i { color: var(--slate-500); }

.mdx-steps { position: relative; margin: 0 0 1.6em; padding-left: 4px; counter-reset: step; }
.mdx-step { position: relative; display: flex; gap: 18px; padding-bottom: 22px; }
.mdx-step:not(:last-child)::before { content: ""; position: absolute; top: 34px; bottom: 4px; left: 15px; width: 2px; background: var(--br-border); }
.mdx-step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}
.mdx-step-content { min-width: 0; padding-top: 3px; }
.mdx-step-content > h4:first-child, .mdx-step-content > strong:first-child { display: block; margin: 0 0 6px; color: var(--br-text-strong); font-family: var(--font-display); font-size: 1.08rem; }
.mdx-step-content > *:last-child { margin-bottom: 0; }

.mdx-tabs-container { margin: 0 0 1.6em; }
.mdx-tabs { gap: 4px; border-bottom: 1px solid var(--br-border); }
.mdx-tabs .nav-link { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--br-muted); font-family: var(--font-mono); font-size: 13px; }
.mdx-tabs .nav-link.active { border-bottom-color: var(--br-accent); background: none; color: var(--br-text-strong); }
.mdx-tab-content { padding-top: 14px; }
.mdx-tab-content > .tab-pane > *:last-child { margin-bottom: 0; }

.mdx-card { margin: 0 0 1.4em; padding: 20px 22px; border: 1px solid var(--br-border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-xs); }
.mdx-card-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; background: var(--cobalt-50); color: var(--br-primary); font-size: 18px; }
.mdx-card-title { margin: 0 0 6px !important; font-size: 1.08rem; }
.mdx-card-content > *:last-child { margin-bottom: 0; }

.mdx-accordion { margin: 0 0 10px; }
.mdx-accordion .accordion-item { overflow: hidden; border: 1px solid var(--br-border); border-radius: var(--r-md) !important; }
.mdx-accordion .accordion-header { margin: 0 !important; font-size: inherit; }
.mdx-accordion .accordion-button { padding: 16px 18px; color: var(--br-text-strong); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; box-shadow: none; }
.mdx-accordion .accordion-button:not(.collapsed) { background: var(--slate-50); }
.mdx-accordion .accordion-body { padding: 4px 18px 18px; background: var(--slate-50); color: var(--br-text); font-size: 16px; line-height: 1.7; }
.mdx-accordion .accordion-body > *:last-child { margin-bottom: 0; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--br-border); }
.tags-label { margin-right: 4px; color: var(--br-muted); font-size: 13.5px; font-weight: 600; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.share-label { color: var(--br-muted); font-size: 13.5px; font-weight: 600; }
.share-buttons { display: flex; gap: 8px; }
.share-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--br-border); border-radius: var(--r-sm); color: var(--br-text); font-size: 16px; }
.share-btn:hover { border-color: var(--slate-300); background: var(--slate-50); color: var(--br-text-strong); }

.blog-single-navigation { margin-top: 32px; }
.nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nav-links a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--br-border); border-radius: var(--r-md); color: inherit; }
.nav-links a:hover { border-color: var(--slate-300); background: var(--slate-25); }
.nav-next { text-align: right; }
.nav-label { display: block; margin-bottom: 4px; color: var(--br-muted); font-size: 12.5px; font-weight: 600; }
.nav-title { display: block; color: var(--br-text-strong); font-family: var(--font-display); font-weight: 600; line-height: 1.35; }

.blog-related-title { margin: 0 0 24px; }
.blog-related-card { color: inherit; }
.blog-related-card h3 { margin: 0 0 8px; color: var(--br-text-strong); font-size: 1.08rem; line-height: 1.3; }
.blog-related-card p { margin: 0; color: var(--br-muted); font-size: 14.5px; }

.blog-cta .br-cta { text-align: left; }
.blog-cta .br-cta h2 { margin-bottom: 10px; }
.blog-cta .br-cta p { margin: 0; }
.cta-tools { margin: 18px 0 0; padding: 0; list-style: none; }
.cta-tools li { margin-bottom: 8px; color: #a7b2c8; font-size: 15px; }
.cta-tools a { color: #fff; font-weight: 600; }
.blog-cta .br-actions { justify-content: flex-start; }

@media (max-width: 1199.98px) {
    .br-article-layout { grid-template-columns: minmax(0, 720px) 280px; }
    .br-article-toc { display: none; }
}

@media (max-width: 991.98px) {
    .br-article-layout { grid-template-columns: minmax(0, 1fr); }
    .br-article-aside { position: static; }
    .br-prose { font-size: 16.5px; }
}

@media (max-width: 575.98px) {
    .nav-links { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }
}

/* --------------------------------------------------------------------------
   21. Legacy page sections (inline-styled views)
   Dark sections in older views set a light text colour on the container and
   expect headings to inherit it.
   -------------------------------------------------------------------------- */
.bulk-hero :is(h1, h2, h3, h4),
.page-header-section :is(h1, h2, h3, h4),
.cta-section :is(h1, h2, h3, h4),
.first-call :is(h1, h2, h3, h4),
.page-header :is(h1, h2, h3, h4) { color: inherit; }

/* Inner-page variant of the home hero (API page) */
.br-hero--page { padding-bottom: clamp(48px, 7vw, 96px); }
.br-hero--page .br-hero__title h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); }
.br-hero__sub { max-width: 560px; margin: 0 0 28px; color: #8c98b2; font-size: 15.5px; }
.br-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 30px 0 0; padding: 0; list-style: none; color: #8c98b2; font-size: 14px; }
.br-hero__facts strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; margin-right: 4px; }
.br-hero .br-code { border-color: #263252; }
.br-hero .br-code pre { min-height: 280px; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 991.98px) { .br-hero--page .br-hero__visual { max-width: none; } }

/* API documentation page */
.docs-page { padding-top: 0 !important; background: var(--slate-50) !important; }
.docs-header {
    margin: 0 calc(50% - 50vw) 40px !important;
    padding: clamp(40px, 6vw, 72px) 24px !important;
    background: radial-gradient(700px 300px at 90% 0%, rgba(61, 90, 254, 0.3), transparent 60%), var(--ink-950);
    color: #a7b2c8;
    text-align: center;
}
.docs-header h1 { color: #fff !important; }
.docs-header p { color: #a7b2c8 !important; }
.docs-container { max-width: 1180px !important; }
.docs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 2px; }
.docs-nav__label { margin-bottom: 8px; color: var(--br-subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-nav a { padding: 7px 12px; border-radius: var(--r-sm); color: var(--br-muted); font-size: 14px; }
.docs-nav a:hover { background: #fff; color: var(--br-text-strong); }
.docs-nav .docs-nav__cta { margin-top: 12px; background: var(--ink-900); color: #fff; font-weight: 600; text-align: center; }
.docs-nav .docs-nav__cta:hover { background: var(--ink-700); color: #fff; }
.docs-card { scroll-margin-top: calc(var(--header-h) + 16px); border: 1px solid var(--br-border); box-shadow: none !important; }
.docs-card pre code, .code-block pre code { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: inherit !important; font-size: inherit !important; }
.code-block pre { background: #0a101d !important; color: #d3dbea !important; }
.code-header { background: #0d1424 !important; border-bottom: 1px solid #1a2438; font-family: var(--font-mono); font-size: 12.5px !important; font-weight: 500 !important; }
.code-header .copy-btn { border: 1px solid #263252 !important; background: transparent !important; color: #9aa6bd !important; }
.method-badge { background: var(--mint-50) !important; color: var(--mint-600) !important; }
@media (max-width: 991.98px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); }
    .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .docs-nav__label { width: 100%; }
}

/* 404 */
.br-404 { min-height: calc(100vh - var(--header-h) - 120px); display: flex; align-items: center; }
.br-404__inner { max-width: 640px; }
.br-404__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; }
.br-404__links a { color: #c9d2e3; font-weight: 500; }
.br-404__links a:hover { color: #fff; }

/* Article layout tuning: more room for the reading column and its tables. */
.br-article-layout { grid-template-columns: 190px minmax(0, 1fr) 250px; gap: 40px; }
.br-prose table, .mdx-table { font-size: 14.5px; }
.br-prose th { white-space: normal; min-width: 90px; }
.br-prose td:first-child { color: var(--br-text-strong); font-weight: 600; min-width: 110px; }
@media (max-width: 1199.98px) { .br-article-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
@media (max-width: 991.98px) { .br-article-layout { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 575.98px) {
    .product-data-table th, .product-data-table td { display: block; width: 100%; padding-right: 0; }
    .product-data-table th { padding-bottom: 0; border-bottom: 0; font-size: 12px; }
    .product-data-table td { padding-top: 2px; }
    .br-pdp__card, .barcode-detail-block { padding: 18px; }
}

/* Original logo image (shared with the app and emails) */
.br-logo .br-logo__img { display: block; width: auto; height: 46px; }
.mobile-menu__head .br-logo__img { height: 40px; }
.br-footer__brand .br-logo { padding: 8px 14px; border-radius: 12px; background: #fff; }
.br-footer__brand .br-logo__img { height: 44px; }
@media (max-width: 991.98px) { .br-header .br-logo__img { height: 40px; } }
.br-logo .br-logo__img { height: 58px; margin: 0 -6px; }
.mobile-menu__head .br-logo__img { height: 50px; }
.br-footer__brand .br-logo__img { height: 54px; margin: 0; }
@media (max-width: 991.98px) { .br-header .br-logo__img { height: 50px; } }

/* Tables in HTML-format posts aren't wrapped by the MDX parser; let them scroll. */
.br-prose > table, .br-prose > div > table:not(.mdx-table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Comfortable tap targets on touch screens */
@media (pointer: coarse) {
    .tag, .category-badge, .br-link-arrow, .barcode-neighbours a, .br-card__link, .read-more-link { min-height: 30px; display: inline-flex; align-items: center; }
}
