/* ── Bottom Tab Bar ──────────────────────────────────────── */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width-app);
  height: calc(var(--nav-height) + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: var(--z-nav);
}

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-2);
  min-width: 44px;
  text-decoration: none;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default);
  -webkit-tap-highlight-color: transparent;
  border-radius: var(--radius-sm);
  position: relative;
}

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

.tab-bar-item:active {
  transform: scale(0.94);
  opacity: 0.7;
}

.tab-bar-item.active {
  color: var(--color-text-primary);
}

.tab-bar-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.tab-bar-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-bar-label {
  font-size: 0.6875rem;
  letter-spacing: var(--tracking-normal);
  white-space: nowrap;
}
