/* Tabbar */
.tabbar {
  position: fixed;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.98);
  border-top: 1px solid #eef0f4;
  display: flex;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tabbar[hidden] { display: none; }
.tab {
  flex: 1;
  background: transparent; border: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: #9aa0ad;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.tab .ic { width: 22px; height: 22px; }
.tab.active { color: #4d62c9; }

/* Toast */
.toast {
  position: fixed;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -20px);
  padding: 12px 22px;
  background: rgba(20,22,28,.95);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  font-size: 13.5px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 88vw;
  text-align: center;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.6);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok    { border-color: rgba(74,222,128,.35); color: #d6ffe4; }
.toast.error { border-color: rgba(248,113,113,.35); color: #ffdede; }