/* Only the mobile dock and its menu sheet are enhanced here. */
#mobile-app-nav { display: none; }
.mobile-navigation-overlay[hidden] { display: none !important; }
.mobile-navigation-overlay .mobile-navigation-sheet-close { cursor: pointer; }
@media (max-width: 768px) {
  #mobile-app-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; left: 10px; right: 10px; width: auto; max-width: 510px; margin-inline: auto; bottom: calc(10px + env(safe-area-inset-bottom,0px)); height: auto; min-height: 76px; padding: 5px; z-index: 9999; border: 1px solid rgba(226,237,250,.2); border-radius: 25px; background: rgba(25,38,55,.88); backdrop-filter: blur(28px) saturate(130%); -webkit-backdrop-filter: blur(28px) saturate(130%); box-shadow: 0 8px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.07); transition: opacity 180ms,transform 220ms; pointer-events: auto; }
  #mobile-app-nav .mobile-tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; width: auto; min-width: 0; min-height: 64px; height: auto; margin: 0; padding: 8px 1px; color: #cbd7e5; border: none; border-radius: 20px; background: none; box-shadow: none; backdrop-filter: none; text-decoration: none; cursor: pointer; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; position: relative; -webkit-tap-highlight-color: transparent; transition: color 180ms,background 180ms,transform 140ms; }
  #mobile-app-nav .mobile-tab-icon-wrap { width: 24px; height: 24px; display: block; margin: 0; padding: 0; color: inherit; filter: none; transform: none; background: none; box-shadow: none; }
  #mobile-app-nav .mobile-tab-icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: none; }
  #mobile-app-nav .mobile-tab-label { color: inherit; display: block; font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; overflow: visible; text-overflow: clip; max-width: none; }
  #mobile-app-nav .mobile-tab-item.active { color: #8ac5ff; background: rgba(95,164,236,.16); border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #mobile-app-nav .mobile-tab-item.active .mobile-tab-icon-wrap { color: inherit; filter: none; transform: none; }
  #mobile-app-nav .mobile-tab-item.active .mobile-tab-icon { stroke: currentColor; stroke-width: 1.8; }
  #mobile-app-nav .mobile-tab-item.active .mobile-tab-label { color: inherit; font-weight: 600; }
  #mobile-app-nav .mobile-tab-item::after,#mobile-app-nav .mobile-tab-item::before,#mobile-app-nav .mobile-tab-item.active::after { content: none; display: none; }
  #mobile-app-nav .mobile-tab-item:first-child.active,#mobile-app-nav .mobile-tab-item:last-child.active { margin: 0; height: auto; padding: 8px 1px; border-radius: 20px; }
  #mobile-app-nav .mobile-tab-item:active { transform: scale(.94); background: rgba(112,173,238,.15); }
  #mobile-app-nav .mobile-tab-item:focus-visible { outline: 2px solid #92ccff; outline-offset: -2px; }
  body.mobile-navigation-keyboard #mobile-app-nav { opacity: 0; visibility: hidden; transform: translateY(110px); pointer-events: none; }
  #mobile-menu.mobile-navigation-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: row; align-items: flex-end; justify-content: center; background: rgba(0,7,19,.56); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 24px 12px calc(96px + env(safe-area-inset-bottom,0px)); opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden; transition: opacity 220ms,visibility 220ms; }
  #mobile-menu.mobile-navigation-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .mobile-navigation-sheet { width: 100%; max-width: 460px; max-height: calc(100dvh - 126px - env(safe-area-inset-bottom,0px)); overflow-y: auto; overscroll-behavior: contain; padding: 10px 22px 22px; background: rgba(23,37,55,.98); border: 1px solid rgba(235,244,255,.2); border-radius: 27px; box-shadow: 0 18px 64px rgba(0,0,0,.35); transform: translateY(20px); transition: transform 340ms cubic-bezier(.2,.7,.2,1); color: #f3f6fb; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-align: left; }
  .mobile-navigation-overlay.open .mobile-navigation-sheet { transform: translateY(0); }
  .mobile-navigation-handle { width: 36px; height: 4px; background: #647488; border-radius: 5px; margin: 0 auto 17px; }
  .mobile-navigation-sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
  .mobile-navigation-sheet-heading p { color: #aebfd1; font-size: 10px; font-weight: 600; letter-spacing: .07em; margin: 0 0 5px; }
  .mobile-navigation-sheet-heading h2 { color: #f3f6fb; font-family: inherit; font-size: 24px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; margin: 0; }
  .mobile-navigation-sheet-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid rgba(218,234,250,.13); border-radius: 50%; color: #e9f2fb; background: #26374d; padding: 0; }
  .mobile-navigation-sheet-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-list { display: block; padding: 0; width: 100%; margin: 0 0 16px; background: none; border: none; box-shadow: none; border-radius: 0; backdrop-filter: none; max-height: none; overflow: visible; transform: none; transition: none; text-align: left; }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-list li { border-bottom: 1px solid rgba(218,234,250,.1); }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-list li:last-child { border-bottom: none; }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-link { display: flex; align-items: center; gap: 14px; min-height: 51px; padding: 14px 1px; color: #e3edf8; background: none; border: none; border-radius: 0; font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; text-transform: none; line-height: 1.45; }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-link svg { flex: none; width: 21px; height: 21px; color: #a6bdd4; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #mobile-menu.mobile-navigation-overlay .mobile-nav-link.active,#mobile-menu.mobile-navigation-overlay .mobile-nav-link:hover { color: #94caff; }
  .mobile-navigation-chevron { margin-left: auto; flex: none; font-size: 23px; color: #90a8c0; line-height: 1; }
  #mobile-menu.mobile-navigation-overlay .mobile-navigation-apply { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin: 0; padding: 13px 18px !important; background: #0879e9 !important; border: 1px solid #2790f3 !important; border-radius: 13px !important; color: white !important; box-shadow: none !important; font-family: inherit; font-size: 15px !important; font-weight: 600 !important; line-height: 1.4; text-align: center; }
  #mobile-menu.mobile-navigation-overlay .mobile-navigation-apply:hover { background: #188bf3 !important; }
  .mobile-navigation-terms { display: block; padding-top: 15px; text-align: center; color: #b9c9da; font-size: 12px; }
  .mobile-navigation-sheet :focus-visible { outline: 2px solid #92ccff; outline-offset: 3px; }
}
@media (min-width: 769px) {
  .mobile-navigation-sheet-heading,.mobile-navigation-handle,.mobile-navigation-terms { display: none; }
  .mobile-navigation-sheet { width: 100%; }
  #mobile-menu.mobile-navigation-overlay .mobile-navigation-apply { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  #mobile-app-nav,#mobile-app-nav *,#mobile-menu.mobile-navigation-overlay,#mobile-menu.mobile-navigation-overlay * { transition: none !important; animation: none !important; }
  #mobile-app-nav .mobile-tab-item:active,.mobile-navigation-sheet,.mobile-navigation-overlay.open .mobile-navigation-sheet { transform: none; }
}
@media (max-width: 768px) { #mobile-menu.mobile-navigation-overlay > .mobile-navigation-original-list { display: none !important; } }
@media (min-width: 769px) { #mobile-menu.mobile-navigation-overlay > .mobile-navigation-sheet { display: none; } }
/* One persistent lens moves between items rather than recreating five backgrounds. */
@media (max-width:768px) {
  #mobile-app-nav .mobile-tab-liquid { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 5); z-index: 0; border-radius: 20px; pointer-events: none; background: linear-gradient(155deg,rgba(174,218,255,.18),rgba(98,162,226,.12) 60%,rgba(54,119,180,.16)); border: 1px solid rgba(182,217,248,.23); box-shadow: inset 0 1px 0 rgba(239,248,255,.25), inset 0 -1px 0 rgba(126,174,222,.12),0 3px 12px rgba(0,0,0,.1); transform-origin: center; }
  #mobile-app-nav .mobile-tab-liquid::before { content: ''; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg,transparent,rgba(242,250,255,.65),transparent); }
  #mobile-app-nav .mobile-tab-item { z-index: 1; }
  #mobile-app-nav .mobile-tab-item.active { background: transparent; color: #b8dcff; }
  #mobile-app-nav .mobile-tab-icon-wrap { transition: transform 280ms cubic-bezier(.2,.75,.22,1); }
  #mobile-app-nav .mobile-tab-item.active .mobile-tab-icon-wrap { transform: translateY(-1px); }
  #mobile-app-nav .mobile-tab-item:active { background: rgba(156,204,249,.07); }
}
@media(prefers-reduced-motion:reduce) {
  #mobile-app-nav .mobile-tab-item.active .mobile-tab-icon-wrap { transform: none; }
}
@media (max-width:360px) {
  #mobile-app-nav .mobile-tab-label,#mobile-app-nav .mobile-tab-item.active .mobile-tab-label { font-size: 10.5px; font-weight: 500; }
}
