/* Auth state flash — SSR "Giriş Yap" yerine oturum ipucuna göre davran */
html.auth-has-session .arch-header-auth-guest-only,
html.auth-has-session #header-login-fallback {
  display: none !important;
}

html.auth-has-session .arch-header-auth-pending,
html.auth-has-session .ag-header-auth-pending {
  display: inline-flex;
}

html[data-auth-hydrated="1"] .arch-header-auth-pending,
html[data-auth-hydrated="1"] .ag-header-auth-pending {
  display: none !important;
}

/* Oturum ipucu varken yanlış "Giriş Yap" metnini gizle; layout'u saklama */
html.auth-has-session:not([data-auth-hydrated="1"]) .arch-header-auth-guest-only,
html.auth-has-session:not([data-auth-hydrated="1"]) #header-login-fallback {
  visibility: hidden;
  pointer-events: none;
}

.arch-header-auth-pending,
.ag-header-auth-pending {
  display: none;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 42px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--arch-btn-frame-border, rgba(9, 9, 11, 0.12));
  color: var(--arch-text-muted, #71717a);
  pointer-events: none;
}

.arch-header-auth-pending .arch-header-pill-content,
.ag-header-auth-pending .ag-header-pill-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
