/* شريط تنقل سفلي ثابت للجوال بأيقونات 3D متحركة */
.bnav { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .topbar .top-actions, .topbar > .btn { display: none; }
  .topbar { justify-content: center; }
  .bnav[hidden] { display: none; }
  .bnav { display: flex; position: fixed; z-index: 50; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: flex-end; gap: 4px; padding: 12px 8px 8px; border-radius: 28px;
    background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(107,74,255,.14); box-shadow: rgba(60,30,190,.28) 0 18px 40px -14px, rgba(17,17,19,.08) 0 2px 8px; }
  .bn-i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 0; background: none; border: 0; font: inherit;
    color: var(--color-text-secondary); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; }
  .bn-i:hover { text-decoration: none; }
  .bn-i b { font-size: 12px; line-height: 16px; font-weight: 700; }
  .bn-i .i3d { --s: 44px; transition: transform .3s cubic-bezier(.2,.8,.2,1), filter .3s; filter: grayscale(.55) opacity(.8); }
  .bn-i .cube { animation: none; transform: rotateX(12deg) rotateY(-14deg); }
  .bn-i .g { animation: none; }
  .bn-i:active .i3d { transform: scale(.88); }
  .bn-i.on { color: var(--color-primary); }
  .bn-i.on .i3d { --s: 52px; transform: translateY(-14px); filter: none; }
  .bn-i.on .cube { animation: sway 4.5s ease-in-out infinite; }
  .bn-i.on .g-home { animation: gstore 3.4s ease-in-out infinite; }
  .bn-i.on .g-chart { animation: glayers 3s ease-in-out infinite; }
  .bn-i.on b { transform: translateY(-10px); }
  .bn-i.on::before { content: ""; position: absolute; }
  .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .bn-i .cube { animation: none !important; } }
