.bottom-nav {
  position: fixed;

  /* Centers the nav inside the main content area,
     excluding the desktop sidebar */
  left: calc(50% + (var(--sidebar-w, 0px) / 2));

  bottom: 24px;
  transform: translateX(-50%);

  width: calc(100% - var(--sidebar-w, 0px) - 48px);
  max-width: 700px;

  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.22);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
}

.bottom-nav:hover {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.bottom-nav__item {
  position: relative;
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  padding: 8px 10px;
  border-radius: 999px;

  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.bottom-nav__item:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.bottom-nav__item.active {
  background: linear-gradient(
    135deg,
    rgba(28, 110, 242, 0.92),
    rgba(59, 130, 246, 0.82)
  );

  color: #ffffff;
  transform: translateY(-1px);
}

.bottom-nav__item.locked {
  color: rgba(255, 255, 255, 0.48);
}

.bottom-nav__item.locked:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
}

.bottom-nav__item.locked.active {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}

.bottom-nav__lock {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.88);
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.bottom-nav__item svg {
  width: 18px;
  height: 18px;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bottom nav is kept inactive so mobile uses the sidebar drawer only. */
.main {
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .main {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
    left: 50%;
    width: calc(100% - 24px);
  }
}

@media (max-width: 560px) {
  .bottom-nav {
    left: 50%;
    bottom: 10px;
    width: calc(100% - 12px);
    padding: 6px;
  }

  .bottom-nav__item {
    padding: 7px 4px;
    font-size: 10px;
  }

  .bottom-nav__lock {
    top: 5px;
    right: 9px;
  }
}
