/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: calc(56px + var(--safe-top));
  padding: var(--safe-top) 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-icon { width: 28px; height: 28px; border-radius: 8px; }

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

/* ── MAIN ───────────────────────────────────────────────────── */
main {
  flex: 1;
  padding: calc(56px + var(--safe-top) + 16px) 12px calc(72px + var(--safe-bottom) + 16px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  height: calc(60px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: stretch;
  background: rgba(18,22,33,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .15s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}

.nav-item.active,
.nav-item:hover { color: var(--accent); }

.nav-icon {
  width: 22px; height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── FAB ────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(72px + var(--safe-bottom));
  right: 16px;
  z-index: 41;
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.45);
  background: linear-gradient(135deg, rgba(125,211,252,.30), rgba(167,139,250,.30));
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
  transition: transform .12s, box-shadow .12s;
}

.fab:hover { transform: scale(1.06); box-shadow: 0 12px 32px rgba(0,0,0,.55); }
.fab:active { transform: scale(.96) translateY(1px); }
.fab svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.fab[hidden] { display: none; }
