/* bottom navigation uses the central button set; this module controls only shell + grid */
.app-shell--new-layout {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}

.app-content,
.app-content--spacious {
  padding-bottom: 20px !important;
}

.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 90 !important;
  margin: 0 !important;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)) 10px !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(180deg, rgba(3,11,28,0.18), rgba(3,11,28,0.88)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  display: block !important;
  min-height: 0 !important;
}

.bottom-nav__grid,
.bottom-nav__inner {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.bottom-nav .bottom-nav-btn,
.bottom-nav .bottom-nav-btn:visited,
.bottom-nav .bottom-nav-btn.astro-btn,
.bottom-nav a.bottom-nav-btn,
.bottom-nav button.bottom-nav-btn {
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 8px !important;
  min-height: 57px !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.bottom-nav .bottom-nav-btn span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.bottom-nav .bottom-nav-btn i {
  flex: 0 0 auto !important;
  font-size: 11px !important;
  opacity: .9 !important;
}

@media (max-width: 640px) {
  .app-shell--new-layout {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .bottom-nav {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .bottom-nav__grid,
  .bottom-nav__inner {
    gap: 6px !important;
  }

  .bottom-nav .bottom-nav-btn,
  .bottom-nav .bottom-nav-btn.astro-btn,
  .bottom-nav a.bottom-nav-btn,
  .bottom-nav button.bottom-nav-btn {
    min-height: 54px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    border-radius: 12px !important;
  }
}
