.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 84px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, #1a7a45, #27ae60, #2ecc71);
    box-shadow: 0 -4px 18px rgba(39, 174, 96, 0.28);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    overflow: visible;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }

  .mb-nav-item,
  .mb-more-btn {
    min-height: 58px;
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.18s ease;
    width: 100%;
  }

  .mb-nav-item img,
  .mb-more-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .mb-nav-item.active,
  .mb-nav-item:hover,
  .mb-more-btn:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .more-wrap {
    position: relative;
  }

  .mb-more-menu {
    display: none;
    position: absolute;
    right: 6px;
    bottom: calc(100% + 10px);
    min-width: 185px;
    background: #fff;
    border: 1.5px solid #dfe7df;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: 6px;
  }

  .mb-more-menu.open {
    display: block;
  }

  .mb-more-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2b2b2b;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 12px;
    border-radius: 12px;
    transition: background 0.16s ease, color 0.16s ease;
  }

  .mb-more-link:hover {
    background: #edf9f1;
    color: #27ae60;
  }

  .mb-more-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }
}