.responsive-bottom-nav-shell {
  display: none;
}

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

  .u7x-footer .u7x-container {
    padding-bottom: 28px;
  }

  .u7x-bottom-note {
    margin-top: 28px;
  }

  .responsive-bottom-nav-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0;
  }

  .responsive-bottom-nav-bar {
    width: 100%;
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding: 34px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    pointer-events: auto;
    position: relative;
    overflow: visible;
    isolation: isolate;
  }

  @keyframes responsiveBottomGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .responsive-bottom-nav-bar::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-top: 1px solid rgb(248 161 0 / 54%);
    background:
      linear-gradient(135deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(18, 8, 43, 0.88) 34%,
        rgba(0, 0, 0, 0.84) 66%,
        rgba(0, 0, 0, 0.92) 100%);
    background-size: 220% 220%;
    animation: responsiveBottomGradient 3s ease-in-out infinite;
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
  }

  .responsive-bottom-nav-bar::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 26px;
    z-index: 1;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg,
      transparent,
      rgba(255, 204, 0, 0.64),
      rgba(139, 92, 246, 0.66),
      rgba(34, 211, 238, 0.58),
      transparent);
    opacity: 0.9;
    pointer-events: none;
  }

  .responsive-bottom-nav-item {
    min-width: 0;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(231, 234, 240, 0.38);
    text-decoration: none;
    border-radius: 18px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition:
      color .2s ease,
      transform .22s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .responsive-bottom-nav-item:hover,
  .responsive-bottom-nav-item:focus {
    color: rgba(231, 234, 240, 0.72);
    text-decoration: none;
    transform: translateY(-2px);
    outline: none;
  }

  .responsive-bottom-nav-item:active {
    transform: translateY(1px) scale(.97);
  }

  .responsive-bottom-nav-item.is-active {
    color: #fff;
  }

  .responsive-bottom-nav-icon {
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 17px;
    line-height: 1;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
  }

  .responsive-bottom-nav-item.is-active .responsive-bottom-nav-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .responsive-bottom-nav-item:hover .responsive-bottom-nav-icon,
  .responsive-bottom-nav-item:focus .responsive-bottom-nav-icon {
    background: rgba(139, 92, 246, 0.10);
  }

  .responsive-bottom-nav-text {
    max-width: 100%;
    font-size: 10.5px;
    line-height: 1.1;
    white-space: nowrap;
    transition: color .2s ease;
  }

  .responsive-bottom-nav-item.is-active .responsive-bottom-nav-text {
    background: linear-gradient(90deg, #a78bfa, #67e8f9);
    background-clip: text;
    font-weight: 800;
  }

  .responsive-bottom-nav-center {
    position: relative;
    align-self: end;
    color: #fff;
    background: transparent;
    transform: translateY(-14px);
    border-radius: 26px;
    transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
  }

  .responsive-bottom-nav-center:hover,
  .responsive-bottom-nav-center:focus {
    color: #fff;
    background: transparent;
    transform: translateY(-18px);
  }

  .responsive-bottom-nav-center:active {
    transform: translateY(-11px) scale(.97);
  }

  .responsive-bottom-nav-center-bubble {
    width: 72px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 24px;
    color: #fff;
    background:
      linear-gradient(#1c0f38, #160b2e) padding-box,
      linear-gradient(135deg, #f9cb45 0%, #8b5cf6 50%, #22d3ee 100%) border-box;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s ease;
  }

  .responsive-bottom-nav-center:hover .responsive-bottom-nav-center-bubble,
  .responsive-bottom-nav-center:focus .responsive-bottom-nav-center-bubble {
    box-shadow:
      0 22px 44px rgba(10, 5, 25, 0.65),
      0 10px 26px rgba(139, 92, 246, 0.50),
      0 0 0 7px rgba(139, 92, 246, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  .responsive-bottom-nav-center-bubble::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 21px;
    background:
      radial-gradient(circle at 26% 16%, rgba(249, 203, 69, 0.34), transparent 32%),
      radial-gradient(circle at 76% 84%, rgba(34, 211, 238, 0.20), transparent 36%),
      linear-gradient(148deg, rgba(139, 92, 246, 0.82), rgba(76, 29, 149, 0.48));
    pointer-events: none;
  }

  .responsive-bottom-nav-center-bubble::after {
    content: none;
  }

  .responsive-bottom-nav-center .responsive-bottom-nav-icon {
    width: 30px;
    height: 26px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    position: relative;
    z-index: 1;
  }

  .responsive-bottom-nav-center .responsive-bottom-nav-text {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    -webkit-text-fill-color: #fff;
    background: none;
  }
}

@media (max-width: 380px) {
  .responsive-bottom-nav-bar {
    min-height: 64px;
    border-radius: 0;
    padding-left: 6px;
    padding-right: 6px;
  }

  .responsive-bottom-nav-item {
    height: 52px;
    gap: 3px;
  }

  .responsive-bottom-nav-icon {
    width: 28px;
    height: 25px;
    font-size: 16px;
  }

  .responsive-bottom-nav-text {
    font-size: 9.5px;
  }

  .responsive-bottom-nav-center {
    transform: translateY(-12px);
  }

  .responsive-bottom-nav-center:hover,
  .responsive-bottom-nav-center:focus {
    transform: translateY(-15px);
  }

  .responsive-bottom-nav-center:active {
    transform: translateY(-9px) scale(.97);
  }

  .responsive-bottom-nav-center-bubble {
    width: 66px;
    height: 58px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .responsive-bottom-nav-bar,
  .responsive-bottom-nav-bar::before {
    animation: none !important;
  }
}

@media (min-width: 992px) {
  .responsive-bottom-nav-shell {
    display: none !important;
  }
}
