/* ═══════════════════════════════════════════
   FLOATING FROSTED GLASS TAB BAR
   ═══════════════════════════════════════════ */

nav {
  position: fixed;
  bottom: calc(var(--safe-b) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);

  height: var(--nav-h);

  background: rgba(18, 16, 13, 0.72);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);

  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 2px 8px  rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  display: flex;
  align-items: stretch;
  z-index: 100;

  -webkit-transform: translateX(-50%) translateZ(0);
  transform: translateX(-50%) translateZ(0);
}

@media all and (display-mode: standalone) {
  nav {
    bottom: calc(max(var(--safe-b), env(safe-area-inset-bottom, 0px)) + 16px);
  }
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(138, 131, 120, 0.7);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 8px 0;
  position: relative;
  border-radius: 28px;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn:active { transform: scale(0.92); }
.nav-btn.active { color: var(--accent); }
.nav-btn.active::before {
  content: '';
  position: absolute;
  inset: 6px 8px;
  background: rgba(200, 169, 110, 0.1);
  border-radius: 18px;
  border: 1px solid rgba(200, 169, 110, 0.15);
}
.nav-btn svg { width: 21px; height: 21px; position: relative; z-index: 1; }
.nav-btn span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
/* ─── TOAST ─── */
#toast {
  position: fixed;
  bottom: calc(var(--safe-b) + 16px + var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 28, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── PUSH PERMISSION BANNER ─── */
#push-banner {
  margin: 16px 20px 0;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  display: none;
  align-items: center;
  gap: 12px;
}
#push-banner.show { display: flex; }
#push-banner .icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#push-banner .txt { flex: 1; min-width: 0; }
#push-banner .txt strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
#push-banner .txt span { font-size: 11px; color: var(--text2); }
