.server-switcher-wrap {
  position: relative;
}

.server-switcher[aria-expanded="true"] {
  background: #151824;
}

.server-switcher[aria-expanded="true"] .server-switcher-caret {
  transform: rotate(180deg);
}

.server-switcher-caret {
  transition: transform 0.16s ease;
}

.server-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: #10131b;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.server-switcher-menu[hidden] {
  display: none;
}

.server-switcher-option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
}

.server-switcher-option:hover,
.server-switcher-option[aria-current="page"] {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.server-switcher-option img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
}

.server-switcher-option span {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-switcher-all,
.server-switcher-empty {
  display: block;
  padding: 10px 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
}

.server-switcher-all:hover {
  color: var(--gold);
}
