/* Shared navigation styles */
.top-links {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.top-links .upgrade-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}

.top-links .upgrade-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.55);
}

.nav-menu-wrapper {
  position: relative;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  cursor: pointer;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease;
}

.nav-toggle:hover {
  background: #111827;
  border-color: #374151;
}

.burger-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.burger-icon span {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 4px;
}

.nav-toggle-label {
  font-size: 0.85rem;
}

.nav-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #0b1224;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  display: none;
  min-width: 180px;
  z-index: 10;
}

.nav-menu.open {
  display: block;
}

.nav-menu .nav-item,
.nav-menu .nav-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  box-sizing: border-box; /* prevents highlight overflow */
}

.nav-menu .nav-item:hover,
.nav-menu .nav-link:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #fff;
}

.nav-menu button.nav-item {
  text-align: left;
}