.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, rgba(17, 22, 42, 0.96) 0%, rgba(11, 16, 32, 0.96) 100%);
  color: #eef6ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.35);
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
}

.brand-lockup {
  padding: 8px 4px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.brand-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.6);
}

.brand-title {
  margin-top: 18px;
}

.brand-logo {
  display: block;
  width: min(100%, 258px);
  height: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1) contrast(1.06);
}

.brand-tagline {
  max-width: 13ch;
  margin: 18px auto 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.brand-copy {
  max-width: 22ch;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(238, 246, 255, 0.66);
}

.nav-group {
  margin-top: 24px;
}

.nav-label {
  margin: 0 0 10px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(238, 246, 255, 0.46);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 14px;
  margin-bottom: 6px;
  border-radius: 16px;
  color: #eef6ff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.nav-submenu {
  position: relative;
  margin: 4px 0 10px 18px;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(105, 240, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.nav-sublink {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
  color: rgba(238, 246, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-sublink:hover,
.nav-sublink.active {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.sidebar-note {
  margin-top: 26px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-note .brand-copy {
  margin: 0;
  max-width: 22ch;
  text-align: left;
}

@media (max-width: 1180px) {
  .sidebar {
    position: relative;
    height: auto;
  }
}
