/* AIMinEdu Member Pro 5.9 — isolated mobile navigation */
.aimme-mobile-auth-menu-item:not(.aimme-kadence-account-item) {
  display: none !important;
}

.aimme-mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  #mobile-site-navigation .aimme-mobile-auth-menu-item,
  .mobile-navigation .aimme-mobile-auth-menu-item,
  .popup-drawer .aimme-mobile-auth-menu-item,
  .drawer-nav-drop-wrap .aimme-mobile-auth-menu-item,
  .mobile-menu-container .aimme-mobile-auth-menu-item {
    display: list-item !important;
  }

  .aimme-mobile-auth-menu-item > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    color: #2f5f9f !important;
    font-weight: 750 !important;
  }

  .aimme-mobile-menu-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    color: #4285f4;
    background: #edf5ff;
  }

  .aimme-mobile-menu-icon svg {
    width: 18px;
    height: 18px;
  }

  body.aimme-has-mobile-navigation {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.aimme-has-mobile-navigation #page,
  body.aimme-has-mobile-navigation .site {
    min-height: calc(100vh - 74px);
  }

  /* FluentCommunity can own its own viewport scroller, so body padding alone
     does not always keep the final post or menu item above the fixed bar. */
  body.aimme-has-mobile-navigation #fluent_community_app,
  body.aimme-has-mobile-navigation .fluent-community-app,
  body.aimme-has-mobile-navigation .fcom_main_container,
  body.aimme-has-mobile-navigation .fcom_resp_container {
    box-sizing: border-box;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .aimme-mobile-bottom-nav {
    position: fixed;
    z-index: 99990;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(210, 220, 234, .88);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -10px 30px rgba(38, 59, 91, .08);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
  }

  .aimme-mobile-bottom-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .aimme-mobile-bottom-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 16px;
    color: #7b8798 !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease, background .16s ease, transform .16s ease;
  }

  .aimme-mobile-bottom-item:active {
    transform: scale(.96);
  }

  .aimme-mobile-bottom-item:hover,
  .aimme-mobile-bottom-item:focus-visible,
  .aimme-mobile-bottom-item.is-active {
    color: #2f73df !important;
    background: #edf5ff;
    outline: none;
  }

  .aimme-mobile-bottom-item.is-active::before {
    position: absolute;
    top: 3px;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #4285f4;
    content: "";
  }

  .aimme-mobile-bottom-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
  }

  .aimme-mobile-bottom-icon svg {
    width: 22px;
    height: 22px;
  }

  body.admin-bar .aimme-mobile-bottom-nav {
    bottom: 0;
  }
}

@media (max-width: 360px) {
  .aimme-mobile-bottom-nav {
    padding-inline: 5px;
  }

  .aimme-mobile-bottom-item {
    border-radius: 13px;
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aimme-mobile-bottom-item {
    transition: none;
  }
}
