#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: 52px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
#nav.nav-light { background: rgba(255,255,255,0.88); }
#nav.nav-light .nav-links a,
#nav.nav-light .nav-logo { color: #1d1d1f; }
#nav.nav-light .nav-buy { color: var(--blue) !important; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-buy {
  color: var(--blue) !important;
  font-weight: 500;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 90vw);
  height: 100vh;
  background: #1c1c1e;
  z-index: 9100;
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-drawer.open { right: 0; }

.drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.16); }

.drawer-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 16px;
}
.drawer-link:hover { color: #fff; }
.drawer-buy {
  color: var(--blue) !important;
  font-size: 1.2rem;
  border-bottom: none;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-overlay.show { opacity: 1; pointer-events: all; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}