/* ============================================================
   BUILDER HUSTLE — EXTENSIONS & INTERACTIVE MICRO-TOOLS ENGINE
   Universal CSS Design System for Builder Hustle Free Web Utilities
   ============================================================ */

:root {
  --bh-ink: #09090b;
  --bh-ink-soft: #27272a;
  --bh-ink-secondary: #52525b;
  --bh-ink-muted: #71717a;
  --bh-ink-subtle: #a1a1aa;

  --bh-bg: #fcfcfb;
  --bh-surface: #ffffff;
  --bh-surface-alt: #f8fafc;
  --bh-surface-muted: #f4f4f5;

  --bh-border: #e4e4e7;
  --bh-border-subtle: #f0f0f2;
  --bh-border-strong: #d4d4d8;

  --bh-accent: #84cc16;
  --bh-accent-dark: #3f6212;
  --bh-accent-bg: #f7fee7;
  --bh-accent-border: #d9f99d;

  --bh-success: #16a34a;
  --bh-success-bg: #f0fdf4;
  --bh-success-border: #bbf7d0;

  --bh-warning: #d97706;
  --bh-warning-bg: #fffbeb;
  --bh-warning-border: #fde68a;

  --bh-danger: #dc2626;
  --bh-danger-bg: #fef2f2;
  --bh-danger-border: #fecaca;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bh-radius-sm: 6px;
  --bh-radius-md: 10px;
  --bh-radius-lg: 14px;
  --bh-radius-pill: 9999px;

  --bh-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --bh-shadow-md: 0 6px 18px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -2px rgba(0, 0, 0, 0.03);
  --bh-shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 4px 12px -3px rgba(0, 0, 0, 0.04);
}

/* Typography & Layout Scaffolding */
.bh-wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .bh-wrap {
    padding: 0 16px;
  }
}

.bh-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bh-ink-muted);
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bh-breadcrumb a {
  color: var(--bh-ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bh-breadcrumb a:hover {
  color: var(--bh-ink);
  text-decoration: underline;
}

.bh-breadcrumb span {
  color: var(--bh-ink);
  font-weight: 600;
}

.bh-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bh-ink-secondary);
  display: inline-block;
  margin-bottom: 10px;
}

.bh-h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bh-ink);
  line-height: 1.15;
  margin: 0 0 16px;
}

.bh-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--bh-ink-secondary);
  max-width: 820px;
  margin: 0 0 24px;
}

.bh-subtitle strong {
  color: var(--bh-ink);
  font-weight: 600;
}

.bh-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--bh-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  padding: 10px 16px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  box-shadow: var(--bh-shadow-sm);
}

.bh-meta-bar a {
  color: var(--bh-ink);
  text-decoration: none;
}

.bh-meta-bar a:hover {
  text-decoration: underline;
}

/* Tool Grid (2-column desktop layout) */
.bh-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (min-width: 980px) {
  .bh-tool-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

/* Cards & Surfaces */
.bh-card {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-lg);
  padding: 26px;
  box-shadow: var(--bh-shadow-sm);
  position: relative;
}

.bh-card-strong {
  background: var(--bh-surface);
  border: 1.5px solid var(--bh-border-strong);
  border-radius: var(--bh-radius-lg);
  padding: 26px;
  box-shadow: var(--bh-shadow-md);
  position: relative;
}

.bh-index-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bh-ink-muted);
  display: block;
  margin-bottom: 14px;
}

/* Form Controls & Inputs */
.bh-field {
  margin-bottom: 20px;
}

.bh-field:last-child {
  margin-bottom: 0;
}

.bh-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bh-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bh-label-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--bh-ink-muted);
}

.bh-input,
.bh-select,
.bh-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--bh-ink);
  background: #ffffff;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 10px 14px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bh-input:focus,
.bh-select:focus,
.bh-textarea:focus {
  outline: none;
  border-color: var(--bh-ink);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.bh-textarea {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 280px;
  tab-size: 2;
  white-space: pre;
}

/* Sliders */
.bh-range {
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--bh-ink) 0%, var(--bh-ink) var(--range-pct, 50%), var(--bh-border) var(--range-pct, 50%), var(--bh-border) 100%);
  border-radius: 999px;
  outline: none;
  margin-top: 8px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.1s ease;
}

.bh-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bh-ink);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.bh-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.bh-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bh-ink);
  border: none;
  cursor: pointer;
}

/* Quick-select pills */
.bh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bh-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--bh-radius-pill);
  border: 1px solid var(--bh-border);
  background: var(--bh-surface);
  color: var(--bh-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.bh-pill:hover,
.bh-pill.active {
  background: var(--bh-ink);
  border-color: var(--bh-ink);
  color: #ffffff;
}

/* Buttons */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bh-ink);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--bh-radius-sm);
  border: 1px solid var(--bh-ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.bh-btn:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.bh-btn:active {
  transform: translateY(0);
}

.bh-btn-outline {
  background: #ffffff;
  color: var(--bh-ink) !important;
  border: 1px solid var(--bh-border);
}

.bh-btn-outline:hover {
  background: var(--bh-surface-alt);
  border-color: var(--bh-border-strong);
  color: var(--bh-ink) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bh-btn-sm {
  font-size: 0.75rem;
  padding: 6px 12px;
}

/* Diagnostic Matrix & Metric Boxes */
.bh-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 480px) {
  .bh-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.bh-metric-box {
  background: #ffffff;
  padding: 14px 16px;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  box-shadow: var(--bh-shadow-sm);
  transition: all 0.15s ease;
}

.bh-metric-box:hover {
  border-color: var(--bh-border-strong);
  transform: translateY(-1px);
  box-shadow: var(--bh-shadow-md);
}

.bh-metric-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bh-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bh-metric-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bh-ink);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.bh-metric-sub {
  font-size: 0.72rem;
  color: var(--bh-ink-muted);
  margin-top: 2px;
}

/* Rate Card 3-Tier Grid (Generous, Artisanal Layout) */
.bh-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 920px) {
  .bh-rate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bh-rate-tier {
  border: 1px solid var(--bh-border);
  padding: 24px 22px;
  background: #ffffff;
  border-radius: var(--bh-radius-md);
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--bh-shadow-sm);
}

.bh-rate-tier:hover {
  border-color: var(--bh-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--bh-shadow-md);
}

.bh-rate-tier.featured {
  background: #ffffff;
  border: 1px solid var(--bh-border-strong);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.bh-rate-tier.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bh-ink);
  border-top-left-radius: var(--bh-radius-md);
  border-top-right-radius: var(--bh-radius-md);
}

.bh-tier-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--bh-radius-pill);
  background: var(--bh-ink);
  color: #ffffff;
  margin-bottom: 8px;
  width: fit-content;
}

.bh-tier-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--bh-radius-pill);
  background: var(--bh-surface-muted);
  border: 1px solid var(--bh-border);
  color: var(--bh-ink-secondary);
  margin-bottom: 8px;
  width: fit-content;
}

.bh-rate-price {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--bh-ink);
  margin: 8px 0 4px;
  line-height: 1;
}

.bh-rate-unit {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bh-ink-muted);
  letter-spacing: normal;
  margin-left: 2px;
}

.bh-tier-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.bh-tier-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--bh-ink-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.bh-tier-checklist li:last-child {
  margin-bottom: 0;
}

.bh-tier-check-icon {
  flex-shrink: 0;
  color: var(--bh-success);
  margin-top: 1px;
}

.bh-bundle-bar {
  background: var(--bh-surface-alt);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (max-width: 680px) {
  .bh-bundle-bar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.bh-rate-desc {
  font-size: 0.78rem;
  color: var(--bh-ink-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* Custom Searchable Dropdown & Popover Component */
.bh-dropdown-wrap {
  position: relative;
  width: 100%;
}

.bh-dropdown-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  box-sizing: border-box;
}

.bh-dropdown-trigger:hover {
  border-color: var(--bh-border-strong);
  background: var(--bh-surface-alt);
}

.bh-dropdown-wrap.open .bh-dropdown-trigger {
  border-color: var(--bh-ink);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.bh-dropdown-trigger-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  padding-right: 10px;
}

.bh-dropdown-trigger-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bh-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-dropdown-trigger-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bh-ink-muted);
}

.bh-dropdown-chevron {
  color: var(--bh-ink-muted);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.bh-dropdown-wrap.open .bh-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--bh-ink);
}

.bh-dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--bh-border-strong);
  border-radius: var(--bh-radius-md);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  max-height: 420px;
  overflow: hidden;
  flex-direction: column;
  animation: bhDropdownFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bh-dropdown-wrap.open .bh-dropdown-popover {
  display: flex;
}

.bh-dropdown-search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid var(--bh-border);
  background: var(--bh-surface-alt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bh-dropdown-search-input {
  width: 100%;
  border: 1px solid var(--bh-border);
  background: #ffffff;
  border-radius: var(--bh-radius-sm);
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--bh-ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.bh-dropdown-search-input:focus {
  border-color: var(--bh-ink);
}

.bh-dropdown-filter-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bh-border);
  background: #ffffff;
  overflow-x: auto;
}

.bh-dropdown-tab {
  background: none;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  color: var(--bh-ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.bh-dropdown-tab:hover,
.bh-dropdown-tab.active {
  background: var(--bh-ink);
  border-color: var(--bh-ink);
  color: #ffffff;
}

.bh-dropdown-list {
  overflow-y: auto;
  max-height: 280px;
  padding: 4px 0;
}

.bh-dropdown-group-header {
  padding: 8px 14px 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bh-ink-muted);
  background: var(--bh-surface-alt);
  border-top: 1px solid var(--bh-border-subtle);
  border-bottom: 1px solid var(--bh-border-subtle);
}

.bh-dropdown-group-header:first-child {
  border-top: none;
}

.bh-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.12s ease;
  border-left: 2px solid transparent;
}

.bh-dropdown-item:hover {
  background: var(--bh-surface-alt);
  border-left-color: var(--bh-ink);
}

.bh-dropdown-item.selected {
  background: var(--bh-accent-bg);
  border-left-color: var(--bh-accent-dark);
}

.bh-dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bh-dropdown-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bh-ink);
}

.bh-dropdown-item-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bh-ink-muted);
}

.bh-dropdown-item-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--bh-radius-pill);
  background: var(--bh-surface-muted);
  border: 1px solid var(--bh-border);
  color: var(--bh-ink);
  white-space: nowrap;
}

.bh-dropdown-item.selected .bh-dropdown-item-badge {
  background: var(--bh-ink);
  color: #ffffff;
  border-color: var(--bh-ink);
}

/* Cadence Segmented Buttons (Grid Layout) */
.bh-cadence-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

@media (max-width: 520px) {
  .bh-cadence-pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bh-cadence-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: var(--bh-radius-sm);
  border: 1px solid var(--bh-border);
  background: #ffffff;
  color: var(--bh-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.bh-cadence-btn:hover {
  border-color: var(--bh-border-strong);
  background: var(--bh-surface-alt);
  color: var(--bh-ink);
}

.bh-cadence-btn.active {
  background: var(--bh-ink);
  border-color: var(--bh-ink);
  color: #ffffff;
}

/* Balanced 2-Row Layout Architecture */
.bh-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (min-width: 880px) {
  .bh-dashboard-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.bh-roi-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .bh-roi-box {
    grid-template-columns: 1fr;
  }
}

.bh-roi-stat-box {
  background: var(--bh-surface-alt);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 12px 14px;
}

.bh-roi-stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bh-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bh-roi-stat-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bh-ink);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

/* Tabs */
.bh-tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--bh-border);
  margin-bottom: 16px;
}

.bh-tab {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bh-ink-muted);
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bh-tab:hover {
  color: var(--bh-ink);
}

.bh-tab.active {
  color: var(--bh-ink);
  border-bottom-color: var(--bh-ink);
}

/* Live Preview Frame Container */
.bh-preview-container {
  width: 100%;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bh-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bh-surface-alt);
  border-bottom: 1px solid var(--bh-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bh-ink-muted);
}

.bh-preview-iframe {
  width: 100%;
  height: 380px;
  border: none;
  background: #ffffff;
  transition: width 0.2s ease;
}

/* Progress Bar & Meter */
.bh-progress-track {
  width: 100%;
  height: 10px;
  background: var(--bh-surface-alt);
  border: 1px solid var(--bh-border);
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.bh-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--bh-success);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  border-radius: 999px;
}

/* Status Banner */
.bh-status-banner {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--bh-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.bh-status-banner.pass {
  background: var(--bh-success-bg);
  border-color: var(--bh-success-border);
  color: var(--bh-success);
}

.bh-status-banner.warn {
  background: var(--bh-warning-bg);
  border-color: var(--bh-warning-border);
  color: var(--bh-warning);
}

.bh-status-banner.danger {
  background: var(--bh-danger-bg);
  border-color: var(--bh-danger-border);
  color: var(--bh-danger);
}

/* Callout Box / Promo Box */
.bh-promo-box {
  background: var(--bh-surface-alt);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  padding: 22px;
  margin-top: 24px;
}

.bh-promo-box p {
  font-size: 0.88rem;
  color: var(--bh-ink-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}

.bh-promo-box p strong {
  color: var(--bh-ink);
}

/* Toast Notification */
.bh-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bh-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--bh-radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.bh-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Guide / Article Section below Tools */
.bh-guide-section {
  max-width: 900px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--bh-border);
}

.bh-guide-section h2 {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--bh-ink);
  margin: 32px 0 14px;
}

.bh-guide-section h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--bh-ink);
  margin: 24px 0 10px;
}

.bh-guide-section p,
.bh-guide-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bh-ink-secondary);
  margin-bottom: 16px;
}

.bh-guide-section strong {
  color: var(--bh-ink);
}

.bh-guide-section ul,
.bh-guide-section ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.bh-guide-section li {
  margin-bottom: 8px;
}

/* FAQ Accordion */
.bh-faq {
  margin-top: 32px;
}

.bh-faq-item {
  border-bottom: 1px solid var(--bh-border);
  padding: 16px 0;
}

.bh-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bh-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.bh-faq-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--bh-ink-muted);
  transition: transform 0.2s ease;
}

.bh-faq-item.open .bh-faq-icon {
  transform: rotate(45deg);
}

.bh-faq-answer {
  display: none;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bh-ink-secondary);
  margin-top: 12px;
}

.bh-faq-item.open .bh-faq-answer {
  display: block;
}

/* Code block highlight */
.bh-code-inline {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bh-surface-muted);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--bh-border);
  color: var(--bh-ink);
}

/* Dynamic Engagement Badges */
.bh-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bh-badge-green {
  background: var(--bh-success-bg);
  border: 1px solid var(--bh-success-border);
  color: var(--bh-success);
}

.bh-badge-amber {
  background: var(--bh-warning-bg);
  border: 1px solid var(--bh-warning-border);
  color: var(--bh-warning);
}

.bh-badge-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
}

.bh-badge-dark {
  background: #18181b;
  border: 1px solid #27272a;
  color: #fafafa;
}

/* Monthly Inventory & Revenue Forecaster */
.bh-inventory-card {
  border: 1px solid var(--bh-border);
  background: var(--bh-surface-alt);
  border-radius: var(--bh-radius-md);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--bh-shadow-sm);
}

.bh-inventory-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 540px) {
  .bh-inventory-stat-grid {
    grid-template-columns: 1fr;
  }
}

.bh-inventory-stat-box {
  background: #ffffff;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-sm);
  padding: 12px 14px;
}

.bh-inventory-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bh-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bh-inventory-stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bh-ink);
  margin-top: 3px;
  letter-spacing: -0.02em;
}

/* Bottom Builder Hustle Sponsor Banner */
.bh-sponsor-callout-section {
  border: 2px solid var(--bh-ink);
  background: #ffffff;
  border-radius: var(--bh-radius-lg);
  padding: 38px 32px;
  margin: 64px auto 0;
  max-width: 100%;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .bh-sponsor-callout-section {
    padding: 24px 18px;
  }
}

.bh-sponsor-callout-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bh-accent) 0%, var(--bh-ink) 100%);
}

.bh-sponsor-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 28px;
}

@media (max-width: 768px) {
  .bh-sponsor-cards-grid {
    grid-template-columns: 1fr;
  }
}

.bh-sponsor-card-item {
  border: 1.5px solid var(--bh-border-strong);
  background: #ffffff;
  border-radius: var(--bh-radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: var(--bh-shadow-xs);
  transition: all 0.15s ease;
}

.bh-sponsor-card-item:hover {
  border-color: var(--bh-ink);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--bh-shadow-md);
}

.bh-sponsor-card-item.featured {
  border: 2px solid var(--bh-ink);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.bh-sponsor-card-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--bh-ink);
  letter-spacing: -0.03em;
  margin: 6px 0 4px;
}



/* 2-Column Workstation Form Controls Grid */
.bh-form-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .bh-form-2col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}



/* ============================================================
   DECONGESTION & RESPONSIVE TOUCH POLISH (2026 Engine)
   ============================================================ */

/* Spacious Form Fields */
.bh-field {
  margin-bottom: 24px;
}

.bh-field:last-child {
  margin-bottom: 0;
}

.bh-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bh-ink);
  margin-bottom: 8px;
}

.bh-label-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bh-ink-muted);
}

/* Number Inputs with Tactile Breathing Room */
.bh-input {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bh-ink);
  box-sizing: border-box;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bh-input:focus {
  outline: none;
  border-color: var(--bh-ink);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

/* Range Sliders */
.bh-range {
  width: 100%;
  height: 7px;
  background: linear-gradient(to right, var(--bh-ink) 0%, var(--bh-ink) var(--range-pct, 50%), var(--bh-border) var(--range-pct, 50%), var(--bh-border) 100%);
  border-radius: 999px;
  outline: none;
  margin: 12px 0 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.1s ease;
}

.bh-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bh-ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  border: 2px solid #ffffff;
}

.bh-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Preset Pills */
.bh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.bh-pill {
  flex: 1 1 45px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: var(--bh-radius-pill);
  border: 1px solid var(--bh-border);
  background: #ffffff;
  color: var(--bh-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 4px 8px;
}

.bh-pill:hover {
  border-color: var(--bh-ink);
  color: var(--bh-ink);
  background: var(--bh-surface-alt);
}

.bh-pill.active {
  background: var(--bh-ink);
  border-color: var(--bh-ink);
  color: #ffffff;
}

/* Cadence Pills */
.bh-cadence-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .bh-cadence-pills {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .bh-cadence-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .bh-cadence-btn:nth-child(5) {
    grid-column: span 2;
  }
}

.bh-cadence-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  border-radius: var(--bh-radius-sm);
  border: 1px solid var(--bh-border);
  background: #ffffff;
  color: var(--bh-ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.bh-cadence-btn:hover {
  border-color: var(--bh-ink);
  color: var(--bh-ink);
  background: var(--bh-surface-alt);
}

.bh-cadence-btn.active {
  background: var(--bh-ink);
  border-color: var(--bh-ink);
  color: #ffffff;
}

/* Rate Card Pricing Container */
.bh-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 920px) {
  .bh-rate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.bh-rate-tier {
  border: 1px solid var(--bh-border);
  padding: 26px 22px;
  background: #ffffff;
  border-radius: var(--bh-radius-md);
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--bh-shadow-sm);
}

.bh-rate-tier:hover {
  border-color: var(--bh-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--bh-shadow-md);
}

.bh-rate-tier.featured {
  background: #ffffff;
  border: 1px solid var(--bh-border-strong);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.bh-rate-tier.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bh-ink);
  border-top-left-radius: var(--bh-radius-md);
  border-top-right-radius: var(--bh-radius-md);
}

/* Package Discounts Bar */
.bh-bundle-bar {
  background: var(--bh-surface-alt);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .bh-bundle-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
}

/* Responsive Table Wrapper */

/* Table Responsive Card Wrap & Swipe Hint */
.bh-table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  margin-bottom: 24px;
  background: #ffffff;
  box-shadow: var(--bh-shadow-sm);
}

.bh-table-responsive-wrap .benchmark-table {
  min-width: 720px;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border: none;
}

.bh-table-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bh-ink-secondary);
  background: var(--bh-surface-alt);
  padding: 8px 14px;
  border: 1px dashed var(--bh-border-strong);
  border-radius: var(--bh-radius-sm);
  margin-bottom: 12px;
}

@media (min-width: 769px) {
  .bh-table-scroll-hint {
    display: none;
  }
}


/* Mobile Decongestion Overrides */
@media (max-width: 640px) {
  .bh-wrap {
    padding: 0 16px;
  }

  .bh-card {
    padding: 22px 18px !important;
    border-radius: var(--bh-radius-md) !important;
    margin-bottom: 20px !important;
  }

  .bh-rate-tier {
    padding: 22px 18px !important;
  }

  .bh-rate-price {
    font-size: 2.1rem !important;
  }

  .bh-h1 {
    font-size: 1.85rem !important;
    line-height: 1.18 !important;
  }

  .bh-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 18px !important;
  }

  .bh-meta-bar {
    font-size: 0.68rem !important;
    padding: 8px 12px !important;
    line-height: 1.45 !important;
    gap: 6px !important;
  }

  .bh-form-2col {
    gap: 20px !important;
  }

  .bh-field {
    margin-bottom: 20px !important;
  }

  .bh-roi-box {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .bh-roi-stat-box {
    padding: 12px 12px !important;
    border-radius: var(--bh-radius-md) !important;
  }

  .bh-roi-stat-val {
    font-size: 1.25rem !important;
  }

  .bh-sponsor-callout-section {
    padding: 26px 18px !important;
    margin-top: 48px !important;
  }
}

@media (max-width: 360px) {
  .bh-roi-box {
    grid-template-columns: 1fr !important;
  }
}