/* =========================================================
   HolyGlow V42 iPhone Stable Side Menu
   One clean iOS menu controller. No floating close button.
   ========================================================= */

html.hg-v42-ios #hgV39IosClosePill,
html.hg-v42-ios .hg-v39-ios-close-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.hg-v42-ios #settingsPanel {
  z-index: 2147482000 !important;
}

/* Closed = truly gone from the touch stack */
html.hg-v42-ios #settingsPanel:not(.open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(100%) !important;
}

/* Open = real tappable menu */
html.hg-v42-ios #settingsPanel.open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

html.hg-v42-ios #settingsPanel.open *,
html.hg-v42-ios #settingsPanel.open button,
html.hg-v42-ios #settingsPanel.open a {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html.hg-v42-ios #settingsPanel .menu-scroll-content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

/* App stays tappable when menu is closed */
html.hg-v42-ios #bottom-nav {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
}

html.hg-v42-ios #bottom-nav *,
html.hg-v42-ios #app-content,
html.hg-v42-ios #app-content *,
html.hg-v42-ios .global-feed-container,
html.hg-v42-ios .global-feed-container * {
  -webkit-tap-highlight-color: transparent !important;
}

html.hg-v42-ios #settingsPanel .fullscreen-back-btn {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
