/* =====================================================================
   Platform Ibadurrahman · tampilan aplikasi masjid
   Warna memakai token di :root. Nilai bawaan = tema Masjid Ar Rahmah Perak (emas #EDB835 / #DDA700,
   abu-abu #6B6C70, latar arang gelap). Tema masjid lain menimpa token ini lewat Pages Function
   (kolom masjids.theme, kunci = nama token tanpa "--"). Warna mushaf sengaja tetap (tidak ikut tema).
   ===================================================================== */
:root {
  --bg: #0e0f11;
  --surface: #17181b;
  --surface-2: #1f2024;
  --surface-3: #2a2b30;
  --line: #2c2d32;
  --text: #f5f2ea;
  --muted: #a4a4aa;
  --gray: #6b6c70;
  --accent: #edb835;
  --accent-d: #dda700;
  --accent-deep: #a07400;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --on-accent: #1a1300;           /* teks di atas warna utama */
  --text-2: #d9d6cd;
  --outside: #070708;             /* latar di luar kolom aplikasi (layar lebar) */
  --hero-top: #1b1a16;
  --hero-mid: #121315;
  --tint-1: #2a2210;              /* gelap bernuansa warna utama (kartu promo, terakhir dibaca) */
  --tint-2: #4a3708;
  --tint-3: #7a5900;
  --tint-panel: #23211a;
  --nav-bg: rgba(32, 33, 37, 0.94);
  --fab-bg: #26272b;
  --hero-img: url('/app/assets/img/masjid-potong.webp');
  --sky-img: url('/app/assets/img/masjid-langit.jpg');
  --ok: #4cc38a;
  --danger: #ef6a6a;
  --r: 16px;
  --r-lg: 22px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --app-w: 480px;
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --grad-accent: linear-gradient(180deg, var(--accent) 0%, var(--accent-d) 45%, var(--accent-deep) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--outside); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.small { width: 16px; height: 16px; }
[hidden] { display: none !important; }

.v2 { max-width: var(--app-w); margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(var(--nav-h) + 28px + var(--safe-b)); overflow-x: clip; }
@media (min-width: 520px) { .v2 { box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(0, 0, 0, 0.6); } }

/* ---------- Hero (Beranda) ---------- */
.hero {
  position: relative; min-height: 540px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; isolation: isolate;
  background:
    radial-gradient(120% 60% at 70% 8%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, color-mix(in srgb, var(--accent-deep) 12%, transparent) 40%, transparent 70%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero-mid) 70%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background: var(--hero-img) right 0 top 0 / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--bg) 55%, transparent) 78%, var(--bg) 100%); }
.topline { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 2px solid rgba(255, 255, 255, 0.85); font-weight: 800; color: var(--accent); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.greet { flex: 1; min-width: 0; line-height: 1.2; }
.greet small { display: block; color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.greet b { font-size: 19px; font-weight: 800; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.7); background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(6px); position: relative; }
.round-btn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--grad-accent); color: var(--on-accent); font-weight: 800; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface-3); font-weight: 700; }
.btn-block { width: 100%; }
.loc-pill { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(6px); font-size: 14px; }
.hero-logo { display: block; width: 190px; margin: 22px auto 0; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5)); }

/* ---------- Waktu shalat ---------- */
.pray-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; text-align: center; }
.pray { padding: 12px 2px 12px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.pray .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.pray b { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.pray.is-next { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-deep) 22%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); color: #fff; backdrop-filter: blur(8px); }
.pray.is-next .icon { color: var(--accent); }
.pray.is-past { opacity: 0.6; }
.next-line { text-align: center; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.next-line b { color: var(--accent); font-weight: 800; letter-spacing: 0.03em; }

/* ---------- Kartu & seksi ---------- */
.pad { padding: 0 16px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin-bottom: 12px; }
.section-title { margin: 0; font-size: 19px; font-weight: 800; }
.section-link { color: var(--accent); font-weight: 700; font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.jamaah { margin: -34px 16px 0; position: relative; z-index: 2; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent)); backdrop-filter: blur(10px); padding: 24px 14px 14px; }
.jamaah .tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 13px; padding: 6px 16px; border-radius: 999px; }
.jamaah-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 4px; }
.jamaah-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.jamaah-head span { font-size: 12.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; color: var(--muted); min-width: 0; }
.stat .ico { width: 100%; aspect-ratio: 1; max-width: 72px; border-radius: 18px; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); }
.stat .ico .icon { width: 30px; height: 30px; stroke-width: 1.5; }
.stat b { color: var(--text); font-size: 13px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-login { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px; }
.cta-login p { margin: 0; font-size: 14px; color: var(--muted); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 16px 0; }
.tile { position: relative; overflow: hidden; min-height: 108px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.tile b { font-size: 16px; font-weight: 800; position: relative; z-index: 1; max-width: 70%; }
.tile span { font-size: 13px; color: var(--muted); position: relative; z-index: 1; }
.tile .art { position: absolute; right: -6px; bottom: -8px; width: 74px; height: 74px; color: var(--accent); opacity: 0.22; }
.tile .art .icon { width: 100%; height: 100%; stroke-width: 1.2; }
.tile .soon { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; position: relative; z-index: 1; }

/* ---------- Program ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.camp { scroll-snap-align: start; flex: none; width: 262px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.camp.is-wide { width: auto; flex-direction: row; }
.camp-thumb { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.camp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.camp-thumb .ph { height: 100%; display: grid; place-items: center; color: var(--accent); opacity: 0.6; }
.camp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.camp-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-accent); }
.camp-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.camp-meta b { display: block; color: var(--text); font-size: 13.5px; font-weight: 800; }
.list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.list .camp { width: 100%; }
.badge-gold { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.camp-thumb { position: relative; }

/* ---------- Berbagi ---------- */
.searchbar { display: flex; align-items: center; gap: 12px; margin: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; padding: 0 20px; height: 56px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; }
.searchbar input::placeholder { color: var(--muted); }
.carousel { display: flex; gap: 10px; overflow-x: auto; margin-top: 16px; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; scroll-snap-align: center; background: var(--surface-2); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-promo { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 22px; background: linear-gradient(120deg, var(--tint-1) 0%, var(--tint-2) 55%, var(--accent-deep) 130%); position: relative; }
.slide-promo b { font-size: 22px; font-weight: 800; line-height: 1.15; max-width: 78%; }
.slide-promo span { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; max-width: 80%; }
.slide-promo em { font-style: normal; font-weight: 800; color: var(--accent); margin-top: 4px; }
.slide-promo .art { position: absolute; right: -14px; bottom: -14px; width: 130px; height: 130px; color: var(--accent); opacity: 0.28; }
.slide-promo .art .icon { width: 100%; height: 100%; stroke-width: 1; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: 0.5; transition: all 0.2s; }
.dots i.is-active { background: var(--accent); opacity: 1; width: 22px; border-radius: 99px; }
.saldo { display: flex; align-items: center; gap: 14px; margin: 20px 16px 0; padding: 16px 16px 16px 18px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
.saldo .ring { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); flex: none; }
.saldo .ring img { width: 30px; }
.saldo .info { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.saldo .info b { display: block; font-size: 22px; color: var(--text); font-weight: 800; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 16px 0; }
.quick a, .quick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 2px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.2; min-width: 0; }
.quick .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.quick .is-active { border-color: var(--accent); background: var(--accent-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 700; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty { text-align: center; color: var(--muted); padding: 34px 20px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sh 1.4s infinite; border-radius: 18px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Shalat ---------- */
.sh-hero { position: relative; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 54px; text-align: center; isolation: isolate; }
.sh-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--sky-img) center 30% / cover; }
.sh-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 45%, transparent) 40%, var(--bg) 100%); }
.sh-hero h1 { margin: 0; font-size: 20px; font-weight: 800; }
.sh-date { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; margin-top: 4px; }
.sh-next { margin-top: 28px; }
.sh-next small { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.sh-next .name { font-size: 34px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.sh-next .count { font-size: 42px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.sh-next .at { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.plist { margin: -28px 16px 0; position: relative; z-index: 2; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.prow { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.prow:last-child { border: 0; }
.prow .icon { color: var(--accent); }
.prow span { flex: 1; font-weight: 700; }
.prow b { font-variant-numeric: tabular-nums; font-size: 17px; }
.prow.is-next { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 5%, transparent)); }
.prow.is-next span { color: var(--accent); }
.prow.is-past { opacity: 0.55; }
.prow.is-minor { font-size: 14px; color: var(--muted); padding: 10px 18px; }
.prow.is-minor b { font-size: 15px; font-weight: 600; }
.locbar { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; font-size: 13.5px; color: var(--muted); }
.locbar span { flex: 1; min-width: 0; }
.locbar button { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.qibla { margin: 22px 16px 0; text-align: center; }
.compass { position: relative; width: 210px; height: 210px; margin: 14px auto 6px; border-radius: 50%; border: 2px solid var(--line); background: radial-gradient(circle, var(--surface-2), var(--surface)); }
.compass .dial { position: absolute; inset: 0; transition: transform 0.2s linear; }
.compass .dial span { position: absolute; font-size: 12px; font-weight: 800; color: var(--muted); }
.compass .n { top: 8px; left: 50%; transform: translateX(-50%); color: var(--danger) !important; }
.compass .e { right: 10px; top: 50%; transform: translateY(-50%); }
.compass .s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.compass .w { left: 10px; top: 50%; transform: translateY(-50%); }
.needle { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: transform 0.2s linear; }
.needle::before { content: ''; position: absolute; left: -9px; bottom: 0; border: 9px solid transparent; border-bottom: 78px solid var(--accent); border-top: 0; }
.needle::after { content: ''; position: absolute; left: -9px; top: 0; border: 9px solid transparent; border-top: 24px solid var(--gray); border-bottom: 0; }
.compass .hub { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.qibla .deg { font-size: 22px; font-weight: 800; }
.qibla p { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.mtable { margin: 22px 16px 0; }
.mtable summary { cursor: pointer; font-weight: 800; font-size: 16px; padding: 14px 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mtable summary::-webkit-details-marker { display: none; }
.mtable table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mtable th, .mtable td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.mtable th { color: var(--accent); font-weight: 800; position: sticky; top: 0; background: var(--bg); }
.mtable tr.is-today td { background: var(--accent-soft); font-weight: 800; }
.mtable td:first-child { text-align: left; color: var(--muted); }

/* ---------- Halaman sederhana (Al Quran / Profil) ---------- */
.simple-head { padding: calc(22px + env(safe-area-inset-top, 0px)) 16px 4px; }
.simple-head h1 { margin: 0; font-size: 24px; font-weight: 800; }
.simple-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.soon-card { margin: 24px 16px 0; padding: 40px 24px; text-align: center; border-radius: 26px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: var(--surface); }
.soon-card .big { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.soon-card .big .icon { width: 34px; height: 34px; }
.soon-card h2 { margin: 0 0 6px; font-size: 20px; }
.soon-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.menu { margin: 18px 16px 0; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 600; }
.menu a:last-child, .menu button:last-child { border: 0; }
.menu .icon { color: var(--accent); }
.menu span { flex: 1; }
.menu .chev { color: var(--gray); width: 18px; height: 18px; }
.who { display: flex; align-items: center; gap: 14px; margin: 18px 16px 0; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.who .avatar { width: 58px; height: 58px; font-size: 20px; }
.who b { font-size: 17px; display: block; }
.who small { color: var(--muted); }

/* ---------- Navigasi bawah ---------- */
.bottomnav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 50;
  width: min(calc(var(--app-w) - 28px), calc(100vw - 28px)); height: 66px; padding: 0 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  border-radius: 34px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 0; }
.nav-item.is-active { color: var(--accent); font-weight: 800; }
.nav-item.is-center { position: relative; justify-content: flex-end; height: 100%; padding-bottom: 8px; }
.nav-fab { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--fab-bg); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); color: var(--muted); }
.nav-fab .icon { width: 32px; height: 32px; stroke-width: 1.6; }
.nav-item.is-center.is-active .nav-fab { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.foot { text-align: center; padding: 34px 20px 6px; color: var(--gray); font-size: 12.5px; }
.foot img { width: 120px; margin: 0 auto 10px; opacity: 0.9; }

/* ---------- Al Quran ---------- */
.q-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.q-top h1 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-top .round-btn { width: 40px; height: 40px; border-color: var(--line); }
.q-last { display: flex; align-items: center; gap: 14px; margin: 16px 16px 0; padding: 16px; border-radius: 22px; background: linear-gradient(120deg, var(--tint-1), var(--tint-2) 60%, var(--tint-3)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.q-last div { flex: 1; min-width: 0; }
.q-last small { color: rgba(255, 255, 255, 0.75); }
.q-last b { display: block; font-size: 17px; }
.q-list { margin: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.q-item { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.q-no { flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--accent); background: var(--accent-soft); border-radius: 12px; transform: rotate(0deg); }
.q-item .nm { flex: 1; min-width: 0; line-height: 1.25; }
.q-item .nm b { display: block; font-size: 15.5px; }
.q-item .nm small { color: var(--muted); font-size: 12.5px; }
.q-item .ar { font-family: 'Amiri Quran', 'Traditional Arabic', serif; font-size: 24px; color: var(--accent); }
.q-bismillah { text-align: center; font-family: 'Amiri Quran', 'Traditional Arabic', serif; font-size: 30px; padding: 26px 16px 8px; color: var(--accent); }
.q-meta { text-align: center; color: var(--muted); font-size: 13px; padding-top: 18px; }
.q-ayat { margin: 12px 16px 0; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 70px; }
.q-ayat.is-last { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.q-ayat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.q-ayat-head .q-no { width: 34px; height: 34px; font-size: 13px; border-radius: 10px; }
.q-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--surface-3); }
.q-ayat.is-last .q-mark { color: var(--on-accent); background: var(--accent); }
.q-arab { font-family: 'Amiri Quran', 'Traditional Arabic', serif; direction: rtl; text-align: right; line-height: 2.1; font-size: var(--qf, 28px); }
.q-latin { margin: 12px 0 0; color: var(--accent); font-size: 14px; font-style: italic; }
.q-arti { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; }
.q-tools { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: none; }
.q-tools::-webkit-scrollbar { display: none; }
.q-nav { display: flex; gap: 10px; margin: 20px 16px 0; }
.q-nav a { flex: 1; }

/* Beranda Al Quran, doa, dzikir */
.q-panel { margin: 14px 16px 0; padding: 16px 0 14px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--tint-panel), var(--surface) 60%); }
.q-panel h2 { margin: 0 16px 12px; font-size: 19px; font-weight: 800; }
.q-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.q-tiles::-webkit-scrollbar { display: none; }
.q-tile { flex: none; min-width: 150px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 4px; }
.q-tile b { font-size: 15px; }
.q-tile span { color: var(--muted); font-size: 13px; }
.q-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 16px; }
.q-menu a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 6px 12px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; text-align: center; }
.q-menu .ico { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.q-menu .ico .icon { width: 32px; height: 32px; stroke-width: 1.5; }
.q-grup { margin: 24px 16px 0; font-size: 15px; font-weight: 800; color: var(--accent); }
.q-doa { margin: 10px 16px 0; padding: 0 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.q-doa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0; font-weight: 700; }
.q-doa summary::-webkit-details-marker { display: none; }
.q-doa[open] summary .icon { transform: rotate(180deg); }
.q-doa[open] { padding-bottom: 16px; }
.q-doa .q-arab { font-size: 26px; }
.q-star.is-on { background: var(--accent); color: var(--on-accent); }
.q-mark { min-height: 32px; }
.q-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dz-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.dz-tap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; border-radius: 20px; background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); -webkit-tap-highlight-color: transparent; }
.dz-tap:active { transform: scale(0.98); background: color-mix(in srgb, var(--accent) 26%, transparent); }
.dz-tap b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.dz-tap small { color: var(--muted); font-size: 12.5px; }
.dz-big { min-height: 120px; }
.dz-big b { font-size: 48px; }
.dz-reset { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 999px; background: var(--surface-3); font-size: 13px; font-weight: 700; }
.dz-card.is-done { border-color: var(--ok); }
.dz-card.is-done .dz-tap { color: var(--ok); border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }

/* ---------- Mushaf ---------- */
.q-top h1 small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.q-top .round-btn.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mp-wrap { position: relative; margin: 10px 8px 0; padding: 14px 8px 8px; border-radius: 14px; background: #fbf8ee; color: #1b1a17; box-shadow: inset 0 0 0 1px #e4dcc3; touch-action: pan-y; }
.mp-wrap.is-night { background: #141517; color: #ebe6d6; box-shadow: inset 0 0 0 1px var(--line); }
.mp { --mfs: 20px; font-size: var(--mfs); }
.mp-line { display: flex; justify-content: space-between; direction: rtl; align-items: center; font-size: var(--mfs); line-height: 2.05; white-space: nowrap; min-height: 2.05em; }
.mp-line.measure { display: inline-flex; gap: 0.25em; justify-content: flex-start; }
.mp-line.is-short { justify-content: center; gap: 0.3em; }
.mp-line .w { cursor: pointer; border-radius: 6px; }
.mp-line .w.sel { background: rgba(221, 167, 0, 0.35); }
.mp-head { margin: 8px 0; padding: 4px 0; text-align: center; border: 2px solid #c79a1d; border-radius: 10px; font-family: 'Amiri Quran', serif; font-size: calc(var(--mfs) * 1.25); line-height: 1.9; background: linear-gradient(90deg, rgba(221, 167, 0, 0.16), rgba(221, 167, 0, 0.04) 50%, rgba(221, 167, 0, 0.16)); }
.mp-bsm { text-align: center; font-family: 'Amiri Quran', serif; font-size: calc(var(--mfs) * 1.15); line-height: 2; }
.mp-no { text-align: center; font-size: 13px; color: #8a7d55; padding: 8px 0 2px; font-variant-numeric: tabular-nums; }
.mp-wrap.is-night .mp-no { color: var(--muted); }
.mp-nav { display: flex; align-items: center; gap: 10px; margin: 14px 12px 0; }
.mp-nav .btn-ghost, .mp-nav .btn-gold { flex: 1; padding: 0 10px; font-size: 13.5px; }
.mp-jump { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.mp-jump input { width: 64px; height: 44px; text-align: center; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; }
.mp-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.mp-sheet-in { width: min(100%, var(--app-w)); max-height: 70vh; overflow: auto; background: var(--surface-2); border-radius: 24px 24px 0 0; padding: 18px 18px calc(22px + var(--safe-b)); border-top: 1px solid var(--line); }
.mp-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.mp-sheet-head button { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.mp-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mp-acts .chip { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Bingkai mushaf pojok (menimpa gaya sebelumnya) ---------- */
.mp-wrap { margin: 10px 6px 0; padding: 0; background: none; box-shadow: none; border-radius: 4px; }
.mp-wrap.is-night { background: none; box-shadow: none; }
.mp-frame {
  position: relative; padding: 38px 11px 30px; border-radius: 4px; color: #1b1a17;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Crect width='22' height='22' fill='%23174e6b'/%3E%3Cpath d='M11 1l8.5 10-8.5 10L2.5 11z' fill='%23e3b341'/%3E%3Cpath d='M11 6l4.2 5-4.2 5-4.2-5z' fill='%23b3262e'/%3E%3Ccircle cx='11' cy='11' r='1.6' fill='%23fff7da'/%3E%3C/svg%3E") 0 0 / 22px 22px;
  box-shadow: 0 0 0 2px #7a5a10 inset, 0 2px 14px rgba(0, 0, 0, 0.45);
}
.mp-wrap.is-night .mp-frame { color: #ebe6d6; }
.mp-inner { background: #fffdf4; border: 2px solid #8a6a14; padding: 2px 5px; }
.mp-wrap.is-night .mp-inner { background: #17181b; }
.mp-top { position: absolute; left: 10px; right: 10px; top: 6px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.mp-ban { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; height: 26px; padding: 0 14px; border-radius: 13px; background: #fbf3d6; border: 2px solid #b8891b; box-shadow: 0 0 0 2px #174e6b; color: #2b2410; font-family: 'Amiri Quran', serif; font-size: 15px; line-height: 1; white-space: nowrap; direction: rtl; }
.mp-ban b { font-size: 14px; font-weight: 700; }
.mp-top .mp-ban:first-child { flex-direction: row-reverse; }
.mp-line { border-bottom: 1px solid rgba(214, 126, 156, 0.55); }
.mp-line:last-child { border-bottom: 0; }
.mp-no { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; padding: 0; }
.mp-no span { min-width: 42px; text-align: center; padding: 2px 12px; border-radius: 14px; background: #fbf3d6; border: 2px solid #b8891b; box-shadow: 0 0 0 2px #174e6b; color: #2b2410; font-family: 'Amiri Quran', serif; font-size: 15px; }
.mp-head { background: linear-gradient(90deg, #f3e3a5, #fbf3d6 50%, #f3e3a5); color: #2b2410; margin: 3px 0; }
.mp-bsm { color: inherit; }

/* ---------- Tampilan Mushaf Madinah (polos, seperti cetakan) ---------- */
.mp-bsm2 { display: flex; justify-content: space-between; direction: rtl; width: 64%; margin: 4px auto 0; font-size: calc(var(--mfs) * 1.15); line-height: 2.1; white-space: nowrap; }
.mp-wrap.is-madinah { margin: 0; }
.mp-wrap.is-madinah .mp-frame { padding: 8px 10px 4px; border-radius: 0; box-shadow: none; color: #121212;
  background: linear-gradient(90deg, #dedacb 0, #f6f3e6 3.5%, #fbf9ef 12%, #fbf9ef 88%, #f2efe1 96%, #d9d5c4 100%); }
.mp-wrap.is-madinah .mp-top { display: none; }
.mp-wrap.is-madinah .mp-inner { background: none; border: 0; padding: 0; }
.mp-wrap.is-madinah .mp-line { border-bottom: 0; }
.mp-wrap.is-madinah .mp-no { position: static; padding: 6px 0 4px; }
.mp-wrap.is-madinah .mp-no span { min-width: 0; padding: 0; border: 0; box-shadow: none; background: none; color: #6a624a; font-family: var(--font); font-size: 13px; }
.mp-wrap.is-madinah.is-night .mp-frame { color: #ebe6d6; background: linear-gradient(90deg, #0d0e10 0, #141517 4%, #141517 96%, #0d0e10 100%); }
.mp-wrap.is-madinah.is-night .mp-no span { color: var(--muted); }
.mp-head2 { display: flex; align-items: center; gap: 4px; margin: 10px 0 4px; padding: 3px; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: -6px; }
.mp-head2 .med { width: 40px; height: 40px; flex: none; }
.mp-head2 .pan { flex: 1; text-align: center; border: 1.5px solid currentColor; border-radius: 22px; margin: 4px 2px; font-family: 'Amiri Quran', serif; font-size: 22px; line-height: 1.7; }

/* Kata dirapatkan; basmalah satu baris menyambung */
.mp-line { gap: 0.1em; }
.mp-line.measure { gap: 0.1em; }
.mp-line.is-short { gap: 0.28em; }
.mp-bsm2 { display: block; width: auto; margin: 6px 0 2px; text-align: center; font-family: 'Amiri Quran', 'Traditional Arabic', serif; font-size: calc(var(--mfs) * 1.25); line-height: 1.9; white-space: nowrap; }

/* Tab (Info Masjid) & kartu ringkasan Beranda */
.tab-row { display: flex; gap: 8px; padding: 14px 16px 0; }
.jamaah-head a { color: inherit; }
.jamaah-head span { text-align: right; line-height: 1.35; }
.btn-gold:disabled { opacity: 0.6; cursor: default; }

/* Keterangan kemitraan (dasar Beranda) */
.partner-note { margin: 30px 16px 0; padding: 20px 18px; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.partner-note img { width: 124px; height: auto; margin: 0 auto 10px; }
.partner-note p { margin: 0; }
.partner-note b { color: var(--text); font-weight: 700; }
.foot + .partner-note { margin-top: 18px; margin-bottom: 8px; }

/* Izin lokasi di Beranda */
.loc-ask { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); backdrop-filter: blur(6px); font-size: 13px; line-height: 1.35; }
.loc-ask span { flex: 1; }
.loc-ask .btn-gold { min-height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; }

/* Bubble layanan kesehatan gratis (Beranda) */
.health-bubble { position: fixed; z-index: 40; top: 58%; transform: translateY(-50%); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; cursor: grab; right: max(12px, calc((100vw - var(--app-w)) / 2 + 12px)); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; }
.health-bubble img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 28px color-mix(in srgb, var(--accent) 50%, transparent); animation: hb 2.6s ease-in-out infinite; }
.health-bubble span { font-size: 12px; line-height: 1.15; font-weight: 800; text-align: center; color: var(--on-accent); background: var(--accent); padding: 3px 10px; border-radius: 999px; }
@keyframes hb { 50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 40px color-mix(in srgb, var(--accent) 85%, transparent); } }
@media (prefers-reduced-motion: reduce) { .health-bubble img { animation: none; } }
.health-bubble.is-placed { transform: none; }
.health-bubble.is-dragging { cursor: grabbing; transition: none; }
.health-bubble.is-dragging img { animation: none; transform: scale(1.06); }
.health-bubble.is-snap { transition: left 0.22s ease, top 0.22s ease; }
/* Seluruh bubble (ikon + label) satu sasaran geser; gambar tidak boleh menangkap sentuhan/seret sendiri */
.health-bubble img, .health-bubble span { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- Mushaf layar penuh (tanpa gulir, tanpa navigasi bawah) ---------- */
html.mushaf-on, html.mushaf-on body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.mushaf-on #nav, html.mushaf-on .health-bubble { display: none !important; }
.mp-screen { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: #fbf9ef; color: #1b1a17; }
.mp-screen.is-night { background: #121315; color: #e9e4d4; }
.mp-hd { flex: none; display: flex; align-items: center; gap: 2px; padding: calc(2px + env(safe-area-inset-top, 0px)) 6px 0; min-height: 40px; position: relative; z-index: 3; color: #6a6a62; font-size: 14px; }
.mp-screen.is-night .mp-hd { color: #a4a4aa; }
.mp-hd .mp-ib { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: inherit; }
.mp-hd .mp-ib .icon { width: 19px; height: 19px; }
.mp-hd .mp-ib.is-on { background: var(--accent); color: var(--on-accent); }
.mp-hd .mp-t { flex: 1; min-width: 0; padding-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-hd .mp-j { white-space: nowrap; padding-right: 6px; }
.mp-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fbf9ef; touch-action: pan-y pinch-zoom; }
.mp-stage.is-night { background: #121315; }
.mp-stage .mp-wrap { margin: 0; flex: none; }
.mp-stage .mp { min-height: 0; --lh: 2.05; }
.mp-line { line-height: var(--lh, 2.05); min-height: calc(var(--lh, 2.05) * 1em); }
.mp-bsm2 { line-height: 1.7; margin: calc(var(--mfs) * 0.1) 0 0; }
.mp-head2 { margin: calc(var(--mfs) * 0.3) 0 calc(var(--mfs) * 0.12); padding: calc(var(--mfs) * 0.12); gap: calc(var(--mfs) * 0.15); outline-offset: calc(var(--mfs) * -0.3); }
.mp-head2 .med { width: calc(var(--mfs) * 1.9); height: calc(var(--mfs) * 1.9); }
.mp-head2 .pan { font-size: calc(var(--mfs) * 1.2); line-height: 1.5; border-radius: 999px; margin: calc(var(--mfs) * 0.12) calc(var(--mfs) * 0.08); }
.mp-wrap.is-madinah .mp-frame { padding: 4px 6px 0; background: none; }
.mp-wrap.is-madinah .mp-no { padding: 2px 0 2px; }
.mp-pg { font: inherit; color: #6a624a; font-size: 13px; padding: 2px 14px; min-height: 22px; border-radius: 12px; font-variant-numeric: tabular-nums; }
.mp-wrap.is-night .mp-pg { color: var(--muted); }
.mp-wrap.is-pojok .mp-pg { color: #2b2410; font-family: 'Amiri Quran', serif; font-size: 15px; padding: 0; }
.mp-goin { width: 76px; height: 28px; text-align: center; border-radius: 10px; border: 1px solid #b8891b; background: #fffdf4; color: #1b1a17; font-size: 15px; font-weight: 700; }
/* Tepi kertas: ganjil = jilid di kiri, genap = jilid di kanan */
.mp-stage::before, .mp-stage::after { content: ''; position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 2; }
.mp-stage.is-odd::before { left: 0; width: 17%; max-width: 100px; background: linear-gradient(90deg, rgba(70, 64, 44, 0.30), rgba(70, 64, 44, 0.12) 45%, transparent); }
.mp-stage.is-odd::after { right: 0; width: 12px; background: repeating-linear-gradient(90deg, #d6d1c0 0 2px, #f1eddf 2px 4px); box-shadow: inset 3px 0 4px rgba(0, 0, 0, 0.16); }
.mp-stage.is-even::before { right: 0; width: 17%; max-width: 100px; background: linear-gradient(270deg, rgba(70, 64, 44, 0.30), rgba(70, 64, 44, 0.12) 45%, transparent); }
.mp-stage.is-even::after { left: 0; width: 12px; background: repeating-linear-gradient(90deg, #f1eddf 0 2px, #d6d1c0 2px 4px); box-shadow: inset -3px 0 4px rgba(0, 0, 0, 0.16); }
.mp-stage.is-night.is-odd::before { background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2) 45%, transparent); }
.mp-stage.is-night.is-even::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2) 45%, transparent); }
.mp-stage.is-night::after { filter: brightness(0.28); }
.mp-ghost { position: fixed; z-index: 120; margin: 0; pointer-events: none; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; box-shadow: 0 0 28px rgba(0, 0, 0, 0.4); }
.mp-sheet { z-index: 130; }

.mp-stage { padding: 0 2px; }

/* ---------- Rapikan judul surah, basmalah, dan baris pendek ---------- */
.mp-stage { --paper: #fbf9ef; }
.mp-stage.is-night { --paper: #121315; }
.mp-line.is-short { justify-content: center; gap: 0.3em; }
.mp-head2 { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--mfs) * 0.2); height: calc(var(--mfs) * 2.55); margin: calc(var(--mfs) * 0.35) 0 calc(var(--mfs) * 0.1); padding: calc(var(--mfs) * 0.16); border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: calc(var(--mfs) * -0.14); border-radius: 3px; }
.mp-head2 .med { width: calc(var(--mfs) * 2.05); height: calc(var(--mfs) * 2.05); flex: none; }
.mp-head2 .pan { flex: 1; min-width: 0; height: calc(var(--mfs) * 1.75); display: flex; align-items: center; justify-content: center; margin: 0; padding: calc(var(--mfs) * 0.08) calc(var(--mfs) * 0.3) 0; border: 1.5px solid currentColor; border-radius: 999px; font-family: 'Amiri Quran', 'Traditional Arabic', serif; font-size: calc(var(--mfs) * 1.08); line-height: 1; white-space: nowrap; }
.mp-head2 .pan span { display: block; transform: translateY(0.02em); }
.mp-bsm2 { margin: calc(var(--mfs) * 0.22) 0 calc(var(--mfs) * 0.06); font-size: calc(var(--mfs) * 1.12); line-height: 1.55; letter-spacing: 0; }
.mp-head { margin: calc(var(--mfs) * 0.3) 0 calc(var(--mfs) * 0.1); padding: calc(var(--mfs) * 0.12) 0; font-size: calc(var(--mfs) * 1.1); line-height: 1.6; border-radius: 12px; }
.mp-bsm2 { margin-bottom: calc(var(--mfs) * 0.18); }

/* ---------- Konten masjid: berita, kegiatan & kajian, kelas ---------- */
.mcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.mcard.is-row { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px; }
.mcard.is-row .mcard-body { padding: 0; }
.mcard-img { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; }
.mcard-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; min-width: 0; flex: 1; }
.mcard-body > b { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.mcard-body > p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mcard-body > small { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.mcard-body > small .icon { color: var(--accent); margin-top: 1px; }
.rail .mcard { flex: none; width: 240px; scroll-snap-align: start; }
.mtags { display: flex; flex-wrap: wrap; gap: 6px; }
.mtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.mtag .icon { width: 12px; height: 12px; }
.mtag.is-pin { color: var(--on-accent); background: var(--accent); }
.mtag.is-open { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.mtag.is-closed { color: var(--muted); background: var(--surface-3); }
.mdate { flex: none; width: 56px; padding: 8px 0; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mdate b { font-size: 22px; font-weight: 800; }
.mdate span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.mdate.is-rutin { gap: 4px; padding: 10px 0; }
.mcard-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mcard-acts a { flex: 1 1 auto; }
.mpost { margin: 14px 16px 0; }
.mpost-img { width: 100%; border-radius: 18px; margin: 0 0 14px; }
.mpost h2 { margin: 8px 0 4px; font-size: 21px; font-weight: 800; line-height: 1.3; }
.mpost > small { color: var(--muted); font-size: 13px; }
.mpost-body { margin-top: 10px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.mpost-body p { margin: 0 0 12px; }
.mpost-body a { color: var(--accent); text-decoration: underline; word-break: break-word; }
.mcard .mpost-body { margin-top: 4px; font-size: 14px; }
.mcard .mpost-img { margin: 8px 0 0; }

/* ---------- Shalat: iqamah & petugas Jumat ---------- */
.prow b .iq { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: right; }
.prow.is-next b .iq { color: var(--accent); }
.jumat { margin: 22px 16px 0; }
.duty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.duty div { padding: 10px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.duty dt { font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.duty dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.duty-theme, .duty-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.duty-theme b { color: var(--text); }
.duty-note { display: flex; align-items: flex-start; gap: 6px; }
.duty-note .icon { color: var(--accent); flex: none; margin-top: 1px; }
