/* v45 — mobile-only fixed bottom navigation for Meganet. */
@media (max-width: 900px) {
  html { scroll-padding-bottom: 114px; }
  html body { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }

  html body .mg-sticky-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 3px;
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(calc(100% - 20px), 440px);
    max-width: 440px;
    min-width: 0;
    box-sizing: border-box;
    z-index: 190;
    padding: 8px 7px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background: rgba(12, 38, 24, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 36px rgba(2, 28, 13, .24);
  }
  html body .mg-sticky-item { position: relative; min-width: 0; }
  html body .mg-sticky-btn,
  html body .mg-sticky-link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 57px;
    min-width: 0;
    padding: 6px 2px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(255,255,255,.87);
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.015em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html body .mg-sticky-ico { display: block; width: 21px; height: 21px; flex: none; }
  html body .mg-sticky-item.open > .mg-sticky-btn,
  html body .mg-sticky-btn:focus-visible,
  html body .mg-sticky-link:focus-visible,
  html body .mg-sticky-btn:hover,
  html body .mg-sticky-link:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
    outline-offset: -2px;
  }
  html body .mg-sticky-pop {
    display: grid;
    gap: 7px;
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 16px);
    width: min(260px, calc(100vw - 26px));
    min-width: 0;
    max-width: calc(100vw - 26px);
    box-sizing: border-box;
    padding: 9px;
    border: 1px solid #dcece2;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(7,31,16,.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: transform .16s ease, opacity .16s ease, visibility .16s;
  }
  html body .mg-sticky-item.open > .mg-sticky-pop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  html body .mg-sticky-pop a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 13px;
    color: #163825;
    background: #f0f9f3;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
    white-space: normal;
  }
  html body .mg-sticky-pop a small {
    display: block;
    margin-top: 4px;
    color: #60796a;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
  }
  html body .mg-sticky-pop a:hover { background: #e6f4eb; }
  html body .floating-whatsapp,
  html body .floating-social {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
  }
  @media (prefers-reduced-motion: reduce) {
    html body .mg-sticky-pop { transition: none; }
  }
}
@media (min-width: 901px) {
  .mg-sticky-ico { display: none !important; }
}
