/* ══════════════════════════════════════════════════
   NAV — Glassmorphism Frosted Bar + Pill Tabs
   ══════════════════════════════════════════════════ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 12px rgba(0,0,0,.03);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: 56px;
}

.nav-brand {
  font-family: var(--mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-right { display: flex; align-items: center; gap: .75rem; }

/* ── Tab Bar ── */
.tab-bar {
  display: flex; align-items: center; gap: .25rem;
  position: relative; height: 56px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 .5rem;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); background: none; border: none;
  padding: .45rem .85rem; cursor: pointer;
  white-space: nowrap; position: relative;
  border-radius: 20px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.tab-btn:hover {
  color: var(--t1);
  background: rgba(99,102,241,.05);
}
.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
}

/* Hide the old sliding underline — pills replace it */
.tab-indicator { display: none; }

/* ── Logout Button ── */
.toggle {
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); text-decoration: none;
  padding: .4rem .75rem; border-radius: 20px;
  border: 1px solid var(--br2);
  background: var(--glass);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all .25s;
  flex-shrink: 0;
}
.toggle:hover {
  color: var(--red);
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.05);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav { padding: 0 .75rem; height: 50px; }
  .tab-bar { height: 50px; }
  .tab-btn { font-size: .48rem; padding: .35rem .55rem; }
  .nav-brand { font-size: .52rem; }
  .nav-right { display: none; }
}
@media (max-width: 480px) {
  .nav { height: 46px; }
  .tab-bar { height: 46px; gap: .15rem; }
  .tab-btn { font-size: .44rem; padding: .3rem .45rem; }
  .nav-brand { display: none; }
}
