:root {
  --mn-bg: #0d0f14;      /* match the site background, not a hard black bar */
  --mn-text: #8e8e92;    /* Bitget inactive = rgb(142,142,146) */
  --mn-active: #f5f7fa;   /* Bitget active = near-black on light; near-white for our dark */
  --mn-brand: #00b8d4;
}

.mobile-app-nav {
  display: none;
}

@media (max-width: 768px) {
  body.has-mobile-nav {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .mobile-app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--mn-bg);
    border-top: none;                 /* Bitget's bar has no top border */
    padding: 5px 0 calc(6px + env(safe-area-inset-bottom));  /* Bitget: 5px top */
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
  }

  .mobile-app-nav a {
    text-decoration: none;
    color: var(--mn-text);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 3px 0;
    transition: color 0.18s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-app-nav .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-app-nav .nav-icon svg {
    width: 24px;                        /* Bitget glyphs are 24×24 */
    height: 24px;
    display: block;
  }

  .mobile-app-nav .nav-label {
    font-size: 12px;                    /* Bitget uses 14px; 12px keeps our
                                          longer labels off two lines at 375 */
    font-weight: 400;                   /* Bitget: 400 in both states */
    letter-spacing: 0;
    line-height: 1;
  }

  .mobile-app-nav a.active,
  .mobile-app-nav a[aria-current='page'] {
    color: var(--mn-active);           /* colour-only active state, like Bitget */
  }
}
