/* === PanelNav — Horizontal Tab Bar === */
.container {
  background: rgba(10, 14, 23, 0.95);
  border-bottom: 1px solid rgba(61, 90, 108, 0.4);
  flex-shrink: 0;
}

/* Desktop: horizontal scrollable row */
.tabRow {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabRow::-webkit-scrollbar {
  display: none;
}

.tabSpacer {
  flex: 1;
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hull-grey);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.tab:hover {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.tabActive {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  border-bottom-color: var(--plasma-cyan);
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.1);
}

.tabIcon {
  flex-shrink: 0;
}

.tabLabel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--claw-red);
  color: var(--star-white);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 6px rgba(230, 57, 70, 0.5);
}

/* Mobile dropdown — hidden on desktop */
.mobileDropdown {
  display: none;
  position: relative;
}

.mobileButton {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--plasma-cyan);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobileMenuIcon {
  color: var(--hull-grey);
}

.mobileLabel {
  flex: 1;
  text-align: left;
}

.chevron {
  color: var(--hull-grey);
  transition: transform 0.2s ease;
}

.chevronOpen {
  transform: rotate(180deg);
}

.mobileMenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 23, 0.98);
  border: 1px solid rgba(61, 90, 108, 0.4);
  border-top: none;
  z-index: 60;
  max-height: 70vh;
  overflow-y: auto;
}

.mobileItem {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--hull-grey);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
}

.mobileItem:hover {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.mobileItemActive {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.1);
  border-left: 3px solid var(--plasma-cyan);
}

.mobileBadge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--claw-red);
  color: var(--star-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(230, 57, 70, 0.5);
}

/* Responsive: switch to mobile dropdown */
@media (max-width: 768px) {
  .tabRow {
    display: none;
  }

  .mobileDropdown {
    display: block;
  }

  .mobileButton {
    min-height: 44px;
    font-size: 0.8rem;
    padding: 0.65rem 0.85rem;
  }

  .mobileItem {
    min-height: 44px;
    font-size: 0.8rem;
    padding: 0.75rem 0.85rem;
  }
}
