.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--glass);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.navbar-container {
  max-width: 1400px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-logo {
  font-family: Orbitron, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
}
.navbar-logo:hover {
  color: var(--blue);
  text-shadow: 0 0 14px var(--blue);
  transform: scale(1.06);
}
.navbar-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nav-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  transition: 0.25s;
}
.nav-btn i {
  flex-shrink: 0;
}
.nav-btn span {
  flex-grow: 1;
  text-align: left;
}
.nav-btn:hover,
.nav-btn.active {
  background: rgba(61, 161, 240, 0.18);
  box-shadow: var(--blue-glow);
}
.login-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none; /* add this */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--blue-glow);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}
.nav-dropdown {
  position: relative;
  width: 100%;
}
.dropdown-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  transition: 0.25s;
}
.dropdown-arrow,
.nested-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}
.nav-dropdown.show > .dropdown-btn .dropdown-arrow {
  transform: rotate(180deg);
}
.nested-dropdown.show > .dropdown-btn .nested-arrow,
.downloads-dropdown.show > .dropdown-btn .nested-arrow {
  transform: rotate(90deg);
}
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 12px;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  padding: 6px 0;
  z-index: 1000;
}
.dropdown-menu li {
  list-style: none;
  width: 100%;
  position: relative;
}
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  width: 100%;
}
.dropdown-menu li a:hover {
  background: rgba(61, 161, 240, 0.18);
  box-shadow: var(--blue-glow);
}
.nav-dropdown.show > .dropdown-menu {
  display: flex;
}
/* Desktop nested menus float right */
.dropdown-menu .nav-dropdown .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 200px;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.nav-dropdown.show .nested-dropdown.show > .dropdown-menu,
.nav-dropdown.show .downloads-dropdown.show > .dropdown-menu {
  display: flex;
}

/* Mobile */
@media (max-width: 900px) {
  .navbar-links {
    position: absolute;
    top: 80px;
    right: 28px;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: none;
    width: 250px;
    gap: 8px;
  }
  .navbar-links.show {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .dropdown-menu,
  .dropdown-menu .nav-dropdown .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    border: none;
    box-shadow: none;
    width: 100%;
    padding-left: 12px;
    display: none;
  }
  .nav-dropdown.show > .dropdown-menu {
    display: flex;
  }
  .login-btn {
    width: 100%;
  }
}
