/* Active mobile bottom navigation — white selection must be visible without JS. */
.mobile-nav{isolation:isolate!important;position:fixed!important}
.mobile-nav .nav-follow-bubble{display:none!important}
/* High-specificity override for all earlier midnight/green/purple themes. */
body .mobile-nav>button[data-view]{
  position:relative!important;
  z-index:1!important;
  background:transparent!important;
  color:#bfc5d3!important;
  border:1px solid transparent!important;
  border-radius:17px!important;
  box-shadow:none!important;
  transition:background-color .23s ease,color .23s ease,border-color .23s ease,box-shadow .23s ease,transform .2s ease!important;
  -webkit-tap-highlight-color:transparent;
}
body .mobile-nav>button[data-view].active,
body .mobile-nav>button[data-view][aria-current="page"],
body:has(#homeView:not(.hidden)) .mobile-nav>button[data-view].active{
  background:#ffffff!important;
  color:#172130!important;
  border:1px solid #ffffff!important;
  box-shadow:0 4px 14px #00000038,inset 0 1px 0 #ffffff!important;
  font-weight:850!important;
  animation:l1017NavWhiteAppear .25s cubic-bezier(.2,.8,.25,1) both;
}
body .mobile-nav>button[data-view].active .nav-icon,
body .mobile-nav>button[data-view][aria-current="page"] .nav-icon,
body .mobile-nav>button[data-view].active .l1017-icon,
body .mobile-nav>button[data-view].active>svg{
  color:#172130!important;
  stroke:#172130!important;
  filter:none!important;
}
body .mobile-nav>button[data-view].active span,
body .mobile-nav>button[data-view][aria-current="page"] span{
  color:#172130!important;
}
body .mobile-nav>button[data-view]:not(.active):not([aria-current="page"]) span{
  color:inherit!important;
}
body .mobile-nav>button[data-view]:active{transform:scale(.96)}
body .mobile-nav>button[data-view]:focus-visible{
  outline:2px solid #ffffff!important;outline-offset:3px!important;
}
@keyframes l1017NavWhiteAppear{
  0%{transform:scale(.91)}
  65%{transform:scale(1.035)}
  100%{transform:scale(1)}
}
@media(prefers-reduced-motion:reduce){
 body .mobile-nav>button[data-view]{
   animation:none!important;transition:none!important;
 }
}


/* Stable bottom tab ordering on all supported iPhones:
   visual RTL from right to left: Home, Orders, Leaderboard, Wallet, Account.
   Explicit CSS order survives other scripts inserting/reordering nodes. */
@media(max-width:850px){
  html body nav.mobile-nav{
    display:flex!important;
    flex-direction:row!important;
    direction:rtl!important;
    justify-content:space-around!important;
    align-items:stretch!important;
  }
  html body nav.mobile-nav > button[data-view]{
    flex:1 1 20%!important;
    min-width:0!important;
    max-width:20%!important;
    box-sizing:border-box!important;
    position:relative!important;
  }
  html body nav.mobile-nav > button[data-view="home"]{order:1!important}
  html body nav.mobile-nav > button[data-view="orders"]{order:2!important}
  html body nav.mobile-nav > button[data-view="leaderboard"]{order:3!important}
  html body nav.mobile-nav > button[data-view="wallet"]{order:4!important}
  html body nav.mobile-nav > button[data-view="account"]{order:5!important}
  html body nav.mobile-nav > .nav-follow-bubble{display:none!important}
}
