:root {
  --neon-cyan: #00f3ff;
  --neon-pink: #ff007f;
  --neon-green: #39ff14;
}

/* Shared site header — used on every portal page above the cyan divider */

.navbar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 2rem;
  background: rgba(13, 15, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--neon-cyan, #00f3ff);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  position: relative;
  z-index: 100;
}

.logo-container {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  justify-self: start;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: none;
  background: none;
}

.logo-icon {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  color: #ffffff;
  fill: #ffffff;
  filter: none;
  background: none;
}

.logo-text {
  color: #ffffff;
  line-height: 1.15;
}

.tagline {
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-top: 0.2rem;
  padding-left: 3.3rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.75rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  padding: 0.4rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex-direction: row;
  justify-self: end;
  min-width: 0;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  order: 1;
}

.user-info .badge {
  order: 2;
}

.user-info .wallet {
  order: 3;
}

.user-info .btn-logout {
  order: 4;
}

.user-identity img,
#nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.user-display-name,
#user-display-name {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.wallet {
  background: #000;
  border: 1px solid var(--neon-green, #39ff14);
  color: var(--neon-green, #39ff14);
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
  white-space: nowrap;
}

.badge {
  background: transparent;
  border: 1px solid var(--neon-pink, #ff007f);
  color: var(--neon-pink, #ff007f);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.3);
  white-space: nowrap;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-logout:hover {
  border-color: var(--neon-pink, #ff007f);
  color: var(--neon-pink, #ff007f);
}

.hamburger-icon {
  display: none !important;
}

@media (max-width: 1100px) {
  .navbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  .logo-container,
  .user-info {
    justify-self: center;
  }

  .logo {
    justify-content: center;
  }

  .tagline {
    padding-left: 0;
  }

  .user-info {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .main-nav {
    width: 100%;
    padding: 0.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }

  .logo-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .tagline {
    font-size: 0.82rem;
  }

  .main-nav {
    gap: 0.2rem 1rem;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .user-display-name,
  #user-display-name {
    max-width: 110px;
  }
}
