/* Member nav — game_tgn_0036 VOLTAGE RACK */

:root {
  /* Keep --g36-ink as dark (#0c0e08 from styles.css) — used on lime CTAs */
  --g36-paper: var(--g36-card, #22261a);
  --g36-paper-deep: var(--g36-bg2, #1a1d14);
  --g36-member-accent: var(--g36-lime, #c8f542);
}

.g36-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  width: 100%;
}

/* Desktop rail uses loginBtnRow / userInfoRow in .g36-nav-foot */
.g36-nav-link--signin {
  display: flex;
}

.g36-nav-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.g36-nav-user-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c0e08;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  background: #c8f542;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter 0.18s ease, transform 0.18s ease;
}

.g36-nav-user-link:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #0c0e08;
}

.g36-nav-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.g36-nav-user-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.g36-nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: rgba(200, 245, 66, 0.15);
  color: #c8f542;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
  line-height: 1;
  text-decoration: none;
  border: 2px solid rgba(200, 245, 66, 0.45);
  background-size: cover;
  background-position: center;
}

.g36-nav-user-avatar:hover {
  border-color: #c8f542;
}

.g36-nav-user-avatar.has-img,
.g36-nav-user-avatar img {
  background: transparent;
}

.g36-nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g36-nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f2f0e6;
}

.g36-nav-user-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #a8a494;
  text-decoration: none;
}

.g36-nav-user-logout:hover {
  color: #c8f542;
}

.g36-nav-user-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.g36-nav-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}

.g36-nav-user-toggle:hover .g36-nav-user-avatar {
  border-color: #c8f542;
}

.g36-nav-user-dropdown.is-open .g36-nav-user-menu,
.g36-nav-user-dropdown.is-open .nav-user-menu {
  display: block;
}

.g36-nav-user-menu,
.nav-user-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 0;
  padding: 8px;
  background: #22261a;
  border: 1px solid rgba(200, 245, 66, 0.25);
  z-index: 300;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
  .g36-nav-user-dropdown {
    width: auto;
  }

  .g36-nav-user-toggle {
    width: auto;
  }

  .g36-nav-user-toggle .g36-nav-user-name {
    display: none !important;
  }

  .g36-nav-user-menu,
  .nav-user-menu {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    left: auto;
    min-width: 160px;
  }
}

.g36-nav-user-menu-item,
.nav-user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: #f2f0e6;
  font-size: 0.85rem;
  text-decoration: none;
}

.g36-nav-user-menu-item:hover,
.nav-user-menu-item:hover {
  color: #c8f542;
  background: rgba(200, 245, 66, 0.06);
}

.g36-nav-user-menu-item--logout {
  color: #e0794a;
}

.g36-nav-user--masthead[hidden] {
  display: none !important;
}

.g36-mob-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.g36-mob-account-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
