.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 16px var(--page-gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo {
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo span {
  color: #f8fafc;
}

.logo-link {
  color: inherit;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link:hover .logo {
  color: #ffffff;
}

.tagline,
.admin-label {
  font-family: var(--font-ui);
  color: #8e99a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.9;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-ui);
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #9ca8b7;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  box-shadow: none;
}

.back-link,
.logout-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.back-link:hover,
.logout-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.clock {
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}
