/* IQRA INSTITUTE — mobile app shell only (tab bar + More sheet) for pages that keep their own layout (blog). */
:root { --mb-bar-h: 56px; --mb-tab-h: 64px; --mb-safe-b: env(safe-area-inset-bottom, 0px); --mb-safe-t: env(safe-area-inset-top, 0px); --mb-gutter: 16px; }
body { padding-bottom: calc(var(--mb-tab-h) + var(--mb-safe-b)); -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
.btn-primary:active, .mb-tab:active, .mb-sheet-item:active { transform: scale(.97); opacity: .92; }
/* ───────── Bottom tab bar ───────── */
.mb-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  height: calc(var(--mb-tab-h) + var(--mb-safe-b)); padding-bottom: var(--mb-safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(15, 46, 36, .08);
  box-shadow: 0 -6px 24px rgba(15, 46, 36, .10);
}
.mb-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; color: #7b8a84; font: 600 .66rem/1 'Nunito', sans-serif; letter-spacing: .02em;
  position: relative; cursor: pointer; text-decoration: none;
}
.mb-tab i { font-size: 1.18rem; transition: transform .2s; }
.mb-tab.active { color: var(--emerald); }
.mb-tab.active i { transform: translateY(-2px); }
.mb-tab.active::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px;
  border-radius: 0 0 4px 4px; background: var(--gold);
}
.mb-tab-cta { overflow: visible; }
.mb-tab-cta .mb-fab {
  width: 54px; height: 54px; margin-top: -22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--emerald-dark);
  box-shadow: 0 8px 20px rgba(201, 168, 76, .55), 0 0 0 5px rgba(255, 255, 255, .94);
  font-size: 1.3rem;
}
.mb-tab-cta span { margin-top: 2px; color: var(--emerald); }

/* Hide old floating helpers that clash with the bar */
.sticky-cta { display: none !important; }
.wa-float { bottom: calc(var(--mb-tab-h) + var(--mb-safe-b) + 18px) !important; right: 14px !important; width: 46px !important; height: 46px !important; z-index: 1050; }
.wa-float-icon { font-size: 1.4rem !important; }

/* ───────── "More" bottom sheet ───────── */
.mb-sheet-bg {
  position: fixed; inset: 0; z-index: 2200; background: rgba(8, 24, 18, .55);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mb-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2210;
  background: #fbfaf6; border-radius: 24px 24px 0 0;
  padding: 10px var(--mb-gutter) calc(18px + var(--mb-safe-b));
  max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(105%); transition: transform .32s cubic-bezier(.22, .8, .2, 1);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .25);
}
body.mb-sheet-open .mb-sheet-bg { opacity: 1; pointer-events: auto; }
body.mb-sheet-open .mb-sheet { transform: none; }
body.mb-sheet-open { overflow: hidden; }
.mb-sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: #d6d9d3; margin: 0 auto 12px; }
.mb-sheet h4 { font: 700 .72rem 'Nunito', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a948f; margin: 14px 4px 8px; }
.mb-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mb-sheet-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center;
  min-height: 82px; padding: 10px 6px; border-radius: 16px; background: #fff; color: var(--emerald-dark);
  font: 700 .74rem/1.2 'Nunito', sans-serif; box-shadow: 0 2px 10px rgba(15, 46, 36, .07); border: 1px solid rgba(15, 46, 36, .05);
  text-decoration: none; transition: transform .15s;
}
.mb-sheet-item i { font-size: 1.35rem; color: var(--emerald-light); }
.mb-sheet-item.gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }
.mb-sheet-item.gold i { color: var(--emerald-dark); }
.mb-sheet-list a {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 6px;
  color: var(--emerald-dark); font-weight: 600; font-size: .92rem; text-decoration: none; border-bottom: 1px solid rgba(15, 46, 36, .06);
}
.mb-sheet-list a i { width: 22px; text-align: center; color: var(--gold); }
.mb-sheet-social { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.mb-sheet-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }

