/* VF_MOBILE_FOOTER_FIXED_V1
 * Mobile navigation only. No transaction controls, service fees, or auth changes.
 * The dashboard dock is moved out of its scrolling app subtree by companion JS.
 */
@media (max-width: 768px) {
  body[data-section="dashboard"] > .vf-persistent-dock-v1 {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    padding: 5px 7px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    background: #fffffffa !important;
    border-top: 1px solid #eef0f9 !important;
    box-shadow: 0 -8px 25px #293b6709 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 900 !important;
    box-sizing: border-box;
  }
  body[data-section="dashboard"] > .vf-persistent-dock-v1 a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    font: 650 9px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #77839e;
    text-decoration: none;
  }
  body[data-section="dashboard"] > .vf-persistent-dock-v1 .dw-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex: 0 0 28px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }
  body[data-section="dashboard"] > .vf-persistent-dock-v1 .dw-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body[data-section="dashboard"] > .vf-persistent-dock-v1 a[aria-current="page"] {
    color: #5f4fe0;
    font-weight: 800;
  }
  body[data-section="dashboard"] > .vf-persistent-dock-v1 a:focus-visible {
    outline: 2px solid #6557e8;
    outline-offset: -2px;
    border-radius: 10px;
  }
  /* The existing bottom-sheet needs to be above the persistent dock. */
  body[data-section="dashboard"]:has(#vfDWApp .dw-sheet:not([hidden])) > .vf-persistent-dock-v1 {
    visibility: hidden !important;
    pointer-events: none !important;
  }
  body[data-section="dashboard"] #vfDWApp {
    padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Transaction mobile shell already contains the live desktop nav, but v2
     mobile CSS hides it explicitly. Restore just that nav, above the browser UI. */
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav {
    display: grid !important;
    position: fixed !important;
    top: auto !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    min-height: 65px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 90 !important;
    background: rgba(255, 255, 255, .97) !important;
    border: 1px solid #e8ebf7 !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 24px #293b671c !important;
    padding: 6px !important;
    box-sizing: border-box !important;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav a {
    display: flex !important;
    min-height: 49px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    text-decoration: none;
    font-size: 9px !important;
    font-weight: 750;
    color: #66728b;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav a.active {
    color: #6254e7 !important;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav a.center {
    transform: none !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #66728b !important;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav a.center.active {
    color: #6254e7 !important;
    background: #f4f0ff !important;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vf-app > nav[data-vf-mobile].vf-mobile-nav a.center span {
    display: inline !important;
  }
  body.vfx-transaction:is([data-section="send"], [data-section="receive"])
    .vfx-app {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Preserve the native modal: it must cover the navigation. */
  body.vfx-transaction.vfx-menu-open
    .vf-app > nav[data-vf-mobile].vf-mobile-nav {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (min-width: 769px) {
  body > .vf-persistent-dock-v1 { display: none !important; }
}
