.pill-nav-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  position: relative;
  z-index: 100;
}

.pill-island {
  width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 14px 10px 22px;
  border-radius: 9999px;
  background: rgba(12, 12, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pill-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1;
  padding-right: 0.35rem;
}

.pill-brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.pill-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-links::-webkit-scrollbar {
  display: none;
}

.pill-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pill-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pill-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pill-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.pill-link-muted {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  transition: color 0.2s ease;
}

.pill-link-muted:hover {
  color: #fff;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.15rem;
  border-radius: 9999px;
  border: none;
  text-decoration: none;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 55%, #4f46e5 100%);
  box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pill-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45);
  color: #fff !important;
}

.pill-cta.is-logout {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 8px 22px rgba(185, 28, 28, 0.35);
}

.pill-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.pill-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.pill-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 1rem;
  right: 1rem;
  padding: 0.55rem;
  border-radius: 22px;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  flex-direction: column;
  gap: 0.25rem;
  z-index: 120;
}

.pill-mobile.is-open {
  display: flex;
}

.pill-mobile a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 500;
}

.pill-mobile a:hover,
.pill-mobile a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.pill-mobile .pill-cta {
  margin-top: 0.35rem;
  width: 100%;
}

@media (max-width: 860px) {
  .pill-island {
    padding: 10px 12px 10px 18px;
  }

  .pill-links,
  .pill-actions {
    display: none;
  }

  .pill-menu-btn {
    display: inline-flex;
  }
}
