/**
 * Header Responsive — Universal app-header fix
 * TopStars.io Cerulean Dark Glass theme
 * Supports: PC (≥1200px), Tablet (768–1199px), Phone (≤767px)
 * iPhone safe-area, Android Chrome, Mac Safari, resize-proof
 * v2 — 2026-09-28
 */

/* ══════════════════════════════════════════════════════════════════════
   0. CSS Custom Properties for header dimensions
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --hdr-h: 64px;
  --hdr-bg: linear-gradient(180deg, rgba(16, 17, 24, 0.96) 0%, rgba(12, 13, 18, 0.98) 100%);
  --hdr-blur: 20px;
  --hdr-border: rgba(255, 255, 255, 0.06);
  --hdr-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --hdr-z: 1100;
}

/* Mobile: shorter header */
@media (max-width: 767.98px) {
  :root {
    --hdr-h: 56px;
    --navbar-h: 56px;
  }
}

/* Desktop & tablet: standard header */
@media (min-width: 768px) {
  :root {
    --hdr-h: 64px;
    --navbar-h: 64px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   1. App-Header Base — consistent across all viewports
   ══════════════════════════════════════════════════════════════════════ */
.app-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--sidebar-w, 0px) !important;
  z-index: var(--hdr-z) !important;
  height: var(--hdr-h) !important;
  min-height: var(--hdr-h) !important;
  max-height: var(--hdr-h) !important;
  background: var(--hdr-bg) !important;
  backdrop-filter: blur(var(--hdr-blur)) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(var(--hdr-blur)) saturate(1.8) !important;
  border-bottom: 1px solid var(--hdr-border) !important;
  border-left: none !important;
  box-shadow: var(--hdr-shadow) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  /* Smooth sidebar open/close transition */
  transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              right 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  /* iPhone safe area */
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

/* RTL mirror */
[dir="rtl"] .app-header {
  left: 0 !important;
  right: var(--sidebar-w, 0px) !important;
  border-left: none !important;
  border-right: none !important;
}

/* Mobile: full-width header */
@media (max-width: 767.98px) {
  .app-header {
    left: 0 !important;
    right: 0 !important;
  }
  [dir="rtl"] .app-header {
    right: 0 !important;
  }
}

/* Sidebar collapsed state */
.app-header.sidebar-inact {
  left: 80px !important;
}
[dir="rtl"] .app-header.sidebar-inact {
  left: 0 !important;
  right: 80px !important;
}
@media (max-width: 767.98px) {
  .app-header.sidebar-inact {
    left: 0 !important;
  }
  [dir="rtl"] .app-header.sidebar-inact {
    right: 0 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   2. Header Inner — flexbox layout engine
   ══════════════════════════════════════════════════════════════════════ */
.app-header .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

@media (max-width: 767.98px) {
  .app-header .header-inner {
    padding: 0 10px !important;
    gap: 4px !important;
  }
}

@media (max-width: 359px) {
  .app-header .header-inner {
    padding: 0 6px !important;
    gap: 2px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   3. Header Left — menu button + logo
   ══════════════════════════════════════════════════════════════════════ */
.header-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

/* Menu hamburger button */
.dash-menu-btn {
  flex-shrink: 0 !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.dash-menu-btn .icon {
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
  line-height: 38px !important;
  text-align: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  transition: all 0.2s ease !important;
}

.dash-menu-btn:hover .icon {
  background: rgba(245, 197, 24, 0.15) !important;
  border-color: rgba(245, 197, 24, 0.35) !important;
  color: #f5c518 !important;
}

@media (max-width: 767.98px) {
  .dash-menu-btn .icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    line-height: 34px !important;
    border-radius: 8px !important;
  }
}

/* Logo */
.header-logo {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  flex-shrink: 1 !important;
}

.header-logo a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  color: #fff !important;
  min-width: 0 !important;
}

.header-logo img {
  max-height: 30px !important;
  max-width: 140px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.header-site-name {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 160px !important;
}

@media (max-width: 767.98px) {
  .header-logo img {
    max-height: 26px !important;
    max-width: 100px !important;
  }
  .header-site-name {
    font-size: 14px !important;
    max-width: 90px !important;
  }
}

@media (max-width: 359px) {
  .header-logo img {
    max-height: 22px !important;
    max-width: 70px !important;
  }
  .header-site-name {
    font-size: 12px !important;
    max-width: 60px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   4. Header Actions — right side items
   ══════════════════════════════════════════════════════════════════════ */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  min-width: 0 !important;
  margin-left: auto !important;
}

@media (max-width: 767.98px) {
  .header-actions {
    gap: 3px !important;
  }
}

/* ── Action buttons (currency, language, account, logout) ── */
.app-header .header-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-header .header-btn .icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 18px !important;
  line-height: 36px !important;
  text-align: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  transition: all 0.2s ease !important;
}

.app-header .header-btn:hover .icon,
.app-header .header-btn:focus .icon {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Guard: Logout Door Button (ri-door-open-line) must NEVER be hidden */
.app-header .header-btn.header-btn-logout,
.app-header .header-btn:has(.ri-door-open-line),
.app-header .header-btn:has(.logout) {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

.app-header .header-btn .icon.logout,
.app-header .header-btn.header-btn-logout .icon.logout {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.app-header .header-btn .icon.logout:hover,
.app-header .header-btn.header-btn-logout .icon.logout:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fff !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
}

/* ── Icon logout2 styling (Language, Currency, Account buttons) ── */
.app-header .header-btn .icon.logout2,
.header-btn .icon.logout2,
.login-topbar .hdr-dd-wrap .header-btn .icon.logout2,
.pub-topbar .hdr-dd-wrap .header-btn .icon.logout2 {
  width: 38px !important;
  height: 38px !important;
  font-size: 19px !important;
  line-height: 36px !important;
  text-align: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  opacity: 1 !important;
  vertical-align: middle !important;
}

.app-header .header-btn:hover .icon.logout2,
.app-header .header-btn:focus .icon.logout2,
.header-btn:hover .icon.logout2,
.header-btn:focus .icon.logout2,
.hdr-dd-wrap:hover .header-btn .icon.logout2,
.hdr-dd-wrap.open .header-btn .icon.logout2,
.app-header .hdr-dd-wrap.open .header-btn .icon.logout2,
.login-topbar .hdr-dd-wrap .header-btn:hover .icon.logout2,
.login-topbar .hdr-dd-wrap.open .header-btn .icon.logout2,
.pub-topbar .hdr-dd-wrap .header-btn:hover .icon.logout2,
.pub-topbar .hdr-dd-wrap.open .header-btn .icon.logout2 {
  background: rgba(245, 197, 24, 0.15) !important;
  border-color: rgba(245, 197, 24, 0.45) !important;
  color: #f5c518 !important;
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.22) !important;
  transform: translateY(-1px);
}

.app-header .header-btn .icon.logout2 > i,
.header-btn .icon.logout2 > i {
  pointer-events: none !important;
  font-size: 19px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.app-header .header-btn i.ri-door-open-line,
.app-header .header-btn.header-btn-logout i.ri-door-open-line {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Guard: Account button stays pinned */
.app-header .header-btn.header-btn-account,
.app-header .header-btn:has(.ri-user-3-line) {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* Mobile icon sizing */
@media (max-width: 767.98px) {
  .app-header .header-btn .icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
    line-height: 32px !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 359px) {
  .app-header .header-btn .icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    line-height: 28px !important;
    border-radius: 6px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   5. TopStars Wallet Chip — Compact Luxury Pill
   ══════════════════════════════════════════════════════════════════════ */
.topstars-wallet-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: rgba(245, 197, 24, 0.1) !important;
  border: 1px solid rgba(245, 197, 24, 0.3) !important;
  border-radius: 18px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  user-select: none !important;
}

.topstars-wallet-chip:hover {
  background: rgba(245, 197, 24, 0.18) !important;
  border-color: rgba(245, 197, 24, 0.5) !important;
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.15) !important;
}

.topstars-wallet-chip .ts-wallet-icon {
  color: #f5c518 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.topstars-wallet-chip .ts-wallet-amt {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.topstars-wallet-chip .ts-wallet-sec {
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-weight: 500 !important;
}

.topstars-wallet-chip .ts-tier-badge {
  background: rgba(245, 197, 24, 0.18) !important;
  border: 1px solid rgba(245, 197, 24, 0.35) !important;
  color: #f5c518 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 1.5px 5px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  flex-shrink: 0 !important;
}

.topstars-wallet-chip .ts-topup-btn {
  background: #f5c518 !important;
  color: #121319 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  margin-left: 2px !important;
  flex-shrink: 0 !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
}

.topstars-wallet-chip .ts-topup-btn:hover {
  background: #ffd747 !important;
  transform: scale(1.15) !important;
  color: #000 !important;
}

/* Hide wallet chip below sm to guarantee header actions fit comfortably */
@media (max-width: 575.98px) {
  .hdr-dd-wrap:has(.topstars-wallet-chip),
  .hdr-dd-wrap.d-none.d-sm-inline-flex {
    display: none !important;
  }
}

/* Tablet (576–767px): hide tier badge to keep chip under 90px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .topstars-wallet-chip {
    padding: 3px 6px !important;
    gap: 4px !important;
  }
  .topstars-wallet-chip .ts-tier-badge {
    display: none !important;
  }
  .topstars-wallet-chip .ts-wallet-sec {
    display: none !important;
  }
}

/* Medium screens (768–1199px): hide secondary currency */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .topstars-wallet-chip .ts-wallet-sec {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   6. Social Badges — progressive disclosure
   ══════════════════════════════════════════════════════════════════════ */
.header-social-badges {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

/* ≤1440px: collapse social badge text to icon-only pills so header never overflows */
@media (max-width: 1440px) {
  .header-social-badges .sc-text {
    display: none !important;
  }
  .header-social-badges .sc-badge {
    padding-right: 0 !important;
    border-radius: 50% !important;
  }
}

/* ≤991px: hide social badges completely so action buttons & wallet chip never overflow */
@media (max-width: 991.98px) {
  .header-social-badges {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   7. Dropdown Menus — positioned correctly on all viewports
   ══════════════════════════════════════════════════════════════════════ */
.hdr-dd-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.hdr-dd-wrap .dropdown-content {
  display: none;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 99999 !important;
  min-width: 165px !important;
  max-width: 270px !important;
  max-height: min(380px, 72vh) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(245, 197, 24, 0.45) rgba(255, 255, 255, 0.04) !important;
  background: rgba(22, 24, 34, 0.97) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 6px 0 !important;
  margin-top: 0 !important;
}

.hdr-dd-wrap.open .dropdown-content,
.hdr-dd-wrap .dropdown-content.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hdr-dd-wrap .dropdown-content::-webkit-scrollbar {
  width: 5px !important;
}
.hdr-dd-wrap .dropdown-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 6px !important;
}
.hdr-dd-wrap .dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(245, 197, 24, 0.4) !important;
  border-radius: 6px !important;
}
.hdr-dd-wrap .dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #f5c518 !important;
}

/* RTL dropdown flip */
[dir="rtl"] .hdr-dd-wrap .dropdown-content {
  right: auto !important;
  left: 0 !important;
}

/* Specific styling for language dropdown */
.hdr-dd-wrap .dropdown-content.langs-btn-content {
  min-width: 175px !important;
}

.hdr-dd-wrap .dropdown-content.langs-btn-content a {
  border-left: 3px solid transparent !important;
}
.hdr-dd-wrap .dropdown-content.langs-btn-content a:hover {
  border-left-color: #f5c518 !important;
  padding-left: 19px !important;
}
.hdr-dd-wrap .dropdown-content.langs-btn-content a.active {
  background: rgba(245, 197, 24, 0.18) !important;
  color: #f5c518 !important;
  font-weight: 700 !important;
  border-left-color: #f5c518 !important;
}

[dir="rtl"] .hdr-dd-wrap .dropdown-content.langs-btn-content a {
  border-left: none !important;
  border-right: 3px solid transparent !important;
}
[dir="rtl"] .hdr-dd-wrap .dropdown-content.langs-btn-content a:hover {
  border-right-color: #f5c518 !important;
  padding-right: 19px !important;
  padding-left: 16px !important;
}
[dir="rtl"] .hdr-dd-wrap .dropdown-content.langs-btn-content a.active {
  border-right-color: #f5c518 !important;
}

/* Mobile dropdown: wider and make sure it stays on-screen */
@media (max-width: 575.98px) {
  .hdr-dd-wrap .dropdown-content {
    right: -10px !important;
    min-width: 140px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 55vh !important;
    overflow-y: auto !important;
    border-radius: 10px !important;
  }
}

.hdr-dd-wrap .dropdown-content a {
  display: block !important;
  padding: 9px 16px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.hdr-dd-wrap .dropdown-content a:hover,
.hdr-dd-wrap .dropdown-content a.active {
  background: rgba(245, 197, 24, 0.12) !important;
  color: #f5c518 !important;
}

/* Touch-friendly dropdown items on mobile */
@media (max-width: 767.98px) {
  .hdr-dd-wrap .dropdown-content a {
    padding: 12px 16px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   8. Content area padding-top sync with header height
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .app-content,
  #mainContent {
    padding-top: calc(var(--hdr-h, 64px) + 20px) !important;
  }
}

@media (max-width: 767.98px) {
  .app-content,
  #mainContent {
    padding-top: calc(var(--hdr-h, 56px) + 12px) !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   9. iPhone / iOS Safe Area Insets
   ══════════════════════════════════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header {
    padding-top: env(safe-area-inset-top) !important;
    height: calc(var(--hdr-h) + env(safe-area-inset-top)) !important;
    min-height: calc(var(--hdr-h) + env(safe-area-inset-top)) !important;
    max-height: calc(var(--hdr-h) + env(safe-area-inset-top)) !important;
  }

  @media (max-width: 767.98px) {
    .app-content,
    #mainContent {
      padding-top: calc(var(--hdr-h, 56px) + env(safe-area-inset-top) + 12px) !important;
    }
  }

  @media (min-width: 768px) {
    .app-content,
    #mainContent {
      padding-top: calc(var(--hdr-h, 64px) + env(safe-area-inset-top) + 20px) !important;
    }
  }
}

/* ══════════════════════════════════════════════════════════════════════
   10. Sidebar close button — mobile only
   ══════════════════════════════════════════════════════════════════════ */
.close-sidebar-btn {
  position: absolute !important;
  top: 0 !important;
  right: -50px !important;
  height: 50px !important;
  width: 50px !important;
  color: #fff !important;
  background: rgba(16, 17, 24, 0.95) !important;
  line-height: 50px !important;
  text-align: center !important;
  border-radius: 0 0 16px 0 !important;
  display: none !important;
  cursor: pointer !important;
  z-index: 1200 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-size: 22px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.close-sidebar-btn:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

[dir="rtl"] .close-sidebar-btn {
  right: auto !important;
  left: -50px !important;
  border-radius: 0 0 0 16px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   11. Print mode — hide header
   ══════════════════════════════════════════════════════════════════════ */
@media print {
  .app-header {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   12. Landscape phone (short viewport height)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-height: 420px) and (orientation: landscape) {
  :root {
    --hdr-h: 48px;
  }
  .dash-menu-btn .icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
    line-height: 30px !important;
  }
  .app-header .header-btn .icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
    line-height: 28px !important;
  }
  .header-logo img {
    max-height: 22px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   13. Accessibility — focus indicators
   ══════════════════════════════════════════════════════════════════════ */
.dash-menu-btn:focus-visible .icon,
.app-header .header-btn:focus-visible .icon {
  outline: 2px solid rgba(245, 197, 24, 0.7) !important;
  outline-offset: 2px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   14. Prevent layout shift on browser resize
   ══════════════════════════════════════════════════════════════════════ */
.app-header,
.app-header .header-inner,
.header-left,
.header-actions {
  will-change: auto;
  contain: layout style;
}
