/* Telemetry Bar - Proportional & Vertically Centered */
  .swantara-telemetry-bar {
    background: #060a12;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    height: 36px;
    display: flex;
    align-items: center;
  }

  .hud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
  }

  .hud-item-active {
    color: #00f0ff;
  }

  .hud-sep {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(0, 240, 255, 0.22);
    margin: 0 12px;
    flex-shrink: 0;
  }

  .hud-link {
    transition: all 0.2s ease;
  }

  .hud-link:hover span {
    color: #00f0ff !important;
  }

  .hud-badge-ownership {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 3px;
    color: #00f0ff;
    line-height: 1;
    white-space: nowrap;
  }

  /* Main HUD Navbar Container */
  .swantara-hud-nav {
    background: rgba(9, 14, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1040;
    padding: 0.55rem 0;
  }

  /* Brand Badge with Tech Chamfers */
  .swantara-brand-badge {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .swantara-brand-badge:hover {
    background: rgba(0, 240, 255, 0.16);
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  }

  .badge-corner {
    position: absolute;
    width: 5px;
    height: 5px;
    border-color: #00f0ff;
    pointer-events: none;
  }

  .badge-corner-tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid #00f0ff;
    border-left: 2px solid #00f0ff;
  }

  .badge-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
  }

  .brand-title {
    font-size: 1.18rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
  }

  .brand-subtitle {
    font-size: 8.5px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
  }

  /* HUD Nav Links - Proportional & Clean */
  .hud-nav-link {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.9rem !important;
    color: #cbd5e1 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
  }

  /* Remove bootstrap default caret on dropdown toggle */
  .hud-has-dropdown::after {
    display: none !important;
  }

  .hud-chevron {
    font-size: 9px;
    margin-left: 6px;
    transition: transform 0.25s ease;
    opacity: 0.7;
  }

  /* Subtle Bottom Indicator Beam */
  .hud-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
  }

  .hud-nav-link:hover,
  .hud-nav-link.active,
  .hud-dropdown-static:hover>.hud-nav-link,
  .hud-dropdown-rel:hover>.hud-nav-link {
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.06);
  }

  .hud-nav-link:hover::before,
  .hud-nav-link.active::before,
  .hud-dropdown-static:hover>.hud-nav-link::before,
  .hud-dropdown-rel:hover>.hud-nav-link::before {
    transform: translateX(-50%) scaleX(1);
  }

  .hud-dropdown-static:hover .hud-chevron,
  .hud-dropdown-rel:hover .hud-chevron {
    transform: rotate(180deg);
    color: #00f0ff;
    opacity: 1;
  }

  /* Mega Menu & Relative Dropdown Setup */
  @media (min-width: 992px) {
    .hud-dropdown-static {
      position: static !important;
    }

    .hud-mega-dropdown {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      margin-top: 1px !important;
      background: #080d16 !important; /* 100% Solid Opaque - Prevents text bleedthrough */
      border: 1px solid rgba(0, 240, 255, 0.28) !important;
      border-top: none !important;
      border-radius: 0 0 12px 12px !important;
      box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.08) !important;
      display: none;
      animation: hudMegaSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      z-index: 1050 !important;
    }

    .hud-dropdown-static:hover .hud-mega-dropdown {
      display: block;
    }

    /* Standard Relative Dropdown (About, etc.) */
    .hud-dropdown-rel {
      position: relative !important;
    }

    .hud-dropdown-rel .hud-dropdown-menu {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      min-width: 250px;
      margin-top: 2px !important;
      background: #080d16 !important;
      border: 1px solid rgba(0, 240, 255, 0.28) !important;
      border-radius: 8px !important;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 240, 255, 0.1) !important;
      display: none;
      animation: hudMegaSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      z-index: 1050 !important;
    }

    .hud-dropdown-rel:hover .hud-dropdown-menu,
    .hud-dropdown-rel .hud-dropdown-menu.show {
      display: block;
    }
  }

  @media (max-width: 991.98px) {
    .hud-mega-dropdown {
      position: static !important;
      width: 100% !important;
      background: #080d16 !important;
      border: 1px solid rgba(0, 240, 255, 0.2) !important;
      border-radius: 6px !important;
      margin-top: 8px !important;
    }

    .hud-dropdown-rel .hud-dropdown-menu {
      position: static !important;
      width: 100% !important;
      background: #080d16 !important;
      border: 1px solid rgba(0, 240, 255, 0.2) !important;
      border-radius: 6px !important;
      margin-top: 8px !important;
    }
  }

  /* Compact Dropdown Items Styling */
  .hud-dropdown-item {
    color: #cbd5e1 !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
  }

  .hud-dropdown-item:hover {
    background: rgba(0, 240, 255, 0.08) !important;
    border-color: rgba(0, 240, 255, 0.25) !important;
    color: #00f0ff !important;
    transform: translateX(4px);
  }

  .hud-dropdown-icon-box {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 6px;
    flex-shrink: 0;
    font-size: 15px;
  }

  .hud-dropdown-title {
    font-size: 0.88rem;
    color: #f1f5f9;
    transition: color 0.2s ease;
  }

  .hud-dropdown-item:hover .hud-dropdown-title {
    color: #00f0ff !important;
  }

  .hud-dropdown-desc {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  @keyframes hudMegaSlide {
    0% {
      opacity: 0;
      transform: translateY(-8px);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hud-mega-frame {
    background-color: #080d16 !important;
    background-image: radial-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
  }

  .hud-mega-header {
    background: rgba(0, 240, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  .hud-mega-footer {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  /* Column Headers */
  .hud-col-header {
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  .hud-col-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  /* HUD Cyber Pill Badges */
  .hud-pill-cyan {
    background: rgba(0, 240, 255, 0.12) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    color: #00f0ff !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .hud-pill-emerald {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #10b981 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  .hud-pill-amber {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #f59e0b !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }

  /* Modern Mega Menu Item Tiles */
  .hud-mega-item {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
  }

  .hud-mega-item:hover {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 240, 255, 0.06);
  }

  .item-icon-box {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    flex-shrink: 0;
  }

  .hud-mega-item:hover .item-icon-box,
  .hud-module-card:hover .item-icon-box,
  .hud-tech-spotlight:hover .item-icon-box {
    transform: scale(1.08);
  }

  .item-icon-cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #00f0ff;
  }

  .item-icon-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
  }

  .item-icon-amber {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
  }

  .hud-mega-item .item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.25;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
  }

  .hud-mega-item:hover .item-title {
    color: #00f0ff !important;
  }

  .hud-mega-item .item-desc {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hud-mega-item .item-arrow {
    font-size: 11px;
    color: #00f0ff;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
  }

  .hud-mega-item:hover .item-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  /* Right Tech Spotlight Widget */
  .hud-tech-spotlight {
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.07) 0%, rgba(9, 14, 24, 0.98) 55%, rgba(6, 9, 16, 0.98) 100%);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(0, 240, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.5);
  }

  /* 2x2 Telemetry Metrics Matrix */
  .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 4px;
    text-align: center;
  }

  .metric-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
  }

  .metric-txt {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* Module Product Cards in Mega Menu */
  .hud-module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
  }

  .hud-module-card:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
  }

  /* HUD Action Buttons */
  .hud-icon-btn {
    background: rgba(13, 21, 36, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .hud-icon-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  }

  .hud-cta-btn {
    background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
    border: 1px solid #00f0ff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
    transition: all 0.25s ease;
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  .hud-cta-btn:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
    color: #000 !important;
  }

  /* Light Theme Overrides */
  [data-bs-theme="light"] .swantara-telemetry-bar {
    background: #f1f5f9;
    border-bottom-color: #cbd5e1 !important;
  }

  [data-bs-theme="light"] .hud-sep {
    background: rgba(2, 132, 199, 0.25);
  }

  [data-bs-theme="light"] .hud-item .text-white {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-badge-ownership {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0284c7;
  }

  [data-bs-theme="light"] .swantara-hud-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: #cbd5e1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  }

  [data-bs-theme="light"] .hud-nav-link {
    color: #334155 !important;
  }

  [data-bs-theme="light"] .hud-nav-link:hover,
  [data-bs-theme="light"] .hud-nav-link.active,
  [data-bs-theme="light"] .hud-dropdown-static:hover>.hud-nav-link {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08);
  }

  [data-bs-theme="light"] .hud-nav-link::before {
    background: #0284c7;
    box-shadow: 0 0 8px #0284c7;
  }

  [data-bs-theme="light"] .hud-mega-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
  }

  [data-bs-theme="light"] .hud-mega-header {
    background: #f8fafc;
    border-bottom-color: #e2e8f0 !important;
  }

  [data-bs-theme="light"] .hud-mega-footer {
    background: #f8fafc;
    border-top-color: #e2e8f0 !important;
  }

  [data-bs-theme="light"] .hud-mega-item {
    background: #f8fafc;
    border-color: #e2e8f0;
  }

  [data-bs-theme="light"] .hud-mega-item:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
  }

  [data-bs-theme="light"] .hud-mega-item:hover .item-title {
    color: #0284c7 !important;
  }

  [data-bs-theme="light"] .hud-mega-item .item-title {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-mega-item .item-desc {
    color: #64748b !important;
  }

  [data-bs-theme="light"] .hud-col-header {
    border-color: #e2e8f0 !important;
  }

  [data-bs-theme="light"] .hud-col-title {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-tech-spotlight {
    background: #f0f9ff;
    border-color: #bae6fd;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
  }

  [data-bs-theme="light"] .hud-tech-spotlight h6 {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-metric-box {
    background: #ffffff;
    border-color: #e2e8f0;
  }

  [data-bs-theme="light"] .metric-txt {
    color: #64748b;
  }

  [data-bs-theme="light"] .hud-module-card {
    background: #ffffff;
    border-color: #e2e8f0;
  }

  [data-bs-theme="light"] .hud-module-card:hover {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
  }

  [data-bs-theme="light"] .hud-module-card h6 {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-icon-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-dropdown-rel .hud-dropdown-menu {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 0 15px rgba(2, 132, 199, 0.08) !important;
  }

  [data-bs-theme="light"] .hud-dropdown-item {
    color: #334155 !important;
  }

  [data-bs-theme="light"] .hud-dropdown-item:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
  }

  [data-bs-theme="light"] .hud-dropdown-item .hud-dropdown-title {
    color: #0f172a !important;
  }

  [data-bs-theme="light"] .hud-dropdown-item:hover .hud-dropdown-title {
    color: #0284c7 !important;
  }

  [data-bs-theme="light"] .hud-dropdown-item .hud-dropdown-desc {
    color: #64748b !important;
  }

  [data-bs-theme="light"] .hud-dropdown-icon-box {
    background: #e0f2fe;
    border-color: #bae6fd;
  }

  [data-bs-theme="light"] .hud-dropdown-icon-box i {
    color: #0284c7 !important;
  }