
/* OziWeb Android / mobile — fixed bottom navigation and compact header */
nav.ozi-mobile-bottom-nav {
  display: none !important;
}

@media screen and (max-width: 991.98px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html {
    scroll-padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Compact header: brand left, login/account button right. */
  header.user-header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }

  header.user-header .user-header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  header.user-header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  header.user-header .brand-logo {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }

  header.user-header .brand-text {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  header.user-header .brand-title {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  header.user-header .brand-sub {
    display: none !important;
  }

  header.user-header .user-nav-desktop,
  header.user-header .user-nav-toggle,
  header.user-header .user-nav-mobile {
    display: none !important;
    visibility: hidden !important;
    max-height: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  header.user-header .user-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  header.user-header .user-header-action {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: min(52vw, 220px) !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  header.user-header .user-avatar-mini {
    flex: 0 0 21px !important;
    width: 21px !important;
    min-width: 21px !important;
    height: 21px !important;
    min-height: 21px !important;
    margin: 0 !important;
  }

  header.user-header .user-hello {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: clamp(72px, 34vw, 170px) !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: clamp(11px, 3.2vw, 14px) !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Actual fixed bottom navigation */
  nav.ozi-mobile-bottom-nav,
  body nav.ozi-mobile-bottom-nav {
    position: fixed !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 2px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2147483000 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 64px !important;
    height: auto !important;
    margin: 0 !important;
    padding:
      6px max(6px, env(safe-area-inset-right, 0px))
      calc(6px + env(safe-area-inset-bottom, 0px))
      max(6px, env(safe-area-inset-left, 0px)) !important;
    border: 0 !important;
    border-top: 1px solid #e7e9ef !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 -6px 22px rgba(16,24,40,.12) !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    float: none !important;
  }

  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #667085 !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    text-decoration: none !important;
  }

  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item.is-active,
  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item[aria-current="page"] {
    background: #fff0f0 !important;
    color: #c9252b !important;
    font-weight: 800 !important;
  }

  .ozi-pwa-install {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media screen and (max-width: 360px) {
  header.user-header .user-header-inner {
    gap: 5px !important;
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  header.user-header .brand-logo {
    flex-basis: 37px !important;
    width: 37px !important;
    min-width: 37px !important;
    max-width: 37px !important;
    height: 37px !important;
    min-height: 37px !important;
    max-height: 37px !important;
  }

  header.user-header .user-header-action {
    max-width: 49vw !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  header.user-header .user-hello {
    max-width: 30vw !important;
    font-size: 11px !important;
  }

  nav.ozi-mobile-bottom-nav > a.ozi-bottom-nav-item span {
    font-size: 9px !important;
  }
}

@media screen and (min-width: 992px) {
  nav.ozi-mobile-bottom-nav {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}
