.root {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-base);
  position: sticky;
  top: 0;
  z-index: 10;
}

.leftGroup {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.brandLink {
  color: inherit;
  text-decoration: none;
}

.brandLink:hover {
  opacity: 0.8;
}

.primaryNav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navLink {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.navLink:hover,
.navLink:focus {
  color: var(--color-foreground);
}

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

.authCluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.accountLink {
  font-size: 13px;
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 600;
}

.logoutButton {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  border: 1px solid var(--surface-border);
}

.balancePill {
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--surface-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-foreground);
}

.searchButton {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.searchButton:hover {
  background: var(--surface-subtle);
  color: var(--color-foreground);
  border-color: rgba(82, 120, 255, 0.35);
}

.loginButton {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface-subtle);
  color: var(--color-foreground);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.loginButton:hover {
  transform: translateY(-1px);
  background: var(--surface-border);
}

@media (max-width: 992px) {
  .primaryNav {
    display: none;
  }

  .leftGroup {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .root {
    padding: 14px 20px;
  }

  .actions {
    gap: 12px;
  }
}
