/**
 * Desktop shell sidebar — mock look (dark rail + purple active), prod NAV unchanged.
 */

.mf-shell-sidebar-root {
  --mf-shell-nav-w: 252px;
  --shell-nav-bg: #0c0a12;
  --shell-nav-bg-bottom: #080610;
  --shell-nav-border: rgba(255, 255, 255, 0.06);
  --shell-nav-ink: rgba(255, 255, 255, 0.52);
  --shell-nav-ink-hover: rgba(255, 255, 255, 0.88);
  --shell-nav-accent: #a78bfa;
  --shell-nav-accent-bright: #c4b5fd;
  --shell-nav-active-glow: rgba(124, 58, 237, 0.38);
}

.mf-shell-sidebar-root .sidebar {
  background: linear-gradient(180deg, var(--shell-nav-bg) 0%, var(--shell-nav-bg-bottom) 100%);
  border-right: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.35) transparent;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  padding: 1.65rem 0 1.4rem;
  display: flex;
  overflow-y: auto;
  box-sizing: border-box;
}

.mf-shell-sidebar-root .sidebar__top {
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 1.1rem 0.2rem;
  display: flex;
}

.mf-shell-sidebar-root .brand.brand-future {
  flex-shrink: 0;
  align-items: center;
  min-height: 2.25rem;
  width: 100%;
  text-decoration: none;
  display: flex;
}

.mf-shell-sidebar-root .brand.brand-future .brand-wordmark {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.mf-shell-sidebar-root .brand-wordmark {
  font-family: var(--font-brand, "Plus Jakarta Sans", sans-serif);
  letter-spacing: -0.03em;
  text-transform: lowercase;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--shell-nav-accent-bright);
  -webkit-text-fill-color: var(--shell-nav-accent-bright);
  background: none;
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.35);
}

@supports (-webkit-background-clip: text) {
  .mf-shell-sidebar-root .brand-wordmark {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 45%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}

.mf-shell-sidebar-root .theme-toggle {
  appearance: none;
  width: 100%;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
}

.mf-shell-sidebar-root .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(167, 139, 250, 0.28);
  color: #fff;
}

.mf-shell-sidebar-root .theme-toggle__svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.mf-shell-sidebar-root .nav {
  flex-direction: column;
  gap: 0.22rem;
  padding: 0 0.65rem 1.1rem;
  display: flex;
}

.mf-shell-sidebar-root .nav__item {
  color: var(--shell-nav-ink);
  transition: color 0.18s ease, background 0.18s ease;
  border-radius: 0.65rem;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.82rem 0.95rem 0.82rem 1.05rem;
  min-height: 46px;
  text-decoration: none;
  display: grid;
  position: relative;
  border: none;
  background: transparent;
}

.mf-shell-sidebar-root .nav__item:hover {
  color: var(--shell-nav-ink-hover);
  background: rgba(255, 255, 255, 0.04);
}

.mf-shell-sidebar-root .nav__bar {
  background: var(--shell-nav-accent-bright);
  box-shadow: 0 0 12px var(--shell-nav-active-glow);
  opacity: 0;
  width: 3px;
  height: 0;
  transition: height 0.22s ease, opacity 0.18s ease;
  border-radius: 0 3px 3px 0;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.mf-shell-sidebar-root .nav__svg {
  opacity: 0.72;
  width: 22px;
  height: 22px;
  stroke-width: 1.65;
}

.mf-shell-sidebar-root .nav__label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.mf-shell-sidebar-root .nav__item.is-active {
  color: var(--shell-nav-accent);
  background: radial-gradient(
    130% 160% at 0% 50%,
    rgba(124, 58, 237, 0.32) 0%,
    rgba(124, 58, 237, 0.1) 38%,
    transparent 72%
  );
}

.mf-shell-sidebar-root .nav__item.is-active .nav__bar {
  opacity: 1;
  height: 58%;
}

.mf-shell-sidebar-root .nav__item.is-active .nav__svg {
  opacity: 1;
  color: var(--shell-nav-accent-bright);
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.55));
}

.mf-shell-sidebar-root .nav__item.is-active .nav__label {
  color: var(--shell-nav-accent-bright);
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.45);
}
