/* AstroManager bottom navigation module */
.app-shell--new-layout {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
}

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

.am-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;
  display: block !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

.am-bottom-nav__frame {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  border-top: 1px solid rgba(118, 170, 228, 0.24) !important;
  border-left: 1px solid rgba(118, 170, 228, 0.10) !important;
  border-right: 1px solid rgba(118, 170, 228, 0.10) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42) !important;
  background: linear-gradient(180deg, rgba(16, 33, 58, 0.97) 0%, rgba(9, 19, 32, 0.99) 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(210, 232, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 -2px 8px rgba(170, 210, 255, 0.06),
    0 2px 5px rgba(0, 0, 0, 0.18),
    0 8px 10px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  overflow: hidden !important;
}

.am-bottom-nav__grid {
  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;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.am-bottom-nav__button,
.am-bottom-nav__button:visited,
.am-bottom-nav__button.astro-btn,
.am-bottom-nav a.am-bottom-nav__button,
.am-bottom-nav button.am-bottom-nav__button {
  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;
  color: #d7e4f7 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(118, 170, 228, 0.24) !important;
  background: linear-gradient(180deg, #12233b 0%, #0a1422 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(210, 232, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 -2px 8px rgba(170, 210, 255, 0.05),
    0 2px 5px rgba(0, 0, 0, 0.18),
    0 8px 10px rgba(0, 0, 0, 0.12) !important;
  transition:
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.2s ease !important;
}

.am-bottom-nav__button 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;
}

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

.am-bottom-nav__button:hover,
.am-bottom-nav__button:focus-visible {
  border-color: rgba(126, 186, 255, 0.34) !important;
  box-shadow:
    inset 0 2px 1px rgba(220, 236, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 -2px 20px rgba(120, 178, 255, 0.10),
    0 2px 5px rgba(0, 0, 0, 0.18),
    0 8px 10px rgba(0, 0, 0, 0.14) !important;
}

.am-bottom-nav__button:active {
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.45),
    inset 0 0 10px rgba(82, 132, 214, 0.10),
    0 -2px 20px rgba(120, 178, 255, 0.08),
    0 1px 5px rgba(0, 0, 0, 0.16),
    0 2px 10px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(1px) !important;
}

.am-bottom-nav__button.active,
.am-bottom-nav__button.is-active,
.am-bottom-nav__button[aria-current="page"],
.am-bottom-nav__button.astro-btn--primary {
  border-color: rgba(126, 186, 255, 0.38) !important;
  background: linear-gradient(180deg, #1a3150 0%, #0c1a2d 100%) !important;
  box-shadow:
    inset 0 2px 1px rgba(230, 242, 255, 0.12),
    inset 0 0 14px rgba(82, 132, 214, 0.12),
    0 -2px 16px rgba(120, 178, 255, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 8px 12px rgba(0, 0, 0, 0.14) !important;
}

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

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

  .am-bottom-nav__frame {
    border-radius: 16px 16px 0 0 !important;
  }

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

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