/* ── Header — floating frosted bar ─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; gap: 20px;
  padding: 0 24px;
  background: var(--glass-dark);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--border-dim);
  box-shadow: var(--shadow-nav);
  transition: background .3s ease;
}

.header-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.5px; color: var(--text);
  flex-shrink: 0;
}
.header-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-btn);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 3px 10px rgba(245,158,11,0.40);
}

/* ── Pill Navigation ────────────────────────────────────────────────── */
.nav {
  display: flex; gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.09);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  border: 1px solid var(--border-std);
  box-shadow: var(--shadow-nav);
  /* On narrow viewports allow horizontal scroll instead of clipping tabs */
  overflow-x: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
  max-width: 100%;
  flex: 0 1 auto;
}
.nav::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.nav-btn { flex-shrink: 0; }                 /* don't collapse on overflow */
.nav-btn {
  background: transparent; border: none;
  color: var(--muted-hi);
  padding: 6px 18px;
  border-radius: var(--r-pill);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap; letter-spacing: -0.1px;
}
.nav-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.09);
}
.nav-btn.active {
  /* iOS active pill: bright glass bubble */
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.60),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 2px 8px rgba(0,0,0,0.30);
}

.header-status {
  margin-left: auto;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted-hi);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger), 0 0 3px var(--danger);
}
.status-dot.ok {
  background: var(--success);
  box-shadow: 0 0 8px rgba(48,209,88,0.8), 0 0 3px var(--success);
}

