#site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 5000;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: var(--text-main);
}

.header-container {
  max-width: 1400px;
  margin: auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo { margin-right: auto; }
.header-logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-brand-logo {
  /*width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-top:10px;*/
  object-fit: contain;
  flex: 0 0 44px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 3rem;
}

.header-nav a {
  color: var(--text-main);
  /*opacity: 0.7;*/
  font-weight: 400;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  opacity: 1;
  color: var(--primary);
}

/* Actions Container */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Base style for both header buttons */
.btn-header-login, 
.btn-header-signup,
.btn-header-logout {
  padding: 0.7rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px; /* Sharp modern gaming look */
  transition: all 0.3s ease;
  text-align: center;
  min-width: 110px;
}

/* LOGIN: The "Ghost" Button */
.btn-header-login {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header-login:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* SIGN UP: The "Pulse" Button */
.btn-header-signup {
  background-color: var(--primary);
  color: #000000;
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-header-signup:hover {
  background-color: transparent;
  color: var(--primary);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-header-logout {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header-logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .header-container {
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
  }

  .header-logo {
    margin-right: 0;
  }

  .header-nav {
    order: 3;
    width: 100%;
    margin-right: 0;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .header-actions {
    margin-left: auto;
  }
}
