/* Mobile nav — include on pages with .nav-main */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-main.nav-open .nav-toggle-icon {
  background: transparent;
}

.nav-main.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-main.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
}

.nav-main.nav-open .nav-backdrop {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-main .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 28px 32px;
    background: rgba(15, 15, 15, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .nav-main.nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-main .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-main .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 0.85rem;
    opacity: 1;
  }

  .nav-main .nav-login-btn,
  .nav-main .nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}
