.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  padding: 16px 12px;
  z-index: 999;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 2px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-section {
  margin-bottom: 8px;
}
.sidebar-label {
  padding: 12px 12px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  border: 1px solid transparent;
}
.nav-item:hover {
  background: var(--bg-hover);
}
.nav-item:hover .nav-label {
  color: var(--text-primary);
}
.nav-item.active {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.15);
}
.nav-item.active .nav-label {
  color: var(--accent-primary);
}
.nav-item.active .nav-desc {
  color: rgba(167, 139, 250, 0.5);
}
.nav-item.active::before {
  display: none;
}
.nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 12px;
  flex-shrink: 0;
  transition: background var(--transition-normal);
}
.nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.nav-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-normal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-normal);
}
.nav-item:hover .nav-desc {
  color: var(--text-secondary);
}
.nav-item:hover .nav-icon {
  background: var(--bg-hover);
}
.nav-item.active .nav-icon {
  background: rgba(167, 139, 250, 0.15);
}
.nav-fortnite-only {
  display: none;
}
body.game-fortnite .nav-fortnite-only {
  display: flex;
}
.nav-item.active .nav-icon {
  background: rgba(167, 139, 250, 0.15);
}
.nav-item:hover .nav-icon {
  background: var(--bg-hover);
}
.nav-tpm-spoof-only,
.nav-vtd-show-only {
  display: none !important;
}
body.show-tpm-spoof .nav-tpm-spoof-only {
  display: flex !important;
}
body.show-vtd-guide .nav-vtd-show-only {
  display: flex !important;
}

/* Product-specific sidebar groups */
.sidebar-group {
  display: none;
}
.sidebar-group.active {
  display: block;
}
#sidebar-public.active,
#sidebar-perm.active,
#sidebar-temp.active {
  display: block;
}