/* ============================================================
   BiblePro Christian Resources — public stylesheet
   Palette: deep navy / soft blue / warm gold / clean white
   Mobile-first, card-based layout.
   ============================================================ */

:root {
  --navy-900: #101c33;
  --navy-800: #16264a;
  --navy-700: #1c3059;
  --navy-600: #24407a;
  --blue-500: #3e6db5;
  --blue-100: #e3ecf7;
  --blue-50:  #f0f5fb;
  --gold-500: #c9a227;
  --gold-600: #b08d1e;
  --gold-100: #f7efd8;
  --ink-900:  #1a202c;
  --ink-600:  #4a5568;
  --ink-400:  #8a94a6;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fb;
  --radius:   14px;
  --shadow:   0 1px 3px rgba(16, 28, 51, .08), 0 4px 16px rgba(16, 28, 51, .06);
  --shadow-lg:0 8px 30px rgba(16, 28, 51, .14);
  --font: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans Myanmar", "Pyidaungsu", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy-900); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; }
.btn-outline {
  background: transparent; color: var(--navy-700);
  border: 2px solid var(--navy-700);
}
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); border: 1px solid var(--line); }
.btn-light:hover { background: var(--blue-50); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800);
  box-shadow: 0 2px 10px rgba(16,28,51,.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-logo { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .3px; }
.brand-sub { color: var(--gold-500); font-size: 12.5px; font-weight: 600; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: 62px; left: 0; right: 0;
  background: var(--navy-800);
  flex-direction: column; padding: 8px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.site-nav.open { display: flex; }
.site-nav a {
  color: #e6ecf5; padding: 11px 4px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none !important;
}
.site-nav a:hover { color: var(--gold-500); }
.site-nav .nav-cta { color: var(--gold-500); font-weight: 700; }
/* Language dropdown (flag + label) */
.lang-dropdown { position: relative; margin-top: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: #e6ecf5;
  border: 1px solid rgba(255,255,255,.25); border-radius: 9px;
  padding: 7px 14px; font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--gold-500); color: var(--gold-500); }
.lang-toggle .flag { font-size: 17px; line-height: 1; }
.lang-toggle .caret { font-size: 11px; opacity: .8; transition: transform .15s ease; }
.lang-dropdown.open .lang-toggle .caret { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 200;
  min-width: 170px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; padding: 6px;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--ink-900) !important; font-size: 14.5px; font-weight: 600;
  border: 0 !important; text-decoration: none !important;
}
.lang-menu a .flag { font-size: 18px; line-height: 1; }
.lang-menu a:hover { background: var(--blue-50); color: var(--navy-700) !important; }
.lang-menu a.active { background: var(--gold-100); color: var(--gold-600) !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center;
    background: none; border: 0; padding: 0; gap: 4px;
  }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 15.5px; }
  .lang-dropdown { margin: 0 0 0 8px; }
}
@media (max-width: 899px) {
  /* Inside the collapsed mobile nav the menu flows in place. */
  .lang-menu { position: static; margin-top: 6px; min-width: 0; }
}

/* ---------- Google sign-in ---------- */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: var(--ink-900); border: 1px solid var(--line);
}
.btn-google:hover { background: var(--blue-50); color: var(--ink-900); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: var(--ink-400); font-size: 13.5px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ---------- Flash messages ---------- */
.flash { margin: 14px 0; padding: 13px 16px; border-radius: 10px; font-weight: 500; }
.flash-success { background: #e8f6ec; color: #1e6b34; border: 1px solid #bfe3c9; }
.flash-error   { background: #fdecec; color: #a12626; border: 1px solid #f3c3c3; }
.flash-info    { background: var(--blue-100); color: var(--navy-700); border: 1px solid #c9d9ee; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(201,162,39,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 70%, var(--navy-600) 100%);
  color: #fff;
  padding: 52px 0 56px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.22; font-weight: 800; letter-spacing: .2px;
  max-width: 21em;
}
.hero .hero-sub {
  margin-top: 16px; max-width: 46em;
  color: #cfdaea; font-size: clamp(15px, 2.4vw, 17.5px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--navy-800); }

.hero-search { margin-top: 28px; max-width: 640px; }
.hero-search form { display: flex; gap: 0; box-shadow: var(--shadow-lg); border-radius: 12px; overflow: hidden; }
.hero-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; padding: 15px 18px; font-size: 16px;
  font-family: var(--font); outline: none;
}
.hero-search button {
  border: 0; background: var(--gold-500); color: var(--navy-900);
  font-weight: 700; font-size: 16px; padding: 0 24px; cursor: pointer;
}
.hero-search button:hover { background: var(--gold-600); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-top: 34px; }
.hero-stat .num { font-size: 26px; font-weight: 800; color: var(--gold-500); }
.hero-stat .label { font-size: 14px; color: #b9c7da; }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 22px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(21px, 3.4vw, 27px); font-weight: 800; color: var(--navy-800);
}
.section-head .more { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.cat-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  text-decoration: none !important; color: inherit;
  transition: transform .12s ease, box-shadow .15s ease;
}
a.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card .icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; background: var(--blue-100); color: var(--navy-700);
}
.cat-card h3 { font-size: 17px; color: var(--navy-800); margin-bottom: 3px; }
.cat-card p { font-size: 14px; color: var(--ink-600); }
.cat-card.disabled { opacity: .62; }
.badge-soon {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 20px;
  background: var(--gold-100); color: var(--gold-600);
  font-size: 11.5px; font-weight: 700; vertical-align: middle;
}

/* Church cards */
.church-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.church-card h3 { font-size: 18px; line-height: 1.35; }
.church-card h3 a { color: var(--navy-800); }
.church-meta { font-size: 14px; color: var(--ink-600); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.church-meta span { display: inline-flex; align-items: center; gap: 5px; }
.church-desc { font-size: 14.5px; color: var(--ink-600); }
.church-card .card-foot { margin-top: auto; padding-top: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
}
.badge-verified { background: #e8f6ec; color: #1e6b34; }
.badge-online   { background: var(--blue-100); color: var(--navy-700); }
.badge-lang     { background: var(--bg-soft); color: var(--ink-600); border: 1px solid var(--line); font-weight: 600; }

/* Chip links (cities / languages) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 9px 18px; border-radius: 24px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-700);
  font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow);
  text-decoration: none !important;
}
.chip:hover { border-color: var(--gold-500); color: var(--gold-600); }
.chip small { color: var(--ink-400); font-weight: 500; }

/* ---------- BiblePro CTA block ---------- */
.cta-block {
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px;
}
.cta-block .cta-appicon { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.cta-block .cta-text { flex: 1 1 320px; }
.cta-block h2, .cta-block h3 { font-size: clamp(19px, 3vw, 24px); margin-bottom: 8px; }
.cta-block p { color: #cfdaea; font-size: 15px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0; font-size: 13.5px; color: var(--ink-400);
}
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-400); }
.breadcrumbs a { color: var(--ink-600); }
.breadcrumbs span[aria-current] { color: var(--navy-700); font-weight: 600; }

/* ---------- Page headers ---------- */
.page-head { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 38px 0; }
.page-head h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.page-head p { margin-top: 10px; color: #cfdaea; max-width: 52em; }

/* ---------- Filters ---------- */
.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.filters .filter-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.filters .filter-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.filters .full { grid-column: 1 / -1; }

label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 5px; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"],
input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: var(--font);
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-900);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(62,109,181,.15);
}
.checkbox-inline { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-600); }
.checkbox-inline input { width: auto; }

/* Honeypot — hide from humans, keep in DOM for bots */
.hp-wrap { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 1px; overflow: hidden; }

/* ---------- Church detail ---------- */
.detail-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 22px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.panel h2, .panel h3 { color: var(--navy-800); margin-bottom: 14px; font-size: 19px; }

.dl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dl-table th, .dl-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--bg-soft); vertical-align: top; }
.dl-table th { color: var(--ink-400); font-weight: 600; white-space: nowrap; width: 38%; }
.dl-table td { color: var(--ink-900); word-break: break-word; }

.disclaimer {
  background: var(--gold-100); border: 1px solid #e8d9a8; border-radius: 10px;
  padding: 14px 16px; font-size: 13.5px; color: #6b5a17; line-height: 1.6;
}
.disclaimer p + p { margin-top: 8px; }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Share buttons ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 9px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-600);
  cursor: pointer; text-decoration: none !important;
}
.share-btn:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* ---------- Download page ---------- */
.dl-buttons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 760px; }
.dl-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 16px; border-radius: 14px; text-align: center;
  font-weight: 700; font-size: 16px; cursor: pointer; border: 0;
  text-decoration: none !important;
  transition: transform .12s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dl-btn small { font-weight: 500; font-size: 12.5px; opacity: .8; }
.dl-btn-android { background: var(--navy-800); color: #fff; }
.dl-btn-ios { background: var(--navy-600); color: #fff; }
.dl-btn-web { background: var(--gold-500); color: var(--navy-900); }
.dl-btn-copy { background: #fff; color: var(--navy-800); border: 2px solid var(--navy-700); }

.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; text-align: center; max-width: 340px;
}
.qr-box img { width: 210px; height: 210px; object-fit: contain; }
.qr-placeholder {
  width: 210px; height: 210px; margin: 0 auto; border-radius: 12px;
  border: 2px dashed var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-size: 13.5px; padding: 16px;
}

/* Feature list */
.feature-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature-item {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-weight: 600; font-size: 15px; color: var(--navy-800);
  box-shadow: var(--shadow);
}
.feature-item .dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy-800);
  padding: 14px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 21px; color: var(--gold-600); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 0 16px; color: var(--ink-600); font-size: 15px; }

/* Screenshots placeholder */
.shots-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-width: 760px; }
.shot-ph {
  aspect-ratio: 9 / 17; border-radius: 18px; border: 2px dashed var(--line);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-size: 12.5px; text-align: center; padding: 10px;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 40px; padding: 9px 13px; text-align: center; border-radius: 9px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-700);
  font-weight: 600; font-size: 14.5px; text-decoration: none !important;
}
.pagination .current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination a:hover { border-color: var(--gold-500); }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 780px; }
.prose h2 { color: var(--navy-800); font-size: 21px; margin: 28px 0 10px; }
.prose p { margin: 12px 0; color: var(--ink-600); }
.prose p:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7da; margin-top: 56px; }
.footer-grid {
  display: grid; gap: 30px; padding: 44px 18px 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 {
  color: #fff; font-size: 15px; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b9c7da; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-500); }
.footer-tagline { margin-top: 14px; font-size: 14px; max-width: 34em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px; font-size: 12.5px; color: #7d8ca3;
  display: flex; flex-direction: column; gap: 6px;
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom p:first-child { max-width: 56em; }

/* ---------- Bottom tab bar (mobile, app style) ---------- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: stretch;
  background: rgba(22, 38, 74, .97); /* navy-800 */
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(16, 28, 51, .3);
}
.tab-item {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 3px; padding: 8px 2px 7px;
  color: #b9c7da; font-size: 11px; font-weight: 600; font-family: var(--font);
  /* Burmese/Thai stacked marks need the taller line box. */
  line-height: 1.7; text-align: center;
  background: none; border: 0; cursor: pointer;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.tab-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-item svg { width: 22px; height: 22px; flex: 0 0 auto; }
.tab-item:hover { color: #fff; }
.tab-item.active { color: var(--gold-500); }
.tab-app .tab-app-btn {
  width: 46px; height: 46px; margin-top: -20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 162, 39, .45), 0 0 0 4px var(--navy-800);
}
.tab-app .tab-app-btn svg { width: 23px; height: 23px; }
.tab-app > span:last-child { color: var(--gold-500); }
.tab-app:hover .tab-app-btn { background: linear-gradient(150deg, #d8b23a, var(--gold-500)); }

.tab-toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(6px);
  bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 130;
  padding: 9px 20px; border-radius: 22px;
  background: var(--navy-900); color: #fff;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.tab-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 899px) {
  /* Keep page content and footer clear of the fixed tab bar. */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .tab-bar, .tab-toast { display: none; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--ink-400); font-size: 14px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
