/**
 * BRAND HARMONY ANALYZER™ (BHA-v3.0) — DESIGN SYSTEM STYLES
 * Theme: Dark Luxury Precision & Engineered Brand Coherence
 */

:root {
  --bha-purple: #E879F9;
  --bha-purple-glow: rgba(232, 121, 249, 0.25);
  --bha-cyan: #38BDF8;
  --bha-cyan-glow: rgba(56, 189, 248, 0.25);
  --bha-gold: #FCD34D;
  --bha-gold-glow: rgba(252, 211, 77, 0.25);
  --bha-emerald: #10B981;
  --bha-surface: #080605;
  --bha-card: rgba(18, 16, 14, 0.75);
  --bha-border: rgba(255, 255, 255, 0.08);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.pillars-ambient-mesh {
  max-width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   EXECUTIVE UPPER COMMAND BAR (#bha-upper-command-bar)
   ========================================================================== */
.bha-upper-command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 6, 5, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  width: 100%;
  box-sizing: border-box;
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-upper-command-bar.revealed {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.bha-cmd-laser-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(252, 211, 77, 0.6) 20%, rgba(56, 189, 248, 0.6) 50%, rgba(232, 121, 249, 0.6) 80%, transparent);
  pointer-events: none;
}

.bha-cmd-bar-inner {
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
}

.bha-cmd-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.bha-cmd-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 1;
}

.bha-cmd-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bha-cmd-monogram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-cmd-brand-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 400;
  color: #FAF8F4;
  letter-spacing: 0.05em;
  line-height: 1;
}

.bha-cmd-v-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* 5-Stage Sequential Learning Pipeline Track */
.bha-cmd-pipeline-container {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bha-cmd-pipeline-track {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(18, 14, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px 3px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.4);
}

.bha-cmd-stage-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bha-cmd-stage-node {
  display: inline-flex;
  align-items: center;
  gap: 3px !important;
  padding: 2px 6px !important;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #A8A29E;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.80rem !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap !important;
}

.bha-cmd-stage-node:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FAF8F4;
  border-color: rgba(255, 255, 255, 0.12);
}

.bha-cmd-stage-node.active {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(245, 158, 11, 0.12));
  border-color: rgba(252, 211, 77, 0.5);
  color: #FCD34D;
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.2);
}

.bha-cmd-stage-node.completed {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.bha-cmd-stage-node .cmd-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px !important;
  height: 14px !important;
  line-height: 14px !important;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 400 !important;
  background: rgba(255, 255, 255, 0.08);
  color: #D6D3D1;
  transition: all 0.2s ease;
}

.bha-cmd-stage-node.active .cmd-stage-badge {
  background: #FCD34D;
  color: #080605;
  box-shadow: 0 0 8px rgba(252, 211, 77, 0.6);
}

.bha-cmd-stage-node.completed .cmd-stage-badge {
  background: #10B981;
  color: #080605;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bha-cmd-stage-arrow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D6D3D1;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  flex-shrink: 0;
}

.bha-cmd-stage-arrow:hover {
  background: rgba(252, 211, 77, 0.18);
  border-color: rgba(252, 211, 77, 0.5);
  color: #FCD34D;
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.3);
  transform: scale(1.06);
}

.bha-cmd-stage-arrow:active {
  transform: scale(0.95);
}

.bha-stage-ledger-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  line-height: 1;
  margin-left: 3px;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.75;
}

.bha-stage-ledger-trigger.status-standby {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.bha-stage-ledger-trigger.status-optimal {
  opacity: 0.95;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

.bha-stage-ledger-trigger.status-warn {
  opacity: 1;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

.bha-stage-ledger-trigger.status-alert {
  opacity: 1;
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
  animation: pulseLedgerAlert 1.6s ease-in-out infinite;
}

@keyframes pulseLedgerAlert {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.18); box-shadow: 0 0 16px rgba(239, 68, 68, 0.9); }
}

.bha-stage-ledger-trigger:hover {
  opacity: 1;
  background: rgba(252, 211, 77, 0.25);
  border-color: #FCD34D;
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
  transform: scale(1.15);
}

.bha-cmd-pipeline-connector {
  width: 4px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.bha-cmd-pipeline-connector.active {
  background: linear-gradient(90deg, #FCD34D, #38BDF8);
  box-shadow: 0 0 6px rgba(252, 211, 77, 0.5);
}

/* Responsive Stage Names Switching */
.stage-name-full {
  display: inline;
}
.stage-name-short {
  display: none;
}

@media (max-width: 1480px) {
  .stage-name-full {
    display: none !important;
  }
  .stage-name-short {
    display: inline !important;
  }
}

.bha-cmd-node-daa {
  color: #EC4899;
}
.bha-cmd-node-daa:hover {
  color: #F472B6;
}

/* Fuel Our Engine Button (Liquid Cup-Filling Animation on Hover) */
.bha-cmd-fuel-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: rgba(22, 16, 12, 0.85) !important;
  border: 1px solid rgba(252, 211, 77, 0.45) !important;
  color: #FCD34D !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.80rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  height: 28px !important;
  line-height: 26px !important;
  padding: 0 10px !important;
  box-shadow: inset 0 -2px 6px rgba(252, 211, 77, 0.15), 0 0 10px rgba(0, 0, 0, 0.4) !important;
  transition: border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

.bha-cmd-fuel-btn::before {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 140%;
  background: linear-gradient(0deg, #EC4899 0%, #F59E0B 50%, #FCD34D 100%);
  border-radius: 40% 40% 0 0;
  transform: translateY(105%);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.25, 1);
  z-index: -1;
  pointer-events: none;
}

.bha-cmd-fuel-btn:hover {
  border-color: #FDE68A !important;
  color: #080605 !important;
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.65), 0 0 30px rgba(236, 72, 153, 0.45) !important;
}

.bha-cmd-fuel-btn:hover::before {
  transform: translateY(-8%);
}

/* Stage Inspector Popover (Anchored beneath each stage node) */
.bha-stage-inspector-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  max-width: calc(100vw - 32px);
  background: rgba(12, 10, 8, 0.96);
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(252, 211, 77, 0.15);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 12px 14px;
  text-align: left;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-stage-inspector-popover.active {
  display: block;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.bha-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.bha-popover-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bha-popover-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(252, 211, 77, 0.15);
  color: #FCD34D;
  letter-spacing: 0.04em;
}

.bha-popover-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88rem;
  color: #FAF8F4;
  letter-spacing: 0.04em;
}

.bha-popover-close-btn {
  background: none;
  border: none;
  color: #78716C;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.bha-popover-close-btn:hover {
  color: #FAF8F4;
}

.bha-popover-body {
  font-size: 0.72rem;
  color: #D6D3D1;
  line-height: 1.45;
  max-height: 200px;
  overflow-y: auto;
}

.bha-popover-empty {
  color: #78716C;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  padding: 6px 0;
}

.bha-popover-signal-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 6px;
}

.bha-popover-signal-row.pos {
  border-left: 2px solid #10B981;
}

.bha-popover-signal-row.neg {
  border-left: 2px solid #EF4444;
}

.bha-popover-signal-pts {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
}

.bha-popover-signal-pts.pos {
  color: #10B981;
}

.bha-popover-signal-pts.neg {
  color: #EF4444;
}

.bha-popover-signal-dim {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #78716C;
  letter-spacing: 0.04em;
}

.bha-popover-signal-msg {
  font-size: 0.68rem;
  color: #FAF8F4;
  line-height: 1.35;
}

.bha-popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bha-popover-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #10B981;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bha-popover-view-tab {
  background: none;
  border: 1px solid rgba(252, 211, 77, 0.3);
  color: #FCD34D;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.bha-popover-view-tab:hover {
  background: rgba(252, 211, 77, 0.15);
  border-color: #FCD34D;
}

/* Real-Time Evidence Ledger Notification Dropdown */
.bha-cmd-ledger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E7E5E4;
  font-weight: 600;
}
.bha-cmd-ledger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 211, 77, 0.35);
  color: #FCD34D;
}
.bha-cmd-ledger-menu {
  width: 350px;
  max-height: 440px;
  overflow-y: auto;
  background: rgba(14, 12, 10, 0.96);
  border: 1px solid rgba(252, 211, 77, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(252, 211, 77, 0.15);
  border-radius: 14px;
  padding: 0;
  display: none;
  flex-direction: column;
  right: 0 !important;
  left: auto !important;
}
.bha-ledger-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.02);
}
.bha-ledger-menu-count {
  color: #FCD34D;
  font-size: 0.65rem;
}
.bha-ledger-menu-list {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}
.bha-ledger-menu-empty {
  text-align: center;
  padding: 24px 12px;
  font-family: var(--font-mono);
  font-size: 0.70rem;
  color: #78716C;
  line-height: 1.5;
}
.bha-ledger-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.bha-ledger-menu-item.pos {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}
.bha-ledger-menu-item.neg {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}
.bha-ledger-menu-footer {
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
}
.bha-ledger-menu-action {
  width: 100%;
  padding: 7px 12px;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.3);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bha-ledger-menu-action:hover {
  background: rgba(252, 211, 77, 0.22);
  border-color: #FCD34D;
}

@keyframes fuelCardPulse {
  0% { box-shadow: 0 0 0 rgba(252, 211, 77, 0); }
  50% { box-shadow: 0 0 28px rgba(252, 211, 77, 0.6); border-color: #FCD34D; }
  100% { box-shadow: 0 0 0 rgba(252, 211, 77, 0); }
}

.bha-fuel-card-highlight {
  animation: fuelCardPulse 1.8s ease-in-out 3;
  border: 1.5px solid #FCD34D !important;
}

/* Command Bar Dropdown Suite */
.bha-cmd-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bha-cmd-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.bha-cmd-dropdown-trigger .cmd-arrow {
  font-size: 0.65rem;
  color: #FCD34D;
  transition: transform 0.2s ease;
}

.bha-cmd-dropdown-wrap.open .bha-cmd-dropdown-trigger .cmd-arrow {
  transform: rotate(180deg);
}

.bha-cmd-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: rgba(12, 10, 8, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(252, 211, 77, 0.15);
  display: none;
  opacity: 1;
  visibility: visible;
  z-index: 1200;
  flex-direction: column;
  gap: 2px;
}

.bha-cmd-monogram-btn {
  background: rgba(18, 15, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(250, 204, 21, 0.40);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 4px 14px 4px 10px;
  border-radius: 9999px; /* Luxury Capsule */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 0 10px rgba(250, 204, 21, 0.15);
  user-select: none;
}

.bha-cmd-monogram-btn:hover {
  background: rgba(250, 204, 21, 0.10);
  border-color: #FCD34D;
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(250, 204, 21, 0.40);
}

.bha-cmd-monogram-btn:active {
  transform: scale(0.97);
}

.bha-cmd-monogram-btn img {
  display: inline-block;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  transform-origin: center center;
}

.bha-cmd-monogram-btn .cmd-arrow {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

/* Open / Dropped-down Command Bar Dropdown */
.bha-cmd-dropdown-wrap.open .bha-cmd-monogram-btn,
.bha-cmd-monogram-btn.is-dropdowned,
.bha-cmd-monogram-btn[aria-expanded="true"] {
  border-color: #FCD34D;
  background: rgba(250, 204, 21, 0.16);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.65);
}

.bha-cmd-dropdown-wrap.open .bha-cmd-monogram-btn .cmd-arrow,
.bha-cmd-monogram-btn.is-dropdowned .cmd-arrow,
.bha-cmd-monogram-btn[aria-expanded="true"] .cmd-arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   ALGORIZMS BRAND SIGNATURE ROTATING TOGGLE & CAPSULE SYSTEM
   Founder Directive:
   - When STRAIGHT (0°), it's CAPSULED (closed / compact / resting state).
   - When DROPDOWNED, it's UPSIDE DOWN (180° rotation / active state).
   - Purpose: Irresistibly incentivizes users to click whenever they see the icon.
   ========================================================================== */

/* 1. Base Rotator: Strictly STRAIGHT (0°) at rest / when capsuled */
.algorizms-rotator-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  vertical-align: middle;
  flex-shrink: 0;
  transform: rotate(0deg) scale(1); /* Straight by default */
}

.algorizms-rotator-icon img,
.algorizms-rotator-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

/* 2. When DROPDOWNED: Emblem Flips UPSIDE DOWN (180°) */
.open > .algorizms-rotator-icon,
.open > * > .algorizms-rotator-icon,
.active > .algorizms-rotator-icon,
.active > * > .algorizms-rotator-icon,
[aria-expanded="true"] > .algorizms-rotator-icon,
[aria-expanded="true"] > * > .algorizms-rotator-icon,
.is-dropdowned .algorizms-rotator-icon,
.is-dropdowned > .algorizms-rotator-icon,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon,
.bha-drawer-toggle-btn[aria-expanded="true"] .algorizms-rotator-icon,
.bha-compact-toggle.is-dropdowned .algorizms-rotator-icon,
.bha-compact-toggle[aria-expanded="true"] .algorizms-rotator-icon,
.bha-cmd-monogram-btn.is-dropdowned .algorizms-rotator-icon,
.bha-cmd-monogram-btn[aria-expanded="true"] .algorizms-rotator-icon,
.bha-cmd-dropdown-wrap.open .algorizms-rotator-icon,
.algorizms-rotator-icon.is-upside-down,
.algorizms-rotator-icon.is-rotated,
details[open] > summary .algorizms-rotator-icon {
  transform: rotate(180deg) scale(1.15) !important;
}

/* 3. When CAPSULED: Strictly STRAIGHT (0°) */
.is-capsuled .algorizms-rotator-icon,
.is-capsuled > .algorizms-rotator-icon,
.is-collapsed .algorizms-rotator-icon,
.is-collapsed > .algorizms-rotator-icon,
[aria-expanded="false"] > .algorizms-rotator-icon,
[aria-expanded="false"] > * > .algorizms-rotator-icon,
.bha-drawer-toggle-btn.is-collapsed .algorizms-rotator-icon,
.bha-drawer-toggle-btn.is-capsuled .algorizms-rotator-icon,
.bha-drawer-toggle-btn[aria-expanded="false"] .algorizms-rotator-icon,
.bha-compact-toggle.is-collapsed .algorizms-rotator-icon,
.bha-compact-toggle.is-capsuled .algorizms-rotator-icon,
.bha-compact-toggle[aria-expanded="false"] .algorizms-rotator-icon,
.bha-cmd-monogram-btn.is-capsuled .algorizms-rotator-icon,
.bha-cmd-monogram-btn[aria-expanded="false"] .algorizms-rotator-icon,
.algorizms-rotator-icon.is-straight {
  transform: rotate(0deg) scale(1) !important;
}

/* Color Glow Signatures */
.algorizms-rotator-icon.sig-gold,
.sig-gold .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.45));
}
.open > .algorizms-rotator-icon.sig-gold,
.open > * > .algorizms-rotator-icon.sig-gold,
.is-dropdowned .algorizms-rotator-icon.sig-gold,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-gold,
.algorizms-rotator-icon.sig-gold.is-upside-down,
.algorizms-rotator-icon.sig-gold.is-rotated {
  filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.90));
}

.algorizms-rotator-icon.sig-blue,
.sig-blue .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.45));
}
.open > .algorizms-rotator-icon.sig-blue,
.open > * > .algorizms-rotator-icon.sig-blue,
.is-dropdowned .algorizms-rotator-icon.sig-blue,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-blue,
.algorizms-rotator-icon.sig-blue.is-upside-down,
.algorizms-rotator-icon.sig-blue.is-rotated {
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.90));
}

.algorizms-rotator-icon.sig-purple,
.sig-purple .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.45));
}
.open > .algorizms-rotator-icon.sig-purple,
.open > * > .algorizms-rotator-icon.sig-purple,
.is-dropdowned .algorizms-rotator-icon.sig-purple,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-purple,
.algorizms-rotator-icon.sig-purple.is-upside-down,
.algorizms-rotator-icon.sig-purple.is-rotated {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.90));
}

.algorizms-rotator-icon.sig-magenta,
.sig-magenta .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.45));
}
.open > .algorizms-rotator-icon.sig-magenta,
.open > * > .algorizms-rotator-icon.sig-magenta,
.is-dropdowned .algorizms-rotator-icon.sig-magenta,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-magenta,
.algorizms-rotator-icon.sig-magenta.is-upside-down,
.algorizms-rotator-icon.sig-magenta.is-rotated {
  filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.90));
}

.algorizms-rotator-icon.sig-emerald,
.sig-emerald .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.45));
}
.open > .algorizms-rotator-icon.sig-emerald,
.open > * > .algorizms-rotator-icon.sig-emerald,
.is-dropdowned .algorizms-rotator-icon.sig-emerald,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-emerald,
.algorizms-rotator-icon.sig-emerald.is-upside-down,
.algorizms-rotator-icon.sig-emerald.is-rotated {
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.90));
}

.algorizms-rotator-icon.sig-chrome,
.sig-chrome .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}
.open > .algorizms-rotator-icon.sig-chrome,
.open > * > .algorizms-rotator-icon.sig-chrome,
.is-dropdowned .algorizms-rotator-icon.sig-chrome,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-chrome,
.algorizms-rotator-icon.sig-chrome.is-upside-down,
.algorizms-rotator-icon.sig-chrome.is-rotated {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95));
}

.algorizms-rotator-icon.sig-indigo,
.sig-indigo .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.45));
}
.open > .algorizms-rotator-icon.sig-indigo,
.open > * > .algorizms-rotator-icon.sig-indigo,
.is-dropdowned .algorizms-rotator-icon.sig-indigo,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-indigo,
.algorizms-rotator-icon.sig-indigo.is-upside-down,
.algorizms-rotator-icon.sig-indigo.is-rotated {
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.90));
}

.algorizms-rotator-icon.sig-ocean,
.sig-ocean .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(14, 165, 233, 0.45));
}
.open > .algorizms-rotator-icon.sig-ocean,
.open > * > .algorizms-rotator-icon.sig-ocean,
.is-dropdowned .algorizms-rotator-icon.sig-ocean,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-ocean,
.algorizms-rotator-icon.sig-ocean.is-upside-down,
.algorizms-rotator-icon.sig-ocean.is-rotated {
  filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.90));
}

.algorizms-rotator-icon.sig-obsidian,
.sig-obsidian .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(148, 163, 184, 0.40));
}
.open > .algorizms-rotator-icon.sig-obsidian,
.open > * > .algorizms-rotator-icon.sig-obsidian,
.is-dropdowned .algorizms-rotator-icon.sig-obsidian,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-obsidian,
.algorizms-rotator-icon.sig-obsidian.is-upside-down,
.algorizms-rotator-icon.sig-obsidian.is-rotated {
  filter: drop-shadow(0 0 12px rgba(148, 163, 184, 0.85));
}

.algorizms-rotator-icon.sig-champagne,
.sig-champagne .algorizms-rotator-icon {
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.45));
}
.open > .algorizms-rotator-icon.sig-champagne,
.open > * > .algorizms-rotator-icon.sig-champagne,
.is-dropdowned .algorizms-rotator-icon.sig-champagne,
.bha-drawer-toggle-btn.is-dropdowned .algorizms-rotator-icon.sig-champagne,
.algorizms-rotator-icon.sig-champagne.is-upside-down,
.algorizms-rotator-icon.sig-champagne.is-rotated {
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.90));
}

/* ==========================================================================
   SPECIMEN SHOWCASE BRAND IDENTITY & LOGO BADGE
   Frosted glass luxury container ensuring contrast & visibility
   ========================================================================== */
.bha-preview-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bha-preview-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  min-height: 42px;
  min-width: 42px;
}

.bha-preview-logo-badge:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(252, 211, 77, 0.4);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.bha-preview-logo-img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.25s ease;
}

/* Contrast enhancement for dark canvases: if logo is dark monochrome, add subtle rim light */
.bha-preview-stage:not(.light-mode) .bha-preview-logo-img {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.bha-preview-stage.light-mode .bha-preview-logo-badge {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bha-specimen-pricing .bha-preview-logo-wrap,
.bha-specimen-dashboard .bha-preview-logo-wrap {
  margin-bottom: 0 !important;
}

.bha-specimen-pricing .bha-preview-logo-badge,
.bha-specimen-dashboard .bha-preview-logo-badge {
  padding: 3px 8px;
  border-radius: 8px;
  min-height: 28px;
  min-width: 28px;
}

.bha-specimen-pricing .bha-preview-logo-img,
.bha-specimen-dashboard .bha-preview-logo-img {
  max-height: 20px;
  max-width: 50px;
}

.bha-cmd-avatar-col-wrap {
  display: inline-flex;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  position: relative;
}

.bha-cmd-avatar-score-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  font-weight: 800;
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.15);
  border: 1px solid rgba(252, 211, 77, 0.35);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.04em;
  box-shadow: 0 0 6px rgba(252, 211, 77, 0.2);
}

.bha-cmd-bha-menu {
  left: 0 !important;
  right: auto !important;
}

.bha-cmd-brand-menu {
  right: 0 !important;
  left: auto !important;
}

.bha-cmd-dropdown-wrap.open .bha-cmd-dropdown-menu,
.bha-cmd-dropdown-menu.open,
#bha-cmd-bha-menu-wrap.open #bha-cmd-bha-menu,
#bha-cmd-view-dropdown-wrap.open #bha-cmd-view-menu,
#bha-cmd-brand-avatar-wrap.open #bha-cmd-brand-menu,
#bha-cmd-bha-menu.open,
#bha-cmd-view-menu.open,
#bha-cmd-brand-menu.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.bha-dropdown-header {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: #FCD34D;
  font-weight: 700;
  padding: 6px 10px 4px;
  text-transform: uppercase;
  visibility: visible !important;
}

.bha-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #D6D3D1;
  cursor: pointer;
  text-align: left;
  visibility: visible !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
}

.bha-dropdown-item:hover {
  background: rgba(252, 211, 77, 0.12);
  color: #FAF8F4;
}

.bha-dropdown-item.active {
  background: rgba(252, 211, 77, 0.16);
  color: #FCD34D;
}

.bha-dropdown-item.active .bha-dd-title {
  color: #FCD34D;
}

.bha-dd-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  visibility: visible !important;
}

.bha-dd-content {
  flex: 1;
  min-width: 0;
  visibility: visible !important;
}

.bha-dd-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  color: #FAF8F4;
  display: block;
  visibility: visible !important;
}

.bha-dd-desc {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #A8A29E;
  display: block;
  margin-top: 1px;
  visibility: visible !important;
}

.bha-dd-check {
  font-size: 0.72rem;
  color: #FCD34D;
  font-weight: 800;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
  visibility: visible !important;
}

.bha-dropdown-item.active .bha-dd-check {
  opacity: 1;
}

.bha-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* Personalized Brand Avatar in Bar */
.bha-cmd-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #3B82F6);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-cmd-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
  border-color: #38BDF8;
}

.bha-cmd-avatar-img {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.85rem;
  color: #080605;
  line-height: 1;
}

.bha-cmd-avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  animation: pulseDot 2s infinite ease-in-out;
  pointer-events: none;
}

.bha-cmd-brand-menu {
  right: 0;
  left: auto;
  min-width: 285px;
}

.bha-brand-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin-bottom: 4px;
}

.bha-bm-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #3B82F6);
  color: #080605;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
}

.bha-bm-info {
  flex: 1;
  min-width: 0;
}

.bha-bm-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #FAF8F4;
  display: block;
}

.bha-bm-domain {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #A8A29E;
  display: block;
}

.bha-bm-score {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.15);
  border: 1px solid rgba(252, 211, 77, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
}

.bha-dd-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bha-leaderboard-pill {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
}

.bha-leaderboard-pill.unlocked {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
}

.bha-leaderboard-pill.locked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #EF4444;
}

/* Ambient Glowing Live Score Pill */
.bha-cmd-live-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bha-cmd-live-score-pill:hover {
  border-color: #FCD34D;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.25);
}

.bha-cmd-live-score-pill.tier-elite {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}
.bha-cmd-live-score-pill.tier-elite .bha-cmd-score-num {
  color: #10B981;
}

.bha-cmd-live-score-pill.tier-cohesion {
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.4);
}
.bha-cmd-live-score-pill.tier-cohesion .bha-cmd-score-num {
  color: #FCD34D;
}

.bha-cmd-live-score-pill.tier-dissonance {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}
.bha-cmd-live-score-pill.tier-dissonance .bha-cmd-score-num {
  color: #EF4444;
}

.bha-cmd-pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FCD34D;
  box-shadow: 0 0 8px #FCD34D;
  animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 14px #FCD34D; }
}

.bha-cmd-tier-tag {
  font-size: 0.58rem;
  color: #FAF8F4;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-left: 4px;
  font-weight: 700;
}

.bha-cmd-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A8A29E;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bha-cmd-toggle-btn.active,
.bha-cmd-toggle-btn:hover {
  background: rgba(252, 211, 77, 0.15);
  border-color: #FCD34D;
  color: #FAF8F4;
}

/* Executive Utility Suite Buttons */
.bha-cmd-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D6D3D1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.60rem !important;
  font-weight: 700 !important;
  padding: 3px 6px !important;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.bha-cmd-btn .cmd-icon {
  font-size: 0.65rem;
}

.bha-cmd-btn:hover {
  background: rgba(252, 211, 77, 0.1);
  border-color: rgba(252, 211, 77, 0.4);
  color: #FAF8F4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 12px rgba(252, 211, 77, 0.15);
}

.bha-cmd-like-btn {
  background: rgba(252, 211, 77, 0.08);
  border-color: rgba(252, 211, 77, 0.35);
  color: #FCD34D;
}

.bha-cmd-like-btn:hover {
  background: rgba(252, 211, 77, 0.2);
  border-color: #FCD34D;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.35);
  color: #FAF8F4;
}

.bha-cmd-like-badge {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.65rem !important;
  background: rgba(0, 0, 0, 0.45);
  padding: 0 4px;
  border-radius: 6px;
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.25);
  line-height: 1.1;
}

.bha-cmd-flag-btn {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

.bha-cmd-flag-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: #EF4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.3);
  color: #FAF8F4;
}

/* Page Hero */
.bha-hero-wrap {
  text-align: center;
  padding: 16px 0 10px;
  position: relative;
}

.bha-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 121, 249, 0.1);
  border: 1px solid rgba(232, 121, 249, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--bha-purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bha-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--bha-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bha-purple);
  animation: pulseDot 2s infinite ease-in-out;
}

.bha-headline {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: clamp(1.4rem, 2.3vw, 2.0rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #FAF8F4;
  max-width: 880px;
  margin: 0 auto 10px;
}

.bha-headline .purple-gradient-text {
  background: linear-gradient(135deg, #E879F9 0%, #C084FC 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bha-lead {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted, #A8A29E);
  max-width: 740px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Brand Kit PDF Dropzone */
.bha-dropzone-container {
  background: rgba(18, 16, 14, 0.85);
  border: 2px dashed rgba(232, 121, 249, 0.35);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  max-width: 820px;
  margin: 0 auto 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.bha-dropzone-container:hover,
.bha-dropzone-container.dragover {
  border-color: var(--bha-purple);
  background: rgba(232, 121, 249, 0.05);
  box-shadow: 0 0 30px rgba(232, 121, 249, 0.15);
  transform: translateY(-2px);
}

.bha-dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: rgba(232, 121, 249, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bha-purple);
}

.bha-dropzone-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF8F4;
  margin-bottom: 6px;
}

.bha-dropzone-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted, #A8A29E);
  margin-bottom: 14px;
}

.bha-dropzone-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bha-dropzone-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D6D3D1;
}

/* Extraction Progress Bar */
.bha-extract-progress {
  display: none;
  margin-top: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(232, 121, 249, 0.2);
}

.bha-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bha-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E879F9, #38BDF8);
  transition: width 0.3s ease;
}

.bha-progress-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--bha-purple);
  display: flex;
  justify-content: space-between;
}

/* Modern Dual-Mode Intake Segmented Switcher */
.bha-intake-tabs-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 5px;
  background: rgba(18, 16, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bha-intake-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #A8A29E;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.bha-intake-tab-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.05);
}

.bha-intake-tab-btn.active {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.16), rgba(232, 121, 249, 0.16));
  color: #FCD34D;
  border-color: rgba(252, 211, 77, 0.4);
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.18);
  font-weight: 700;
}

.bha-intake-tab-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.bha-intake-tab-btn.active .bha-intake-tab-badge {
  background: rgba(252, 211, 77, 0.25);
  color: #FCD34D;
}

/* Quick-Try Benchmark Presets Bar */
.bha-presets-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto 24px;
}

.bha-presets-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #78716C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.bha-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D6D3D1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.bha-preset-chip:hover {
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.4);
  color: #FCD34D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 211, 77, 0.15);
}

.bha-preset-chip.egypt {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

.bha-preset-chip.egypt:hover {
  border-color: rgba(239, 68, 68, 0.6);
  color: #F87171;
  background: rgba(239, 68, 68, 0.15);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* High-Impact Website URL Crawler Input Bar */
.bha-url-bar-wrap {
  background: rgba(18, 16, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 860px;
  margin: 0 auto 40px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease;
}

.bha-url-bar-wrap:focus-within {
  border-color: rgba(252, 211, 77, 0.45);
  box-shadow: 0 0 35px rgba(252, 211, 77, 0.12);
}

.bha-url-input-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 12px;
  gap: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bha-url-input-container:focus-within {
  border-color: #FCD34D;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.2);
}

.bha-url-prefix {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  color: #78716C;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bha-url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FAF8F4;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  outline: none;
  padding: 8px 4px;
}

.bha-url-input::placeholder {
  color: #78716C;
}

.bha-url-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bha-url-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A8A29E;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bha-url-action-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.12);
}

/* Live Multi-Stage Extraction Telemetry HUD */
.bha-telemetry-hud-card {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(252, 211, 77, 0.25);
  border-radius: 12px;
  text-align: left;
}

.bha-telemetry-hud-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  color: #FCD34D;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bha-telemetry-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bha-telemetry-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #A8A29E;
  transition: color 0.3s ease;
}

.bha-telemetry-step-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #78716C;
}

.bha-telemetry-step.active {
  color: #FAF8F4;
}

.bha-telemetry-step.active .bha-telemetry-step-icon {
  background: rgba(252, 211, 77, 0.2);
  color: #FCD34D;
  animation: pulse-hud 1.2s infinite ease-in-out;
}

.bha-telemetry-step.done {
  color: #10B981;
}

.bha-telemetry-step.done .bha-telemetry-step-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

@keyframes pulse-hud {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* File Selected Preview Card */
.bha-file-card-preview {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 12px;
  text-align: left;
}

.bha-file-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bha-file-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bha-file-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FCD34D;
  font-size: 1.1rem;
}

.bha-file-card-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #FAF8F4;
}

.bha-file-card-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #A8A29E;
}

.bha-file-recap-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-file-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* 2-Column Studio Layout (Fallback & Responsive Base) */
.bha-studio-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SITE HEADER RETRACTION & SLEEK RESTORE TAB
   ========================================================================== */
.site-header {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.site-header.pulled-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.bha-header-restore-tab {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  opacity: 0;
  pointer-events: none;
  z-index: 10001;
  background: rgba(13, 18, 28, 0.94);
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 5px 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #FCD34D;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(252, 211, 77, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.header-pulled .bha-header-restore-tab,
.bha-header-restore-tab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body:has(.bha-upper-command-bar.revealed) .bha-header-restore-tab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-120%) !important;
}

.bha-header-restore-tab:hover {
  background: rgba(26, 32, 48, 0.98);
  color: #FAF8F4;
  box-shadow: 0 8px 30px rgba(252, 211, 77, 0.45);
}

/* ==========================================================================
   ULTRA-THIN LIVE WEBSITE SCANNER (MARCELO SCI-FI BAR)
   ========================================================================== */
.bha-ultra-thin-scanner-wrap {
  max-width: 780px;
  margin: 4px auto 22px;
  position: relative;
  z-index: 15;
}

.bha-ultra-thin-scanner {
  display: flex;
  align-items: center;
  background: rgba(13, 18, 28, 0.88);
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 9999px;
  padding: 4px 6px 4px 16px;
  height: 46px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 25px rgba(252, 211, 77, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.bha-ultra-thin-scanner:focus-within {
  border-color: #FCD34D;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(252, 211, 77, 0.28);
  transform: translateY(-1px);
}

.bha-thin-prefix {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #38BDF8;
  font-weight: 600;
  margin-right: 6px;
  flex-shrink: 0;
  user-select: none;
  white-space: nowrap;
}

.bha-thin-url-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: var(--font-mono) !important;
  font-size: 0.82rem;
  color: #FAF8F4 !important;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
}

.bha-thin-url-input::placeholder {
  color: rgba(168, 162, 158, 0.65);
  font-size: 0.78rem;
}

.bha-thin-icon-btn {
  background: none;
  border: none;
  color: #A8A29E;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.bha-thin-icon-btn:hover {
  color: #FAF8F4;
}

.bha-thin-paste-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #D6D3D1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 10px;
  margin: 0 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bha-thin-paste-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FAF8F4;
  border-color: rgba(252, 211, 77, 0.4);
}

.bha-scan-shimmer-btn {
  height: 38px !important;
  border-radius: 9999px !important;
  padding: 2px !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    #FCD34D 0deg,
    #D946EF 72deg,
    #2563EB 144deg,
    #38BDF8 216deg,
    #8B5CF6 288deg,
    #FCD34D 360deg
  ) !important;
  animation: borderAngleRotate 4s linear infinite !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(252, 211, 77, 0.25) !important;
  cursor: pointer !important;
  border: none !important;
}

.bha-scan-shimmer-btn::before {
  content: '' !important;
  position: absolute !important;
  inset: -1px !important;
  border-radius: 9999px !important;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    #FCD34D 0deg,
    #D946EF 72deg,
    #2563EB 144deg,
    #38BDF8 216deg,
    #8B5CF6 288deg,
    #FCD34D 360deg
  ) !important;
  animation: borderAngleRotate 4s linear infinite !important;
  filter: blur(6px) !important;
  opacity: 0.5 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

.bha-scan-shimmer-btn:hover {
  animation: borderAngleRotate 1.5s linear infinite !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 22px rgba(252, 211, 77, 0.6), 0 0 24px rgba(217, 70, 239, 0.4) !important;
}

.bha-scan-shimmer-btn:hover::before {
  animation: borderAngleRotate 1.5s linear infinite !important;
  opacity: 0.85 !important;
  filter: blur(10px) !important;
}

.bha-scan-shimmer-btn .shimmer-btn-inner {
  height: 34px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  font-family: var(--font-display), 'Libby', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  background: rgba(18, 14, 12, 0.9) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #FAF8F4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.bha-scan-shimmer-btn .shimmer-btn-inner span {
  color: #FCD34D !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.bha-scan-shimmer-btn:hover .shimmer-btn-inner span {
  color: #FAF8F4 !important;
  text-shadow: 0 0 12px rgba(252, 211, 77, 0.7) !important;
}

.bha-scan-shimmer-btn.igniting,
.bha-scan-shimmer-btn:disabled {
  animation: borderAngleRotate 0.8s linear infinite !important;
  box-shadow: 0 0 28px rgba(252, 211, 77, 0.7), 0 0 32px rgba(217, 70, 239, 0.5) !important;
  cursor: wait !important;
}

.bha-scan-shimmer-btn.igniting .shimmer-btn-inner span {
  color: #38BDF8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.8) !important;
}

.bha-thin-presets-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.bha-presets-micro-label {
  font-family: var(--font-mono);
  font-size: 0.60rem;
  color: #A8A29E;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bha-preset-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
}

/* ==========================================================================
   PERSISTENT STICKY TELEMETRY HUD DOCK (100% PERSISTENT SCORE HORIZON)
   ========================================================================== */
.bha-sticky-hud-dock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(10, 14, 23, 0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(252, 211, 77, 0.28);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(252, 211, 77, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.bha-sticky-hud-dock.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bha-sticky-hud-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bha-sticky-core-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--bha-gold);
  background: radial-gradient(circle, rgba(252,211,77,0.3) 0%, rgba(13,18,28,0.9) 70%);
  animation: engineGyroClockwise 12s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 0 10px rgba(252,211,77,0.4);
}

.bha-sticky-hud-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bha-sticky-score-badge {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(252, 211, 77, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
}

.bha-sticky-score-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FCD34D;
  text-shadow: 0 0 12px rgba(252, 211, 77, 0.5);
}

.bha-sticky-hud-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bha-sticky-mini-dims {
  display: flex;
  gap: 8px;
}

.bha-sticky-dim-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================================================
   3D INTELLIGENT QUANTUM CORE ENGINE (MARCELO SCI-FI SCORING DIAL)
   ========================================================================== */
.bha-3d-engine-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: crosshair;
  transition: transform 0.15s ease-out;
  flex-shrink: 0;
}

/* Outer Orbit Gyro Ring */
.bha-gyro-ring-outer {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px dashed rgba(252, 211, 77, 0.4);
  box-shadow: 0 0 35px rgba(252, 211, 77, 0.18), inset 0 0 25px rgba(252, 211, 77, 0.10);
  animation: engineGyroClockwise 32s linear infinite;
  pointer-events: none;
}

.bha-gyro-ring-outer::before,
.bha-gyro-ring-outer::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #38BDF8;
  border-radius: 50%;
  box-shadow: 0 0 12px #38BDF8, 0 0 24px #38BDF8;
}
.bha-gyro-ring-outer::before { top: -4px; left: 50%; transform: translateX(-50%); }
.bha-gyro-ring-outer::after { bottom: -4px; left: 50%; transform: translateX(-50%); }

/* Mid Counter-Rotating Gyro Ring */
.bha-gyro-ring-mid {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top-color: #38BDF8;
  border-bottom-color: #E879F9;
  border-left-color: rgba(252, 211, 77, 0.4);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  animation: engineGyroCounter 20s linear infinite;
  pointer-events: none;
}

/* Sci-fi Calibration Calipers */
.bha-gyro-calipers {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px dotted rgba(255, 255, 255, 0.18);
  pointer-events: none;
  animation: engineGyroClockwise 48s linear infinite;
}

/* Inner Quantum Reactor Core (Exact 260x260 1:1 SVG Canvas) */
.bha-quantum-core-reactor {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(252, 211, 77, 0.18) 0%, rgba(13, 18, 28, 0.90) 65%, rgba(5, 7, 12, 0.98) 100%);
  border: 2px solid rgba(252, 211, 77, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 50px rgba(252, 211, 77, 0.25), inset 0 0 35px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: reactorCorePulse 4s ease-in-out infinite;
  z-index: 5;
}

.bha-quantum-core-reactor.accelerating {
  border-color: #00F0FF;
  box-shadow: 0 0 70px rgba(0, 240, 255, 0.6), inset 0 0 45px rgba(252, 211, 77, 0.4);
  animation: reactorCorePulse 1.2s ease-in-out infinite;
}

/* Standby Powered-Off State: Stealth Obsidian, Dimmed Standby Breathing */
.bha-quantum-core-reactor.standby-powered-off {
  background: radial-gradient(circle at 50% 50%, rgba(20, 20, 25, 0.4) 0%, rgba(8, 10, 15, 0.95) 70%, #040508 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6) !important;
  animation: standbyDormantPulse 6s ease-in-out infinite !important;
}

@keyframes standbyDormantPulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9); }
  50% { border-color: rgba(252, 211, 77, 0.18); box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.9), 0 0 15px rgba(252, 211, 77, 0.08); }
}

.bha-quantum-core-reactor.standby-powered-off .bha-hero-score-val {
  color: #52525B !important;
  text-shadow: none !important;
}

.bha-quantum-core-reactor.standby-powered-off .bha-hero-tier-chip {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #71717A !important;
}

.bha-quantum-core-reactor.standby-powered-off #bha-hero-status-tag {
  color: #52525B !important;
}

.bha-3d-engine-stage.standby-dormant .bha-gyro-ring-outer {
  animation-duration: 48s !important;
  opacity: 0.15 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.bha-3d-engine-stage.standby-dormant .bha-gyro-ring-mid {
  animation-duration: 36s !important;
  opacity: 0.12 !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.bha-electric-conduits-svg.standby-dormant .bha-laser-conduit-path {
  opacity: 0.06 !important;
  stroke: rgba(255, 255, 255, 0.1) !important;
}

/* Ignition Sequence Surge & Shockwave Flare */
.bha-quantum-core-reactor.ignition-flare {
  animation: ignitionSurgeFlare 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes ignitionSurgeFlare {
  0% {
    filter: brightness(2.8) contrast(1.6);
    border-color: #FCD34D;
    box-shadow: 0 0 80px rgba(252, 211, 77, 0.9), 0 0 140px rgba(236, 72, 153, 0.7);
  }
  50% {
    filter: brightness(1.6);
    border-color: #38BDF8;
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.7), 0 0 90px rgba(252, 211, 77, 0.5);
  }
  100% {
    filter: none;
    border-color: rgba(252, 211, 77, 0.45);
    box-shadow: 0 0 50px rgba(252, 211, 77, 0.25), inset 0 0 35px rgba(56, 189, 248, 0.15);
  }
}

.bha-3d-engine-stage.accelerating .bha-gyro-ring-outer {
  animation-duration: 4s;
  border-color: #38BDF8;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.4), inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.bha-3d-engine-stage.accelerating .bha-gyro-ring-mid {
  animation-duration: 2.2s;
  border-color: #FCD34D;
  box-shadow: 0 0 40px rgba(252, 211, 77, 0.5);
}

.bha-3d-engine-stage.accelerating .bha-gyro-calipers {
  animation-duration: 6s;
}

/* Engine SVG Meter (Calibrated to 260x260 with r=112, stroke-width=14px, C=703.72px) */
.bha-hero-gauge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  pointer-events: none;
  filter: drop-shadow(0 0 16px rgba(252, 211, 77, 0.42)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.32)) drop-shadow(0 0 45px rgba(236, 72, 153, 0.22));
  transition: filter 0.8s ease;
}

.bha-hero-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 14;
}

.bha-hero-gauge-meter {
  fill: none;
  stroke: #ffffff;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 703.72;
  stroke-dashoffset: 703.72;
  transform: rotate(-90deg);
  transform-origin: 130px 130px;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-hero-gauge-conic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    #FCD34D 0%,
    #3B82F6 30%,
    #8B5CF6 50%,
    #EC4899 80%,
    #FCD34D 100%
  );
  background: conic-gradient(
    in oklab,
    from 0deg at 50% 50%,
    #FCD34D 0%,
    #3B82F6 30%,
    #8B5CF6 50%,
    #EC4899 80%,
    #FCD34D 100%
  );
  filter: drop-shadow(0 0 14px rgba(252, 211, 77, 0.65)) drop-shadow(0 0 24px rgba(139, 92, 246, 0.55));
}

/* Inner Centered Container Guaranteeing Zero Clearance Collision with 14px Ring */
.bha-core-reactor-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 172px;
  padding: 4px 8px;
  z-index: 6;
  pointer-events: none;
  position: relative;
  box-sizing: border-box;
}

.bha-hero-score-val {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 4.2rem;
  font-weight: 400;
  line-height: 0.90;
  color: #FAF8F4;
  text-shadow: 0 0 28px rgba(252, 211, 77, 0.65), 0 0 45px rgba(236, 72, 153, 0.35);
  letter-spacing: 0.04em;
  margin-top: 0;
}

.bha-hero-score-denom {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #A8A29E;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.bha-hero-tier-chip {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(252, 211, 77, 0.14);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.35);
  margin-top: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 88%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#bha-hero-status-tag {
  font-family: var(--font-mono);
  font-size: 0.50rem;
  color: #A8A29E;
  margin-top: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes engineGyroClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes engineGyroCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes reactorCorePulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.25), inset 0 0 30px rgba(56, 189, 248, 0.15);
  }
  50% {
    box-shadow: 0 0 65px rgba(252, 211, 77, 0.45), inset 0 0 40px rgba(232, 121, 249, 0.25);
  }
}

/* ==========================================================================
   HERO 4 DIMENSIONS GRID (FRAMING THE 3D ENGINE)
   ========================================================================== */
.bha-hero-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 0 16px;
}

.bha-hero-dim-card {
  background: rgba(13, 18, 28, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  transition: all 0.25s ease;
}

.bha-hero-dim-card:hover {
  border-color: rgba(252, 211, 77, 0.3);
  background: rgba(18, 24, 38, 0.85);
  transform: translateY(-2px);
}

.bha-hero-dim-title {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #A8A29E;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.bha-hero-dim-pct {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF8F4;
  margin-bottom: 6px;
}

.bha-hero-dim-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bha-hero-dim-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   SCAN YOUR WEBSITE INTAKE ENGINE (AUTHORITATIVE PRIMARY GOAL)
   ========================================================================== */
.bha-hero-scanner-box {
  background: rgba(13, 18, 28, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 20px;
  padding: 24px 28px;
  max-width: 820px;
  margin: 0 auto 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(252, 211, 77, 0.06);
  position: relative;
}

.bha-hero-scanner-header {
  text-align: center;
  margin-bottom: 18px;
}

.bha-hero-scanner-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FAF8F4;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.bha-hero-scanner-desc {
  font-size: 0.85rem;
  color: #A8A29E;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

.bha-scanner-trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #10B981;
  flex-wrap: wrap;
}

.bha-pdf-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A8A29E;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bha-pdf-alt-link:hover {
  color: #FCD34D;
}

/* ==========================================================================
   PERSISTENT FLOATING FEEDBACK PILL (FUEL OUR ENGINES)
   ========================================================================== */
.bha-floating-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  background: rgba(13, 18, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(252, 211, 77, 0.4);
  color: #FCD34D;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(252, 211, 77, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.bha-floating-feedback-btn:hover {
  background: rgba(252, 211, 77, 0.15);
  border-color: #FCD34D;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75), 0 0 25px rgba(252, 211, 77, 0.3);
}

/* ==========================================================================
   MARCOS COCKPIT 3D ARCHITECTURE (MARCELO DESIGN X STANDARD)
   3-Column Spatial Grid: Controllers (Left) | Monolith Viewport (Center) | Telemetry HUD (Right)
   ========================================================================== */

.bha-cockpit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.5fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1680px;
  margin: 0 auto 36px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  transition: gap 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .bha-cockpit-grid {
    grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.35fr) minmax(250px, 1fr);
    gap: 12px;
    padding: 0 10px;
  }
}

.bha-cockpit-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bha-cockpit-left {
  /* Column 1: Controller Stack */
  grid-column: 1;
  position: sticky;
  top: 74px;
  align-self: start;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

.bha-cockpit-center {
  /* Column 2: Central 360 Monolith Viewport — Always Dead Center */
  grid-column: 2;
  position: sticky;
  top: 74px;
  align-self: start;
  width: 100%;
}

.bha-cockpit-right {
  /* Column 3: Stage Insights & Telemetry */
  grid-column: 3;
  position: sticky;
  top: 74px;
  align-self: start;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}

/* Standby Mode: The Screen is Flat & Centered on the Score Core Hero (Zero Invisible Gap) */
.bha-cockpit-grid:not(.cockpit-active) {
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto 16px !important;
}

.bha-cockpit-grid:not(.cockpit-active) .bha-cockpit-left,
.bha-cockpit-grid:not(.cockpit-active) .bha-cockpit-right {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transform: perspective(1200px) translateX(0) scale(0.95);
}

.bha-cockpit-grid:not(.cockpit-active) .bha-cockpit-center {
  max-width: 680px !important;
  width: 100% !important;
}

.bha-cockpit-grid:not(.cockpit-active) #bha-score-delta-hero-block {
  display: none !important;
}

.bha-cockpit-grid:not(.cockpit-active) .bha-hero-stepper-strip {
  opacity: 0;
  pointer-events: none;
}

/* Ignited Mode: Side Columns Join Screen From Left and Right ("Break & Connect") */
.bha-cockpit-grid.cockpit-active {
  display: grid !important;
  grid-template-columns: minmax(320px, 1fr) minmax(540px, 1.6fr) minmax(320px, 1fr) !important;
  margin: 0 auto 36px !important;
}

.bha-cockpit-grid.cockpit-active .bha-cockpit-left {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  animation: cockpitMagneticJoinLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.bha-cockpit-grid.cockpit-active .bha-cockpit-right {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  animation: cockpitMagneticJoinRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.bha-cockpit-grid.cockpit-active .bha-cockpit-center {
  max-width: none !important;
  animation: cockpitCoreIgnite 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bha-cockpit-grid.cockpit-active #bha-score-delta-hero-block {
  display: block !important;
}

@keyframes cockpitMagneticJoinLeft {
  0% {
    opacity: 0;
    transform: perspective(1200px) translateX(-140px) scale(0.95);
    filter: drop-shadow(-10px 0 20px rgba(56, 189, 248, 0));
  }
  60% {
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.45));
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translateX(0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

@keyframes cockpitMagneticJoinRight {
  0% {
    opacity: 0;
    transform: perspective(1200px) translateX(140px) scale(0.95);
    filter: drop-shadow(10px 0 20px rgba(232, 121, 249, 0));
  }
  60% {
    filter: drop-shadow(0 0 25px rgba(232, 121, 249, 0.45));
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translateX(0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

@keyframes cockpitCoreIgnite {
  0% {
    transform: scale(0.96);
    filter: drop-shadow(0 0 10px rgba(252, 211, 77, 0.2));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 35px rgba(252, 211, 77, 0.65)) drop-shadow(0 0 45px rgba(56, 189, 248, 0.45));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}

/* Responsive Stacking for Tablets and Mobile */
@media (max-width: 1023px) {
  .bha-cockpit-grid {
    display: flex;
    flex-direction: column;
    max-width: 720px;
  }
  .bha-cockpit-grid:not(.cockpit-active) .bha-cockpit-left,
  .bha-cockpit-grid:not(.cockpit-active) .bha-cockpit-right {
    display: none !important;
  }
  .bha-cockpit-grid.cockpit-active .bha-cockpit-left,
  .bha-cockpit-grid.cockpit-active .bha-cockpit-right {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    display: flex !important;
    animation: none !important;
  }
  .bha-cockpit-center {
    order: 1;
  }
  .bha-cockpit-left {
    order: 2;
  }
  .bha-cockpit-right {
    order: 3;
  }
}

/* Viewport Layout Modes */
body.bha-view-focus-core .bha-cockpit-grid {
  grid-template-columns: 0 1fr 0 !important;
  max-width: 760px !important;
}
body.bha-view-focus-core .bha-cockpit-grid .bha-cockpit-left,
body.bha-view-focus-core .bha-cockpit-grid .bha-cockpit-right {
  display: none !important;
}
body.bha-view-focus-core .bha-cockpit-grid .bha-cockpit-center {
  width: 100% !important;
  max-width: 720px !important;
}

body.bha-view-split-studio .bha-cockpit-grid {
  grid-template-columns: minmax(340px, 1fr) minmax(540px, 1.8fr) 0 !important;
}
body.bha-view-split-studio .bha-cockpit-grid .bha-cockpit-right {
  display: none !important;
}

body.bha-view-telemetry-audit .bha-cockpit-grid {
  grid-template-columns: 0 minmax(540px, 1.8fr) minmax(360px, 1fr) !important;
}
body.bha-view-telemetry-audit .bha-cockpit-grid .bha-cockpit-left {
  display: none !important;
}

body.bha-view-compact-density .bha-cockpit-grid {
  gap: 10px !important;
}
body.bha-view-compact-density .bha-marcos-card {
  padding: 14px !important;
}

@keyframes stageFocusPulse {
  0% {
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
    border-color: rgba(255, 255, 255, 0.08);
  }
  35% {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4), inset 0 0 14px rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 240, 255, 0);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

.bha-stage-focus-pulse {
  animation: stageFocusPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
}

/* Glass Bento Cards - Soft Rounded Luxury Silhouette */
.bha-marcos-card {
  position: relative;
  background: rgba(13, 18, 28, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px !important;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(252, 211, 77, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.bha-marcos-card:hover {
  border-color: rgba(252, 211, 77, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(252, 211, 77, 0.06);
}

/* Hide sharp corner brackets to eliminate squared boxy aesthetic */
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  display: none !important;
}

/* ==========================================================================
   5-STAGE TOP NAVIGATION STEPPER STRIP (ILLUMINATES UPON IGNITION)
   ========================================================================== */
.bha-hero-stepper-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 5px 8px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease both;
}

.bha-hero-step-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 4px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.bha-hero-step-btn .step-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted, #78716C);
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}

.bha-hero-step-btn .step-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #A8A29E;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.bha-hero-step-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.bha-hero-step-btn:hover .step-label {
  color: #FAF8F4;
}

.bha-hero-step-btn.active {
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.35);
  box-shadow: 0 0 14px rgba(252, 211, 77, 0.15);
}

.bha-hero-step-btn.active .step-num {
  color: #FCD34D;
}

.bha-hero-step-btn.active .step-label {
  color: #FCD34D;
  font-weight: 800;
}

/* 05 BH DAA Direct Jump Button */
.bha-hero-step-daa {
  background: rgba(147, 51, 234, 0.12) !important;
  border-color: rgba(147, 51, 234, 0.35) !important;
}

.bha-hero-step-daa .step-num {
  color: #C084FC !important;
}

.bha-hero-step-daa .step-label {
  color: #C084FC !important;
}

.bha-hero-step-daa:hover {
  background: rgba(147, 51, 234, 0.25) !important;
  border-color: rgba(147, 51, 234, 0.6) !important;
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.35) !important;
}

/* ==========================================================================
   HERO ENGINE ROW (3D CORE + RIGHT STACKED MICRO-DIALS + ELECTRIC CONDUITS)
   ========================================================================== */
.bha-hero-engine-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 490px;
  margin: 6px auto 12px;
  padding: 4px 0;
}

.bha-hero-dim-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 175px;
  flex-shrink: 0;
  z-index: 6;
}

.bha-hero-dim-stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.bha-hero-dim-stack-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.bha-hero-dim-stack-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
}

.bha-hero-dim-stack-name {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  font-weight: 700;
  color: #D6D3D1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bha-hero-dim-stack-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  color: #78716C;
  white-space: nowrap;
}

.bha-dim-dial-core {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.bha-dim-dial-svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.bha-dim-dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.5;
}

.bha-dim-dial-meter {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 106.81;
  stroke-dashoffset: 106.81;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-dim-dial-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  font-weight: 800;
  pointer-events: none;
}

/* Electric Laser Conduits SVG Vector Overlay */
.bha-electric-conduits-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.bha-laser-conduit-path {
  stroke-dasharray: 6 10;
  stroke-dashoffset: 0;
  transition: opacity 0.3s ease;
  opacity: 0.30;
}

.bha-laser-conduit-path.firing {
  stroke-dasharray: 35 150;
  animation: laserPulseFire 0.38s ease-out forwards;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px currentColor);
}

@keyframes laserPulseFire {
  0% {
    stroke-dashoffset: 200;
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.35;
  }
}

@keyframes electricCoreHit {
  0% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.25);
  }
  25% {
    transform: scale(1.035);
    box-shadow: 0 0 70px rgba(56, 189, 248, 0.6), inset 0 0 35px rgba(232, 121, 249, 0.4);
  }
  60% {
    transform: scale(0.99);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.25);
  }
}

#bha-quantum-core-reactor.electric-hit {
  animation: electricCoreHit 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   HIGH-INTENSITY SCORE OVERDRIVE & KINETIC SURGE ANIMATION
   ========================================================================== */
#bha-quantum-core-reactor.overdrive-surge {
  animation: coreOverdriveSurge 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes coreOverdriveSurge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.25);
  }
  25% {
    transform: scale(1.065);
    box-shadow: 0 0 95px rgba(56, 189, 248, 0.85), 0 0 50px rgba(252, 211, 77, 0.65), inset 0 0 45px rgba(232, 121, 249, 0.6);
  }
  50% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(252, 211, 77, 0.25);
  }
}

.bha-hero-score-val.number-surging {
  animation: scoreNumberSurge 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scoreNumberSurge {
  0% { transform: scale(1); }
  30% { transform: scale(1.24); text-shadow: 0 0 35px #FCD34D, 0 0 60px #E879F9; }
  100% { transform: scale(1); }
}

/* Radial Shockwave Surge Ring */
.bha-hero-shockwave-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}

.bha-hero-shockwave-ring.exploding-up {
  animation: shockwaveSurgeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bha-hero-shockwave-ring.exploding-down {
  animation: shockwaveSurgeDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwaveSurgeUp {
  0% {
    opacity: 0.95;
    transform: scale(0.92);
    border-color: #10B981;
    box-shadow: 0 0 35px #10B981, inset 0 0 25px #10B981;
  }
  50% {
    opacity: 0.7;
    border-color: #38BDF8;
    box-shadow: 0 0 75px #38BDF8, inset 0 0 40px #E879F9;
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
    border-color: transparent;
  }
}

@keyframes shockwaveSurgeDown {
  0% {
    opacity: 0.95;
    transform: scale(0.92);
    border-color: #EF4444;
    box-shadow: 0 0 35px #EF4444, inset 0 0 25px #F59E0B;
  }
  50% {
    opacity: 0.7;
    border-color: #F59E0B;
    box-shadow: 0 0 75px #F59E0B, inset 0 0 40px #EF4444;
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
    border-color: transparent;
  }
}

/* Floating Points Delta Surge Badge */
.bha-hero-floating-delta {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.bha-hero-floating-delta.surge-pos {
  background: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(16, 185, 129, 0.85);
  color: #34D399;
  text-shadow: 0 0 12px #10B981;
  animation: deltaFloatUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bha-hero-floating-delta.surge-neg {
  background: rgba(239, 68, 68, 0.28);
  border: 1px solid rgba(239, 68, 68, 0.85);
  color: #F87171;
  text-shadow: 0 0 12px #EF4444;
  animation: deltaFloatDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes deltaFloatUp {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.85); }
  25% { opacity: 1; transform: translate(-50%, -2px) scale(1.18); }
  75% { opacity: 1; transform: translate(-50%, -10px) scale(1.0); }
  100% { opacity: 0; transform: translate(-50%, -20px) scale(0.9); }
}

@keyframes deltaFloatDown {
  0% { opacity: 0; transform: translate(-50%, -8px) scale(0.85); }
  25% { opacity: 1; transform: translate(-50%, 2px) scale(1.18); }
  75% { opacity: 1; transform: translate(-50%, 10px) scale(1.0); }
  100% { opacity: 0; transform: translate(-50%, 20px) scale(0.9); }
}

/* ==========================================================================
   CONTEXTUAL POINTS INSPECTOR (HOVER & CLICK INTERACTION SYSTEM)
   ========================================================================== */
.bha-hero-dim-stack-item {
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 10px;
  padding: 4px 6px;
  border: 1px solid transparent;
}

.bha-hero-dim-stack-item:hover,
.bha-hero-dim-stack-item.dim-hovered {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.bha-hero-dim-stack-item.dim-inspected {
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid #FCD34D;
  box-shadow: 0 0 20px rgba(252, 211, 77, 0.35);
  transform: translateX(-6px);
}

.bha-hero-dim-stack-item.dim-inspected .bha-dim-dial-meter {
  filter: drop-shadow(0 0 8px currentColor);
}

#bha-quantum-core-reactor {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

#bha-quantum-core-reactor:hover {
  transform: scale(1.025);
}

#bha-quantum-core-reactor.dim-inspected {
  box-shadow: 0 0 65px rgba(252, 211, 77, 0.45), inset 0 0 35px rgba(232, 121, 249, 0.35);
}

/* Dimensional Filter Tabs Strip */
.bha-inspector-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 10px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bha-inspector-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 25px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A8A29E;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.bha-inspector-tab:hover {
  color: #FAF8F4;
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(252, 211, 77, 0.06);
  transform: translateY(-1px);
}

.bha-inspector-tab.active {
  color: #080605 !important;
  background: linear-gradient(135deg, #FCD34D, #F59E0B) !important;
  border-color: #FCD34D !important;
  font-weight: 400 !important;
  box-shadow: 0 0 14px rgba(252, 211, 77, 0.45) !important;
}

/* Contextual Inspection Spotlight Banner */
.bha-inspector-spotlight {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.06);
  animation: spotlightFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bha-spotlight-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.bha-spotlight-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  animation: beaconPulse 1.2s infinite;
}

.bha-spotlight-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  letter-spacing: 0.05em;
}

.bha-spotlight-dim-name {
  font-family: var(--font-display, sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FAF8F4;
  letter-spacing: 0.03em;
}

.bha-spotlight-dim-score {
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  color: #FCD34D;
}

.bha-spotlight-verdict {
  font-size: 0.74rem;
  line-height: 1.5;
  color: #D6D3D1;
}

.bha-spotlight-verdict .punishment-callout {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #FCA5A5;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  line-height: 1.45;
}

.bha-spotlight-verdict .reward-callout {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  color: #6EE7B7;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  line-height: 1.45;
}

.bha-inspector-reset-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bha-inspector-reset-pill:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #FFFFFF;
}

/* Dynamic Dimension Tags on Evidence Rows */
.bha-ledger-dim-tag {
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 6px;
  text-transform: uppercase;
}
.bha-ledger-dim-tag.visual { background: rgba(232, 121, 249, 0.15); color: #E879F9; }
.bha-ledger-dim-tag.verbal { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.bha-ledger-dim-tag.emotional { background: rgba(252, 211, 77, 0.15); color: #FCD34D; }
.bha-ledger-dim-tag.digital { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.bha-ledger-dim-tag.composite { background: rgba(168, 85, 247, 0.15); color: #A855F7; }

/* Stage Panel and Card Inspector Focus */
.bha-stage-panel[data-dim] {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bha-stage-panel.dim-inspected {
  box-shadow: 0 0 25px rgba(252, 211, 77, 0.25);
}

/* Points Delta Hero Block & Reasoning Card */
#bha-score-delta-hero-block {
  margin-top: 8px;
}

.bha-delta-reason-card {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Central 360 Monolith Orbital Rings Stage */
.bha-orbital-stage {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
}

.bha-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.22;
  transition: opacity 0.4s ease;
}

.bha-orbit-ring-1 {
  width: 108%;
  height: 122%;
  border: 1px dashed rgba(252, 211, 77, 0.35);
  animation: orbitRotate 24s linear infinite;
}

.bha-orbit-ring-2 {
  width: 122%;
  height: 140%;
  border: 1px solid rgba(56, 189, 248, 0.2);
  animation: orbitCounterRotate 36s linear infinite;
}

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitCounterRotate {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* HUD Frequency Resonance Equalizer (6-Bar Cyber Spectrum) */
.bha-hud-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.bha-hud-equalizer .eq-bar {
  width: 3px;
  height: 6px;
  background: var(--bha-gold);
  border-radius: 1px;
  animation: eqBounce 1.4s ease-in-out infinite alternate;
}

.bha-hud-equalizer .eq-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 1.1s; height: 10px; background: #38BDF8; }
.bha-hud-equalizer .eq-bar:nth-child(2) { animation-delay: 0.35s; animation-duration: 0.9s; height: 16px; background: #FCD34D; }
.bha-hud-equalizer .eq-bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 1.3s; height: 8px; background: #E879F9; }
.bha-hud-equalizer .eq-bar:nth-child(4) { animation-delay: 0.5s; animation-duration: 0.8s; height: 18px; background: #10B981; }
.bha-hud-equalizer .eq-bar:nth-child(5) { animation-delay: 0.15s; animation-duration: 1.2s; height: 12px; background: #FCD34D; }
.bha-hud-equalizer .eq-bar:nth-child(6) { animation-delay: 0.4s; animation-duration: 1.0s; height: 14px; background: #38BDF8; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  50% { transform: scaleY(1.0); opacity: 1; }
  100% { transform: scaleY(0.45); opacity: 0.75; }
}

/* Animated Radar Sweep & Reticle */
@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bha-radar-sweep-beam {
  transform-origin: 190px 190px;
  animation: radarSweep 5s linear infinite;
  pointer-events: none;
}

@keyframes radarReticlePulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.04); opacity: 0.75; }
}

.bha-radar-reticle {
  transform-origin: 190px 190px;
  animation: radarReticlePulse 3s ease-in-out infinite;
}

/* Chromatic Auto-Harmonize Shockwave */
.bha-shockwave-pulse {
  position: absolute;
  inset: -15px;
  border-radius: 24px;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(circle at center, rgba(252, 211, 77, 0.45) 0%, rgba(56, 189, 248, 0.25) 45%, transparent 70%);
  animation: shockwaveExpand 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwaveExpand {
  0% { opacity: 0; transform: scale(0.6); filter: blur(0px); }
  40% { opacity: 1; filter: blur(3px); }
  100% { opacity: 0; transform: scale(1.35); filter: blur(16px); }
}

/* ==========================================================================
   LIVE VISUAL INFOGRAPHIC BOARD MODAL & CARDS
   ========================================================================== */
.bha-infographic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-infographic-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bha-infographic-container {
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  background: #08070A;
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(252, 211, 77, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.bha-infographic-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(14, 18, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.bha-infographic-scroll {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Master Visual Infographic Board */
#bha-live-infographic-board {
  background: linear-gradient(180deg, #0A0D14 0%, #05070A 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.bha-info-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .bha-info-panel-grid {
    grid-template-columns: 1fr;
  }
}

.bha-info-panel-card {
  background: rgba(13, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bha-info-panel-card:hover {
  border-color: rgba(252, 211, 77, 0.35);
  transform: translateY(-2px);
}

.bha-info-panel-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bha-info-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  margin-top: 10px;
}

.bha-info-comp-table th {
  text-align: left;
  padding: 6px 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

.bha-info-comp-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 30-60-90 Stepper Pipeline */
.bha-info-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .bha-info-stepper {
    grid-template-columns: 1fr;
  }
}

.bha-info-step {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
}

.bha-info-step-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--bha-gold);
  margin-bottom: 4px;
}

.bha-info-step-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FAF8F4;
  margin-bottom: 4px;
}

.bha-info-step-desc {
  font-size: 0.68rem;
  color: #A8A29E;
  line-height: 1.45;
}

/* Telemetry Micro-Tag */
.bha-telemetry-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bha-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bha-telemetry-tag .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bha-gold);
  box-shadow: 0 0 8px var(--bha-gold);
}

/* Ergonomic Sticky Studio Right Column — Unclipped Natural Sticky Flow */
.bha-studio-right-column {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive Collapse Hierarchy (Mobile First Flow: Score -> Controller -> Specimen -> Insights) */
@media (max-width: 1023px) {
  .bha-cockpit-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "center"
      "right";
    gap: 20px;
    padding: 0 12px;
  }
  .bha-cockpit-left { grid-area: left; }
  .bha-cockpit-center { grid-area: center; position: static; }
  .bha-cockpit-right { grid-area: right; position: static; }

  /* Mobile Collapsible Insights Drawer */
  .bha-mobile-insights-drawer {
    border-radius: 12px;
    background: rgba(13, 18, 28, 0.65);
    border: 1px solid rgba(252, 211, 77, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-top: 10px;
  }

  .bha-mobile-insights-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(252, 211, 77, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    list-style: none;
  }

  .bha-mobile-insights-trigger::-webkit-details-marker {
    display: none;
  }

  .bha-mobile-insights-trigger .bha-drawer-icon {
    font-size: 0.9rem;
    color: #FCD34D;
    transition: transform 0.3s ease;
  }

  details[open] .bha-mobile-insights-trigger .bha-drawer-icon {
    transform: rotate(180deg);
  }

  .bha-mobile-insights-body {
    padding: 14px 14px 6px;
  }

  .bha-btn-next-stage,
  .bha-btn-prev-stage {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 0.95rem !important;
  }

  .bha-swap-presets-bar button,
  .bha-swap-quick-btn {
    min-height: 42px !important;
    font-size: 0.74rem !important;
  }

  #bha-btn-auto-harmonize {
    min-height: 38px !important;
  }
}

@media (min-width: 1024px) {
  .bha-mobile-insights-trigger {
    display: none;
  }
  .bha-mobile-insights-drawer {
    display: contents;
  }
  .bha-mobile-insights-body {
    display: contents;
  }
}

@media (max-width: 768px) {
  .bha-hero-dimensions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .bha-ultra-thin-scanner-wrap {
    padding: 0 12px;
    margin-bottom: 16px;
  }
  .bha-ultra-thin-scanner {
    height: auto;
    padding: 6px 8px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .bha-thin-prefix {
    display: none;
  }
  .bha-thin-url-input {
    min-width: 140px;
    font-size: 0.76rem;
  }
  .bha-thin-paste-btn {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
  .bha-thin-scan-btn {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.74rem;
    margin-top: 2px;
  }
  .bha-3d-engine-stage {
    width: 270px;
    height: 270px;
    margin: 8px auto 16px;
  }
  .bha-hero-score-val {
    font-size: 2.45rem;
  }
}

@media (max-width: 992px) {
  .bha-studio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bha-studio-right-column {
    position: static;
  }
}

/* Stage Quick-Nav Strip on Controller */
.bha-stage-nav-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bha-stage-nav-strip::-webkit-scrollbar {
  display: none;
}

.bha-stage-tab-btn {
  flex: 1;
  min-width: fit-content;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 6px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #A8A29E;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
}

.bha-stage-tab-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.05);
}

.bha-stage-tab-btn.active {
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.12);
  border-color: rgba(252, 211, 77, 0.35);
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.15);
}

/* Reactive Live Glow on controller updates */
@keyframes bha-live-glow {
  0% { box-shadow: 0 0 0 rgba(252, 211, 77, 0); }
  50% { box-shadow: 0 0 20px rgba(252, 211, 77, 0.45); }
  100% { box-shadow: 0 0 0 rgba(252, 211, 77, 0); }
}

.bha-preview-stage.bha-reactive-pulse {
  animation: bha-live-glow 0.4s ease-out;
}

.bha-gauge-value.bha-reactive-pulse {
  text-shadow: 0 0 16px rgba(252, 211, 77, 0.8);
  transition: text-shadow 0.3s ease;
}

.bha-card {
  background: var(--bha-card);
  border: 1px solid var(--bha-border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(16px);
  position: relative;
}

.bha-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.bha-card-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAF8F4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bha-step-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: var(--bha-purple);
  background: rgba(232, 121, 249, 0.12);
  border: 1px solid rgba(232, 121, 249, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Form Controls */
.bha-form-group {
  margin-bottom: 18px;
}

.bha-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D6D3D1;
  margin-bottom: 6px;
}

.bha-input,
.bha-select,
.bha-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #FAF8F4;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  outline: none;
  transition: all 0.2s ease;
}

.bha-input:focus,
.bha-select:focus,
.bha-textarea:focus {
  border-color: var(--bha-purple);
  box-shadow: 0 0 12px rgba(232, 121, 249, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

.bha-color-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.bha-color-picker-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.bha-color-swatch-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.bha-color-input {
  -webkit-appearance: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.bha-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.bha-color-input::-webkit-color-swatch {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.bha-hex-input {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FAF8F4;
  width: 100%;
}

/* Live Simulation Card */
.bha-preview-stage {
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bha-contrast-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.bha-preview-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}

.bha-preview-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 16px;
}

.bha-preview-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

/* Master Score Gauge & Radar Section */
.bha-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
}

@media (max-width: 900px) {
  .bha-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bha-gauge-wrap {
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bha-gauge-svg {
  width: 170px;
  height: 170px;
  max-width: 100%;
  transform: rotate(-90deg);
  transform-origin: center center;
}

.bha-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.bha-gauge-meter {
  fill: none;
  stroke: url(#bha-gradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-gauge-value {
  font-family: var(--font-display, sans-serif);
  font-size: 2.6rem;
  font-weight: 800;
  fill: #FAF8F4;
}

.bha-gauge-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  fill: var(--text-muted, #A8A29E);
  letter-spacing: 0.1em;
}

/* Polar Radar Chart */
.bha-radar-container {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bha-radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Live Score Differential & Concrete Reasoning */
.bha-delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 6px;
  transition: all 0.3s ease;
}

.bha-delta-badge.pos {
  background: rgba(16, 185, 129, 0.16);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.bha-delta-badge.neg {
  background: rgba(239, 68, 68, 0.16);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.bha-delta-badge.neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #A8A29E;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bha-delta-reason-card {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.73rem;
  line-height: 1.5;
}

/* 4 Dimensions Bar Breakdown */
.bha-dim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.bha-dim-name {
  font-family: var(--font-mono, monospace);
  color: #D6D3D1;
  width: 110px;
}

.bha-dim-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 12px;
}

.bha-dim-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 1s ease;
}

.bha-dim-val {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  width: 45px;
  text-align: right;
}

/* Friction Alert Card */
.bha-friction-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bha-friction-icon {
  font-size: 1.3rem;
  color: #EF4444;
  flex-shrink: 0;
  line-height: 1;
}

.bha-friction-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #EF4444;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.bha-friction-desc {
  font-size: 0.85rem;
  color: #FAF8F4;
  line-height: 1.45;
}

/* Benchmark Comparison Matrix & Rigor Section */
.bha-benchmark-section {
  padding: 32px 0 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.bha-benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 20px;
}

.bha-benchmark-table th {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted, #A8A29E);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bha-benchmark-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #FAF8F4;
}

.bha-benchmark-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Tier 2 Gated Enterprise Dossier Card */
.bha-dossier-card {
  background: linear-gradient(135deg, rgba(232, 121, 249, 0.12) 0%, rgba(56, 189, 248, 0.08) 100%), rgba(18, 16, 14, 0.9);
  border: 1px solid rgba(232, 121, 249, 0.3);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: 20px auto 32px;
  max-width: 1280px;
  backdrop-filter: blur(20px);
}

/* Reviews & Feedback Section - Gapless Harmony */
#bha-reviews-section {
  margin-top: 24px !important;
  padding-top: 0 !important;
  border-top: none !important;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.bha-dossier-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 28px;
}

@media (max-width: 600px) {
  .bha-dossier-features-grid {
    grid-template-columns: 1fr;
  }
}

.bha-dossier-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #FAF8F4;
}

.bha-dossier-feat span.check {
  color: var(--bha-purple);
  font-weight: 800;
}

/* Mobile & Small Device Responsive Refinements */
@media (max-width: 768px) {
  .bha-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .bha-dossier-card {
    padding: 28px 20px;
  }
  .product-comments-container {
    padding: 22px 18px !important;
  }
}

@media (max-width: 560px) {
  .bha-color-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .bha-card {
    padding: 20px 14px;
  }
  .bha-dropzone-container {
    padding: 24px 14px;
  }
  .bha-headline {
    font-size: 1.7rem;
  }
  .shimmer-btn-inner {
    white-space: normal !important;
  }
}

@media (max-width: 400px) {
  .bha-color-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bha-dropzone-pills {
    gap: 6px;
  }
  .bha-dropzone-pill {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
}

/* Swatch Click-to-Swap States */
.bha-color-picker-box {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-color-picker-box:hover {
  border-color: rgba(252, 211, 77, 0.4) !important;
  background: rgba(252, 211, 77, 0.05) !important;
}

.bha-color-picker-box.is-selected-for-swap {
  border-color: #FCD34D !important;
  background: rgba(252, 211, 77, 0.12) !important;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.35), inset 0 0 8px rgba(252, 211, 77, 0.15) !important;
  transform: translateY(-2px);
}

.bha-color-picker-box.is-selected-for-swap .bha-swatch-swap-indicator {
  opacity: 1 !important;
  color: #FCD34D !important;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; text-shadow: 0 0 8px #FCD34D; }
}

/* Evidence Ledger Styles */
.bha-ledger-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.bha-ledger-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bha-ledger-row.pos {
  border-left: 3px solid #10B981;
}

.bha-ledger-row.neg {
  border-left: 3px solid #EF4444;
}

.bha-ledger-pts {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.bha-ledger-pts.pos {
  color: #10B981;
}

.bha-ledger-pts.neg {
  color: #EF4444;
}

.bha-ledger-text {
  color: #FAF8F4;
  line-height: 1.4;
  flex: 1;
}

/* ==========================================================================
   SPECIMEN STAGE SWITCHER & MULTI-COMPONENT VISUALIZATIONS
   ========================================================================== */
.bha-specimen-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bha-specimen-tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-specimen-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: #A8A29E;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 5px !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.bha-specimen-tab-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.06);
}

.bha-specimen-tab-btn.active {
  background: rgba(252, 211, 77, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.35);
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.15);
}

.bha-canvas-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 8px !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D6D3D1;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  border-radius: 5px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.bha-canvas-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(252, 211, 77, 0.35);
  color: #FCD34D;
}

/* Multi-Specimen Container Variants */
.bha-specimen-view {
  display: none;
  width: 100%;
}

.bha-specimen-view.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* Pricing Specimen Card */
.bha-specimen-pricing {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.bha-specimen-pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bha-specimen-pricing-price {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.bha-specimen-pricing-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.80rem;
}

/* Dashboard Specimen */
.bha-specimen-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
}

.bha-specimen-dash-metric {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Typography Specimen */
.bha-specimen-typography {
  text-align: left;
  padding: 8px 0;
}

.bha-specimen-type-scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   MOBILE FLOATING TELEMETRY HUD (ACTIVE < 768PX)
   ========================================================================== */
.bha-mobile-hud {
  display: none;
}

@media (max-width: 768px) {
  .bha-mobile-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(14, 12, 10, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(252, 211, 77, 0.3);
    padding: 10px 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  }

  .bha-mobile-hud-score {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .bha-mobile-hud-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: #FAF8F4;
    line-height: 1;
  }

  .bha-mobile-hud-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10B981;
    color: #10B981;
    font-weight: 700;
  }

  .bha-mobile-hud-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* ==========================================================================
   MARCELO DESIGN X: FOLDABLE / COLLAPSIBLE BENTO DRAWERS
   ========================================================================== */
.bha-stage-drawer {
  background: rgba(14, 20, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.bha-stage-drawer:hover {
  border-color: rgba(252, 211, 77, 0.25);
}

.bha-stage-drawer.is-active-focus {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
}

.bha-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.bha-drawer-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bha-stage-drawer.is-collapsed .bha-drawer-header {
  border-bottom-color: transparent;
}

.bha-drawer-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.94rem;
  font-weight: 700;
  color: #FAF8F4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bha-drawer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bha-drawer-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  transition: opacity 0.3s ease;
}

.bha-stage-drawer.is-collapsed .bha-drawer-chip {
  display: inline-block;
  animation: fadeIn 0.3s ease;
}

.bha-drawer-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #A8A29E;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.bha-drawer-toggle-btn:hover {
  color: #FCD34D;
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(252, 211, 77, 0.1);
}

.bha-stage-drawer.is-collapsed .bha-drawer-toggle-btn {
  color: #00F0FF;
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
}

/* ==========================================================================
   ALGORIZMS SIGNATURE CAPSULE BUTTONS (.bha-compact-toggle)
   Founder Directive:
   - When STRAIGHT (0°), it's CAPSULED (closed / compact / resting state).
   - When DROPDOWNED, it's UPSIDE DOWN (180° rotation / active state).
   - Purpose: Irresistibly incentivizes users to click whenever they see the icon.
   ========================================================================== */
.bha-compact-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 36px !important;
  height: 24px !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important; /* Authentic Luxury Capsule */
  background: rgba(18, 15, 22, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  line-height: 1 !important;
}

.bha-compact-toggle:hover {
  transform: scale(1.10) translateY(-1px) !important;
  background: rgba(26, 22, 32, 0.90) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.bha-compact-toggle:active {
  transform: scale(0.96) !important;
}

/* Color Signatures for Capsule Buttons */
/* 1. Magenta Signature (Insta Signals) */
.bha-compact-toggle.sig-magenta {
  border-color: rgba(236, 72, 153, 0.42) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(236, 72, 153, 0.22) !important;
}
.bha-compact-toggle.sig-magenta:hover {
  border-color: #EC4899 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(236, 72, 153, 0.55) !important;
}
.bha-compact-toggle.sig-magenta.is-dropdowned,
.bha-compact-toggle.sig-magenta[aria-expanded="true"] {
  background: rgba(236, 72, 153, 0.16) !important;
  border-color: #EC4899 !important;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.70) !important;
}

/* 2. Blue / Cyan Signature (Specimen Simulation) */
.bha-compact-toggle.sig-blue {
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.22) !important;
}
.bha-compact-toggle.sig-blue:hover {
  border-color: #38BDF8 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.55) !important;
}
.bha-compact-toggle.sig-blue.is-dropdowned,
.bha-compact-toggle.sig-blue[aria-expanded="true"] {
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.70) !important;
}

/* 3. Purple Signature (Sector Vocabulary Audit) */
.bha-compact-toggle.sig-purple {
  border-color: rgba(168, 85, 247, 0.42) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(168, 85, 247, 0.22) !important;
}
.bha-compact-toggle.sig-purple:hover {
  border-color: #A855F7 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 85, 247, 0.55) !important;
}
.bha-compact-toggle.sig-purple.is-dropdowned,
.bha-compact-toggle.sig-purple[aria-expanded="true"] {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: #A855F7 !important;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.70) !important;
}

/* 4. Gold Signature (Command Bar & Primary Triggers) */
.bha-compact-toggle.sig-gold {
  border-color: rgba(250, 204, 21, 0.42) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(250, 204, 21, 0.22) !important;
}
.bha-compact-toggle.sig-gold:hover {
  border-color: #FCD34D !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(250, 204, 21, 0.55) !important;
}
.bha-compact-toggle.sig-gold.is-dropdowned,
.bha-compact-toggle.sig-gold[aria-expanded="true"] {
  background: rgba(250, 204, 21, 0.16) !important;
  border-color: #FCD34D !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.70) !important;
}

/* 5. Emerald Signature */
.bha-compact-toggle.sig-emerald {
  border-color: rgba(16, 185, 129, 0.42) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(16, 185, 129, 0.22) !important;
}
.bha-compact-toggle.sig-emerald:hover {
  border-color: #10B981 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.55) !important;
}
.bha-compact-toggle.sig-emerald.is-dropdowned,
.bha-compact-toggle.sig-emerald[aria-expanded="true"] {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.70) !important;
}

.bha-compact-toggle .bha-toggle-sign {
  display: inline-block;
  line-height: 1;
  pointer-events: none;
}

/* Standardized Stage Navigation Buttons (32px Height, Matching Radius & Bebas Neue) */
.bha-stage-nav-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bha-stage-nav-footer > div:empty {
  display: none !important;
}

.bha-stage-nav-footer > button:only-child {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  padding: 0 16px !important;
}

.bha-btn-next-stage,
.bha-btn-prev-stage {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 9px !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.05em !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  user-select: none !important;
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bha-swap-presets-bar button,
.bha-swap-quick-btn {
  min-height: 38px !important;
  padding: 6px 12px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bha-swap-presets-bar button:hover,
.bha-swap-quick-btn:hover {
  background: rgba(252, 211, 77, 0.12) !important;
  border-color: rgba(252, 211, 77, 0.5) !important;
  color: #FCD34D !important;
  transform: translateY(-1px) !important;
}

#bha-btn-auto-harmonize {
  min-height: 34px !important;
  padding: 4px 12px !important;
  font-size: 0.70rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#bha-btn-auto-harmonize:hover {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
  color: #34D399 !important;
  transform: translateY(-1px) !important;
}

/* Radiant Gold Gradient Pill for Next Stage */
.bha-btn-next-stage {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%) !important;
  color: #080605 !important;
  font-weight: 400 !important;
  border: none !important;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.35) !important;
}

.bha-btn-next-stage:hover {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%) !important;
  box-shadow: 0 0 24px rgba(252, 211, 77, 0.6) !important;
  transform: translateY(-1px) !important;
  color: #000000 !important;
}

/* Translucent Dark Glass Outline Pill for Prev Stage */
.bha-btn-prev-stage {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #A8A29E !important;
  font-weight: 400 !important;
}

.bha-btn-prev-stage:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(252, 211, 77, 0.4) !important;
  color: #FCD34D !important;
  transform: translateY(-1px) !important;
}

.bha-drawer-body {
  padding: 14px;
  max-height: 3000px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

.bha-stage-drawer.is-collapsed .bha-drawer-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-4px);
  overflow: hidden;
  pointer-events: none;
}

/* ==========================================================================
   MARCELO DESIGN X: CYBERNETIC SCANNER & BREAK-AND-CONNECT SEQUENCE
   ========================================================================== */
.bha-scanner-telemetry-overlay {
  position: relative;
  background: rgba(6, 10, 18, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.bha-scanner-telemetry-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00F0FF, #FCD34D, transparent);
  animation: scanlineSweep 2s linear infinite;
  z-index: 10;
}

@keyframes scanlineSweep {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { opacity: 1; }
  100% { transform: translateY(180px); opacity: 0.4; }
}

.bha-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-terminal-dots {
  display: flex;
  gap: 6px;
}

.bha-terminal-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.bha-terminal-dots .dot.red { background: #EF4444; }
.bha-terminal-dots .dot.yellow { background: #F59E0B; }
.bha-terminal-dots .dot.green { background: #10B981; }

.bha-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FAF8F4;
}

.bha-terminal-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 1px 6px;
  border-radius: 4px;
  animation: pulse 1s infinite alternate;
}

.bha-terminal-body {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  max-height: 160px;
  overflow-y: auto;
  color: #A8A29E;
}

.bha-terminal-body .terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeIn 0.2s ease;
}

.bha-terminal-body .t-prompt { color: #FCD34D; font-weight: 700; }
.bha-terminal-body .t-cyan { color: #00F0FF; font-weight: 600; }
.bha-terminal-body .t-green { color: #10B981; font-weight: 600; }
.bha-terminal-body .t-dim { color: #78716C; }

/* The Break & Connect Shard & Shockwave Transitions */
@keyframes voronoiFracture {
  0% {
    transform: scale(1);
    filter: blur(0px);
  }
  30% {
    transform: scale(0.96) rotate(-1.2deg);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
  }
  60% {
    transform: scale(1.03) rotate(0.8deg);
    filter: blur(0.5px) drop-shadow(0 0 30px rgba(252, 211, 77, 0.5));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: blur(0px);
  }
}

@keyframes laserShockwave {
  0% {
    box-shadow: 0 0 0 0 var(--bha-scan-accent, rgba(252, 211, 77, 0.9)), inset 0 0 0 0 var(--bha-scan-primary, rgba(0, 240, 255, 0.8));
  }
  50% {
    box-shadow: 0 0 45px 12px var(--bha-scan-accent, rgba(252, 211, 77, 0.4)), inset 0 0 30px 6px var(--bha-scan-primary, rgba(0, 240, 255, 0.3));
  }
  100% {
    box-shadow: 0 0 0 0 rgba(252, 211, 77, 0), inset 0 0 0 0 rgba(0, 240, 255, 0);
  }
}

.bha-orbital-stage.bha-break-fracture {
  animation: voronoiFracture 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-orbital-stage.bha-shockwave-pulse {
  animation: laserShockwave 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   STAGE-ISOLATED COCKPIT & SYNCHRONIZED INSIGHTS ARCHITECTURE
   ========================================================================== */

.bha-stage-nav-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bha-stage-nav-strip::-webkit-scrollbar {
  display: none;
}

.bha-stage-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #A8A29E;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.bha-stage-tab-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.bha-stage-tab-btn.active {
  color: #FAF8F4;
  background: linear-gradient(135deg, rgba(232, 121, 249, 0.18), rgba(56, 189, 248, 0.18));
  border-color: rgba(232, 121, 249, 0.5);
  box-shadow: 0 0 14px rgba(232, 121, 249, 0.25);
  font-weight: 700;
}

.bha-stage-tab-btn .bha-stage-pill-num {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
}

.bha-stage-tab-btn.active .bha-stage-pill-num {
  background: var(--bha-purple);
  color: #080605;
  font-weight: 800;
}

/* Stage Panels in Column 1 */
.bha-stage-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-stage-panel.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Stage Insights Panels in Column 3 */
.bha-stage-insights-container {
  min-height: 260px;
  position: relative;
}

.bha-insights-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-insights-panel.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.bha-stage-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.bha-stage-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.bha-insight-mini-card {
  transition: all 0.2s ease;
}

.bha-insight-mini-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

/* 100% Master Harmony Celebration */
@keyframes perfectHarmonyCelebration {
  0% {
    filter: drop-shadow(0 0 12px rgba(252, 211, 77, 0.6)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.4));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(252, 211, 77, 0.95)) drop-shadow(0 0 55px rgba(232, 121, 249, 0.8));
    transform: scale(1.03);
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(252, 211, 77, 0.6)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.4));
    transform: scale(1);
  }
}

.bha-marcos-card.celebration-100 {
  animation: perfectHarmonyCelebration 2.2s infinite ease-in-out;
  border-color: rgba(252, 211, 77, 0.8) !important;
}

/* Leaderboard Rank Medals */
.bha-rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
}

.bha-rank-medal.gold {
  background: rgba(252, 211, 77, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.5);
}

.bha-rank-medal.silver {
  background: rgba(226, 232, 240, 0.2);
  color: #E2E8F0;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.bha-rank-medal.bronze {
  background: rgba(205, 127, 50, 0.2);
  color: #CD7F32;
  border: 1px solid rgba(205, 127, 50, 0.5);
}

.bha-rank-medal.default {
  background: rgba(255, 255, 255, 0.05);
  color: #A8A29E;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   STAGE 02: 60-30-10 CHROMATIC DYNAMICS & FRAME-CONTAINED PALETTE
   ========================================================================== */
.bha-color-dynamics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.bha-color-picker-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.bha-color-picker-box:hover {
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.bha-color-picker-box.featured-accent {
  grid-column: 1 / -1;
  background: rgba(252, 211, 77, 0.04);
  border: 1px solid rgba(252, 211, 77, 0.3);
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.08);
}

.bha-color-picker-box.is-selected-for-swap {
  border-color: #FCD34D !important;
  box-shadow: 0 0 18px rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08) !important;
}

.bha-chromatic-balance-card {
  background: rgba(14, 12, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ==========================================================================
   STAGE 04: PAIRED FONT CAPSULES (LUXURY TECH PILLS)
   ========================================================================== */
.bha-font-capsule {
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  line-height: 1;
}

.bha-font-capsule:hover {
  border-color: rgba(252, 211, 77, 0.45);
  background: rgba(252, 211, 77, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 12px rgba(252, 211, 77, 0.15);
}

.bha-font-capsule.active {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.18), rgba(245, 158, 11, 0.12));
  border-color: #FCD34D;
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.3);
}

.bha-capsule-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #FCD34D;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

.bha-font-capsule.active .bha-capsule-badge {
  background: #FCD34D;
  color: #080605;
  border-color: #FCD34D;
}

.bha-capsule-hfont {
  font-size: 0.74rem;
  font-weight: 700;
  color: #FAF8F4;
}

.bha-capsule-sep {
  font-size: 0.68rem;
  color: #FCD34D;
  font-weight: 800;
  opacity: 0.85;
}

.bha-capsule-bfont {
  font-size: 0.70rem;
  color: #D6D3D1;
  font-weight: 500;
}

.bha-font-capsule.active .bha-capsule-hfont {
  color: #FFF;
}

.bha-font-capsule.active .bha-capsule-bfont {
  color: #FAF8F4;
}

/* ==========================================================================
   STAGE 04: CUSTOM FONT COMBOBOX (EMBEDDED SEARCH & CATEGORY FILTER)
   ========================================================================== */
.bha-font-combobox {
  position: relative;
  width: 100%;
}

.bha-font-combobox-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #FAF8F4;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.bha-font-combobox-trigger:hover,
.bha-font-combobox.open .bha-font-combobox-trigger {
  border-color: #FCD34D;
  background: rgba(255, 255, 255, 0.07);
}

.bha-font-trigger-text {
  font-weight: 700;
  color: #FAF8F4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bha-font-trigger-cat {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #A8A29E;
  margin-left: auto;
  margin-right: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.bha-font-trigger-arrow {
  font-size: 0.65rem;
  color: #A8A29E;
  transition: transform 0.2s ease;
}

.bha-font-combobox.open .bha-font-trigger-arrow {
  transform: rotate(180deg);
}

.bha-font-combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(13, 18, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  z-index: 150;
  display: none;
  flex-direction: column;
  max-height: 320px;
  overflow: hidden;
}

.bha-font-combobox.open .bha-font-combobox-dropdown {
  display: flex;
}

.bha-font-dropdown-search {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.bha-font-dropdown-search-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

.bha-font-dropdown-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FAF8F4;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
}

.bha-font-dropdown-clear-btn {
  background: transparent;
  border: none;
  color: #A8A29E;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px;
}

.bha-font-dropdown-cat-strip {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.bha-font-dropdown-cat-strip::-webkit-scrollbar {
  display: none;
}

.bha-font-cat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #A8A29E;
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bha-font-cat-btn:hover {
  color: #FAF8F4;
  border-color: rgba(255, 255, 255, 0.2);
}

.bha-font-cat-btn.active {
  background: rgba(252, 211, 77, 0.18);
  border-color: #FCD34D;
  color: #FCD34D;
  font-weight: 700;
}

.bha-font-dropdown-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 4px;
}

.bha-font-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.bha-font-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.bha-font-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.74rem;
  color: #D6D3D1;
}

.bha-font-option-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FAF8F4;
}

.bha-font-option-item.selected {
  background: rgba(252, 211, 77, 0.15);
  color: #FCD34D;
  font-weight: 700;
}

.bha-font-option-cat-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #78716C;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 5px;
  border-radius: 4px;
}

.bha-font-specimen-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Bebas Neue High-Impact Buttons */
.bha-btn-bebas {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
}

.bha-stage-nav-footer .bha-btn-bebas,
.bha-stage-nav-footer .bha-btn-next-stage,
.bha-stage-nav-footer .bha-btn-prev-stage {
  font-size: 0.76rem !important;
  letter-spacing: 0.03em !important;
  height: 30px !important;
  line-height: 30px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   STAGE 5 TRANSITION GATE MODAL (#bha-stage5-gate-modal)
   ========================================================================== */
.bha-stage5-modal-overlay,
#bha-stage5-gate-modal,
.bha-modal-backdrop,
.bha-modal-overlay,
#bha-pdf-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bha-stage5-modal-overlay.open,
#bha-stage5-gate-modal.open,
.bha-modal-backdrop.open,
.bha-modal-overlay.open,
#bha-pdf-preview-modal.open {
  display: flex !important;
}

.bha-stage5-modal-box {
  background: rgba(13, 18, 28, 0.95);
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(252, 211, 77, 0.1);
  position: relative;
  animation: modalFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bha-stage5-fork-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .bha-stage5-fork-cards {
    grid-template-columns: 1fr;
  }
}

.bha-stage5-fork-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.bha-stage5-fork-card:hover {
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.bha-stage5-fork-card.featured {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.06);
}

.bha-stage5-fork-card.featured:hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.2);
}

/* ==========================================================================
   PRINT STYLESHEET FOR EXECUTIVE DIAGNOSTIC SPECIMEN
   ========================================================================== */
@media print {
  body {
    background: #080605 !important;
    color: #FAF8F4 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .nav-bar,
  .mobile-menu-btn,
  .site-footer,
  .bha-dropzone-container,
  #bha-dossier-card,
  .bha-mobile-hud,
  #bha-btn-download-specimen,
  #bha-btn-print-specimen,
  .bha-swap-presets-bar,
  #bha-reviews-section {
    display: none !important;
  }

  .bha-card,
  .bha-preview-stage {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
}

/* ==========================================================================
   CONTEXTUAL HOLOGRAPHIC HOVER INSPECTOR FLYOUT HUD
   ========================================================================== */
.bha-hover-inspector-flyout {
  position: fixed;
  z-index: 1250;
  width: 350px;
  max-width: 90vw;
  background: rgba(14, 12, 10, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(252, 211, 77, 0.2);
  padding: 14px 16px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) translateY(4px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bha-hover-inspector-flyout.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.bha-flyout-pointer {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(14, 12, 10, 0.96);
  border: 1px solid rgba(252, 211, 77, 0.45);
  transform: rotate(45deg);
  pointer-events: none;
}
.bha-flyout-pointer.pointer-left {
  left: -6px;
  top: 24px;
  border-right: none;
  border-top: none;
}
.bha-flyout-pointer.pointer-right {
  right: -6px;
  top: 24px;
  border-left: none;
  border-bottom: none;
}

.bha-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-flyout-close-btn {
  background: transparent;
  border: none;
  color: #A8A29E;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bha-flyout-close-btn:hover {
  color: #FAF8F4;
  background: rgba(255, 255, 255, 0.12);
}

.bha-flyout-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bha-flyout-icon {
  font-size: 1.15rem;
}

.bha-flyout-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FAF8F4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bha-flyout-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #A8A29E;
  margin-top: 1px;
}

.bha-flyout-score-badge {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.35);
}

.bha-flyout-score-val {
  font-family: var(--font-display, sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FCD34D;
}

.bha-flyout-score-denom {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #D6D3D1;
}

.bha-flyout-content {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bha-flyout-callout {
  border-radius: 8px;
  padding: 8px 10px;
}

.bha-flyout-callout.flyout-punishment {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.55);
}

.bha-flyout-callout.flyout-reward {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.55);
}

.bha-flyout-callout-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.flyout-punishment .bha-flyout-callout-hdr {
  color: #EF4444;
}

.flyout-reward .bha-flyout-callout-hdr {
  color: #10B981;
}

.bha-flyout-callout-txt {
  font-size: 0.72rem;
  line-height: 1.4;
  color: #FAF8F4;
}

.bha-flyout-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-flyout-tip {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #FCD34D;
  display: block;
}

/* ==========================================================================
   EXECUTIVE PDF PREVIEW & DOWNLOAD MODAL
   ========================================================================== */
.bha-pdf-modal-dialog {
  max-width: 900px;
  width: 94%;
  max-height: 88vh;
  height: 88vh;
  background: #0C0A08;
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(252, 211, 77, 0.15);
  overflow: hidden;
}

.bha-pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(20, 17, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
}

.bha-pdf-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bha-pdf-modal-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FAF8F4;
  letter-spacing: 0.05em;
  margin: 0;
}

.bha-pdf-modal-subtitle {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #A8A29E;
  margin: 2px 0 0;
}

.bha-pdf-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bha-pdf-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background: #080605;
}

.bha-pdf-modal-body::-webkit-scrollbar {
  width: 6px;
}

.bha-pdf-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}

.bha-pdf-modal-body::-webkit-scrollbar-thumb {
  background: rgba(252, 211, 77, 0.35);
  border-radius: 4px;
}

.bha-pdf-modal-body::-webkit-scrollbar-thumb:hover {
  background: #FCD34D;
}

.bha-pdf-sheet {
  background: #0F0D0B;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  max-width: 800px;
  margin: 0 auto;
}

.bha-pdf-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(252, 211, 77, 0.3);
  margin-bottom: 24px;
  gap: 16px;
}

.bha-pdf-sheet-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bha-pdf-brand-super {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #FCD34D;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.bha-pdf-sheet-brand-name {
  font-family: var(--font-display, sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FAF8F4;
  line-height: 1.1;
  margin-top: 2px;
}

.bha-pdf-sheet-domain {
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  color: #38BDF8;
  margin-top: 2px;
}

.bha-pdf-sheet-stamp {
  text-align: right;
}

.bha-pdf-stamp-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #FAF8F4;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bha-pdf-stamp-date {
  font-size: 0.65rem;
  color: #A8A29E;
  margin-top: 2px;
}

.bha-pdf-stamp-tier {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 700;
}

.bha-pdf-hero-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.bha-pdf-score-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bha-pdf-score-val {
  font-family: var(--font-display, sans-serif);
  font-size: 3.6rem;
  font-weight: 800;
  color: #FAF8F4;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(252, 211, 77, 0.5);
}

.bha-pdf-score-denom {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #A8A29E;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.bha-pdf-tier-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #FCD34D;
  background: rgba(252, 211, 77, 0.14);
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 8px;
  font-weight: 700;
}

.bha-pdf-dims-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bha-pdf-dim-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
}

.bha-pdf-dim-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FAF8F4;
}

.bha-pdf-dim-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 6px 0;
  overflow: hidden;
}

.bha-pdf-dim-fill {
  height: 100%;
  border-radius: 3px;
}

.bha-pdf-dim-meta {
  font-size: 0.62rem;
  color: #A8A29E;
}

.bha-pdf-section {
  margin-bottom: 22px;
}

.bha-pdf-section-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #FCD34D;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.bha-pdf-ledger-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bha-pdf-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bha-pdf-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bha-pdf-row-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.bha-pdf-row-tag.visual { background: rgba(232, 121, 249, 0.15); color: #E879F9; }
.bha-pdf-row-tag.verbal { background: rgba(56, 189, 248, 0.15); color: #38BDF8; }
.bha-pdf-row-tag.emotional { background: rgba(252, 211, 77, 0.15); color: #FCD34D; }
.bha-pdf-row-tag.digital { background: rgba(16, 185, 129, 0.15); color: #10B981; }

.bha-pdf-row-msg {
  font-size: 0.72rem;
  color: #FAF8F4;
}

.bha-pdf-row-pts {
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
}

.bha-pdf-row-pts.pos { color: #10B981; }
.bha-pdf-row-pts.neg { color: #EF4444; }

.bha-pdf-dna-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bha-pdf-dna-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 12px;
}

.bha-pdf-dna-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  color: #A8A29E;
  margin-bottom: 6px;
}

.bha-pdf-color-swatches {
  display: flex;
  gap: 8px;
}

.bha-pdf-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bha-pdf-fonts-display {
  font-size: 0.75rem;
  color: #FAF8F4;
}

.bha-pdf-sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   FEEDBACK, FLAG ERROR & BHA LEADERBOARD MODALS
   ========================================================================== */
.bha-feedback-dialog {
  max-width: 580px;
  width: 92%;
  background: rgba(13, 11, 9, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(252, 211, 77, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bha-feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(22, 18, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-feedback-modal-body {
  padding: 22px;
  overflow-y: auto;
  max-height: 75vh;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.bha-feedback-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(18, 15, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-feedback-celebrate-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #10B981;
}

.bha-fc-badge {
  background: #10B981;
  color: #080605;
  font-weight: 800;
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.bha-star-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bha-star-btn {
  background: transparent;
  border: none;
  font-size: 1.55rem;
  color: #52525B;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 2px;
  line-height: 1;
}

.bha-star-btn:hover,
.bha-star-btn.active {
  color: #FCD34D;
  text-shadow: 0 0 12px rgba(252, 211, 77, 0.6);
  transform: scale(1.1);
}

.bha-star-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #A8A29E;
  margin-left: 8px;
}

.bha-praise-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bha-praise-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D6D3D1;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bha-praise-tag:hover {
  border-color: rgba(252, 211, 77, 0.4);
  color: #FAF8F4;
}

.bha-praise-tag.active {
  background: rgba(252, 211, 77, 0.15);
  border-color: #FCD34D;
  color: #FCD34D;
  font-weight: 700;
}

.bha-praise-tag.flag-tag.active {
  background: rgba(239, 68, 68, 0.18);
  border-color: #EF4444;
  color: #F87171;
  font-weight: 700;
}

.bha-feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #FAF8F4;
  font-family: var(--font-sans, sans-serif);
  font-size: 0.78rem;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.bha-feedback-textarea:focus {
  border-color: #FCD34D;
}

.bha-fuel-coffee-card {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.08), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(252, 211, 77, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.bha-coffee-icon-wrap {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(252, 211, 77, 0.15);
  border: 1px solid rgba(252, 211, 77, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bha-btn-coffee-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  color: #080605;
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.76rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.bha-btn-coffee-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(252, 211, 77, 0.4);
}

/* BHA Leaderboard Modal Dialog */
.bha-leaderboard-dialog {
  max-width: 820px;
  width: 94%;
  max-height: 88vh;
  height: 88vh;
  background: rgba(13, 11, 9, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(252, 211, 77, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bha-leaderboard-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.bha-lb-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.14), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bha-lb-status-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bha-lb-status-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FCD34D;
}

.bha-lb-status-desc {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  color: #D6D3D1;
  margin-top: 2px;
}

.bha-lb-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.bha-lb-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #A8A29E;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bha-lb-tab:hover {
  background: rgba(252, 211, 77, 0.08);
  color: #FAF8F4;
}

.bha-lb-tab.active {
  background: #FCD34D;
  color: #080605;
  font-weight: 800;
  border-color: #FCD34D;
  box-shadow: 0 0 12px rgba(252, 211, 77, 0.35);
}

.bha-lb-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.bha-lb-table-header {
  display: grid;
  grid-template-columns: 50px 1.5fr 1fr 1fr 90px;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono, monospace);
  font-size: 0.60rem;
  font-weight: 700;
  color: #A8A29E;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bha-lb-row {
  display: grid;
  grid-template-columns: 50px 1.5fr 1fr 1fr 90px;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  transition: background 0.15s ease;
}

.bha-lb-row:last-child {
  border-bottom: none;
}

.bha-lb-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bha-lb-row.highlight-brand {
  background: rgba(252, 211, 77, 0.08);
  border-left: 3px solid #FCD34D;
}

.lb-rank-num {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.88rem;
  color: #FAF8F4;
}

.lb-rank-num.top-1 {
  color: #FCD34D;
  text-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
}

.lb-rank-num.top-2 {
  color: #E2E8F0;
}

.lb-rank-num.top-3 {
  color: #D97706;
}

.lb-brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lb-brand-logo-disc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #FAF8F4;
  flex-shrink: 0;
}

.lb-brand-name {
  font-family: var(--font-display, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FAF8F4;
  display: block;
}

.lb-brand-url {
  font-family: var(--font-mono, monospace);
  font-size: 0.56rem;
  color: #38BDF8;
  display: block;
}

.lb-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  color: #D6D3D1;
}

.lb-score-cell {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 0.95rem;
  color: #FCD34D;
  text-align: right;
}

/* Optimized Print Rendering */
@media print {
  body * {
    visibility: hidden;
  }
  #bha-pdf-preview-modal,
  #bha-pdf-preview-modal * {
    visibility: visible;
  }
  #bha-pdf-preview-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent !important;
    display: block !important;
  }
  .bha-pdf-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }
  .bha-pdf-modal-header {
    display: none !important;
  }
  .bha-pdf-modal-body {
    padding: 0 !important;
    background: transparent !important;
  }
  .bha-pdf-sheet {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  .bha-pdf-sheet * {
    color: #111 !important;
    text-shadow: none !important;
  }
  .bha-pdf-brand-super {
    color: #854d0e !important;
  }
  .bha-pdf-sheet-domain {
    color: #0369a1 !important;
  }
  .bha-pdf-score-val {
    color: #000 !important;
  }
  .bha-pdf-row-pts.pos { color: #15803d !important; }
  .bha-pdf-row-pts.neg { color: #b91c1c !important; }
}

/* ==========================================================================
   BEBAS NEUE TALL NUMERICAL TYPOGRAPHY (HERO & ALL METRIC COUNTERS)
   ========================================================================== */
.bha-hero-score-val,
#bha-hero-score-value,
.bha-dim-dial-pct,
.cmd-stage-badge,
#bha-cmd-avatar-score-badge,
.bha-bm-score,
#bha-percentile-badge,
.bha-step-num,
.step-num,
.bha-contrast-badge,
.bha-score-delta-badge,
.bha-score-digit,
.bha-hud-equalizer,
.bha-ledger-row-pts,
.bha-telemetry-step-icon,
.bha-pdf-score-val,
.bha-specimen-contrast-ratio {
  font-family: 'Bebas Neue', sans-serif !important;
  letter-spacing: 0.05em !important;
}

.bha-dim-dial-pct {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
}

.cmd-stage-badge {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

#bha-cmd-avatar-score-badge,
.bha-bm-score {
  font-size: 0.82rem !important;
  font-weight: 400 !important;
}

#bha-percentile-badge {
  font-size: 0.78rem !important;
  font-weight: 400 !important;
}

.bha-step-num,
.step-num {
  font-size: 0.80rem !important;
}

/* ==========================================================================
   SIGNAL WAVE ANIMATION & EPHEMERAL 2-SECOND DELTA REASON CAPSULE
   ========================================================================== */
.bha-hero-signal-ripple {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  border: 2.5px solid #FCD34D;
  z-index: 10;
}

.bha-hero-signal-ripple.rippling {
  animation: signalWaveSurge 1.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes signalWaveSurge {
  0% {
    transform: scale(0.65);
    opacity: 0.95;
    border-color: #FCD34D;
    box-shadow: 0 0 25px rgba(252, 211, 77, 0.85), inset 0 0 25px rgba(252, 211, 77, 0.5);
  }
  40% {
    border-color: #3B82F6;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.7), inset 0 0 35px rgba(59, 130, 246, 0.4);
  }
  75% {
    border-color: #EC4899;
    box-shadow: 0 0 45px rgba(236, 72, 153, 0.6), inset 0 0 45px rgba(236, 72, 153, 0.3);
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
    border-color: #8B5CF6;
  }
}

/* Ephemeral 2-Second Floating Reason Capsule */
.bha-hero-floating-capsule {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 25;
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bha-hero-floating-capsule.pos {
  background: rgba(6, 78, 59, 0.92);
  color: #6EE7B7;
  border: 1px solid #10B981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.55);
}

.bha-hero-floating-capsule.neg {
  background: rgba(127, 29, 29, 0.92);
  color: #FCA5A5;
  border: 1px solid #EF4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.55);
}

.bha-hero-floating-capsule .bha-capsule-tag {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0.92;
  color: #FAF8F4;
}

.bha-hero-floating-capsule .bha-capsule-hint {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bha-hero-floating-capsule.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}

/* Clean Standby State for Real-Time Evidence Ledger */
.bha-ledger-empty-standby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #A8A29E;
  font-family: var(--font-mono);
  gap: 8px;
}

.bha-ledger-empty-standby .standby-icon {
  font-size: 1.6rem;
  opacity: 0.7;
}

.bha-ledger-empty-standby .standby-title {
  color: #FAF8F4;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.bha-ledger-empty-standby .standby-msg {
  font-size: 0.70rem;
  color: #78716C;
  max-width: 320px;
  line-height: 1.45;
}



