.navbar {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.5rem;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--text-heading);
}

.navbar__logo svg {
  flex-shrink: 0;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.navbar__links a {
  color: var(--text);
  transition: color 0.15s;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--cta);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__theme-btn {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.navbar__theme-btn:hover {
  border-color: var(--cta);
}

.navbar__user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 12px 4px 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.navbar__user-avatar {
  width: 30px;
  height: 30px;
  background: rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cta);
}

.navbar__user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
}

.navbar__hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* User dropdown */
.navbar__user-dropdown {
  position: relative;
}

.navbar__user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 12px 4px 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font);
}

.navbar__user-pill:hover {
  border-color: var(--cta);
}

.navbar__user-chevron {
  transition: transform 0.2s;
  color: var(--text-muted);
}

.navbar__user-dropdown.open .navbar__user-chevron {
  transform: rotate(180deg);
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  z-index: 100;
}

.navbar__user-dropdown.open .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font);
  text-align: left;
}

.navbar__dropdown-item:hover {
  background: rgba(249, 115, 22, 0.06);
  color: var(--cta);
}

.navbar__dropdown-item--danger {
  color: var(--error);
}

.navbar__dropdown-item--danger:hover {
  background: rgba(220, 38, 38, 0.06);
  color: var(--error);
}

.navbar__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.navbar__dropdown-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 10px;
  padding: 8px 12px;
  background: var(--cta);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.navbar__dropdown-cta:hover {
  opacity: 0.9;
  color: #fff;
}

.navbar__dropdown-credits {
  padding: 8px 12px;
}

.navbar__dropdown-credit-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 2px 0;
}
