/* cyberpunk-theme.css */
.glow-text {
  text-shadow:
    0 0 10px rgba(49, 232, 255, 0.35),
    0 0 24px rgba(108, 75, 255, 0.22);
}

.neon-border {
  border: 1px solid rgba(49, 232, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 0 0 1px rgba(49, 232, 255, 0.06),
    0 18px 35px rgba(0,0,0,.28);
}

.glass {
  background: linear-gradient(
    180deg,
    rgba(4, 14, 36, 0.78),
    rgba(2, 8, 22, 0.9)
  );
  backdrop-filter: blur(16px);
}

.cyber-line {
  position: relative;
}

.cyber-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--secondary));
  box-shadow: 0 0 18px rgba(49, 232, 255, 0.45);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 50;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(2, 8, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(49,232,255,0.04);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topbar-brand h1,
.topbar-brand h2 {
  font-size: .95rem;
  margin: 0;
  letter-spacing: .1em;
}

.topbar-brand small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(3,10,26,0.98), rgba(2,6,18,0.99));
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(49,232,255,0.04);
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 18px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--hud-cyan), var(--hud-lime));
  box-shadow: 0 0 10px var(--hud-cyan-glow);
  border-radius: 999px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.sidebar-brand small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
  transition: color .2s, background .2s;
  clip-path: polygon(
    8px 0%, 100% 0%,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0% 100%, 0% 8px
  );
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--hud-cyan);
  background: rgba(49,232,255,0.06);
}

.sidebar-nav a.active {
  color: #fff;
  background: rgba(49,232,255,0.09);
}

.sidebar-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--hud-cyan);
  box-shadow: 0 0 10px var(--hud-cyan-glow);
  border-radius: 999px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}

.sidebar-user {
  padding: 12px 14px;
  background: rgba(49,232,255,0.04);
  position: relative;
  clip-path: polygon(
    8px 0%, 100% 0%,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0% 100%, 0% 8px
  );
}

.sidebar-user::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}

.sidebar-user strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-user small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 860px) {
  .topbar {
    left: 0;
    padding: 0 16px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-nav {
    padding-bottom: 14px;
  }
}
