.wh-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  .wh-mobile-nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(var(--wh-mobile-nav-count, 5), minmax(0, 1fr));
    align-items: start;
    padding: 7px 8px env(safe-area-inset-bottom);
    border-top: 1px solid #e8edf3;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -6px 20px rgba(27, 63, 100, .06);
    backdrop-filter: blur(12px);
    animation: wh-nav-enter .5s cubic-bezier(.2, .8, .2, 1) both;
  }

  .wh-mobile-nav::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 8%;
    left: 8%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(7, 141, 251, .22), #49d9ff, rgba(7, 141, 251, .22), transparent);
    box-shadow: 0 0 8px rgba(73, 217, 255, .35);
    pointer-events: none;
  }

  .wh-mobile-nav > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 3px 2px 4px;
    border-radius: 14px;
    color: #697586;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 8px;
    line-height: 1.35;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s ease, background-color .25s ease, transform .25s ease, filter .25s ease;
  }

  .wh-mobile-nav > a.is-active {
    color: #078dfb;
  }

  .wh-mobile-nav > a:not(.wh-mobile-nav__scan).is-active {
    background: linear-gradient(180deg, rgba(7, 141, 251, .1), rgba(73, 217, 255, .035));
    filter: drop-shadow(0 3px 7px rgba(7, 141, 251, .12));
    animation: wh-nav-active-float 2.8s ease-in-out infinite;
  }

  .wh-mobile-nav > a:not(.wh-mobile-nav__scan)::after {
    content: "";
    position: absolute;
    right: 36%;
    bottom: 0;
    left: 36%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.25);
    transition: opacity .25s ease, transform .25s ease;
  }

  .wh-mobile-nav > a:not(.wh-mobile-nav__scan).is-active::after {
    opacity: .8;
    transform: scaleX(1);
    box-shadow: 0 0 7px currentColor;
  }

  .wh-mobile-nav > a:not(.wh-mobile-nav__scan):active {
    background: rgba(7, 141, 251, .12);
    transform: scale(.92);
  }

  .wh-mobile-nav > a > svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease, filter .25s ease;
  }

  .wh-mobile-nav > a:not(.wh-mobile-nav__scan).is-active > svg {
    filter: drop-shadow(0 2px 4px rgba(7, 141, 251, .28));
  }

  .wh-mobile-nav .wh-mobile-nav__scan {
    position: relative;
    z-index: 2;
    width: 54px;
    min-width: 54px;
    height: 54px;
    justify-self: center;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: visible;
    border: 5px solid #e8f4ff;
    border-radius: 50%;
    color: #fff !important;
    background: #078dfb;
    box-shadow: 0 6px 14px rgba(0, 105, 231, .3);
    transform: translateY(-18px);
    isolation: isolate;
    animation: wh-nav-scan-breathe 2.6s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .25s ease;
  }

  .wh-mobile-nav .wh-mobile-nav__scan::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -7px;
    border: 1px solid rgba(7, 141, 251, .45);
    border-radius: 50%;
    pointer-events: none;
    animation: wh-nav-scan-pulse 2.6s ease-out infinite;
  }

  .wh-mobile-nav .wh-mobile-nav__scan::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 45%, rgba(255, 255, 255, .7) 52%, transparent 60% 100%);
    opacity: .55;
    pointer-events: none;
    animation: wh-nav-scan-orbit 3.8s linear infinite;
  }

  .wh-mobile-nav .wh-mobile-nav__scan:active {
    transform: translateY(-18px) scale(.9);
    box-shadow: 0 3px 9px rgba(0, 105, 231, .24);
  }

  .wh-mobile-nav .wh-mobile-nav__scan > svg {
    position: relative;
    z-index: 3;
    width: 27px;
    height: 27px;
    display: block;
    overflow: visible;
    color: #fff !important;
    fill: none !important;
    stroke: #fff !important;
    opacity: 1;
    visibility: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 58, 160, .25));
    animation: wh-nav-scan-icon 2.6s ease-in-out infinite;
  }

  @keyframes wh-nav-enter {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes wh-nav-active-float {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-2px);
    }
  }

  @keyframes wh-nav-scan-breathe {
    0%,
    100% {
      box-shadow: 0 6px 14px rgba(0, 105, 231, .3);
    }

    50% {
      box-shadow: 0 8px 22px rgba(0, 166, 255, .48), 0 0 12px rgba(73, 217, 255, .25);
    }
  }

  @keyframes wh-nav-scan-pulse {
    0% {
      opacity: .75;
      transform: scale(.86);
    }

    75%,
    100% {
      opacity: 0;
      transform: scale(1.32);
    }
  }

  @keyframes wh-nav-scan-orbit {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes wh-nav-scan-icon {
    0%,
    100% {
      transform: scale(1);
    }

    50% {
      transform: scale(1.08);
    }
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .wh-mobile-nav,
  .wh-mobile-nav *,
  .wh-mobile-nav *::before,
  .wh-mobile-nav *::after {
    animation: none !important;
    transition: none !important;
  }
}
