/* BankMovie V148.62
   Reverts the over-compressed V148.61 mobile header and keeps only a cleaner polish.
   Homepage hero remains excluded from the internal-page halo. */
@media (max-width: 991.98px) {
  /* Restore the proven mobile proportions from V148.60. */
  html body #siteHeader,
  html body #siteHeader.header,
  html body #siteHeader.header-admin {
    min-height: 68px !important;
    height: auto !important;
  }

  html body #siteHeader .header-inner,
  html body #siteHeader.header-admin .header-inner {
    width: calc(100% - 12px) !important;
    min-height: 58px !important;
    height: 58px !important;
    margin-top: 2px !important;
    padding: 0 8px !important;
    gap: 7px !important;
    border-radius: 29px !important;
  }

  html body #siteHeader .logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 42vw !important;
    height: 46px !important;
    z-index: 35 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body #siteHeader .bm-header-logo-img {
    width: auto !important;
    height: 38px !important;
    max-height: 38px !important;
    max-width: 136px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.38)) !important;
  }

  html body #siteHeader .header-actions {
    width: 100% !important;
    height: 58px !important;
    gap: 7px !important;
  }

  html body #siteHeader .menu-btn,
  html body #siteHeader .bm-header-collection,
  html body #siteHeader .notif-bell,
  html body #siteHeader .bm-header-search,
  html body #siteHeader .bm-header-search-trigger,
  html body #siteHeader .user-trigger,
  html body #siteHeader .auth-trigger {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 12px !important;
  }

  html body #siteHeader .menu-btn svg,
  html body #siteHeader .bm-header-collection svg,
  html body #siteHeader .notif-bell svg,
  html body #siteHeader .bm-header-search-content svg,
  html body #siteHeader .user-trigger svg,
  html body #siteHeader .auth-trigger svg {
    width: 18px !important;
    height: 18px !important;
  }

  html body #siteHeader .notif-badge {
    top: 7px !important;
    right: 7px !important;
  }

  /* Internal pages: crisp blue outline, not a large fuzzy green-blue cloud. */
  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]) .header-inner,
  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]).header-admin .header-inner {
    border: 1px solid rgba(104, 207, 255, .48) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.065),
      0 0 0 1px rgba(56, 160, 255, .10),
      0 0 7px rgba(43, 166, 255, .18),
      0 6px 16px rgba(0, 8, 22, .16) !important;
  }

  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]) .header-inner::before {
    inset: -1px !important;
    border-radius: 30px !important;
    background: rgba(55, 177, 255, .10) !important;
    filter: blur(5px) !important;
    opacity: .48 !important;
  }

  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]) .header-inner::after {
    inset: 0 !important;
    border-radius: 29px !important;
    border: 1px solid rgba(221, 246, 255, .11) !important;
    box-shadow: none !important;
  }

  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]).is-mobile-surface-transparent .header-inner {
    border-color: rgba(104, 207, 255, .40) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 0 0 1px rgba(56, 160, 255, .08),
      0 0 6px rgba(43, 166, 255, .14) !important;
  }

  html body #siteHeader[data-bm-page]:not([data-bm-page="index.php"]).is-mobile-surface-transparent .header-inner::before {
    opacity: .36 !important;
  }
}

@media (max-width: 380px) {
  html body #siteHeader .bm-header-logo-img {
    height: 35px !important;
    max-height: 35px !important;
    max-width: 126px !important;
  }
}
