/* ========================================================================
     CYBERPUNK HUD BUTTON ENGINE (CHAMFERED TACTICAL MIL-SPEC CONTROLS)
     ======================================================================== */
  .btn-hero-primary,
  .btn-hud-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00f0ff 0%, #00c8e0 55%, #0284c7 100%) !important;
    color: #030712 !important;
    font-weight: 800 !important;
    font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 0px !important;
    border: none !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-hero-primary.btn-sm,
  .btn-hud-primary.btn-sm {
    padding: 8px 16px !important;
    font-size: 11px !important;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  }

  .btn-hero-primary::after,
  .btn-hud-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
  }

  .btn-hero-primary:hover,
  .btn-hud-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), 0 8px 24px rgba(0, 0, 0, 0.6);
    color: #000000 !important;
  }

  .btn-hero-primary:hover::after,
  .btn-hud-primary:hover::after {
    left: 140%;
  }

  .btn-hud-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(9, 15, 26, 0.88) !important;
    color: #00f0ff !important;
    font-weight: 700 !important;
    font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
    font-size: 11.5px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 0px !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.12), inset 0 0 14px rgba(0, 240, 255, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-hud-secondary.btn-sm {
    padding: 7px 14px !important;
    font-size: 10.5px !important;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  }

  .btn-hud-secondary:hover {
    transform: translateY(-2px);
    border-color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.16) !important;
    color: #ffffff !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.5);
  }

  .btn-outline-cyan {
    border: 1px solid rgba(0, 240, 255, 0.45) !important;
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.05) !important;
    font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em !important;
    border-radius: 0px !important;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: all 0.25s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
    text-decoration: none;
  }

  .btn-outline-cyan.btn-sm {
    padding: 5px 12px !important;
    font-size: 10px !important;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  }

  .btn-outline-cyan:hover {
    background: rgba(0, 240, 255, 0.22) !important;
    border-color: #00f0ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  }

  .hud-btn-prefix {
    color: rgba(0, 0, 0, 0.65);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
  }

  .hud-btn-arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn-hero-primary:hover .hud-btn-arrow,
  .btn-hud-primary:hover .hud-btn-arrow,
  .btn-hud-secondary:hover .hud-btn-arrow,
  .btn-outline-cyan:hover .hud-btn-arrow {
    transform: translateX(4px);
  }

  /* ========================================================================
     TACTICAL HUD FILTER & SEARCH BAR
     ======================================================================== */
  .hud-tab-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: all 0.2s ease;
  }

  .hud-tab-filter:hover {
    color: #00f0ff;
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.08);
    transform: translateY(-1px);
  }

  .hud-tab-filter.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(2, 132, 199, 0.3) 100%);
    color: #ffffff;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.1);
    font-weight: 700;
  }

  .hud-tab-count {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
  }

  .hud-tab-filter.active .hud-tab-count {
    background: #00f0ff;
    color: #000000;
  }

  /* HUD Search Box */
  .hud-search-box {
    background: #050911;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .hud-search-box:focus-within {
    border-color: #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.5);
  }

  .hud-search-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
    box-shadow: none !important;
  }

  .hud-search-input::placeholder {
    color: #64748b;
  }

  .btn-hud-search {
    background: rgba(0, 240, 255, 0.15) !important;
    border: 1px solid rgba(0, 240, 255, 0.5) !important;
    color: #00f0ff !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    padding: 5px 12px !important;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
    transition: all 0.2s ease;
  }

  .btn-hud-search:hover {
    background: #00f0ff !important;
    color: #000000 !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  }

  /* HUD Product Cards */
  .hud-product-card {
    background: #0b0f19 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hud-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.45) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.12);
  }

  .hud-pill-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
  }

  /* HUD Pagination */
  .hud-pagination-link {
    background: #050911 !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
    transition: all 0.2s ease;
  }

  .hud-pagination-link:hover {
    background: rgba(0, 240, 255, 0.15) !important;
    color: #00f0ff !important;
    border-color: #00f0ff !important;
  }

  .hud-pagination-link.active {
    background: #00f0ff !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  }

  .hud-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .hud-metric-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
  }

  .metric-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.15;
  }

  .metric-txt {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ========================================================================
     LIGHT MODE ADAPTATION
     ======================================================================== */
  [data-bs-theme="light"] .filter-station {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 20px rgba(2, 132, 199, 0.04) !important;
  }

  /* Category Filter Tabs */
  [data-bs-theme="light"] .hud-tab-filter {
    background: #ffffff !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  }

  [data-bs-theme="light"] .hud-tab-filter:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
    transform: translateY(-1px);
  }

  [data-bs-theme="light"] .hud-tab-filter.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
    font-weight: 700 !important;
  }

  /* FIX: Category Count Badge Number Visibility */
  [data-bs-theme="light"] .hud-tab-count {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    padding: 1px 7px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease;
  }

  [data-bs-theme="light"] .hud-tab-filter:hover .hud-tab-count {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
  }

  [data-bs-theme="light"] .hud-tab-filter.active .hud-tab-count {
    background: #ffffff !important;
    color: #0369a1 !important;
    border-color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  }

  /* FIX: Search Bar & Button Styling */
  [data-bs-theme="light"] .hud-search-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
  }

  [data-bs-theme="light"] .hud-search-box:focus-within {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
  }

  [data-bs-theme="light"] .hud-search-box .bi-search {
    color: #0284c7 !important;
    font-size: 14px !important;
  }

  [data-bs-theme="light"] .hud-search-input {
    color: #0f172a !important;
    font-weight: 500 !important;
  }

  [data-bs-theme="light"] .hud-search-input::placeholder {
    color: #64748b !important;
  }

  [data-bs-theme="light"] .btn-hud-search {
    background: #0284c7 !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    clip-path: none !important;
    transition: all 0.2s ease !important;
  }

  [data-bs-theme="light"] .btn-hud-search:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
    transform: translateY(-1px);
  }

  [data-bs-theme="light"] .hud-product-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  [data-bs-theme="light"] .hud-product-card:hover {
    border-color: rgba(2, 132, 199, 0.4) !important;
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.12) !important;
  }

  [data-bs-theme="light"] .btn-hero-primary,
  [data-bs-theme="light"] .btn-hud-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
  }

  [data-bs-theme="light"] .btn-outline-cyan {
    border-color: rgba(2, 132, 199, 0.4) !important;
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.05) !important;
  }

  [data-bs-theme="light"] .btn-outline-cyan:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
  }

  /* ========================================================================
     PRODUCT THUMBNAILS & BLUEPRINT VISUAL FRAME
     ======================================================================== */
  .hud-product-thumb {
    position: relative;
    width: 100%;
    height: 175px;
    border-radius: 10px;
    overflow: hidden;
    background: #050a12;
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 16px;
  }

  .hud-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
    filter: brightness(0.92) contrast(1.06);
  }

  .hud-product-card:hover .hud-product-thumb img,
  .hud-product-thumb:hover img {
    transform: scale(1.07);
    filter: brightness(1.08) contrast(1.12);
  }

  .hud-product-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(9, 14, 23, 0.15) 0%, rgba(9, 14, 23, 0.78) 100%);
    pointer-events: none;
  }

  .hud-product-thumb-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 240, 255, 0.04) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.7;
  }

  /* Single Blueprint Hero Display Frame */
  .blueprint-hero-frame {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.1);
    background: #050a12;
    margin-bottom: 28px;
  }

  .blueprint-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .blueprint-hero-frame:hover img {
    transform: scale(1.03);
  }

  /* Cyber Diagram / Architecture Schematic Box */
  .cyber-diagram-box {
    background: #040810;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.03);
  }

  .mini-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: #050a12;
  }

  .mini-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  [data-bs-theme="light"] .hud-product-thumb {
    background: #f8fafc;
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  [data-bs-theme="light"] .hud-product-thumb-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(241, 245, 249, 0.82) 100%);
  }

  [data-bs-theme="light"] .cyber-diagram-box {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  }

  [data-bs-theme="light"] .hud-spotlight-matrix {
    background: #f8fafc !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  }

  [data-bs-theme="light"] .hud-spotlight-matrix .border-bottom {
    border-color: rgba(0, 0, 0, 0.08) !important;
  }

  [data-bs-theme="light"] .hud-metric-box {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  }

  [data-bs-theme="light"] .hud-metric-box .metric-txt {
    color: #64748b !important;
  }

  [data-bs-theme="light"] .hud-metric-box .metric-num.text-white {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-pill-tag {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
  }

  [data-bs-theme="light"] .hud-pill-tag:hover {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: #0284c7 !important;
  }

  [data-bs-theme="light"] .blueprint-hero-frame {
    background: #f8fafc !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }

  [data-bs-theme="light"] .mini-product-thumb {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }
