.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px var(--container-padding-x);
}

.site-header--solid {
  background: var(--color-bg);
}

.site-header--solid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--container-padding-x);
  right: var(--container-padding-x);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 194, 5, 0.45) 25%,
    rgba(218, 130, 45, 0.45) 75%,
    transparent 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.site-header__logo {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
}

.site-header__logo img {
  width: clamp(240px, 22vw, 340px);
  height: auto;
}

/* ---- account pill (replaces burger + dropdown) ---- */

.site-header__account-wrap {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-header__account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 194, 5, 0.32);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-header__account:hover {
  background: rgba(245, 194, 5, 0.08);
  border-color: rgba(245, 194, 5, 0.6);
  transform: translateY(-1px);
}

.site-header__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(245, 194, 5, 0.22),
    0 4px 12px rgba(245, 194, 5, 0.28),
    0 0 24px rgba(245, 194, 5, 0.38);
}

.site-header__name {
  max-width: 160px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--grad-accent);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(245, 194, 5, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.site-header__login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245, 194, 5, 0.34);
}

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding-block: 18px;
  }

  .site-header__logo img {
    width: 160px;
  }

  .site-header__account {
    padding: 4px 12px 4px 4px;
    gap: 8px;
  }

  .site-header__avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .site-header__name {
    font-size: 14px;
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .site-header__name {
    display: none;
  }

  .site-header__account {
    padding: 4px;
    border-color: rgba(245, 194, 5, 0.45);
  }
}

@media (max-width: 420px) {
  .site-header__logo img {
    width: 144px;
  }
}
