/* ============================================================
   NAVBAR  —  ProAffiliaters
   Layout: Logo | [flex:1 center links] | Buttons
   Hamburger hidden on desktop, visible <768px
============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
}

/* ─── Container ─────────────────────────────────────────── */
.div-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* ─── Logo ───────────────────────────────────────────────── */
.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #3b5bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Nav-menu wrapper (links + buttons together) ─────── */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 48px;
}

/* ─── Links ──────────────────────────────────────────────── */
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.935rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #4f46e5;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ─── Auth Buttons ───────────────────────────────────────── */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-buttons a {
  text-decoration: none;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.login-btn:hover {
  border-color: #a5b4fc;
  color: #4f46e5;
  background: #f5f3ff;
}

.sign-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.38);
  transition: all 0.2s ease;
}

.sign-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.48);
  transform: translateY(-1px);
}

/* ─── Hamburger (hidden on desktop) ─────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 202;
  position: relative;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(99, 102, 241, 0.07);
}

.hamburger .bar {
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #1e293b;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.2s ease,
              background-color 0.2s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #6366f1;
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #8b5cf6;
}

/* ─── nav-icon (icon class, hidden on desktop) ─────────── */
.nav-icon {
  display: none;
}