/* generated from OneAltar-Complete.html by tools/build_live.py */

  :root {
    --indigo: #2d1b69;
    --indigo-2: #3d2a8a;
    --indigo-3: #5b3fd4;
    --gold: #d4a017;
    --gold-soft: #f5d76e;
    --bg: #0f0a1f;
    --bg-card: #1a1333;
    --bg-elev: #241b45;
    --text: #f4f1ff;
    --muted: #a89cc8;
    --line: rgba(255,255,255,0.08);
    --success: #34d399;
    --live: #ef4444;
    --radius: 16px;
    --shadow: 0 20px 50px rgba(0,0,0,0.45);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { min-height: 100%; }
  body {
    font-family: "DM Sans", system-ui, sans-serif;
    background: radial-gradient(1200px 600px at 10% -10%, #3d2a8a55, transparent),
                radial-gradient(900px 500px at 90% 0%, #d4a01722, transparent),
                var(--bg);
    color: var(--text);
    line-height: 1.5;
  }
  body.rtl { direction: rtl; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  img { max-width: 100%; display: block; }

  /* App shell */
  .app { max-width: 1200px; margin: 0 auto; padding: 0 16px 80px; }
  .topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
    backdrop-filter: blur(14px);
    background: rgba(15,10,31,0.75);
    border-bottom: 1px solid var(--line);
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; letter-spacing: -0.02em;
  }
  .logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3));
    display: grid; place-items: center;
    color: var(--gold); font-family: "Playfair Display", serif; font-size: 15px;
    box-shadow: 0 0 0 2px #d4a01744;
  }
  .brand span.tag { display: none; color: var(--muted); font-weight: 500; font-size: 12px; margin-inline-start: 6px; }
  @media (min-width: 720px) { .brand span.tag { display: inline; } }

  .topbar .spacer { flex: 1; }
  .lang-select, .country-select, .filter-select {
    background: var(--bg-elev); color: var(--text);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 12px; font-size: 13px;
  }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
    transition: transform .15s, background .15s, box-shadow .15s;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-gold {
    background: linear-gradient(135deg, var(--gold), #f0c14b);
    color: #1a0f00; box-shadow: 0 8px 24px #d4a01733;
  }
  .btn-ghost {
    background: transparent; border: 1px solid var(--line); color: var(--text);
  }
  .btn-indigo {
    background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3));
    color: #fff;
  }
  .btn-sm { padding: 7px 12px; font-size: 12px; }

  /* Nav tabs */
  .nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav button {
    white-space: nowrap; padding: 10px 14px; border-radius: 999px;
    background: var(--bg-card); border: 1px solid var(--line);
    color: var(--muted); font-size: 13px; font-weight: 600;
  }
  .nav button.active {
    background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3));
    color: #fff; border-color: transparent;
    box-shadow: 0 8px 20px #5b3fd433;
  }

  .panel { display: none; animation: fade .35s ease; }
  .panel.active { display: block; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  /* Landing */
  #panel-landing { padding-top: 24px; }
  .hero {
    display: grid; gap: 28px;
    background: linear-gradient(160deg, #241b45, #1a1333 60%, #120c28);
    border: 1px solid var(--line); border-radius: 28px;
    padding: 36px 24px; box-shadow: var(--shadow);
    position: relative; overflow: hidden;
  }
  .hero::after {
    content: ""; position: absolute; inset: auto -20% -40% 40%;
    height: 280px; background: radial-gradient(circle, #d4a01733, transparent 70%);
    pointer-events: none;
  }
  @media (min-width: 860px) {
    .hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; }
  }
  .hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1; margin: 10px 0 14px;
  }
  .hero h1 em { font-style: normal; color: var(--gold-soft); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase;
  }
  .eyebrow i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--live);
    box-shadow: 0 0 0 4px #ef444433; animation: pulse 1.6s infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 #ef444466; }
    50% { box-shadow: 0 0 0 8px #ef444400; }
  }
  .hero p.lead { color: var(--muted); font-size: 16px; max-width: 42ch; margin-bottom: 22px; }
  .signin-stack { display: grid; gap: 10px; max-width: 340px; }
  .signin-btn {
    display: flex; align-items: center; gap: 12px;
    background: #fff; color: #111; border-radius: 14px;
    padding: 12px 16px; font-weight: 600; font-size: 14px;
  }
  .signin-btn.dark { background: #000; color: #fff; border: 1px solid #333; }
  .signin-btn.phone { background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); }
  .signin-btn .ico {
    width: 22px; height: 22px; display: grid; place-items: center; font-size: 16px;
  }
  .hero-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line); border-radius: 22px; padding: 18px;
  }
  .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
  .stat {
    background: var(--bg); border-radius: 14px; padding: 12px; text-align: center;
    border: 1px solid var(--line);
  }
  .stat b { display: block; font-size: 18px; color: var(--gold-soft); }
  .stat span { font-size: 11px; color: var(--muted); }
  .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .pill {
    font-size: 11px; padding: 6px 10px; border-radius: 999px;
    background: #d4a01718; color: var(--gold-soft); border: 1px solid #d4a01733;
  }

  /* Section headers */
  .section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 12px; margin: 28px 0 14px; flex-wrap: wrap;
  }
  .section-head h2 {
    font-family: "Playfair Display", serif; font-size: 1.55rem;
  }
  .section-head p { color: var(--muted); font-size: 13px; }

  /* Live grid */
  .live-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .live-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .15s, border-color .15s;
  }
  .live-card:hover { transform: translateY(-3px); border-color: #5b3fd466; }
  .thumb {
    aspect-ratio: 16/10; position: relative;
    background: linear-gradient(135deg, #3d2a8a, #1a1333 70%);
    display: grid; place-items: center; font-size: 42px;
  }
  .thumb.alt1 { background: linear-gradient(135deg, #7c3aed, #1e1b4b); }
  .thumb.alt2 { background: linear-gradient(135deg, #b45309, #3b0764); }
  .thumb.alt3 { background: linear-gradient(135deg, #0f766e, #1e1b4b); }
  .thumb.alt4 { background: linear-gradient(135deg, #be123c, #1e1b4b); }
  .badge-live {
    position: absolute; top: 10px; left: 10px;
    background: var(--live); color: #fff; font-size: 10px; font-weight: 800;
    padding: 4px 8px; border-radius: 6px; letter-spacing: .06em;
  }
  .badge-lang {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.55); color: #fff; font-size: 10px; font-weight: 600;
    padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(6px);
  }
  .live-card .body { padding: 12px 14px 14px; }
  .live-card h3 { font-size: 15px; margin-bottom: 4px; }
  .meta { color: var(--muted); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
  .card-actions { display: flex; gap: 8px; margin-top: 12px; }
  .follow-btn.followed {
    background: #34d39922; color: var(--success); border: 1px solid #34d39955;
  }

  /* Search */
  .search-bar {
    display: grid; gap: 10px;
    grid-template-columns: 1fr;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 18px; padding: 14px;
  }
  @media (min-width: 720px) {
    .search-bar { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; }
  }
  .search-bar input {
    width: 100%; background: var(--bg); border: 1px solid var(--line);
    border-radius: 12px; padding: 11px 14px; color: var(--text); font-size: 14px;
  }
  .church-list { display: grid; gap: 10px; margin-top: 14px; }
  .church-row {
    display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 14px;
  }
  .church-avatar {
    width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; font-size: 22px;
    background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3));
  }
  .verified {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--gold-soft); font-size: 11px; font-weight: 700;
  }

  /* Mega Screen */
  .mega {
    display: grid; gap: 14px;
    background: #0a0614; border: 1px solid var(--line);
    border-radius: 22px; overflow: hidden; min-height: 520px;
  }
  @media (min-width: 900px) {
    .mega { grid-template-columns: 1.4fr 1fr; min-height: 560px; }
  }
  .mega-stage {
    position: relative; min-height: 280px;
    background:
      radial-gradient(circle at 30% 40%, #5b3fd455, transparent 40%),
      radial-gradient(circle at 70% 60%, #d4a01733, transparent 35%),
      linear-gradient(160deg, #1a1333, #0a0614);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
  }
  .mega-stage .now {
    position: absolute; top: 16px; left: 16px; right: 16px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .mega-stage h2 {
    font-family: "Playfair Display", serif; font-size: clamp(1.4rem, 3vw, 2rem);
    text-shadow: 0 6px 30px #000;
  }
  .mega-stage .sub { color: var(--muted); margin-top: 6px; font-size: 13px; }
  .reaction-bar { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
  .reaction-bar button {
    background: rgba(255,255,255,0.08); border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 12px; font-size: 13px;
  }
  .reaction-bar button:active { transform: scale(1.08); }
  .mega-feed {
    display: flex; flex-direction: column; background: var(--bg-card);
    border-inline-start: 1px solid var(--line);
  }
  .mega-feed .feed-head {
    padding: 12px 14px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 700; font-size: 13px;
  }
  .comments {
    flex: 1; overflow: hidden; padding: 10px 12px;
    display: flex; flex-direction: column; gap: 8px;
    max-height: 420px;
  }
  .comment {
    background: var(--bg-elev); border-radius: 12px; padding: 8px 10px;
    font-size: 12.5px; border: 1px solid transparent;
    animation: slideIn .4s ease;
  }
  .comment.prayer { border-color: #d4a01755; background: #d4a01712; }
  .comment b { color: var(--gold-soft); }
  .comment .who { color: var(--muted); font-size: 11px; margin-bottom: 2px; }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  .floating-reacts {
    position: absolute; right: 20px; bottom: 80px; pointer-events: none;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  }
  .float-emoji {
    font-size: 22px; animation: floatUp 2.2s ease forwards; opacity: 0;
  }
  @keyframes floatUp {
    0% { transform: translateY(20px) scale(.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
  }
  .composer {
    display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line);
  }
  .composer input {
    flex: 1; background: var(--bg); border: 1px solid var(--line);
    border-radius: 999px; padding: 10px 14px; color: var(--text); font-size: 13px;
  }

  /* Fasting */
  .fast-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .fast-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px;
  }
  .fast-card h3 { font-size: 16px; margin: 6px 0; }
  .progress {
    height: 6px; background: #ffffff14; border-radius: 999px; margin: 12px 0;
    overflow: hidden;
  }
  .progress > i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--indigo-3));
  }

  /* Stories / testimonies */
  .story-rail {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .story-ring {
    flex: 0 0 auto; width: 76px; text-align: center; font-size: 11px; color: var(--muted);
  }
  .story-ring .avatar {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 6px;
    padding: 3px;
    background: linear-gradient(135deg, var(--gold), var(--indigo-3), #ec4899);
  }
  .story-ring .avatar > span {
    display: grid; place-items: center; width: 100%; height: 100%;
    border-radius: 50%; background: var(--bg); font-size: 24px;
  }
  .testimony-feed { display: grid; gap: 12px; margin-top: 16px; }
  .t-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px;
  }
  .t-card .who { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
  .t-card .ava {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-elev); display: grid; place-items: center;
  }

  /* Give modal */
  .modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.65);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 16px;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    width: min(420px, 100%); background: var(--bg-card);
    border: 1px solid var(--line); border-radius: 22px;
    padding: 22px; box-shadow: var(--shadow);
  }
  .modal h3 { font-family: "Playfair Display", serif; font-size: 1.4rem; margin-bottom: 6px; }
  .amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
  .amounts button {
    background: var(--bg-elev); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px; font-weight: 700;
  }
  .amounts button.sel { border-color: var(--gold); color: var(--gold-soft); }
  .pay-methods { display: grid; gap: 8px; margin: 12px 0 16px; }
  .pay-methods label {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--line);
    border-radius: 12px; padding: 10px 12px; font-size: 14px; cursor: pointer;
  }

  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #111; color: #fff; padding: 12px 18px; border-radius: 999px;
    font-size: 13px; opacity: 0; pointer-events: none; transition: .3s;
    border: 1px solid #d4a01755; z-index: 200; white-space: nowrap;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .footnote {
    margin-top: 40px; padding: 18px; border-radius: 16px;
    background: #ffffff06; border: 1px dashed var(--line);
    color: var(--muted); font-size: 12px; text-align: center;
  }
  .hidden { display: none !important; }
  /* ===== v2 additions ===== */
  body.noanim *, body.noanim *::before, body.noanim *::after { animation: none !important; transition: none !important; }
  .v2-grid-2 { display: grid; gap: 14px; }
  @media (min-width: 900px) { .v2-grid-2 { grid-template-columns: 1.1fr 1fr; } }
  .card-v2 { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
  .h3-serif { font-family: "Playfair Display", serif; font-size: 1.3rem; margin: 6px 0 8px; }
  .sub-h { font-size: 15px; margin: 22px 0 10px; color: var(--gold-soft); }
  .muted { color: var(--muted); }
  .tiny { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
  .lbl { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
  .inp { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text); font-size: 14px; font-family: inherit; color-scheme: dark; }
  .wide { width: 100%; border-radius: 12px; padding: 10px 12px; }
  .row-2 { display: flex; gap: 10px; align-items: center; }
  .chip { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line); white-space: nowrap; }
  .seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bg); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
  .seg button { flex: 1; padding: 8px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .seg button.on { background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3)); color: #fff; }
  .rails { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
  .rail { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
  .rail.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
  .rail small { display: block; color: var(--muted); font-size: 10.5px; }
  .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin-top: 10px; cursor: pointer; }
  .check input { margin-top: 3px; accent-color: var(--gold); }
  .fx { margin-top: 12px; background: #d4a01710; border: 1px solid #d4a01733; border-radius: 12px; padding: 12px; font-size: 13px; }
  .fx b { color: var(--gold-soft); }
  .support-card { background: linear-gradient(160deg, #2a1d58, #1a1333); }
  .micro-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
  .tier { text-align: center; padding: 12px 6px; border-radius: 14px; background: var(--bg); border: 1px solid #d4a01744; }
  .tier b { display: block; font-size: 18px; color: var(--gold-soft); }
  .tier span { font-size: 11px; color: var(--muted); }
  .tier:hover { border-color: var(--gold); }
  .ticks { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 13px; }
  .ticks li::before { content: "✓ "; color: var(--success); font-weight: 700; }
  .sermon-list { display: grid; gap: 12px; }
  .sermon { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
  .sermon .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .dl-row .btn.done { background: #34d39922; color: var(--success); border: 1px solid #34d39955; }
  .notes { margin-top: 10px; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; border: 1px dashed var(--line); }
  .notes ul { padding-inline-start: 18px; }
  .ai-tag { font-size: 10.5px; color: var(--gold-soft); }
  .relay-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
  .relay-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 16px 0; }
  .leg { padding: 10px 6px; border-radius: 12px; text-align: center; background: var(--bg); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
  .leg b { display: block; font-size: 13px; color: var(--text); }
  .leg.done { opacity: .55; }
  .leg.now { background: linear-gradient(135deg, #d4a01733, #5b3fd455); border-color: var(--gold); color: var(--gold-soft); box-shadow: 0 0 20px #d4a01744; }
  .leg.now b::after { content: " 🔥"; }
  @media (max-width: 700px) { .relay-track { grid-template-columns: repeat(4, 1fr); } }
  .relay-segments { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .segm { background: var(--bg); border-radius: 12px; padding: 10px; font-size: 12px; border: 1px solid var(--line); }
  .segm.on { border-color: #34d39977; }
  .segm .progress { margin: 8px 0 0; }
  .streak { background: #d4a01718; border: 1px solid #d4a01755; color: var(--gold-soft); padding: 8px 14px; border-radius: 999px; font-size: 13px; }
  .warn-banner { background: #7f1d1d33; border: 1px solid #ef444466; color: #fecaca; border-radius: 14px; padding: 12px 14px; font-size: 13px; margin-bottom: 6px; }
  .disclaimer { background: #7f1d1d22; border: 1px solid #ef444455; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; margin-top: 4px; }
  .disclaimer ul { padding-inline-start: 18px; margin-top: 6px; display: grid; gap: 4px; }
  .log { width: 100%; border-collapse: collapse; font-size: 12px; }
  .log th, .log td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .log th { color: var(--muted); font-weight: 600; }
  .countdown { font-family: "Playfair Display", serif; font-size: 2.6rem; color: var(--gold-soft); margin: 4px 0 10px; letter-spacing: .02em; }
  .scripture { margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--bg); border-inline-start: 3px solid var(--gold); }
  .health { margin-top: 14px; font-size: 12.5px; background: #0f766e22; border: 1px solid #14b8a655; border-radius: 12px; padding: 12px; }
  .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
  .status { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--bg-elev); color: var(--muted); }
  .status.ok { background: #34d39922; color: var(--success); }
  .status.wait { background: #d4a01722; color: var(--gold-soft); }
  /* ===== v3: aurora, glass, social ===== */
  .aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
  .aurora i:nth-child(1) { width: 640px; height: 420px; left: -120px; top: -140px; background: radial-gradient(circle, #5b3fd4, transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { width: 560px; height: 380px; right: -140px; top: 60px; background: radial-gradient(circle, #d4a01799, transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { width: 700px; height: 360px; left: 25%; bottom: -200px; background: radial-gradient(circle, #7c3aed88, transparent 65%); animation: drift1 30s ease-in-out infinite alternate-reverse; }
  .aurora .rays { position: absolute; left: 50%; top: -55%; width: 160vmax; height: 160vmax; transform: translateX(-50%);
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(245,215,110,.07) 0deg 4deg, transparent 4deg 14deg);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 48%); mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 48%);
    animation: spin 120s linear infinite; }
  @keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(-140px, 60px) scale(1.1); } }
  @keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
  .app { position: relative; z-index: 1; }
  .topbar { background: rgba(15,10,31,0.55); }

  /* glass + soft neumorphic */
  .glass, .live-card, .t-card, .church-row, .card-v2, .fast-card, .sermon, .search-bar, .mega-feed, .story-card {
    background: rgba(36,27,69,0.42) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 40px rgba(0,0,0,0.30);
  }
  .nav button { background: rgba(26,19,51,.55); box-shadow: 4px 4px 10px rgba(0,0,0,.35), -2px -2px 8px rgba(255,255,255,.03); backdrop-filter: blur(8px); }
  .btn-gold { box-shadow: 0 8px 22px #d4a01733, inset 0 1px 0 rgba(255,255,255,.45); }
  .btn-ghost { background: rgba(255,255,255,0.04); box-shadow: 3px 3px 8px rgba(0,0,0,.35), -2px -2px 6px rgba(255,255,255,.03); }
  .badge-live { animation: liveGlow 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 #ef444488, 0 0 14px #ef4444aa; }
  @keyframes liveGlow { 0%,100% { box-shadow: 0 0 0 0 #ef444466, 0 0 10px #ef444488; } 50% { box-shadow: 0 0 0 6px #ef444400, 0 0 22px #ef4444cc; } }

  /* landing v3 */
  #panel-landing { padding-top: 18px; }
  .hero3 { position: relative; display: grid; gap: 22px; padding: 30px 22px 0; border-radius: 30px; overflow: hidden;
    background: linear-gradient(160deg, rgba(61,42,138,.38), rgba(26,19,51,.30)); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 30px 80px rgba(0,0,0,.45); }
  @media (min-width: 920px) { .hero3 { grid-template-columns: 1fr 1.05fr; padding: 44px 44px 0; align-items: center; } }
  .hero3 h1 { font-family: "Playfair Display", serif; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; margin: 10px 0 14px; text-shadow: 0 6px 40px #5b3fd488; }
  .hero3 h1 em { font-style: normal; background: linear-gradient(90deg, #f5d76e, #d4a017, #fff2c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero3 p.lead { color: #cfc6ee; font-size: 16px; max-width: 44ch; margin-bottom: 20px; }
  .hero3 .signin-btn { box-shadow: 6px 6px 16px rgba(0,0,0,.35), -3px -3px 10px rgba(255,255,255,.04); }
  .hero3 .signin-btn.phone { background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
  .hero-left { position: relative; z-index: 3; padding-bottom: 26px; }
  .carousel { position: relative; z-index: 3; aspect-ratio: 16/11; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
  .slide.on { opacity: 1; }
  .slide svg { width: 100%; height: 100%; display: block; }
  .slide .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 16px;
    background: rgba(15,10,31,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); }
  .slide .cap b { font-family: "Playfair Display", serif; font-size: 1.1rem; display: block; }
  .slide .cap span { font-size: 12px; color: #d9d0f5; }
  .slide .badge-live { top: 14px; left: 14px; }
  .dots { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 4; }
  .dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.4); padding: 0; transition: width .3s; }
  .dots button.on { width: 22px; background: var(--gold); }
  .crowd { position: relative; z-index: 2; margin: 0 -44px; height: 120px; pointer-events: none; }
  @media (max-width: 919px) { .crowd { margin: 0 -22px; } }
  .crowd svg { width: 100%; height: 100%; display: block; }
  .particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
  .particles span { position: absolute; bottom: -10px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, #f5d76e88 50%, transparent 70%); opacity: .7; animation: rise linear infinite; }
  @keyframes rise { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: .85; } 100% { transform: translateY(-560px) scale(1.2); opacity: 0; } }
  .dove { position: absolute; z-index: 2; width: 54px; opacity: .85; filter: drop-shadow(0 4px 12px rgba(245,215,110,.45)); animation: fly 9s ease-in-out infinite; }
  .dove.d2 { width: 38px; animation-duration: 12s; animation-delay: -4s; opacity: .7; }
  .dove.d3 { width: 30px; animation-duration: 14s; animation-delay: -7s; opacity: .6; }
  @keyframes fly { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(26px,-18px) rotate(5deg); } }
  .counter-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 18px 0 6px; }
  .ctile { padding: 16px 18px; border-radius: 20px; background: rgba(36,27,69,.42); border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 8px 8px 24px rgba(0,0,0,.35), -4px -4px 14px rgba(255,255,255,.025); }
  .ctile b { display: block; font-family: "Playfair Display", serif; font-size: 1.9rem; color: var(--gold-soft); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
  .ctile span { font-size: 12px; color: var(--muted); }
  .ctile .dotlive { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-inline-end: 6px; animation: pulse 1.6s infinite; }
  .demo-tag { font-size: 10.5px; color: var(--gold-soft); border: 1px dashed #d4a01766; border-radius: 999px; padding: 3px 9px; }
  .landing-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

  /* engagement bar */
  .eng { display: flex; overflow: hidden; align-items: center; justify-content: space-between; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.07); }
  .eb { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); padding: 5px 5px; white-space: nowrap; min-width: 0; border-radius: 999px; transition: color .15s, background .15s; font-variant-numeric: tabular-nums; }
  .eb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  button.eb:hover { background: rgba(255,255,255,.06); color: var(--text); }
  .eb.like:hover, .eb.like.on { color: #f43f5e; }
  .eb.like.on svg { fill: #f43f5e; stroke: #f43f5e; }
  .eb.repost:hover, .eb.repost.on { color: #34d399; }
  .eb.bm:hover, .eb.bm.on { color: var(--gold-soft); }
  .eb.bm.on svg { fill: var(--gold-soft); }
  .eb.views { cursor: default; }
  .eb.pop svg { animation: heartPop .45s ease; }
  @keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
  .eb .n.bump { display: inline-block; animation: numBump .35s ease; }
  @keyframes numBump { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
  .subs { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .subs b { color: var(--text); }
  .fbtn.following { background: rgba(255,255,255,.08) !important; color: var(--text) !important; border: 1px solid rgba(255,255,255,.2) !important; box-shadow: none !important; }
  .fbtn.following:hover::after { content: ""; }

  /* feed */
  .feed-grid { display: grid; gap: 16px; }
  @media (min-width: 980px) { .feed-grid { grid-template-columns: minmax(0,1fr) 300px; align-items: start; } }
  .feed-grid > * { min-width: 0; }
  .story-card .eb:nth-child(2), .story-card .eb:nth-child(5) { display: none; }
  .story-card .eng { justify-content: space-around; }
  .story-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
  .story-card { border-radius: 18px; overflow: hidden; position: relative; padding: 0 !important; }
  .story-card .sc-art { aspect-ratio: 9/13; position: relative; }
  .story-card .sc-art svg { width: 100%; height: 100%; display: block; }
  .story-card .sc-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 6px #000; }
  .story-card .sc-top .avatar { width: 30px; height: 30px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--gold), var(--indigo-3), #ec4899); }
  .story-card .sc-top .avatar span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--bg); font-size: 14px; }
  .story-card .sc-cap { position: absolute; bottom: 8px; left: 8px; right: 8px; font-size: 11.5px; text-shadow: 0 1px 6px #000; }
  .story-card .eng { margin: 0; padding: 4px 4px 6px; border: 0; }
  .story-card .eb { padding: 4px 3px; font-size: 11px; gap: 3px; }
  .story-card .eb svg { width: 14px; height: 14px; }
  .composer3 { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; margin-bottom: 14px; }
  .composer3 input { flex: 1; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; color: var(--text); font-family: inherit; }
  .post-art { margin: 10px 0 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16/7; border: 1px solid rgba(255,255,255,.08); }
  .post-art svg { width: 100%; height: 100%; display: block; }
  .t-card .who .handle { color: var(--muted); font-size: 12px; font-weight: 400; }
  .side-card h4 { font-size: 14px; margin-bottom: 10px; }
  .wtf { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .wtf:last-child { border-bottom: 0; }
  .wtf .ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo-2), var(--indigo-3)); font-size: 18px; }
  .trend { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
  .trend small { color: var(--muted); display: block; font-size: 11px; }

  /* share sheet */
  .share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
  .share-grid a, .share-grid button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; font-size: 12px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--text); text-decoration: none; }
  .share-grid a:hover, .share-grid button:hover { border-color: var(--gold); }
  .share-grid .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
  .modal { background: rgba(26,19,51,.82) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14) !important; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  }

  /* ===== v4: one-click subscribe + M-Pesa ===== */
  .oa-sub { max-width: 420px; }
  .oa-sub-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:18px 22px; border:0; border-radius:18px; cursor:pointer;
    font: 800 18px/1.1 Inter, system-ui, sans-serif; letter-spacing:.01em; color:#1a1033;
    background: linear-gradient(135deg, var(--gold), #f5d76e 55%, #f0c14b);
    box-shadow: 0 10px 30px rgba(212,160,23,.35), 6px 6px 16px rgba(0,0,0,.35), -3px -3px 10px rgba(255,255,255,.05), inset 0 1px 0 rgba(255,255,255,.5);
    transition: transform .15s ease, box-shadow .2s ease; }
  .oa-sub-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212,160,23,.45), 6px 6px 16px rgba(0,0,0,.35); }
  .oa-sub-btn:active { transform: translateY(1px) scale(.99); }
  .oa-sub-btn[disabled] { opacity:.75; cursor:progress; }
  .oa-sub-btn.done { background: linear-gradient(135deg,#1f9d55,#34d399); color:#04210f; box-shadow: 0 10px 30px rgba(52,211,153,.3); }
  .oa-sub-done { margin-top:10px; }
  .oa-sub-yes { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-weight:800; font-size:17px; color:#a7f3d0; }
  .oa-sub-go { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.07); color:var(--text); border-radius:999px; padding:6px 12px; font-weight:700; cursor:pointer; }
  .oa-sub-count { margin-top:10px; font-size:14px; color:var(--muted); display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
  .oa-sub-count b { font-size:22px; color:var(--gold-soft); font-variant-numeric: tabular-nums; }
  .oa-demo { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#fcd34d; border:1px dashed #fcd34d66; border-radius:6px; padding:1px 6px; }
  .oa-ts:empty { display:none; } .oa-ts { margin-top:8px; }
  .oa-sub-note { margin:10px 0 0; font-size:12px; color:var(--muted); }
  .oa-sub-msg { margin:4px 0 0; font-size:12.5px; color:#fca5a5; min-height:0; }
  .oa-sub-msg:empty { display:none; }
  .oa-save { margin-top:10px; font-size:12px; color:var(--muted); }
  .oa-save summary { cursor:pointer; opacity:.8; }
  .oa-save p { margin:8px 0; }
  .oa-save-row { display:flex; gap:8px; flex-wrap:wrap; }
  .oa-unsub { margin-top:10px; background:none; border:0; color:var(--muted); text-decoration:underline; cursor:pointer; font-size:12px; padding:0; }
  .mpesa-card { border-radius:20px; padding:18px; background: linear-gradient(135deg, rgba(0,166,81,.16), rgba(45,27,105,.35)); border:1px solid rgba(52,211,153,.28); backdrop-filter: blur(10px); }
  .mpesa-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
  .mpesa-logo { width:44px; height:44px; border-radius:12px; background:#00a651; display:grid; place-items:center; color:#fff; font-weight:900; font-size:9.5px; letter-spacing:-.02em; white-space:nowrap; flex:none; }
  .mpesa-head h3 { margin:0; font-family:"Playfair Display",serif; font-size:20px; }
  .mpesa-head p { margin:2px 0 0; color:var(--muted); font-size:12.5px; }
  .mpesa-steps { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:8px; counter-reset: st; }
  .mpesa-steps li { counter-increment: st; display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.22); border:1px solid rgba(255,255,255,.07); font-size:14px; }
  .mpesa-steps li::before { content: counter(st); width:24px; height:24px; border-radius:50%; background:#00a651; color:#fff; font-weight:800; font-size:12px; display:grid; place-items:center; flex:none; }
  .mpesa-num { font: 800 20px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing:.06em; color:#fff; background:rgba(255,255,255,.08); padding:6px 10px; border-radius:8px; }
  .mpesa-copy { margin-left:auto; border:1px solid rgba(52,211,153,.5); background:rgba(0,166,81,.18); color:#d1fae5; border-radius:999px; padding:6px 12px; font-weight:700; font-size:12.5px; cursor:pointer; }
  .mpesa-copy.ok { background:#00a651; color:#fff; }
  .mpesa-foot { margin:12px 0 0; font-size:12px; color:var(--muted); }
  @media (min-width: 900px){ .mpesa-card.wide .mpesa-steps { grid-template-columns: 1fr 1fr; } }
