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

  body.has-mobile-bottom-nav header .header-actions,
  body.has-mobile-bottom-nav header .header-nav,
  body.has-mobile-bottom-nav header .header-right,
  body.has-mobile-bottom-nav header .menu-toggle {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0 !important;
    z-index: 9999;
    display: block;
    padding: 0.45rem 0 calc(0.45rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(3, 43, 68, 0.1);
    box-shadow: 0 -8px 24px rgba(3, 43, 68, 0.12);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav__list {
    display: grid;
    grid-template-columns: repeat(var(--mobile-nav-columns, 4), minmax(0, 1fr));
    gap: 0.25rem;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
  }

  .mobile-bottom-nav__item {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.35rem;
    font: inherit;
    line-height: 1.1;
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-bottom-nav__item i {
    font-size: 1.18rem;
    line-height: 1;
  }

  .mobile-bottom-nav__item span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus-visible,
  .mobile-bottom-nav__item.is-active {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.12);
    outline: none;
  }

  .mobile-bottom-nav__button {
    cursor: pointer;
  }

  .app-header__actions,
  .app-header__menu-toggle {
    display: none !important;
  }

  .app-main,
  .auth-main {
    padding-bottom: 1rem;
  }

  .app-footer {
    margin-bottom: 74px;
  }

  .mobile-explore-sheet {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: flex-end;
  }

  .mobile-explore-sheet.is-open {
    display: flex;
  }

  .mobile-explore-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 43, 68, 0.5);
  }

  .mobile-explore-sheet__panel {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 40px rgba(3, 43, 68, 0.22);
    margin-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 160px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .mobile-explore-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(3, 43, 68, 0.08);
  }

  .mobile-explore-sheet__header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #032b44;
    font-weight: 800;
  }

  .mobile-explore-sheet__close {
    border: 0;
    background: rgba(3, 43, 68, 0.08);
    color: #032b44;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
  }

  .mobile-explore-sheet__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.7rem;
    overflow-y: auto;
    padding: 0.5rem 0 calc(2.75rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mobile-explore-sheet__links a {
    min-height: 108px;
    border-radius: 20px;
    background: #fff;
    color: #032b44;
    text-decoration: none;
    padding: 0.95rem 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    box-shadow:
      inset 0 0 0 1px rgba(3, 43, 68, 0.08),
      0 6px 18px rgba(3, 43, 68, 0.06);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }

  .mobile-explore-sheet__links a:hover,
  .mobile-explore-sheet__links a:focus-visible {
    transform: translateY(-2px);
    box-shadow:
      inset 0 0 0 1px rgba(255, 140, 0, 0.22),
      0 10px 22px rgba(3, 43, 68, 0.1);
    outline: none;
  }

  .mobile-explore-sheet__links a i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.12);
  }

  .mobile-explore-sheet__label {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #23384b;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }

  .mobile-explore-sheet {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .mobile-explore-sheet__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .mobile-explore-sheet__panel {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 150px);
  }

  .mobile-explore-sheet__links a {
    min-height: 100px;
    padding-inline: 0.55rem;
  }

  .mobile-explore-sheet__label {
    font-size: 0.72rem;
  }
}
