.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(16, 27, 51, 0.08);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--color-ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bottom-nav-item.is-active {
  color: var(--color-primary);
}

/* Raised center action — sits above the bar like a bank app's main CTA */
.bottom-nav-item.is-raised {
  position: relative;
  margin-top: -30px;
}

.bottom-nav-item.is-raised .bottom-nav-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--color-primary-light) 0%, var(--color-primary) 55%, var(--color-primary-dark) 100%);
  box-shadow: var(--shadow-fab);
  color: var(--color-white);
  border: 4px solid var(--color-white);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bottom-nav-item.is-raised .bottom-nav-icon svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-item.is-raised:active .bottom-nav-icon {
  transform: translateY(2px) scale(0.97);
  box-shadow: 0 8px 16px rgba(18, 53, 120, 0.28);
}

.bottom-nav-item.is-raised .bottom-nav-label {
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 2px;
}

.bottom-nav-menu.is-active {
  color: var(--color-primary);
}
