/*
 * BU Framework — Amethyst Dark Render
 * Version: 1.0
 * © LW LLC. All rights reserved.
 * Licensed to: ViralDecay (LW LLC spin-off)
 * Unauthorized redistribution is prohibited.
 * This render file is part of the BU Framework,
 * a proprietary design system owned by LW LLC.
 * Contact: admin@beltup.net
 */

/* ================================================================
   RENDER — AMETHYST DARK (--theme- tokens)
   Structural classes (.bu-) are provided by bento-grid.css (Primer).
   Color and skin values live here only. No hex values in the Primer.
   ================================================================ */

:root {
    /* --- Backgrounds --- */
    --theme-bg-canvas:    #000000;          /* page background */
    --theme-bg-surface:   #0d0614;          /* header, footer, structural bars */
    --theme-bg-frosted:   linear-gradient(135deg, rgba(13,6,20,0.8) 0%, rgba(53,21,107,0.15) 100%);
    --theme-bg-card:      #070310;          /* deeper card/secondary surface */

    /* --- Accents --- */
    --theme-accent-primary:          #A855F7;          /* amethyst — subscriptions, brand */
    --theme-accent-secondary:        #e67e22;          /* orange — FUEL ONLY, never subscriptions */
    --theme-accent-fuel:             #e67e22;          /* alias for semantic clarity */
    --theme-accent-glow:             rgba(168,85,247,0.22);
    --theme-accent-glow-secondary:   rgba(230,126,34,0.22);
    --theme-fuel-glow:               rgba(230,126,34,0.22);

    /* --- Text --- */
    --theme-text-main:    #F3F0F7;
    --theme-text-muted:   #B0A0C4;          /* 4.8:1 — passes WCAG AA (was #9486A8 3.2:1, fixed this session) */

    /* --- Borders --- */
    --theme-border-inactive: #3c225c;
    --theme-border-active:   #a855f7;

    /* --- Semantic states --- */
    --theme-state-healthy:  #00ff66;
    --theme-state-warning:  #D97706;
    --theme-state-error:    #F25660;

    /* --- Effects --- */
    --theme-backdrop-blur:  blur(16px);

    /* --- Laser system toggle --- */
    --laser-enabled: 1;  /* set to 0 on any scope to disable laser animations */
}

html, body {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: var(--theme-bg-canvas);
    color: var(--theme-text-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a, .btn-link {
    color: var(--theme-accent-primary);
}

.content {
    padding-top: 1.1rem;
}

:focus {
    outline: 2px solid rgba(168,85,247,0.25);
    outline-offset: 2px;
}

.validation-message {
    color: var(--theme-state-error);
}

.blazor-error-boundary {
    background-color: var(--theme-state-error);
    color: var(--theme-text-main);
}

/* ============================================================
   LASER ANIMATION SYSTEM (BU Framework §3.8)

   Technique: two-layer background-clip.
   Layer 1 — solid fill, clipped to padding-box  → content area stays static.
   Layer 2 — conic gradient, clipped to border-box → light travels ONLY in the border.
   The border is the racetrack. The content area never moves.
   ============================================================ */

@property --laser-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes laser-travel {
    to { --laser-angle: 360deg; }
}

/* A — Active input: light races around the field border (1.8s) */
.bu-input:focus {
    outline: none;
    border: 2px solid transparent;          /* transparent border = the racetrack */
    background-image:
        linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface)),
        conic-gradient(
            from var(--laser-angle),
            transparent 70%,
            var(--theme-border-active) 85%,
            transparent 100%
        );
    background-origin: padding-box, border-box;
    background-clip:  padding-box, border-box;  /* layer 1 fills content, layer 2 fills border */
    animation: laser-travel calc(1.8s / var(--laser-enabled, 1)) linear infinite;
    box-shadow: 0 0 12px var(--theme-accent-glow);
    color: var(--theme-text-main);          /* ensure text stays readable */
}

/* Browsers without @property support — static glow border instead */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .bu-input:focus {
        border: 2px solid var(--theme-border-active);
        box-shadow: 0 0 15px var(--theme-accent-glow), inset 0 0 8px rgba(168,85,247,0.1);
        background-image: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
}

/* B — Panel intensify: static brightening when focus is inside a panel.
   NOT a racing effect — just a stronger ambient glow + brighter reveal line. */
.bu-panel:focus-within {
    border-color: var(--theme-border-active);
    box-shadow: 0 0 25px var(--theme-accent-glow), inset 0 0 8px rgba(168,85,247,0.08);
}

.bu-panel:focus-within .bu-reveal {
    background: linear-gradient(
        to right,
        transparent,
        rgba(168,85,247,0.6),
        var(--theme-border-active),
        rgba(168,85,247,0.6),
        transparent
    );
    filter: brightness(1.5);
}

/* C — Error field: red light races around an unvalidated required field (1.2s, faster = urgent).
   .is-error  — applied manually via @code when validation fails
   :user-invalid — fires automatically after user touches and leaves an empty/invalid field
   Both paths produce identical visuals. */
.bu-input.is-error,
.bu-input:user-invalid {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface)),
        conic-gradient(
            from var(--laser-angle),
            transparent 70%,
            var(--theme-state-error) 85%,
            transparent 100%
        );
    background-origin: padding-box, border-box;
    background-clip:  padding-box, border-box;
    animation: laser-travel calc(1.2s / var(--laser-enabled, 1)) linear infinite;
    box-shadow: 0 0 12px rgba(242,86,96,0.3);
    color: var(--theme-text-main);
}

/* After first submit attempt: .bu-form-validated is applied to the form section.
   ALL invalid required fields light up regardless of touch history — catches password
   manager auto-fills, tab-throughs, and any field the browser didn't mark user-invalid.
   :not(:focus) keeps purple focus laser intact while the user corrects the field. */
.bu-form-validated .bu-input:invalid:not(:focus) {
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface)),
        conic-gradient(
            from var(--laser-angle),
            transparent 70%,
            var(--theme-state-error) 85%,
            transparent 100%
        );
    background-origin: padding-box, border-box;
    background-clip:  padding-box, border-box;
    animation: laser-travel calc(1.2s / var(--laser-enabled, 1)) linear infinite;
    box-shadow: 0 0 12px rgba(242,86,96,0.3);
    color: var(--theme-text-main);
}

/* OTP field shares the same error state — static red border (no racetrack, it's a wide field) */
.bu-otp-field:user-invalid {
    border-color: var(--theme-state-error);
    box-shadow: 0 0 14px rgba(242,86,96,0.35);
}

/* Suppress error laser while field is actively focused — don't interrupt typing */
.bu-input:user-invalid:focus {
    animation: none;
    border: 2px solid transparent;
    background-image:
        linear-gradient(var(--theme-bg-surface), var(--theme-bg-surface)),
        conic-gradient(
            from var(--laser-angle),
            transparent 70%,
            var(--theme-border-active) 85%,
            transparent 100%
        );
    background-origin: padding-box, border-box;
    background-clip:  padding-box, border-box;
    animation: laser-travel calc(1.8s / var(--laser-enabled, 1)) linear infinite;
    box-shadow: 0 0 12px var(--theme-accent-glow);
}

/* D — Hero panel: light races the full perimeter border on hover (2.4s — slower = premium).
   Applied directly to the panel element. The frosted background fills the content area;
   the conic gradient shows only in the 2px border — same racetrack technique as inputs.
   .bu-reveal--hero remains the static 2px top line at rest. */
.bu-panel--hero .bu-reveal--hero {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--theme-border-active), transparent);
    z-index: 5;
    pointer-events: none;
}

.bu-panel--hero:hover {
    border: 2px solid transparent;
    background-image:
        linear-gradient(135deg, rgba(13,6,20,0.85) 0%, rgba(53,21,107,0.2) 100%),
        conic-gradient(
            from var(--laser-angle),
            transparent 60%,
            var(--theme-border-active) 80%,
            transparent 100%
        );
    background-origin: padding-box, border-box;
    background-clip:  padding-box, border-box;
    animation: laser-travel 2.4s linear infinite;
    box-shadow: 0 0 40px var(--theme-accent-glow), inset 0 0 20px rgba(168,85,247,0.06);
}

/* Hide the static reveal on hover — the border laser takes over */
.bu-panel--hero:hover .bu-reveal--hero {
    display: none;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.bu-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Dashboard is full-bleed — remove the standard container constraint */
.bu-container:has(.hud-layout) {
    max-width: none;
    padding: 0;
}

.bu-slate-title-block {
    text-align: center;
    padding: 48px 0 12px 0;
}

/* 12-column grid (Primer .bu-slab — formerly .bu-slate-grid) */
.bu-slab {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    padding-top: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 32px;
}

/* Section separator — full-width vertical breathing room */
.bu-section-break    { grid-column: 1 / -1; width: 100%; height: clamp(2.5rem, 7vw, 5rem); }
.bu-section-break-lg { grid-column: 1 / -1; width: 100%; height: clamp(4rem, 10vw, 8rem); }

/* Full-width CTA banner */
.bu-home-cta {
    text-align: center;
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.bu-home-cta .bu-label,
.bu-home-cta .bu-bento-card-note {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
}

/* Wide illustrative demo visuals */
.bu-wide-viz  { width: 100%; max-width: 640px; height: auto; margin: 18px auto 2px; display: block; }
.bu-hero-viz  { width: 100%; max-width: 560px; height: auto; margin: 18px auto 2px; display: block; }

/* Fluid auto-fit grid (pricing cards) */
.bu-pricing-fluid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 32px;
}

/* Column span helpers (Primer .bu-bay-N — formerly .bu-bento-N) */
.bu-bay-12 { grid-column: span 12; }
.bu-bay-7  { grid-column: span 7; }
.bu-bay-6  { grid-column: span 6; }
.bu-bay-5  { grid-column: span 5; }
.bu-bay-4  { grid-column: span 4; }
.bu-bay-3  { grid-column: span 3; }

/* Full-width panel shorthand */
.bu-panel--full { grid-column: 1 / -1; }

@media (max-width: 1024px) {
    .bu-bay-7, .bu-bay-5 { grid-column: span 12; }
}

@media (max-width: 900px) {
    .bu-bay-6, .bu-bay-4 { grid-column: span 12; }
}

@media (max-width: 640px) {
    .bu-slab {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px 32px 16px;
    }
    .bu-bay-12, .bu-bay-7, .bu-bay-6, .bu-bay-5,
    .bu-bay-4, .bu-bay-3 { grid-column: span 1; }
    .bu-container { padding: 0 16px; }
    .bu-panel { padding: 24px 16px; }
}

/* ============================================================
   PANEL (Primer .bu-panel — formerly .bu-slab card)
   Render provides visual character via --theme- tokens.
   ============================================================ */

.bu-panel {
    background: var(--theme-bg-frosted);
    backdrop-filter: var(--theme-backdrop-blur);
    -webkit-backdrop-filter: var(--theme-backdrop-blur);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px var(--theme-accent-glow), inset 0 0 6px rgba(168,85,247,0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bu-panel:hover {
    border-color: var(--theme-border-active);
    box-shadow: 0 0 25px var(--theme-accent-glow), inset 0 0 8px rgba(168,85,247,0.08);
}

/* Panel variants */
.bu-panel--tier {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bu-panel--premium {
    border-color: var(--theme-accent-primary);
    box-shadow: 0 0 15px rgba(168,85,247,0.15);
}

/* Landing page hero/closer sections — large layout, NO laser (laser is cockpit-only) */
.bu-lander-hero {
    padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 4vw, 4rem);
    text-align: center;
    background: linear-gradient(135deg, rgba(13,6,20,0.9) 0%, rgba(53,21,107,0.25) 100%);
}

/* Cockpit gauge cluster — ONE per page. Gets full-perimeter laser on hover (see laser system above). */
.bu-panel--hero {
    padding: 56px 48px;
    text-align: center;
    border-left: 4px solid var(--theme-accent-primary);
}

.bu-panel--order-summary {
    background: var(--theme-bg-card);
}

/* ============================================================
   REVEAL (.bu-reveal — formerly .bu-slab-laser-shield)
   2px glowing accent line — required first child of every .bu-panel.
   ============================================================ */

.bu-reveal {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--theme-border-active), transparent);
    z-index: 5;
}

/* ============================================================
   BRICK LAYER — Typography
   ============================================================ */

/* HUD label tag (.bu-label — formerly .bu-brick-hud-tag) */
.bu-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 0 12px var(--theme-accent-glow);
}

/* Page/section heading (.bu-heading — formerly .bu-brick-title) */
.bu-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--theme-text-main);
}

.bu-brick-subtitle {
    font-size: 16px;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.bu-bento-card-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-main);
}

/* Slightly larger heading for full-width section panels */
.bu-panel--full > .bu-bento-card-heading {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.bu-bento-card-note {
    font-size: 14px;
    color: var(--theme-text-muted);
    margin-top: 4px;
}

/* ============================================================
   BRICK LAYER — Inputs
   ============================================================ */

/* Text input (.bu-input — formerly .bu-brick-text-field) */
.bu-input {
    width: 100%;
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

/* Focus handled by laser animation system above */

/* ============================================================
   BRICK LAYER — Buttons
   ============================================================ */

/* Primary action button (.bu-btn--primary — formerly .bu-brick-action-trigger) */
.bu-btn--primary {
    background-color: var(--theme-accent-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 16px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    text-decoration: none;
    min-height: 44px;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.bu-btn--primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--theme-accent-glow);
}

/* Anchor wearing btn class renders as a real button box */
a.bu-btn--primary {
    display: inline-block;
    text-decoration: none;
    margin-top: 18px;
}

/* Ghost button variant */
.bu-btn--ghost {
    background: transparent;
    border: 1px solid var(--theme-border-inactive);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    min-height: 44px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.bu-btn--ghost:hover {
    border-color: var(--theme-accent-primary);
    background-color: rgba(168,85,247,0.1);
    box-shadow: 0 0 15px rgba(168,85,247,0.2);
}

/* Pricing tier buttons: ghost by default, solid on premium */
.bu-panel--tier .bu-btn--primary { @extend .bu-btn--ghost; }
.bu-panel--tier .bu-btn--primary,
.bu-fuel-card  .bu-btn--primary {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--theme-border-inactive);
    color: #ffffff;
}

.bu-panel--tier .bu-btn--primary:hover,
.bu-fuel-card  .bu-btn--primary:hover {
    border-color: var(--theme-accent-primary);
    background-color: rgba(168,85,247,0.1);
    box-shadow: 0 0 15px rgba(168,85,247,0.2);
}

.bu-panel--premium .bu-btn--primary {
    background-color: var(--theme-accent-primary);
    border: none;
}

/* Tab switcher (.bu-tab) */
.bu-tab {
    padding: 10px 24px;
    min-height: 44px;
    border-radius: 5px;
    border: 1px solid var(--theme-border-inactive);
    background: transparent;
    color: var(--theme-text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.bu-tab.is-active,
.bu-tab[aria-selected="true"] {
    border-color: var(--theme-border-active);
    color: #ffffff;
    box-shadow: 0 0 12px var(--theme-accent-glow);
}

/* ============================================================
   RIBBON (.bu-ribbon — formerly .bu-sandbox-alert-ribbon)
   ============================================================ */

.bu-ribbon.bu-ribbon--warn {
    background-color: rgba(217,119,6,0.05);
    border: 1px dashed var(--theme-state-warning);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--theme-text-main);
}

.bu-sandbox-token-badge {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--theme-border-inactive);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* Feedback/error messages */
.bu-msg--error {
    display: block;
    font-size: 12px;
    color: #F25660;
    margin-top: 6px;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.bu-tier-detail-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 24px;
    background: var(--theme-bg-frosted);
    backdrop-filter: var(--theme-backdrop-blur);
    -webkit-backdrop-filter: var(--theme-backdrop-blur);
    border: 1px solid var(--theme-border-active);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 0 40px var(--theme-accent-glow);
    max-height: 90vh;
    overflow-y: auto;
}

.bu-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bu-fuel-card.bu-locked { opacity: 0.6; }

.bu-lock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-accent-primary);
    background: rgba(168,85,247,0.06);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.bu-lock-badge:hover {
    border-color: var(--theme-accent-primary);
    background: rgba(168,85,247,0.12);
}

.bu-depot-pitch {
    font-size: 14px;
    color: var(--theme-text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.bu-depot-nudge {
    text-align: center;
    color: var(--theme-accent-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 16px;
}
.bu-tier-longdesc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--theme-text-muted);
    margin: 18px 0 4px;
    padding: 16px 0;
    border-top: 1px solid var(--theme-border-inactive);
    border-bottom: 1px solid var(--theme-border-inactive);
}

.bu-identity-segment {
    background: none;
    border: none;
    color: var(--theme-text-muted);
    padding: 14px 28px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 6px;
    flex-grow: 1;
    text-align: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.bu-identity-segment:hover { color: #ffffff; background-color: rgba(168,85,247,0.08); }
.bu-identity-segment.active {
    color: #ffffff;
    background-color: rgba(168,85,247,0.2);
    border: 1px solid rgba(168,85,247,0.3);
}

.bu-toggle-bar {
    width: 100%;
    max-width: 600px;
    margin: 16px auto 24px auto;
    display: flex;
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 4px;
}

.bu-brick-sku {
    font-size: 12px;
    color: var(--theme-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 16px;
}

.bu-brick-tier-name {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.bu-brick-price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin: 16px 0 4px 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bu-brick-price span {
    font-family: inherit;
    font-size: 14px;
    color: var(--theme-text-muted);
    font-weight: 500;
}

.bu-brick-unit-break {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: var(--theme-text-muted);
    margin-bottom: 16px;
    display: block;
}

.bu-brick-blurb {
    color: var(--theme-text-muted);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.bu-brick-fuel-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background-color: rgba(230,126,34,0.06);
    border: 1px solid rgba(230,126,34,0.15);
    padding: 8px 14px;
    border-radius: 8px;
    margin: 4px 0 24px 0;
    width: max-content;
}

.bu-brick-fuel-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-accent-fuel);
    text-shadow: 0 0 12px var(--theme-fuel-glow);
    font-variant-numeric: tabular-nums;
}

.bu-brick-fuel-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--theme-text-muted);
}

.bu-brick-feature-list {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
}
.bu-brick-feature-list li {
    font-size: 14px;
    color: var(--theme-text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.bu-brick-feature-list li::before {
    content: "➔";
    color: var(--theme-accent-primary);
    font-size: 12px;
}
.bu-brick-feature-list li.gated-feature {
    color: var(--theme-text-muted);
    text-decoration: line-through;
    opacity: 0.4;
}
.bu-brick-feature-list li.gated-feature::before {
    content: "✕";
    color: var(--theme-text-muted);
}

.bu-fuel-card {
    min-height: 260px;
    padding: 28px 24px;
}

.bu-fuel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.bu-fuel-price {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

/* ============================================================
   PUBLIC SHELL — HEADER / TICKER / FOOTER
   ============================================================ */

.bu-header-root {
    width: 100%;
    background-color: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border-inactive);
}

.bu-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

/* Center column: fuel gauge or empty spacer */
.bu-header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Right column: nav right-aligned */
.bu-header-container > nav {
    display: flex;
    justify-content: flex-end;
}

.bu-logo {
    font-weight: 900;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.03em;
    display: inline-block;
}
.bu-logo span { color: var(--theme-accent-primary); }

.bu-nav {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}
.bu-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.bu-nav a:hover {
    color: var(--theme-accent-primary);
    text-shadow: 0 0 12px var(--theme-accent-glow);
}

/* Ticker marquee (deferred — kept for re-enable) */
.bu-ticker-marquee-container {
    width: 100%;
    background-color: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border-inactive);
    padding: 14px 24px;
    overflow: hidden;
    position: relative;
}
.bu-ticker-marquee-text {
    display: inline-flex;
    gap: 64px;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    animation: marquee-roll 35s linear infinite;
}
@keyframes marquee-roll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.bu-status-healthy { color: var(--theme-state-healthy); font-weight: bold; }
.bu-status-trap    { color: var(--theme-state-error); font-weight: bold; }

/* ── Authenticated nav additions ────────────────────────────────────────────── */

/* Fuel counter — ⚡ N FT in the nav bar */
.bu-nav-fuel {
    color: var(--theme-accent-primary);
    font-size: 13px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Get Started CTA pill (logged-out nav) */
.bu-nav-cta {
    display: inline-block;
    background: var(--theme-accent-primary);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.bu-nav-cta:hover {
    background: var(--theme-accent-hover, #7c3aed);
    box-shadow: 0 0 14px var(--theme-accent-glow);
    text-shadow: none !important;
}

/* Account dropdown */
.bu-nav-account-menu {
    position: relative;
    list-style: none;
}
.bu-nav-account-trigger {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Avatar circle — initials, amethyst gradient */
.bu-nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6b3fa0 0%, #a855f7 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(168,85,247,0.4);
}
.bu-nav-account-trigger:hover {
    color: var(--theme-accent-primary);
    text-shadow: 0 0 12px var(--theme-accent-glow);
}
.bu-nav-account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    min-width: 160px;
    background: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 6px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(168,85,247,0.08);
    z-index: 300;
}
/* Invisible hover bridge across the 14px gap: keeps the menu open while the cursor
   travels from the trigger down to "Log out" (it was snapping shut in the dead zone). */
.bu-nav-account-dropdown::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 16px;
}
.bu-nav-account-menu:hover .bu-nav-account-dropdown,
.bu-nav-account-menu:focus-within .bu-nav-account-dropdown,
.bu-nav-account-menu.is-open .bu-nav-account-dropdown {
    display: block;
}

/* Fuel gauge (header) — color-coded skewed ticks, matches the Telemetry HUD mockup.
   Predesignated red→yellow→green; first N lit by fuel level. Replaces the "⚡ FT" text. */
.vd-fuel-gauge { display: flex; flex-direction: column; gap: 5px; }
.vd-fuel-head {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--theme-text-muted, #9486A8);
}
.vd-fuel-ticks { display: flex; gap: 3px; }
.vd-fuel-tick {
    width: 9px; height: 13px; border-radius: 2px;
    background: rgba(255,255,255,0.06); transform: skewX(-15deg);
}
.vd-fuel-tick.is-red    { background: #F25660; box-shadow: 0 0 4px rgba(242,86,96,0.6); }
.vd-fuel-tick.is-yellow { background: #ffea00; box-shadow: 0 0 4px #ffea00; }
.vd-fuel-tick.is-green  { background: #00ff66; box-shadow: 0 0 4px #00ff66; }
.vd-fuel-empty { color: #F25660; font-weight: 700; letter-spacing: 0.5px; }
.bu-nav-account-dropdown li a {
    display: block;
    padding: 9px 18px;
    color: var(--theme-text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.bu-nav-account-dropdown li a:hover {
    background: rgba(168,85,247,0.12);
    color: var(--theme-accent-primary);
}

/* Email header at top of dropdown */
.bu-nav-dd-email {
    padding: 8px 18px 6px;
    font-size: 11px;
    color: #5a4080;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    pointer-events: none;
}

/* Thin separator rule */
.bu-nav-dd-divider {
    height: 1px;
    background: #1e0e32;
    margin: 3px 0;
}

/* Admin Console link — slightly dimmed to distinguish from regular nav */
.bu-nav-dd-admin {
    color: #8a6db0 !important;
    font-size: 12px !important;
}
.bu-nav-dd-admin:hover {
    color: var(--theme-accent-primary) !important;
}

/* Minimal layout header (payment-required / suspended pages) */
.bu-minimal-header {
    width: 100%;
    background-color: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border-inactive);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compliance hold / suspended page */
.bu-compliance-shell {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 24px;
}
.bu-compliance-icon  { font-size: 48px; line-height: 1; }
.bu-compliance-title { font-size: 26px; font-weight: 800; color: var(--theme-text-main); margin: 0; }
.bu-compliance-msg   { font-size: 15px; color: var(--theme-text-muted); max-width: 480px; line-height: 1.6; }
.bu-compliance-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.bu-footer-root {
    background-color: var(--theme-bg-surface);
    border-top: 1px solid var(--theme-border-inactive);
    padding-top: 56px;
    padding-bottom: 40px;
    width: 100%;
    margin-top: 60px;
}
.bu-footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.bu-footer-directory {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 12px;
}
.bu-brand-column p {
    font-size: 14px;
    color: var(--theme-text-muted);
    line-height: 1.5;
    margin-top: 12px;
    max-width: 280px;
}
.bu-dir-column h5 {
    color: var(--theme-text-main);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 700;
}
.bu-dir-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.bu-dir-links a {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}
.bu-dir-links a:hover { color: #ffffff; }

.bu-disclaimer-panel {
    background-color: rgba(217,119,6,0.08);
    border: 1px solid rgba(217,119,6,0.25);
    border-radius: 12px;
    padding: 24px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: var(--theme-text-muted);
    line-height: 1.6;
    text-align: justify;
}
.bu-disclaimer-panel strong { color: #fbbf24; font-weight: bold; }

.bu-footer-base {
    border-top: 1px solid var(--theme-border-inactive);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--theme-text-muted);
}

@media (max-width: 768px) {
    .bu-footer-directory { grid-template-columns: 1fr 1fr; gap: 32px; }
    .bu-nav { gap: 20px; }
}

/* ============================================================
   AUTHENTICATED APP SHELL
   ============================================================ */

.bu-logo-group { display: flex; align-items: center; gap: 32px; }

.bu-app-nav {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}
.bu-app-nav a {
    color: var(--theme-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.bu-app-nav a:hover,
.bu-app-nav a.active { color: #ffffff; }

.bu-operator-control-panel { display: flex; align-items: center; gap: 30px; }

.bu-token-gauge {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,0.02);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-inactive);
}
.bu-token-gauge-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    gap: 15px;
}
.bu-token-ticks { display: flex; gap: 4px; }
.bu-tick {
    width: 10px; height: 14px;
    border-radius: 2px;
    background: rgba(255,255,255,0.05);
    transform: skewX(-15deg);
}
.bu-tick.fill-red    { background: var(--theme-state-error);   box-shadow: 0 0 5px rgba(242,86,96,0.5); }
.bu-tick.fill-yellow { background: var(--theme-state-warning); box-shadow: 0 0 5px rgba(217,119,6,0.5); }
.bu-tick.fill-green  { background: var(--theme-state-healthy); box-shadow: 0 0 5px rgba(0,255,102,0.3); }

.bu-sys-yield {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    text-align: right;
    line-height: 1.3;
    font-family: ui-monospace, monospace;
}
.bu-sys-yield strong { color: #ffffff; font-weight: 800; }

.bu-operator-identity-hub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--theme-border-inactive);
}
.bu-operator-avatar-badge {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #1c0e2b;
    border: 1px solid var(--theme-border-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
}
.bu-btn-header-logout {
    background: transparent;
    border: 1px solid var(--theme-border-inactive);
    color: var(--theme-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.bu-btn-header-logout:hover {
    color: var(--theme-state-error);
    border-color: var(--theme-state-error);
}

.bu-app-footer-root {
    background-color: var(--theme-bg-surface);
    border-top: 1px solid var(--theme-border-inactive);
    padding: 32px 24px;
    margin-top: 60px;
}
.bu-app-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--theme-text-muted);
}
.bu-app-footer-links a {
    color: var(--theme-text-muted);
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s;
}
.bu-app-footer-links a:hover { color: #ffffff; }

.bu-app-footer-disclaimer {
    max-width: 1440px;
    margin: 16px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--theme-border-inactive);
    color: var(--theme-text-muted);
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.75;
}

@media (max-width: 1024px) {
    .bu-app-footer-container { flex-direction: column; gap: 16px; text-align: center; }
    .bu-operator-control-panel { gap: 16px; }
    .bu-app-nav { gap: 14px; }
}

/* ============================================================
   FROSTED AUTH OVERLAY (Login / Register modal)
   ============================================================ */

.bu-auth-state    { position: absolute; opacity: 0; pointer-events: none; }
.bu-auth-tabstate { display: none; }

.bu-auth-open-link {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.bu-auth-open-link:hover {
    color: var(--theme-accent-primary);
    text-shadow: 0 0 12px var(--theme-accent-glow);
}

.bu-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.bu-auth-state:checked ~ .bu-auth-overlay { display: flex; }

.bu-auth-scrim {
    position: absolute;
    inset: 0;
    background: rgba(4,1,8,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.bu-auth-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 24px;
    background: var(--theme-bg-frosted);
    backdrop-filter: var(--theme-backdrop-blur);
    -webkit-backdrop-filter: var(--theme-backdrop-blur);
    border: 1px solid var(--theme-border-active);
    border-radius: 16px;
    padding: 40px 36px 36px;
    box-shadow: 0 0 40px var(--theme-accent-glow);
}

.bu-auth-close {
    position: absolute;
    top: 14px; right: 18px;
    color: var(--theme-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.bu-auth-close:hover { color: #ffffff; }

.bu-auth-heading { text-align: center; margin-bottom: 24px; }
.bu-auth-heading .bu-logo { font-size: 22px; }

.bu-auth-tabbar {
    display: flex;
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}
.bu-auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}
#bu-tab-login:checked    ~ .bu-auth-tabbar .bu-auth-tab-login,
#bu-tab-register:checked ~ .bu-auth-tabbar .bu-auth-tab-register {
    color: #ffffff;
    background-color: rgba(168,85,247,0.2);
    border: 1px solid rgba(168,85,247,0.3);
}

.bu-auth-panel { display: none; }
#bu-tab-login:checked    ~ .bu-auth-panel-login    { display: block; }
#bu-tab-register:checked ~ .bu-auth-panel-register { display: block; }

.bu-form-group { margin-bottom: 18px; }
.bu-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.bu-auth-panel .bu-btn--primary { width: 100%; margin-top: 8px; }
.bu-auth-alt {
    text-align: center;
    font-size: 12px;
    color: var(--theme-text-muted);
    margin-top: 18px;
}
.bu-auth-alt label { color: var(--theme-accent-primary); cursor: pointer; font-weight: 600; }

/* Billing cart banner */
.billing-cart {
    background: var(--theme-bg-frosted);
    border: 1px solid var(--theme-border-active);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 8px 0 24px;
    box-shadow: 0 0 20px var(--theme-accent-glow);
}
.billing-cart-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--theme-accent-primary);
    margin-bottom: 10px;
}
.billing-cart-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.billing-cart-body strong { color: #fff; font-size: 18px; }
.billing-cart-meta { color: var(--theme-text-muted); font-size: 13px; margin-left: 10px; }

/* ============================================================
   FUNNEL PAGES — Register / Verify / Checkout
   ============================================================ */

.bu-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.bu-compliance-matrix {
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--theme-border-inactive);
}
.bu-checkbox-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.bu-checkbox-row input[type="checkbox"] {
    appearance: none;
    background-color: rgba(0,0,0,0.4);
    border: 1px solid var(--theme-border-inactive);
    width: 22px; height: 22px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.bu-checkbox-row input[type="checkbox"]:checked {
    background-color: var(--theme-accent-primary);
    border-color: var(--theme-accent-primary);
    box-shadow: 0 0 10px var(--theme-accent-glow);
}
.bu-checkbox-row input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.bu-checkbox-label { font-size: 13px; color: var(--theme-text-muted); line-height: 1.5; cursor: pointer; }
.bu-checkbox-label strong { color: #fff; }

.bu-preview-callout {
    border: 1px solid var(--theme-accent-primary);
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bu-preview-capacity {
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(230,126,34,0.06);
    border: 1px solid rgba(230,126,34,0.15);
    border-radius: 8px;
}
.bu-preview-capacity .lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.bu-preview-capacity .val {
    font-family: ui-monospace, monospace;
    font-size: 24px;
    font-weight: 800;
    color: var(--theme-accent-fuel);
    text-shadow: 0 0 12px var(--theme-fuel-glow);
}

.bu-otp-field {
    width: 100%;
    background-color: rgba(0,0,0,0.4);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 18px;
    color: #fff;
    font-family: ui-monospace, monospace;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5em;
    text-align: center;
}
.bu-otp-field:focus {
    outline: none;
    border-color: var(--theme-border-active);
    box-shadow: 0 0 15px var(--theme-accent-glow);
}

.bu-dev-code-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: rgba(217,119,6,0.05);
    border: 1px dashed var(--theme-state-warning);
    border-radius: 8px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: var(--theme-text-main);
    text-align: center;
}

.bu-ledger-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(60,34,92,0.5);
    color: var(--theme-text-main);
}
.bu-ledger-summary-line.total-line {
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
    padding-top: 20px;
    color: #fff;
}
.bu-honesty-note {
    font-size: 12px;
    color: var(--theme-text-muted);
    margin-top: 20px;
    line-height: 1.5;
}
.bu-honesty-note a { color: var(--theme-accent-primary); }

.bu-funnel-error { color: var(--theme-state-error); font-size: 13px; margin-top: 12px; }

.bu-session-notice {
    font-size: 13px;
    color: var(--theme-state-warning);
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 6px;
    padding: 10px 16px;
    margin: 0 auto 20px;
    max-width: 480px;
    text-align: center;
}

/* Checkout tab row */
.bu-checkout-tab-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.bu-checkout-panel { min-height: 120px; }
.bu-wallet-trigger {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-inactive);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}
.bu-wallet-trigger:hover { border-color: var(--theme-border-active); }

/* ============================================================
   ONBOARDING — tracked assets list
   ============================================================ */

.bu-pipeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
}
.bu-pipeline-item {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-all;
    gap: 12px;
}
.bu-pipeline-empty-notice {
    color: var(--theme-text-muted);
    font-size: 14px;
    font-style: italic;
    text-align: center;
    padding: 32px 0;
}

/* ============================================================
   HOME PAGE (H1) — illustrative visuals + stat cards
   ============================================================ */

.bu-bento-big-stat {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 16px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bu-bento-big-stat span { font-size: 18px; color: var(--theme-text-muted); font-weight: 400; }

/* Stat-number state colors (replaces inline style=) */
.bu-stat-accent   { color: var(--theme-accent-primary); }
.bu-stat-healthy  { color: var(--theme-state-healthy); }
.bu-stat-critical { color: var(--theme-state-error); }

/* Illustrative demo sparklines */
.bu-spark      { width: 100%; height: 40px; margin-top: 16px; display: block; }
.bu-spark path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bu-line-healthy  { stroke: var(--theme-state-healthy); }
.bu-line-warning  { stroke: var(--theme-state-warning); }
.bu-line-critical { stroke: var(--theme-state-error); }

/* Industry / console selector bar */
.bu-console-selector-bar {
    grid-column: span 12;
    display: flex;
    background-color: var(--theme-bg-surface);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 8px;
    padding: 4px;
    margin-top: 16px;
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bu-console-selector-bar::-webkit-scrollbar { display: none; }
.bu-industry-segment {
    background: none; border: none;
    color: var(--theme-text-muted);
    padding: 14px 28px;
    font-family: inherit; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    cursor: pointer; border-radius: 6px; flex-grow: 1; text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.bu-industry-segment:hover { color: #ffffff; background-color: rgba(168,85,247,0.08); }
.bu-industry-segment.active {
    color: #ffffff;
    background-color: rgba(168,85,247,0.2);
    border: 1px solid rgba(168,85,247,0.3);
}

.bu-brick-input-group {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 24px auto 0 auto;
}
.bu-brick-input-group .bu-btn--primary { padding: 0 28px; }

/* ================================================================
   LEGAL PAGES — Terms / Privacy / AUP (readable standalone pages)
   ================================================================ */
.bu-legal-draft-banner {
    background: rgba(217,119,6,0.06);
    border: 1px dashed var(--theme-state-warning);
    color: var(--theme-state-warning);
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 28px;
}
.bu-legal-body {
    color: var(--theme-text-main);
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}
.bu-legal-body h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
}
.bu-legal-body h3:first-child { margin-top: 0; }
.bu-legal-body p { margin: 0 0 14px; color: var(--theme-text-muted); }
.bu-legal-body p strong { color: var(--theme-text-main); }
.bu-legal-body ul { margin: 0 0 16px; padding-left: 22px; color: var(--theme-text-muted); }
.bu-legal-body li { margin-bottom: 8px; line-height: 1.6; }
.bu-legal-body a { color: var(--theme-accent-primary); text-decoration: none; }
.bu-legal-body a:hover { text-decoration: underline; }

/* ================================================================
   ONBOARDING — OAuth platform connect (H4.6 empty-state)
   ================================================================ */
.bu-connect-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.bu-connect-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--theme-bg-card);
    border: 1px solid var(--theme-border-inactive);
    border-radius: 10px;
    padding: 16px 18px;
}
.bu-connect-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bu-connect-name { font-weight: 700; font-size: 15px; color: var(--theme-text-main); }
.bu-connect-account { font-size: 13px; color: var(--theme-state-healthy); }
.bu-connect-status { font-size: 12px; color: var(--theme-text-muted); }
.bu-connect-btn { width: auto; padding: 10px 18px; font-size: 13px; white-space: nowrap; }
.bu-connect-badge {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--theme-state-healthy);
    border: 1px solid rgba(0,255,102,0.3);
    border-radius: 6px; padding: 6px 12px; white-space: nowrap;
}
.bu-onboard-success {
    background: rgba(0,255,102,0.06);
    border: 1px solid rgba(0,255,102,0.3);
    color: var(--theme-state-healthy);
    border-radius: 8px; padding: 12px 16px; margin: 12px 0; font-size: 14px;
}

/* Stream-card pulled telemetry + pull action */
.hud-stream-telemetry {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    margin-top: 10px; font-size: 11px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--theme-text-muted);
}
.hud-stream-telemetry span { white-space: nowrap; }
.hud-stream-src {
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--theme-accent-primary); opacity: 0.7;
}
.hud-stream-pull {
    margin-top: 12px; width: 100%;
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: 6px; padding: 7px 0;
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--theme-accent-primary); cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.hud-stream-pull:hover:not(:disabled) { background: rgba(168,85,247,0.24); }

/* ── Blazor error banner ─────────────────────────────────────────────────────
   Hidden by default; blazor.web.js sets display:flex when an unhandled circuit
   exception escapes all error boundaries. Without display:none here the div
   renders permanently at the bottom of every page. */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--theme-bg-surface, #0d0614);
    border-top: 1px solid #F25660;
    padding: 0.55rem 3rem 0.55rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--theme-text-secondary, #9486A8);
    align-items: center;
    gap: 8px;
}
#blazor-error-ui .vd-reload {
    color: #F25660;
    text-decoration: underline;
    margin-left: 6px;
}
#blazor-error-ui .vd-dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-secondary, #9486A8);
    font-size: 14px;
}
.hud-stream-pull:disabled { opacity: 0.5; cursor: default; }
