/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), #FFA500);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: superbGlowIcon 2.5s infinite ease-in-out;
}

@keyframes superbGlowIcon {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 165, 0, 0.5); transform: scale(1.06); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2); transform: scale(1); }
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-main {
  font-size: 15px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 1px;
  animation: superbGlowText 2.5s infinite ease-in-out;
}

@keyframes superbGlowText {
  0% { text-shadow: 0 0 8px rgba(173, 216, 230, 0.5); }
  50% { text-shadow: 0 0 15px rgba(173, 216, 230, 0.9), 0 0 30px rgba(0, 0, 139, 0.8), 0 0 45px rgba(0, 0, 139, 0.6); }
  100% { text-shadow: 0 0 8px rgba(173, 216, 230, 0.5); }
}

.nav-logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--gold); background: rgba(255,215,0,0.08); }
.nav-link .nav-icon { font-size: 16px; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
}
.lang-btn.active {
  background: var(--gold);
  color: #000;
}
.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* User Menu */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.nav-user:hover { border-color: var(--gold); background: var(--gold-glow); }
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #000;
}
.nav-user-name { font-size: 13px; font-weight: 600; }
.nav-user-badge { font-size: 10px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 799;
  flex-direction: column;
  gap: 6px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.nav-mobile-link:hover, .nav-mobile-link.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-color: rgba(255,215,0,0.15);
}

@media (max-width: 900px) {
  .nav-links { 
    display: flex; 
    overflow-x: auto; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 5px; 
    justify-content: flex-start;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-hamburger { display: none; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; }
  .nav-logo-sub { display: none; }
  .nav-logo-main { font-size: 13px; }
  .nav-links { gap: 10px; }
}
