:root{
  --tabbar-bg: rgba(255,255,255,.92);
  --tabbar-border: rgba(0,0,0,.12);
  --tabbar-shadow: 0 -10px 30px rgba(0,0,0,.08);
  --tabbar-fg: #111827;
  --tabbar-muted: rgba(17,24,39,.55);
  --tabbar-active-bg: rgba(10,88,202,.12);
  --tabbar-active-fg: #0a58ca;
}

.tabBar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--tabbar-bg);
  border-top: 1px solid var(--tabbar-border);
  box-shadow: var(--tabbar-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
}

.tabItem{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 14px;
  color: var(--tabbar-muted);
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tabIcon{ font-size: 18px; line-height: 1; }
.tabLabel{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabItem.active,
.tabItem[aria-current="page"]{
  background: var(--tabbar-active-bg);
  color: var(--tabbar-active-fg);
}

@media (max-width: 720px){
  .tabBar{ display:flex; }

  /* if a page still has top pills, hide them on mobile (tab bar replaces) */
  .headerNav{ display:none !important; }

  /* pages with container */
  body.hasTabBar .container{ padding-bottom: 110px !important; }

  /* pages without container (album) */
  body.hasTabBar{ padding-bottom: 92px; }
}


/* === Modern SVG tab icons (stage) === */
.tabIcon{
  display:flex;
  align-items:center;
  justify-content:center;
}
.tabIcon svg{
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === SVG icon visibility fix (stage) === */
.tabIcon svg{ display:block; }
.tabIcon svg, .tabIcon svg *{
  stroke: currentColor !important;
  fill: none !important;
}


/* === LOTUS TAB ICONS (stage) === */
.tabIcon{
  width:22px !important;
  height:22px !important;
  background: currentColor !important; /* matches active/inactive text color */
  font-size: 0 !important;             /* kill emoji sizing */
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.tabIcon.tabLibrary{
  -webkit-mask-image: url(/assets/icons/library-lotus.svg);
  mask-image: url(/assets/icons/library-lotus.svg);
}
.tabIcon.tabAudio{
  -webkit-mask-image: url(/assets/icons/audio-flute-lotus.svg);
  mask-image: url(/assets/icons/audio-flute-lotus.svg);
}
.tabIcon.tabAlbum{
  -webkit-mask-image: url(/assets/icons/album-frame-lotus.svg);
  mask-image: url(/assets/icons/album-frame-lotus.svg);
}
.tabIcon.tabVerse{
  -webkit-mask-image: url(/assets/icons/verse-scroll-lotus.svg);
  mask-image: url(/assets/icons/verse-scroll-lotus.svg);
}
