/* Bottom nav only for standalone PWA (hidden by default; JS shows it) */
.pwa-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #0A1524; /* matches your theme_color */
  color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 9999;
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  backdrop-filter: saturate(120%) blur(6px);
}

.pwa-bottom-nav .pwa-nav-item {
  flex: 1;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  line-height: 1;
  background: transparent;
  border: 0;
  padding: 6px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pwa-bottom-nav .icon {
  width: 24px;
  height: 24px;
  margin: 2px auto 4px;
  fill: currentColor;
  display: block;
}

.pwa-bottom-nav .active {
  color: #FFFFFF80; /* soft white highlight */
}

/* Don’t show on large screens even in standalone */
@media (min-width: 1025px) {
  .pwa-bottom-nav { display: none !important; }
}

/* Body padding to prevent overlap when bar is visible */
:root.pwa-has-bottomnav body {
  /* reserve space for bar (approx height + safe area) */
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
