.topbar {
  gap: 18px;
}

.desktop-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 20px;
}

.desktop-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 5px;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.desktop-nav > a:not(.nav-create-cta).active {
  color: var(--text);
  background: rgba(255,255,255,.055);
}

.desktop-nav > a:not(.nav-create-cta).active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.desktop-nav > .nav-create-cta {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(140,255,122,.34);
  color: #07101c;
  background: linear-gradient(135deg, var(--accent), #b7ff8a);
  box-shadow: 0 8px 22px rgba(140,255,122,.14);
  font-weight: 850;
}

.desktop-nav > .nav-create-cta:hover,
.desktop-nav > .nav-create-cta.active {
  color: #07101c;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(140,255,122,.20);
}

.header-actions {
  position: relative;
  flex: 0 0 auto;
}

.header-location-button {
  max-width: 190px;
}

.badge[hidden] {
  display: none !important;
}

#profileButton.header-profile-button {
  gap: 9px;
  min-width: 0;
  max-width: 190px;
  padding: 0 12px 0 8px;
}

.header-profile-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(140,255,122,.20);
  border-radius: 9px;
  color: var(--accent);
  background: rgba(140,255,122,.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.header-profile-label {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-profile-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  transition: transform .18s ease;
}

#profileButton[aria-expanded="true"] .header-profile-chevron {
  transform: rotate(180deg);
}

.header-profile-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 268px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8,20,33,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
}

.header-profile-menu[hidden] {
  display: none !important;
}

.header-profile-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.header-profile-menu-item:hover,
.header-profile-menu-item:focus-visible {
  outline: none;
  background: rgba(255,255,255,.06);
}

.header-profile-menu-logout {
  color: #ffc3cb;
}

.header-profile-menu-separator {
  display: block;
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav > a {
    padding-right: 3px;
    padding-left: 3px;
  }

  .desktop-nav > .nav-create-cta {
    padding-right: 12px;
    padding-left: 12px;
  }

  #profileButton.header-profile-button {
    max-width: 160px;
  }
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }
}
