/* Navigasi bawah modern untuk HP mode portrait.
   Dimuat paling akhir agar menimpa gaya lama di styles.css. */

/* Avatar: lingkaran gradasi hangat dengan cincin tipis, berlaku di seluruh aplikasi. */
.avatar{
  background:linear-gradient(135deg,#fbe3c4 0%,#f2b97d 100%);
  color:#6b3f1c;
  letter-spacing:.3px;
  box-shadow:0 0 0 2px #fff,0 0 0 3px #f0d9bd,0 4px 10px #6b3f1c1f;
}

@media (max-width:760px) and (orientation:portrait){
  body{
    padding-bottom:calc(96px + env(safe-area-inset-bottom));
  }

  /* Bilah mengambang dengan sudut membulat, kaca buram, dan bayangan lembut. */
  .mobile-nav{
    left:12px;
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom));
    height:70px;
    padding:7px 6px;
    gap:2px;
    justify-content:space-between;
    align-items:center;
    border:1px solid #ffffffb3;
    border-radius:24px;
    background:linear-gradient(180deg,#ffffffe8,#f7faf5f2);
    box-shadow:0 14px 34px #1d3a2b26,0 2px 8px #1d3a2b14;
    backdrop-filter:blur(18px) saturate(1.5);
    -webkit-backdrop-filter:blur(18px) saturate(1.5);
    overflow-x:auto;
    scrollbar-width:none;
  }
  .mobile-nav::-webkit-scrollbar{display:none}

  .mobile-nav-item{
    flex:1 1 0;
    min-width:50px;
    height:58px;
    gap:3px;
    padding:0;
    border-radius:18px;
    color:#8a968c;
    transition:color .25s ease,transform .2s ease;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-nav-item:active{transform:scale(.92)}

  /* Ikon dibungkus pil agar mudah dipindai. */
  .mobile-nav-item>span{
    display:grid;
    place-items:center;
    width:46px;
    height:30px;
    border-radius:15px;
    font-size:18px;
    line-height:1;
    transition:background .3s ease,color .3s ease,box-shadow .3s ease,transform .3s ease;
  }
  .mobile-nav-item small{
    font-size:9.5px;
    font-weight:700;
    letter-spacing:.1px;
    line-height:1;
    white-space:nowrap;
  }

  /* Status aktif: pil hijau bergradasi dengan ikon sedikit terangkat. */
  .mobile-nav-item.active{color:var(--green)}
  .mobile-nav-item.active>span{
    background:linear-gradient(135deg,#2e754b 0%,#4e9b63 100%);
    color:#fff;
    box-shadow:0 6px 14px #2e754b40;
    transform:translateY(-2px);
  }

  /* Avatar Profil: foto inisial berbentuk lingkaran menggantikan ikon ◉. */
  .mobile-nav-item[data-view="akun"]>span{
    width:32px;
    height:32px;
    border-radius:50%;
    font-size:0;
    background:linear-gradient(135deg,#fbe3c4 0%,#f2b97d 100%);
    box-shadow:0 0 0 2px #fff,0 3px 8px #6b3f1c26;
  }
  .mobile-nav-item[data-view="akun"]>span::before{
    content:"AR";
    font:800 11px/1 'Plus Jakarta Sans',sans-serif;
    letter-spacing:.3px;
    color:#6b3f1c;
  }
  .mobile-nav-item[data-view="akun"].active>span{
    background:linear-gradient(135deg,#fbe3c4 0%,#f2b97d 100%);
    box-shadow:0 0 0 2px #fff,0 0 0 4px #4e9b63,0 6px 14px #2e754b33;
    transform:translateY(-2px);
  }
  .mobile-nav-item[data-view="akun"].active>span::before{color:#6b3f1c}

  .toast{bottom:calc(92px + env(safe-area-inset-bottom))}
}

@media (prefers-reduced-motion:reduce){
  .mobile-nav-item,.mobile-nav-item>span{transition:none}
}
