.sidebar {
  width: 5rem;
  background: var(--bg-soft);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--amber);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: 0 12px 20px rgba(245, 158, 11, 0.22);
}

.brand-mark-svg {
  background: var(--amber);
}

.brand-mark .svg-icon {
  width: 18px;
  height: 18px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.side-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.side-btn.active {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
}

.side-btn.active::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  border-radius: 99px 0 0 99px;
  background: var(--amber);
}

.side-btn .tip {
  position: absolute;
  left: 100%;
  margin-left: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  background: #1e293b;
  color: #fff;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
}

.side-btn:hover .tip { opacity: 1; }

.side-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.avatar.side-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border-color: var(--border-strong);
  background: #1e293b;
  color: #cbd5e1;
}

.avatar.side-btn:hover {
  background: #24324a;
  color: var(--text);
}

.avatar.side-btn.active {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(59, 130, 246, 0.14);
}

.topbar {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.5rem;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 11, 16, 0.8);
  backdrop-filter: blur(14px);
}

.page-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.server-label {
  margin: 0.2rem 0 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.health-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  animation: pulse 1.2s infinite;
}

.icon-btn {
  border: 1px solid var(--border-soft);
  background: #1e293b;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn.active {
  background: var(--amber);
  color: #111827;
}

body[data-theme='light'] .sidebar {
  background: var(--bg-soft);
}

body[data-theme='light'] .topbar {
  background: var(--bg-soft);
}

body[data-theme='light'] .side-btn:hover {
  background: var(--bg-card-hover);
}

body[data-theme='light'] .side-btn .tip {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-soft);
}

body[data-theme='light'] .icon-btn {
  background: var(--bg-card);
}

body[data-theme='light'] .icon-btn:hover {
  background: var(--bg-card-hover);
}

body[data-theme='light'] .avatar,
body[data-theme='light'] .avatar.side-btn {
  background: var(--bg-card);
  color: var(--text);
}

body[data-theme='light'] .avatar.side-btn:hover {
  background: var(--bg-card-hover);
}

body[data-theme='light'] .icon-btn.active {
  background: var(--amber);
  color: #111827;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
