.sidebar {
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  backdrop-filter: blur(18px);
  bottom: 0;
  box-shadow: 6px 0 30px rgba(var(--accent-rgb), 0.08);
  display: flex;
  flex-direction: column;
  left: 0;
  overflow-y: auto;
  padding: calc(var(--navbar-height) + 24px) 18px 22px;
  position: fixed;
  top: 0;
  width: var(--sidebar-width);
  z-index: 50;
}

.member-card {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.avatar {
  align-items: center;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.5rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.member-card strong,
.member-card span {
  display: block;
}

.member-card span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  margin-top: 2px;
}

.category-nav {
  display: grid;
  gap: 8px;
}

.category-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
  transition:
    background 200ms var(--transition-smooth),
    color 200ms var(--transition-smooth),
    border-color 200ms var(--transition-smooth);
}

.category-button svg {
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.category-button:hover,
.category-button.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
  color: var(--accent-dark);
}

.sidebar-bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 28px;
}

.browse-all {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar-bottom img {
  opacity: 0.22;
  width: 48px;
}

@media (max-width: 768px) {
  .sidebar {
    align-items: center;
    border-radius: 22px 22px 0 0;
    bottom: 0;
    box-shadow: 0 -10px 30px rgba(var(--accent-rgb), 0.14);
    height: 80px;
    overflow: visible;
    padding: 8px 10px 12px;
    top: auto;
    width: 100%;
    z-index: 85;
  }

  .member-card,
  .sidebar-bottom {
    display: none;
  }

  .category-nav {
    display: grid;
    gap: 4px;
    grid-auto-columns: minmax(76px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .category-button {
    border-left: 0;
    border-radius: var(--radius-card);
    flex-direction: column;
    font-size: 0.68rem;
    gap: 2px;
    justify-content: center;
    min-height: 58px;
    padding: 4px;
  }

  .category-button svg {
    height: 20px;
    width: 20px;
  }
}
