.nahb-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nahb-login-btn,
.nahb-signup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1.2;
  font-family: "Outfit", sans-serif;
  border: none;
}

/* ── User icon / dropdown trigger ── */
.nahb-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.nahb-user-icon svg,
.nahb-user-icon .e-font-icon-svg {
  display: block;
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
}

.nahb-user-name {
  font-weight: 500;
}

/* ── Dropdown wrapper ── */
.nahb-user-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nahb-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.nahb-user-toggle:hover {
  opacity: 0.8;
}

.nahb-caret {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nahb-user-dropdown.is-open .nahb-caret {
  transform: rotate(180deg);
}

/* ── Dropdown menu ── */
.nahb-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  overflow: hidden;
  animation: nahbDropIn 0.15s ease;
}

@keyframes nahbDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nahb-user-dropdown.is-open .nahb-dropdown-menu {
  display: block;
}

.nahb-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}

.nahb-dropdown-item:last-child {
  border-bottom: none;
}

.nahb-dropdown-item:hover {
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
}

.nahb-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.nahb-dropdown-item--logout {
  color: #dc2626;
}

.nahb-dropdown-item--logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}
