#bottom-nav {
  flex-shrink: 0;
  height: var(--nav-h);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  transition: color var(--t-fast), filter var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 60px;
  flex: 1;
  border-radius: var(--radius-md);
}

.nav-item:hover { color: var(--text-secondary); }

.nav-item.active {
  color: var(--accent-yellow);
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.65));
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }

.nav-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Badge no nav (ex: contagem de fila) */
.nav-item .nav-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item .nav-badge[data-alert]::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-pink);
  border-radius: var(--radius-full);
  width: 10px;
  height: 10px;
  box-shadow: var(--glow-pink);
}

/* ════════════════════════════════════
   NAV LATERAL — landscape
   ════════════════════════════════════ */

@media (orientation: landscape) and (max-height: 600px) {
  #bottom-nav {
    /* Vira sidebar direita */
    order: 1;
    width: 60px;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);

    /* Remove borda de baixo, coloca à esquerda */
    border-top: none;
    border-left: 1px solid var(--border-default);

    /* Respeita safe-area do notch no lado direito */
    padding: var(--space-3) 0;
    padding-right: env(safe-area-inset-right, 0px);
  }

  .nav-item {
    flex: 0;
    min-width: unset;
    width: 100%;
    padding: var(--space-3) var(--space-2);
  }

  /* Label some espaço — só ícone no sidebar */
  .nav-label {
    display: none;
  }
}
