/* ============================================================
   ZION CITY CHURCH: app v2
   Phone-first layout (Home, Give, Watch, Events, More), light and dark theme.
   Everything new is scoped to .zv2-* or body.zv2, so the old pages (my-contributions,
   order-status) that load main.css alone are not affected.
   ============================================================ */

/* ── Dark theme: the app's own colour tokens, re-pointed ─────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --p50: #25163f; --p100: #2c1b4b; --p200: #3a2561; --pearl: #1b1030; --pearl-warm: #211436; --pearl-soft: #25163f;
  --t-head: #f6ecff; --t-body: #e0d3f5; --t-soft: #cdb8ee; --t-muted: #ad96d3; --t-gold: #ffc24a;
  --t-onpurple: #fdf6ff; --t-ongold: #2a0a55;
  --surface-page: #120a1f; --surface-card: #1b1030; --surface-lifted: #25163f;
  --b-light: rgba(190,160,235,.2); --b-mid: rgba(190,160,235,.38); --b-gold: rgba(255,194,74,.4);
  --sh-sm: 0 2px 12px rgba(0,0,0,.35); --sh-md: 0 6px 28px rgba(0,0,0,.4); --sh-lg: 0 16px 56px rgba(0,0,0,.45); --sh-xl: 0 32px 80px rgba(0,0,0,.5);
}
html[data-theme="dark"] body {
  background: linear-gradient(180deg, #120a1f 0%, #190d2b 60%, #120a1f 100%) fixed; color: var(--t-body);
}
html[data-theme="dark"] body::before {
  background-image: linear-gradient(rgba(176,130,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(176,130,255,.05) 1px, transparent 1px);
}
html[data-theme="dark"] #app-main-content, html[data-theme="dark"] .container { background: rgba(27,16,48,.88); border-color: var(--b-light); }
html[data-theme="dark"] .app-section { background: linear-gradient(145deg, #1b1030 0%, #211436 100%); }
html[data-theme="dark"] .landing-container { background: rgba(27,16,48,.94); border-color: var(--b-light); }
html[data-theme="dark"] .app-sidebar { background: linear-gradient(180deg, #25163f, #1b1030); }
html[data-theme="dark"] a { color: #d9b8ff; }
html[data-theme="dark"] a:hover { color: #fff; }
html[data-theme="dark"] .app-section a { color: #d9b8ff; }
html[data-theme="dark"] .app-nav-button { background: #25163f; color: var(--t-soft); }
html[data-theme="dark"] .app-nav-button:hover { background: #2c1b4b; color: #fff; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #25163f; color: var(--t-head); border-color: var(--b-mid); }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--t-muted); }
html[data-theme="dark"] .loader-overlay { background: rgba(18,10,31,.8); }
html[data-theme="dark"] .loader-content { background: #1b1030; }

/* ── New pieces (all scoped) ─────────────────────────────────────── */
.zv2-only-phone { display: none; }
.zv2-bar, .zv2-sheet, .zv2-scrim, .zv2-top, .zv2-sticky { display: none; }

.zv2-ico { display: inline-flex; width: 22px; height: 22px; flex: none; }
.zv2-ico svg { width: 100%; height: 100%; }
.zv2-card { background: var(--surface-card); border: 1px solid var(--b-light); border-radius: 20px; padding: 16px; box-shadow: var(--sh-sm); margin-bottom: 14px; }
.zv2-lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--t-muted); text-transform: uppercase; }
.zv2-h { font-family: var(--f-display); color: var(--t-head); line-height: 1.15; }
.zv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 14px; font-weight: 800; border: 0; cursor: pointer; font-size: 1rem; font-family: var(--f-body); text-decoration: none; }
.zv2-btn.gold { background: var(--g500); color: var(--t-ongold); box-shadow: var(--sh-gold); }
.zv2-btn.gold:disabled { opacity: .55; cursor: not-allowed; }
.zv2-btn.line { background: transparent; border: 1.5px solid var(--b-mid); color: var(--t-head); }
.zv2-btn.small { min-height: 42px; padding: 0 14px; font-size: .9rem; }
.zv2-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0; }
.zv2-chip { text-align: center; padding: 12px 0; border-radius: 12px; background: var(--surface-lifted); color: var(--t-head); font-weight: 800; border: 1.5px solid transparent; cursor: pointer; font-family: var(--f-body); font-size: 1rem; }
.zv2-chip.on { background: var(--p700); color: #fff; }
html[data-theme="dark"] .zv2-chip.on { background: var(--g500); color: var(--t-ongold); }
.zv2-field { margin-top: 10px; }
.zv2-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--t-soft); margin-bottom: 4px; }
.zv2-field input, .zv2-field select { width: 100%; min-height: 50px; border-radius: 12px; font-size: 1rem; padding: 0 14px; }
.zv2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zv2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.zv2-tile { background: var(--surface-card); border: 1px solid var(--b-light); border-radius: 18px; padding: 14px 6px; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: .85rem; color: var(--t-head); cursor: pointer; font-family: var(--f-body); box-shadow: var(--sh-sm); }
.zv2-tile .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-lifted); color: var(--p700); }
html[data-theme="dark"] .zv2-tile .ic { color: #d9b8ff; }
.zv2-banner { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 14px 16px; margin-bottom: 14px; }
.zv2-banner.gold { background: linear-gradient(135deg, #f5a800, #ffcf5c); color: #2a0a55; }
.zv2-banner.gold b, .zv2-banner.gold small { color: #2a0a55; }
.zv2-banner.purple { background: linear-gradient(135deg, #3a0d6e, #5b17b0); color: #fff; }
.zv2-banner.purple b, .zv2-banner.purple small { color: #fff; }
.zv2-banner b { display: block; font-size: .95rem; }
.zv2-banner small { opacity: .85; }
.zv2-note { display: flex; gap: 10px; background: var(--surface-lifted); border-radius: 14px; padding: 12px; font-size: .9rem; color: var(--t-body); margin-top: 12px; }
.zv2-msg { font-weight: 600; margin-top: 10px; }
.zv2-msg.err { color: #c0392b; } html[data-theme="dark"] .zv2-msg.err { color: #ff9b8f; }
.zv2-msg.ok { color: #1a6b42; } html[data-theme="dark"] .zv2-msg.ok { color: #7ee0a8; }
.zv2-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.zv2-method { border: 1.5px solid var(--b-light); border-radius: 14px; padding: 12px; display: grid; gap: 6px; color: var(--t-head); font-weight: 700; font-size: .9rem; background: var(--surface-card); text-align: left; cursor: pointer; font-family: var(--f-body); }
.zv2-method small { color: var(--t-muted); font-weight: 500; }
.zv2-method.on { border-color: var(--p600); box-shadow: 0 0 0 3px rgba(123,31,212,.18); }
html[data-theme="dark"] .zv2-method.on { border-color: var(--g500); box-shadow: 0 0 0 3px rgba(255,194,74,.2); }
.zv2-method:disabled { opacity: .55; cursor: not-allowed; }
.zv2-logos { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--b-light); border-radius: 8px; padding: 3px 8px; height: 26px; width: max-content; }
.zv2-logos svg { height: 16px; width: auto; display: block; }
.zv2-logos.card svg:first-child { height: 13px; }
.zv2-logos.btc svg { height: 17px; width: 17px; }
.zv2-logo { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 900; width: max-content; }
.zv2-logo.mtn { background: #ffcc00; color: #000; } .zv2-logo.om { background: #ff7900; color: #fff; } .zv2-logo.card, .zv2-logo.btc { background: var(--surface-lifted); color: var(--t-head); }
.zv2-result { text-align: center; padding: 22px 12px; }
.zv2-result h2 { font-family: var(--f-display); color: var(--t-head); font-size: 1.5rem; margin: 10px 0 6px; }
.zv2-step { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.zv2-step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--p700); color: #fff; font-weight: 800; display: grid; place-items: center; }
html[data-theme="dark"] .zv2-step .n { background: var(--g500); color: var(--t-ongold); }
.zv2-amount { display: flex; align-items: center; gap: 6px; border: 2px solid var(--p600); border-radius: 14px; padding: 0 14px; min-height: 60px; margin-top: 8px; background: var(--surface-card); }
.zv2-amount b { font-size: 28px; color: var(--t-head); }
.zv2-amount input { border: 0; background: transparent; font-size: 28px; font-weight: 800; min-height: 56px; width: 100%; outline: none; color: var(--t-head); padding: 0; }
.zv2-amount span { color: var(--t-muted); white-space: nowrap; font-size: .85rem; }

/* Theme + account buttons */
.zv2-ib { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; border: 0; cursor: pointer; }
.zv2-desktop-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.zv2-desktop-tools .zv2-ib { background: var(--surface-lifted); color: var(--t-head); border: 1px solid var(--b-light); }

/* Home on a wide screen: two columns */
@media (min-width: 769px) {
  #app-main-content #zv2-home-section { background: transparent; border: 0; box-shadow: none; padding: 0; }
  #app-main-content #zv2-home-section::after { display: none; }
  .zv2-home-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
  .zv2-home-wrap .wide { grid-column: 1 / -1; }
}

/* ── Phone layout ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html, body.zv2 { overflow-x: hidden; }
  body.zv2 { padding: 0 0 calc(76px + env(safe-area-inset-bottom)); display: block; background-attachment: scroll; }
  body.zv2::before { display: none; }
  body.zv2 #app-main-content { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 8px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  body.zv2 #app-main-content::before { display: none; }
  html[data-theme="dark"] body.zv2 #app-main-content { background: transparent; }
  /* the old header block, nav row and "More" sidebar are replaced by the top bar, bottom bar and sheet (their buttons are still used underneath) */
  body.zv2 .app-header-block, body.zv2 #app-navigation, body.zv2 #left-app-navigation, body.zv2 .footer-container { display: none !important; }
  body.zv2 .app-layout-wrapper { display: block; margin-top: 0; }
  body.zv2 .app-main-sections { padding: 12px 14px 0; }
  body.zv2 .app-section { padding: 22px 16px; border-radius: 20px; margin-bottom: 14px; }
  body.zv2 #email-verification-banner { margin: 10px 14px 0; }

  .zv2-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 900; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(160deg, #3a0d6e, #5b17b0 70%, #7a2bd8); color: #fff; }
  html[data-theme="dark"] .zv2-top { background: linear-gradient(160deg, #1c0a38, #33105f 70%, #47177f); }
  .zv2-top img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
  .zv2-top .t { flex: 1; font-weight: 800; font-size: 16px; line-height: 1.15; color: #fff; }
  .zv2-top .t small { display: block; opacity: .75; font-weight: 500; font-size: 12px; }

  .zv2-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: var(--surface-card); border-top: 1px solid var(--b-light); padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(40,10,80,.12); }
  .zv2-tab { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--t-muted); padding: 4px 0; background: none; border: 0; cursor: pointer; font-family: var(--f-body); }
  .zv2-tab.on { color: var(--p700); } html[data-theme="dark"] .zv2-tab.on { color: var(--g400); }
  .zv2-tab { align-content: center; }

  .zv2-scrim { display: block; position: fixed; inset: 0; background: rgba(15,5,30,.5); z-index: 1060; }
  .zv2-scrim[hidden], .zv2-sheet[hidden] { display: none; }
  .zv2-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1070; background: var(--surface-page); border-radius: 24px 24px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 88%; overflow-y: auto; }
  .zv2-grab { width: 42px; height: 5px; border-radius: 9px; background: var(--b-mid); margin: 0 auto 10px; }
  .zv2-sheet h2 { font-size: 22px; font-family: var(--f-display); color: var(--t-head); margin-bottom: 4px; }
  .zv2-sheet .zv2-lbl { display: block; margin: 14px 4px 6px; }
  .zv2-list { background: var(--surface-card); border: 1px solid var(--b-light); border-radius: 16px; overflow: hidden; }
  .zv2-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; border-bottom: 1px solid var(--b-light); font: 600 15px var(--f-body); color: var(--t-head); text-align: left; cursor: pointer; text-decoration: none; }
  .zv2-item:last-child { border-bottom: 0; }
  .zv2-item .ic { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-lifted); color: var(--p700); display: grid; place-items: center; flex: none; }
  html[data-theme="dark"] .zv2-item .ic { color: #d9b8ff; }
  .zv2-item small { margin-left: auto; color: var(--t-muted); font-weight: 500; font-size: 12px; text-align: right; }
  .zv2-item[hidden] { display: none; }

  .zv2-only-phone { display: block; }
  .zv2-desktop-tools { display: none; }
  #app-main-content #zv2-home-section { padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  #app-main-content #zv2-home-section::after { display: none; }
  .zv2-hero { margin: -12px -14px 0; padding: 18px 16px 84px; background: linear-gradient(160deg, #3a0d6e, #5b17b0 70%, #7a2bd8); border-radius: 0 0 28px 28px; color: #fff; }
  html[data-theme="dark"] .zv2-hero { background: linear-gradient(160deg, #1c0a38, #33105f 70%, #47177f); }
  .zv2-hero .gr { font: 700 24px/1.2 var(--f-display); color: #fff; }
  .zv2-home-wrap { margin-top: -66px; }
  /* chat bubble: above the bar, under pop-ups */
  body.zv2 #church-chat-widget { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; z-index: 1040; }
  body.zv2.zv2-giving #church-chat-widget { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .loader-overlay { z-index: 2000; }

  /* the Give screen: the old long form is replaced by the 3 step form (its fields stay in the page, hidden) */
  #app-main-content #contribution-section { padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
  #app-main-content #contribution-section::after { display: none; }
  .zv2-sticky { display: block; position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 1045; background: var(--surface-card); border-top: 1px solid var(--b-light); padding: 6px 12px; box-shadow: 0 -4px 14px rgba(40,10,80,.1); }
  .zv2-pay-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  .zv2-pay-row .sum { flex: 1; min-width: 0; display: grid; line-height: 1.2; font-size: .74rem; color: var(--t-muted); }
  .zv2-pay-row .sum span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .zv2-pay-row .sum b { font-size: 1rem; color: var(--t-head); }
  .zv2-sticky .zv2-btn { min-height: 44px; padding: 0 18px; font-size: .95rem; border-radius: 12px; flex: none; }
  .zv2-sticky .zv2-btn .zv2-ico { width: 16px; height: 16px; }
  .zv2-status { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface-lifted); color: var(--t-head); font-weight: 600; font-size: .86rem; line-height: 1.3; }
  .zv2-status.err { background: #fdecea; color: #a1281c; } html[data-theme="dark"] .zv2-status.err { background: #3a1d22; color: #ffb3a9; }
  .zv2-status[hidden] { display: none; }
  body.zv2.zv2-giving { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  #zv2-give-msg { display: none; }
  .zv2-sticky[hidden] { display: none; }
}

/* Desktop: the old give form is replaced too */
body.zv2 #payment-form, body.zv2 #payment-status, body.zv2 #contribution-section > h2, body.zv2 #contribution-section > .section-lead, body.zv2 #contribution-section > p { display: none; }
#zv2-give { display: block; }
.zv2-give-sticky { display: none; }
@media (min-width: 769px) { #zv2-give { max-width: 560px; margin: 0 auto; } .zv2-give-sticky { display: inline-flex; } }

/* a small spinner for waiting messages */
.zv2-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--b-mid); border-top-color: var(--p700); animation: zv2-spin .8s linear infinite; flex: none; }
html[data-theme="dark"] .zv2-spin { border-top-color: var(--g400); }
@keyframes zv2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .zv2-spin { animation: none; } }
@media (min-width: 769px) { .zv2-status { display: none !important; } #zv2-give-msg { display: block; } }
.zv2-result p.wait { background: var(--surface-lifted); border-radius: 14px; padding: 12px 14px; color: var(--t-head); font-weight: 600; margin: 10px 0; }

/* Contact / install buttons that live in the sheet on phones */
.zv2-link-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* Links used as buttons keep their own colour (the app-wide dark link colour would otherwise win) */
html[data-theme] a.zv2-item, html[data-theme] a.zv2-btn.line { color: var(--t-head); text-decoration: none; }
html[data-theme] a.zv2-btn.gold { color: var(--t-ongold); text-decoration: none; }
html[data-theme="dark"] .zv2-amount input { background: transparent; border: 0; }

/* empty "Unavailable" pills (shown only when a method is switched off) */
body.zv2 .coming-soon-badge:empty { display: none; }

/* ── Home: founder hero, pillars, quote band, charity strip ─────── */
.zv2-fhero { position: relative; grid-column: 1 / -1; margin-bottom: 14px; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; background: #2a0a55;
  border: 2px solid var(--g400); box-shadow: 0 12px 32px rgba(58,13,110,.3), 0 0 0 4px rgba(255,194,74,.16); }
.zv2-fphoto, .zv2-fphoto img { position: absolute; inset: 0; width: 100%; height: 100%; }
.zv2-fphoto img { object-fit: cover; object-position: 50% 14%; display: block; }
.zv2-fcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 84px 18px 18px; color: #fff;
  background: linear-gradient(to top, rgba(24,8,48,.97) 0%, rgba(42,10,85,.82) 48%, rgba(42,10,85,0) 100%); }
.zv2-lbl.on { color: var(--g400); }
.zv2-fname { font: 700 1.7rem/1.1 var(--f-display); margin: 6px 0 4px; color: #fff; }
.zv2-frole { margin: 0; font-size: .95rem; line-height: 1.35; color: #f1e6ff; }
.zv2-fmeta { margin: 4px 0 12px; font-size: .85rem; color: var(--g400); font-weight: 700; }
.zv2-fcap .zv2-link-row { margin: 0; }

.zv2-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.zv2-pillar { background: var(--p50); border: 1px solid var(--b-light); border-radius: 14px; padding: 12px 8px 10px; text-align: center; color: var(--p700); }
.zv2-pillar .zv2-ico { margin: 0 auto; }
.zv2-pillar b { display: block; font-size: .84rem; margin: 6px 0 3px; color: var(--t-head); line-height: 1.2; }
.zv2-pillar small { display: block; font-size: .72rem; line-height: 1.3; color: var(--t-soft); }
html[data-theme="dark"] .zv2-pillar { color: #d9b8ff; }

.zv2-quote { grid-column: 1 / -1; position: relative; margin-bottom: 14px; padding: 22px 20px 18px; border-radius: 22px; text-align: center; color: #fff;
  background: linear-gradient(150deg, #3a0d6e, #5b17b0 70%, #7a2bd8); box-shadow: 0 8px 22px rgba(58,13,110,.25); border: 1px solid rgba(255,194,74,.35); }
html[data-theme="dark"] .zv2-quote { background: linear-gradient(150deg, #1c0a38, #33105f 70%, #47177f); }
.zv2-qmark { color: var(--g400); font-size: 1.5rem; line-height: 1; margin-bottom: 8px; }
.zv2-quote p { margin: 0 0 8px; font: italic 1.12rem/1.5 var(--f-display); color: #fff; }
.zv2-quote small { color: var(--g400); font-weight: 700; letter-spacing: .04em; }

.zv2-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zv2-more { background: none; border: 0; padding: 4px 2px; color: var(--p700); font-weight: 800; font-size: .9rem; cursor: pointer; }
html[data-theme="dark"] .zv2-more { color: #d9b8ff; }
.zv2-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
.zv2-strip::-webkit-scrollbar { display: none; }
.zv2-strip figure { flex: 0 0 62%; max-width: 230px; aspect-ratio: 380 / 460; margin: 0; border-radius: 16px; overflow: hidden; scroll-snap-align: start; border: 2px solid var(--b-light); background: var(--p100); }
.zv2-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 769px) {
  .zv2-fhero { aspect-ratio: 16 / 9; max-height: 440px; }
  .zv2-fphoto img { object-position: 50% 18%; }
  .zv2-fcap { max-width: 62%; padding-top: 40px; background: linear-gradient(to right, rgba(24,8,48,.94) 0%, rgba(42,10,85,.7) 70%, rgba(42,10,85,0) 100%); top: 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .zv2-fname { font-size: 2.1rem; }
  .zv2-strip figure { flex: 0 0 22%; max-width: none; }
}

/* ── About: the full story, same visual language ────────────────── */
#about-us-section .founder-info { align-items: center; gap: 18px; }
#about-us-section .founder-info img { width: min(100%, 320px); height: auto; aspect-ratio: 3 / 4; border-radius: 24px; object-fit: cover; object-position: 50% 14%;
  border: 3px solid var(--g400); box-shadow: 0 12px 30px rgba(58,13,110,.25), 0 0 0 6px rgba(255,194,74,.14); }
#about-us-section .founder-bio { max-width: 640px; line-height: 1.75; }
#about-us-section .founder-bio p { margin-bottom: 14px; }
#about-us-section .founder-name { text-align: center; font-size: 1.5rem; }
html[data-theme="dark"] #about-us-section .founder-name { color: var(--t-head); }
#about-us-section .mandate-section { border-radius: 22px; padding: 26px 22px; color: #fff; background: linear-gradient(150deg, #3a0d6e, #5b17b0 70%, #7a2bd8); border: 1px solid rgba(255,194,74,.35); }
html[data-theme="dark"] #about-us-section .mandate-section { background: linear-gradient(150deg, #1c0a38, #33105f 70%, #47177f); }
#about-us-section .mandate-section p { color: #fff; font-family: var(--f-display); }
#about-us-section .mandate-section .mandate-verse { color: var(--g400); font-size: 1.6rem; font-style: normal; }
#about-us-section .mandate-section .verse-ref { color: var(--g400); font-weight: 700; }
#about-us-section .charity-photos-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
#about-us-section .charity-photos-grid img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
@media (min-width: 769px) { #about-us-section .charity-photos-grid { grid-template-columns: repeat(4, 1fr); } #about-us-section .founder-info { flex-direction: row; align-items: flex-start; } #about-us-section .founder-name { text-align: left; } }

/* The app's general h3 / p styles must not recolour the founder caption */
#zv2-home-section .zv2-fcap .zv2-fname { color: #fff; border: 0; padding: 0; margin: 6px 0 4px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
#zv2-home-section .zv2-fcap .zv2-fname::after { display: none; }
#zv2-home-section .zv2-fcap .zv2-frole { color: #f1e6ff; margin: 0; }
#zv2-home-section .zv2-fcap .zv2-fmeta { color: var(--g400); margin: 4px 0 12px; }
#zv2-home-section .zv2-fcap .zv2-lbl.on { color: var(--g400); }
#zv2-home-section .zv2-quote p { color: #fff; }
#zv2-home-section .zv2-quote small { color: var(--g400); }

/* About: win over the older fixed-size founder photo rule in main.css */
#about-us-section .founder-info img { width: min(100%, 320px) !important; max-width: 100% !important; height: auto !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; object-position: 50% 14% !important;
  border-radius: 24px !important; border: 3px solid var(--g400) !important; margin: 0 auto; display: block; }
#about-us-section .mandate-section .verse-ref { color: var(--g400) !important; font-style: normal; }
@media (min-width: 769px) { #about-us-section .founder-info img { margin: 0; width: 280px !important; flex: none; } }

/* Desktop: photo on the left, words on the right (the face is never behind the text) */
@media (min-width: 769px) {
  .zv2-fhero { display: grid; grid-template-columns: 300px 1fr; aspect-ratio: auto; max-height: none; background: linear-gradient(150deg, #3a0d6e, #5b17b0 70%, #7a2bd8); }
  html[data-theme="dark"] .zv2-fhero { background: linear-gradient(150deg, #1c0a38, #33105f 70%, #47177f); }
  .zv2-fphoto { position: relative; inset: auto; height: 420px; }
  .zv2-fphoto img { position: absolute; inset: 0; object-position: 50% 12%; }
  .zv2-fcap { position: static; max-width: none; background: none; padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; }
  #zv2-home-section .zv2-fcap .zv2-fname { font-size: 2.2rem; }
}

/* ============================================================
   Laptop layout (769px and wider). Phones never see any of this.
   Top bar with tabs, welcome hero with the founder, quick give,
   latest message, prayer and upcoming events.
   ============================================================ */
.zv2-dtop, .zv2-dhero, .zv2-dgive, .zv2-dprayer, .zv2-devents { display: none; }

@media (min-width: 769px) {
  /* the old frame, grid backdrop, sidebar and pill tabs give way to the top bar (every section is still reachable from it) */
  html:not([data-theme="dark"]) body.zv2 { padding: 0 !important; display: block; background: var(--surface-page); }
  html[data-theme="dark"] body.zv2 { padding: 0 !important; display: block; }
  /* the sign-in card is shown on its own, centred like it always was */
  html:not([data-theme="dark"]) body.zv2.auth-view, html[data-theme="dark"] body.zv2.auth-view { display: flex; padding: 24px 24px 48px !important; }
  body.zv2::before { display: none; }
  body.zv2 #app-main-content { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  html[data-theme="dark"] body.zv2 #app-main-content { background: transparent; }
  body.zv2 #app-main-content::before { display: none; }
  body.zv2 #app-main-content #app-navigation, body.zv2 #app-main-content #left-app-navigation { display: none !important; }
  body.zv2 #app-main-content .app-header-block { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 8px 24px 0; border: 0; text-align: right; }
  body.zv2 #app-main-content .app-header-block .app-logo-row { display: none; }
  body.zv2 #app-main-content .app-header-block #user-status { margin: 0; font-size: .8rem; font-weight: 500; color: var(--t-muted); }
  body.zv2 #email-verification-banner { max-width: 1052px; margin: 12px auto 0; }
  body.zv2 #app-main-content .app-layout-wrapper { max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 24px 40px; display: block !important; grid-template-columns: none !important; }
  body.zv2 #app-main-content .app-main-sections { padding: 0; width: 100%; }
  body.zv2 .footer-container { max-width: 1100px; margin: 0 auto; padding: 0 24px 32px; }

  .zv2-dtop { display: block; position: sticky; top: 0; z-index: 900; background: var(--surface-card); border-bottom: 1px solid var(--b-light); }
  .zv2-dtop .in { max-width: 1100px; margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; gap: 16px; }
  .zv2-dtop .brand { display: flex; align-items: center; gap: 12px; background: none; border: 0; cursor: pointer; font: 800 1.15rem var(--f-display); color: var(--t-head); padding: 0; }
  .zv2-dtop .brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g400); }
  .zv2-dnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .zv2-dtab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--t-muted); font: 700 .95rem var(--f-body); cursor: pointer; }
  .zv2-dtab:hover { background: var(--surface-lifted); color: var(--t-head); }
  .zv2-dtab.on { background: var(--p100); color: var(--p700); }
  html[data-theme="dark"] .zv2-dtab.on { background: var(--p200); color: var(--g400); }
  .zv2-dtab .zv2-ico { width: 20px; height: 20px; }
  .zv2-dnav .more { position: relative; }
  .zv2-dmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; background: var(--surface-card); border: 1px solid var(--b-light); border-radius: 16px; box-shadow: var(--sh-lg); z-index: 950; }
  .zv2-dmenu[hidden] { display: none; }
  .zv2-dmenu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--t-head); font: 600 .92rem var(--f-body); cursor: pointer; text-align: left; }
  .zv2-dmenu button:hover { background: var(--surface-lifted); }
  .zv2-dmenu .zv2-ico { width: 18px; height: 18px; color: var(--p700); }
  html[data-theme="dark"] .zv2-dmenu .zv2-ico { color: #d9b8ff; }
  .zv2-dtop .tools { display: flex; gap: 8px; }
  .zv2-dtop .tools .zv2-desktop-tools { display: flex; margin: 0; }

  #zv2-home-section { margin-top: 24px; }
  .zv2-home-wrap { grid-template-columns: 1.15fr 1fr; gap: 16px; }
  .zv2-home-wrap > * { order: 10; }
  #zv2-welcome, #zv2-prayer { display: none; }

  .zv2-dhero { display: grid; order: 1; grid-column: 1 / -1; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; padding: 30px 36px; border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, #4a0fa0 0%, #6d28d9 55%, #a855f7 100%); box-shadow: var(--sh-lg); }
  html[data-theme="dark"] .zv2-dhero { background: linear-gradient(135deg, #1c0a38 0%, #33105f 55%, #5b2a9c 100%); }
  .zv2-dhero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 700; font-size: .85rem; }
  .zv2-dhero .pill .zv2-ico { width: 16px; height: 16px; }
  #zv2-home-section .zv2-dhero .zv2-dh { font: 800 2.7rem/1.1 var(--f-display); color: #fff; margin: 18px 0 10px; border: 0; padding: 0; }
  #zv2-home-section .zv2-dhero p { color: #f1e6ff; font-size: 1.1rem; margin: 0 0 22px; }
  .zv2-dhero .btns { display: flex; gap: 12px; flex-wrap: wrap; }
  .zv2-dhero .zv2-btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
  .zv2-dhero .photo { position: relative; justify-self: end; width: min(100%, 300px); aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; border: 2px solid var(--g500); box-shadow: 0 14px 40px rgba(20,4,48,.45); background: #2a0a55; }
  .zv2-dhero .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
  .zv2-dhero .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; display: grid; gap: 3px; background: linear-gradient(to top, rgba(24,8,48,.95) 0%, rgba(42,10,85,.7) 60%, rgba(42,10,85,0) 100%); }
  #zv2-home-section .zv2-dhero .cap b { color: #fff; font: 700 1.25rem var(--f-display); }
  #zv2-home-section .zv2-dhero .cap small { color: #f1e6ff; font-size: .8rem; line-height: 1.35; }
  #zv2-home-section .zv2-dhero .cap small.meta { color: var(--g400); font-weight: 700; margin-bottom: 8px; }
  .zv2-dhero .cap .zv2-lbl.on { color: var(--g400); }

  .zv2-dgive { display: block; order: 2; margin: 0; }
  .zv2-dt { font: 800 1.3rem var(--f-display); color: var(--t-head); }
  .zv2-dgive .zv2-chips { grid-template-columns: repeat(5, 1fr); margin: 14px 0; }
  .zv2-dgive .zv2-chip { padding: 14px 0; font-size: 1.05rem; }
  .zv2-dnote { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--t-muted); display: flex; justify-content: center; align-items: center; gap: 6px; }
  .zv2-dnote .zv2-ico { width: 14px; height: 14px; }

  #zv2-latest { order: 3; margin: 0; }
  #zv2-latest-body { flex-direction: column; align-items: stretch !important; gap: 12px; }
  #zv2-latest-body > div:first-child { position: relative; width: 100% !important; height: 170px !important; border-radius: 16px !important; }
  #zv2-latest-body > div:first-child::after { content: "\25B6"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--p700); display: grid; place-items: center; font-size: 20px; padding-left: 3px; }
  #zv2-latest-body .zv2-h { font-size: 1.3rem !important; }

  .zv2-dprayer { display: flex; order: 4; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #feecb8; color: #4a2a00; border: 1px solid #f6d98a; }
  .zv2-dprayer b { display: block; font: 700 1.1rem var(--f-display); color: #3a2200; }
  .zv2-dprayer small { display: block; color: #5c3b0a; }
  .zv2-dprayer .zv2-ico { width: 34px; height: 34px; color: #5a3a00; flex: none; }
  html[data-theme="dark"] .zv2-dprayer { background: #3a2a10; border-color: rgba(255,194,74,.35); }
  html[data-theme="dark"] .zv2-dprayer b { color: #ffe3a0; } html[data-theme="dark"] .zv2-dprayer small { color: #e8cf9a; } html[data-theme="dark"] .zv2-dprayer .zv2-ico { color: #ffc24a; }

  .zv2-devents { display: block; order: 5; grid-column: 1 / -1; margin-top: 8px; }
  .zv2-devents .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
  .zv2-devents .see { background: none; border: 0; color: var(--p700); font: 700 .95rem var(--f-body); cursor: pointer; }
  html[data-theme="dark"] .zv2-devents .see { color: var(--g400); }
  .zv2-devents .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .zv2-dev { display: grid; gap: 4px; text-align: left; padding: 12px 12px 14px; background: var(--surface-card); border: 1px solid var(--b-light); border-radius: 18px; box-shadow: var(--sh-sm); cursor: pointer; font-family: var(--f-body); color: var(--t-head); }
  .zv2-dev .pic { height: 130px; border-radius: 12px; margin-bottom: 8px; background: linear-gradient(135deg, #6d28d9, #e0a020) center / cover no-repeat; display: grid; place-items: center; color: #fff; }
  .zv2-dev .pic .zv2-ico { width: 40px; height: 40px; }
  .zv2-dev b { font: 700 1.02rem var(--f-display); }
  .zv2-dev small { color: var(--t-muted); font-size: .85rem; }
  .zv2-dmuted { color: var(--t-muted); margin: 0; grid-column: 1 / -1; }
}

/* ── English / French button ─────────────────────────────────────── */
.zion-lang-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: 800 .78rem var(--f-body); letter-spacing: .04em; }
.zv2-ib.zion-lang-btn { width: auto; min-width: 40px; padding: 0 10px; }
.zion-lang-btn svg { flex: none; }
.zion-lang-float { position: fixed; top: 12px; right: 12px; z-index: 3000; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--b-mid, rgba(120,60,200,.35)); background: var(--surface-card, #fff); color: var(--t-head, #2e0060); box-shadow: var(--sh-md, 0 4px 14px rgba(0,0,0,.15)); }
body.zv2:not(.auth-view) .zion-lang-float { display: none; }
.zv2-dhero .pill[hidden] { display: none; }

/* ── "Continue with Google" on the sign-in card ─────────────────── */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--t-muted); font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--b-light); }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #dadce0; background: #fff; color: #3c4043; font: 700 .98rem var(--f-body); cursor: pointer; }
.btn-google:hover { background: #f7f8f8; }
.btn-google svg { flex: none; }

/* ── More sheet: buttons, not a list (phone) ─────────────────────── */
@media (max-width: 768px) {
  .zv2-list.tiles, .zv2-list.pair { display: grid; gap: 10px; background: none; border: 0; border-radius: 0; overflow: visible; }
  .zv2-list.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zv2-list.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zv2-list.tiles .zv2-item, .zv2-list.pair .zv2-item { border: 1px solid var(--b-light); border-radius: 16px; background: var(--surface-card); box-shadow: var(--sh-sm); width: auto; }
  .zv2-list.tiles .zv2-item { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 14px 6px; min-height: 92px; font-size: 13px; line-height: 1.2; }
  .zv2-list.tiles .zv2-item .ic { width: 42px; height: 42px; border-radius: 14px; }
  .zv2-list.pair .zv2-item { min-height: 52px; padding: 10px 12px; font-size: 14px; }
  .zv2-list.tiles .zv2-item:last-child, .zv2-list.pair .zv2-item:last-child { border-bottom: 1px solid var(--b-light); }
  .zv2-list.tiles .zv2-item:active, .zv2-list.pair .zv2-item:active { transform: scale(.98); }
  .zv2-list .zv2-item small { display: none; }
  /* the quick tiles on Home repeat the bottom bar, so on a phone they live in More */
  .zv2-home-wrap .zv2-grid.wide { display: none; }
}
