/* ============================================================
   MOBILE / TABLET BOTTOM NAVIGATION
   Shows on screens < 1024px. Desktop header unchanged.
   ============================================================ */

/* 1. Hide mobile navs on desktop */
.app-bottom-nav,
#mobile-app-header {
  display: none;
}

/* 2. Hide desktop header on mobile/tablet */
@media (max-width: 1023px) {
  .desktop-only-header,
  .light-header {
    display: none !important;
  }

  /* 3. Mobile App Top Header */
  #mobile-app-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #000;
    padding: 10px 16px 8px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  #mobile-app-header .mah-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }


  #mobile-app-header .mah-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  #mobile-app-header .mah-logo-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
  }

  #mobile-app-header .mah-brand {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
  }


  #mobile-app-header .mah-icons {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  #mobile-app-header .mah-icon {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    position: relative;
  }

  #mobile-app-header .mah-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #000;
  }

  #mobile-app-header .mah-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #mobile-app-header .mah-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 9px 12px;
    gap: 8px;
  }

  #mobile-app-header .mah-search-box i {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
  }

  #mobile-app-header .mah-search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: #fff;
  }

  #mobile-app-header .mah-search-box input::placeholder {
    color: rgba(255,255,255,0.5);
  }

  /* 4. Push page content below fixed header */
  body {
    padding-top: 115px !important;
  }

  /* 5. Show bottom nav */
  .app-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    align-items: center;
    justify-content: space-around;
    padding: 6px 0 10px 0;
    height: 62px;
  }

  .app-bottom-nav .abn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    gap: 3px;
    flex: 1;
    transition: color 0.2s;
    white-space: nowrap;
  }

  .app-bottom-nav .abn-item i {
    font-size: 20px;
    color: inherit;
  }

  .app-bottom-nav .abn-item:hover,
  .app-bottom-nav .abn-item.active {
    color: #111;
    font-weight: 700;
  }

  footer {
    padding-bottom: 70px !important;
  }
}


