.site-header {
  position: relative;
  width: 100%;
  z-index: 2000;
}.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--hdr-pad-top) var(--page-gutter) var(--hdr-pad-btm);
}@media (min-width: 768px) {
  .site-header__inner {
    padding-left: var(--page-gutter-lg);
    padding-right: var(--page-gutter-lg);
  }
}.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  font-size: var(--fs-md);
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--text-primary);
  user-select: none;
  text-decoration: none;
}.site-logo span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}.site-header__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}.hdr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: var(--hdr-control);
  padding: 0 14px;
  border-radius: 999px;

  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}.hdr-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gradient-main);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}.hdr-chip strong {
  color: var(--text-primary);
  font-weight: 900;
}.hdr-icon {
  width: var(--hdr-control);
  height: var(--hdr-control);
  border-radius: 14px;

  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;

  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);

  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}.hdr-icon:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
}.hdr-icon:active {
  transform: scale(0.96);
}.hdr-icon svg {
  width: 20px;
  height: 20px;
}.site-header .site-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--hdr-control);
  padding: 0 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 900;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}.site-header .site-action:hover{
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}.site-header .site-action:active{
  transform: scale(0.96);
}@media (max-width: 520px) {
  .hdr-chip {
    display: none;
  }
}@media (max-width: 980px) {
  /* Mobile uses an internal scroll container (.content-inner).
     Header spacing is applied there (see app.css) to avoid body scroll quirks
     in iOS Safari / PWA standalone. */

  .site-header.site-header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;

    background: rgba(10, 10, 18, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
}
/* --- Mobile header: stronger glass to prevent content blending --- */
@media (max-width: 768px) {
  .site-header__inner { position: relative; z-index: 1; }

  .site-header.site-header--fixed {
    background: rgba(10, 10, 18, 0.72);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .site-header.site-header--fixed::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(10, 10, 18, 0.55),
      rgba(10, 10, 18, 0.25)
    );
  }
}
