/* MOB-001 — Mobile Bottom Navigation */
.t9-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: var(--t9-bottom-nav-bg, #0f1825);
  border-top: 1px solid var(--t9-bottom-nav-border, #1d2940);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .t9-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
  }

  body.has-t9-bottom-nav {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body.has-t9-bottom-nav .nautilus-footer {
    margin-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

.t9-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  min-width: 48px;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: var(--t9-bottom-nav-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  font-family: inherit;
}

.t9-bottom-nav__item:hover,
.t9-bottom-nav__item:focus-visible {
  color: var(--t9-bottom-nav-text, #e2e8f0);
  outline: 2px solid var(--nautilus-accent, #0078d4);
  outline-offset: 2px;
}

.t9-bottom-nav__item.is-active {
  color: var(--nautilus-accent, #0078d4);
}

.t9-bottom-nav__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.t9-bottom-nav__badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d13438;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
