:root {
  --green-950: #06231b;
  --green-900: #0a3328;
  --green-800: #0f4637;
  --green-700: #155c48;
  --green-500: #1f8a68;
  --green-100: #e5f1ec;
  --green-50: #f3f8f6;
  --gold: #d4af37;
  --gold-600: #b8922a;
  --gold-soft: #f1e4b8;
  --ink: #12211c;
  --muted: #5a6a64;
  --line: #e1ebe7;
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(6, 35, 27, 0.06), 0 4px 12px rgba(6, 35, 27, 0.05);
  --shadow: 0 2px 4px rgba(6, 35, 27, 0.04), 0 16px 40px rgba(6, 35, 27, 0.09);
  --nav-h: 76px;
  /* Pola bintang delapan (khatim) — ornamen geometris */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d4af37' stroke-width='1'%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='10'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76M48 0v20M48 96V76M0 48h20M96 48H76'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.arabic { font-family: "Amiri", serif; font-size: 1.6rem; line-height: 2; direction: rtl; }
.gold { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg);
}
.eyebrow.light { color: var(--gold); }

/* Navbar */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent; color: #fff;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-color: var(--line); color: var(--ink);
  box-shadow: 0 4px 20px rgba(6, 35, 27, 0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.01em; }
.brand-text small { opacity: 0.7; font-size: 0.74rem; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 0.92rem; }
.nav-links a { position: relative; padding: 6px 0; opacity: 0.9; transition: opacity 0.2s, color 0.2s; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 700; }
.nav-links .nav-cta {
  padding: 9px 20px; border-radius: 999px; background: var(--gold); color: var(--green-950);
  font-weight: 700; opacity: 1;
}
.nav-links .nav-cta:hover { background: #e0bd4a; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 80% 10%, var(--green-700) 0%, var(--green-900) 45%, var(--green-950) 100%);
  padding: calc(var(--nav-h) + 72px) 0 104px;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background-image: var(--pattern); background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.4) 100%);
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 65%); pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.basmalah { color: var(--gold-soft); font-size: 1.9rem; margin-bottom: 14px; text-align: left; display: block; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.hero-sub { color: var(--gold-soft); font-weight: 600; margin-top: 8px; font-size: 1.05rem; }
.hero-desc { max-width: 540px; margin-top: 18px; opacity: 0.82; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Kartu sholat berikutnya — bentuk lengkung mihrab */
.next-prayer {
  position: relative; justify-self: end; width: min(380px, 100%);
  display: grid; justify-items: center; text-align: center; gap: 4px;
  padding: 76px 32px 34px;
  border-radius: 190px 190px var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid rgba(212, 175, 55, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), inset 0 0 0 8px rgba(255,255,255,0.02);
}
.next-prayer::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border-radius: 180px 180px 12px 12px; border: 1px dashed rgba(212, 175, 55, 0.22);
}
.np-ornament { width: 40px; height: 40px; color: var(--gold); position: absolute; top: 26px; }
.np-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.75; margin-top: 8px; }
.np-name { font-size: 1.6rem; font-weight: 700; color: var(--gold-soft); }
.np-time { font-size: 3.6rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.np-countdown {
  margin-top: 8px; padding: 6px 16px; border-radius: 999px;
  background: rgba(212, 175, 55, 0.14); color: var(--gold-soft);
  font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.np-divider { width: 60%; height: 1px; margin: 18px 0 10px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent); }
.np-date { font-size: 0.88rem; opacity: 0.8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.28); }
.btn-gold:hover { background: #e0bd4a; }
.btn-ghost { border-color: rgba(241, 228, 184, 0.45); color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(241, 228, 184, 0.08); border-color: var(--gold-soft); }

/* Sections */
.section { position: relative; padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--green-900); margin-bottom: 10px; font-weight: 800; }
.section-head p { color: var(--muted); }
.hijri { color: var(--green-500) !important; font-weight: 600; }
.hijri .arabic { font-size: 1.15rem; line-height: 1.6; display: inline; }
.note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 28px; }

/* Prayer grid */
.prayer-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.prayer-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 80px 80px var(--radius-sm) var(--radius-sm);
  padding: 30px 12px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.prayer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prayer-card .p-ar { font-family: "Amiri", serif; font-size: 1.1rem; color: var(--gold-600); line-height: 1.4; }
.prayer-card .p-name { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.prayer-card .p-time { font-size: 1.7rem; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.prayer-card.minor .p-time { color: var(--muted); font-weight: 700; }
.prayer-card.active {
  background: linear-gradient(180deg, var(--green-700), var(--green-900)); border-color: transparent;
  box-shadow: 0 18px 40px rgba(10, 51, 40, 0.3); transform: translateY(-6px);
}
.prayer-card.active .p-ar { color: var(--gold); }
.prayer-card.active .p-name { color: var(--gold-soft); }
.prayer-card.active .p-time { color: #fff; }
.prayer-card.active::after {
  content: "Berikutnya"; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  background: var(--gold); color: var(--green-950); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-text > p { margin: 8px 0 14px; color: #34433e; }
.about-text > .vm { margin-top: 22px; }
.vm { display: grid; gap: 14px; }
.vm-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.vm-item h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-600); margin-bottom: 6px; }
.vm-item p { font-size: 0.94rem; color: var(--muted); }
.vm-item .vm-visi { font-size: 1.05rem; font-weight: 600; color: var(--green-900); }
.misi { padding-left: 20px; display: grid; gap: 6px; font-size: 0.93rem; color: var(--muted); }
.misi li::marker { color: var(--gold-600); font-weight: 700; }
.dkm {
  display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.dkm img { width: 64px; height: 64px; flex: none; }
.dkm span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }
.dkm strong { display: block; color: var(--green-900); line-height: 1.35; }
.dkm small { color: var(--muted); font-size: 0.85rem; }

.verse-card {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  border-radius: 200px 200px var(--radius) var(--radius);
  padding: 72px 36px 40px; box-shadow: var(--shadow);
}
.verse-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08; background-image: var(--pattern); background-size: 80px 80px;
}
.verse-card > * { position: relative; }
.verse-card .arabic { color: var(--gold-soft); font-size: 1.55rem; }
.verse-card blockquote { margin-top: 14px; opacity: 0.88; font-size: 0.98rem; }
.verse-card figcaption { margin-top: 14px; color: var(--gold); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--green-700); min-width: 86px; letter-spacing: -0.02em; }
.stat span:last-child { color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

.adab { margin-top: 18px; padding: 24px 26px; border-radius: var(--radius); background: var(--green-100); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.adab h3 { color: var(--green-900); font-size: 1rem; }
.adab ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.adab li {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500; color: var(--green-800);
  background: #fff; padding: 6px 14px; border-radius: 999px;
}
.adab li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.5); }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--green-100); color: var(--green-700);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { color: var(--green-900); margin-bottom: 8px; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .when {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.82rem; font-weight: 700;
  color: var(--green-700); background: var(--green-50); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.card .when svg { width: 15px; height: 15px; }

/* Panduan */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.guide-card h3 { color: var(--green-900); font-size: 1.15rem; margin-bottom: 14px; }
.guide-lead { color: var(--muted); font-size: 0.92rem; margin: -6px 0 14px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; font-size: 0.94rem; color: #34433e; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 800;
  background: var(--green-100); color: var(--green-700);
}
.dalil { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--gold); background: #fbf8ee; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.dalil p { font-size: 0.92rem; font-style: italic; color: #4a564f; }
.dalil .arabic { font-style: normal; font-size: 1.35rem; color: var(--green-800); line-height: 1.8; }
.guide-card cite, .guide-doa cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--gold-600); }
.guide-doa { background: linear-gradient(160deg, var(--green-800), var(--green-950)); color: #fff; border: 0; position: relative; overflow: hidden; }
.guide-doa::before { content: ""; position: absolute; inset: 0; opacity: 0.07; background-image: var(--pattern); background-size: 80px 80px; }
.guide-doa > * { position: relative; }
.guide-doa h3 { color: var(--gold-soft); }
.guide-doa .arabic { color: #fff; font-size: 1.5rem; text-align: right; }
.guide-doa .latin { color: var(--gold-soft); font-size: 0.88rem; margin: 10px 0; }
.guide-doa p { font-size: 0.92rem; opacity: 0.9; }
.guide-doa cite { color: var(--gold); }

/* Infaq */
.section-dark { background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #fff; overflow: hidden; }
.section-dark h2 { color: #fff; }
.infaq { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.infaq-text .arabic { color: var(--gold-soft); font-size: 1.5rem; margin: 6px 0 10px; }
.infaq-text > p { opacity: 0.85; }
.infaq-text .hadith { margin-top: 14px; font-style: italic; opacity: 1; color: var(--gold-soft); }
.infaq-text .hadith span { font-style: normal; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.quote { font-style: italic; opacity: 0.9; margin-bottom: 16px; }
.quote span { font-style: normal; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.infaq-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 36px 32px;
  display: grid; gap: 6px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--gold);
}
.infaq-card h3 { color: var(--green-900); font-size: 1.2rem; letter-spacing: -0.01em; }
.qris-tag {
  justify-self: center; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-600); background: #fbf5e1; padding: 5px 14px; border-radius: 999px;
}
.qris-img {
  display: block; width: min(300px, 100%); margin: 12px auto 4px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s;
}
.qris-img { background: #fff; padding: 16px 14px 12px; border: 2px solid var(--green-900); }
.qris-img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.qris-img img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qris-name { display: block; font-weight: 800; letter-spacing: 0.06em; color: var(--green-900); font-size: 1rem; }
.qris-nmid { display: block; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qris-meta { color: var(--muted); font-size: 0.85rem; }
.qris-meta strong { color: var(--green-900); }
.qris-steps { list-style: none; counter-reset: q; display: grid; gap: 8px; text-align: left; margin: 12px 0 4px; }
.qris-steps li { counter-increment: q; position: relative; padding-left: 32px; font-size: 0.88rem; color: #34433e; }
.qris-steps li::before {
  content: counter(q); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; background: var(--green-100); color: var(--green-700);
}
.infaq-card .btn { justify-self: center; margin-top: 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 20px; margin-top: 18px; }
.contact-list li { display: flex; gap: 16px; }
.ci { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--green-100); color: var(--green-700); }
.ci svg { width: 22px; height: 22px; }
.contact-list strong { color: var(--green-900); }
.contact-list p { color: var(--muted); font-size: 0.95rem; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--green-950); color: rgba(255, 255, 255, 0.75); padding: 56px 0 40px; text-align: center; }
.footer-inner { position: relative; display: grid; justify-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 16px; text-align: left; }
.fl-dkm { width: 84px; height: 84px; flex: none; }
.footer-brand strong { display: block; color: #fff; font-size: 1.2rem; }
.footer-brand small { color: var(--gold-soft); font-size: 0.85rem; }
.footer-addr { font-size: 0.88rem; max-width: 520px; }
.footer .arabic { color: var(--gold-soft); font-size: 1.4rem; }
.footer-copy { font-size: 0.86rem; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); width: 100%; max-width: 560px; }

/* Bar pengumuman */
.announce-bar { background: var(--gold-soft); border-bottom: 1px solid rgba(184, 146, 42, 0.3); }
.ab-inner { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; }
.ab-label {
  display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--green-800); padding: 5px 12px; border-radius: 999px;
}
.ab-title { flex: 1; font-weight: 700; color: var(--green-950); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-btn, .link-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--green-800);
}
.ab-btn:hover, .link-btn:hover { color: var(--gold-600); }

/* Kabar masjid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card h3 { color: var(--green-900); font-size: 1.15rem; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: 0.93rem; }
.news-card .news-meta { font-size: 0.82rem; font-weight: 600; color: var(--green-700); }
.news-card .link-btn { margin-top: auto; padding-top: 6px; }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-700);
}
.badge-gold { background: #fbf5e1; color: var(--gold-600); }

.news-dialog {
  width: min(720px, 100% - 32px); max-height: min(86vh, 900px); margin: auto; padding: 0; border: 0;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); color: var(--ink);
}
.news-dialog::backdrop { background: rgba(6, 35, 27, 0.6); backdrop-filter: blur(3px); }
.nd-inner { position: relative; padding: 36px 36px 32px; border-top: 4px solid var(--gold); }
.nd-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--green-50); color: var(--green-900);
}
.nd-close svg { width: 18px; height: 18px; }
.nd-title { margin: 10px 40px 4px 0; font-size: 1.45rem; line-height: 1.3; color: var(--green-900); }
.nd-meta { font-size: 0.85rem; font-weight: 600; color: var(--green-700); margin-bottom: 18px; }
.nd-body { display: grid; gap: 12px; color: #34433e; font-size: 0.97rem; }
.nd-body ul, .nd-body ol { padding-left: 22px; display: grid; gap: 6px; }
.nd-body h4 { color: var(--green-900); margin-top: 6px; }
.nd-body a { color: var(--green-700); text-decoration: underline; }

/* Struktur DKM */
.pengurus { margin-top: 18px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pengurus-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pengurus-head img { width: 52px; height: 52px; }
.pengurus-head h3 { color: var(--green-900); font-size: 1.15rem; }
.pengurus-head p { color: var(--muted); font-size: 0.88rem; }
.pengurus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.person { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green-50); border-left: 3px solid var(--green-500); }
.person .p-role { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); }
.person strong { color: var(--green-900); font-size: 0.95rem; }
.person.lead { grid-column: 1 / -1; background: linear-gradient(135deg, var(--green-800), var(--green-950)); border-left-color: var(--gold); }
.person.lead .p-role { color: var(--gold); }
.person.lead strong { color: #fff; font-size: 1.1rem; }

/* Fasilitas */
.facility-block { margin-top: 56px; }
.sub-head { text-align: center; color: var(--green-900); font-size: 1.3rem; margin-bottom: 22px; }
.facility-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.facility { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); }
.f-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--green-700); border: 1px solid var(--line); }
.f-icon svg { width: 22px; height: 22px; }
.facility strong { color: var(--green-900); font-size: 0.95rem; }
.facility p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* Laporan keuangan */
.fund-report { position: relative; margin-top: 56px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.fund-head h3 { color: var(--green-900); font-size: 1.3rem; }
.fund-head p { color: var(--muted); font-size: 0.86rem; }
.fund-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 22px; }
.fund-stat { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--green-50); border: 1px solid var(--line); }
.fund-stat span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.fund-stat strong { font-size: 1.35rem; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; }
.fund-stat.balance { background: linear-gradient(135deg, var(--green-800), var(--green-950)); border-color: transparent; }
.fund-stat.balance span { color: var(--gold-soft); }
.fund-stat.balance strong { color: #fff; }
.amt-in { color: var(--green-500) !important; }
.amt-out { color: #b4532a !important; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fund-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fund-table th { text-align: left; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); padding: 12px 16px; }
.fund-table td { padding: 12px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
.fund-table td:nth-child(2) { white-space: normal; min-width: 180px; }
.fund-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fund-table td.num { font-weight: 600; }
/* Pagination tabel (website & panel admin) */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 4px 0; }
.panel .pager { padding: 12px 20px; border-top: 1px solid var(--line); }
.pg-info { font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-size { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); margin-right: auto; }
.pg-size select { font: inherit; font-size: 0.85rem; padding: 5px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.pg-pages { display: inline-flex; align-items: center; gap: 4px; }
.pg {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--green-800); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background 0.2s;
}
.pg:hover:not(:disabled) { border-color: var(--green-500); }
.pg[aria-current="page"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pg:disabled { opacity: 0.4; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); }
.btn-line { border-color: var(--line); color: var(--green-800); background: var(--green-50); padding: 10px 20px; font-size: 0.88rem; }
.btn-line:hover { border-color: var(--green-500); }

/* Kontak */
.contact-list a:hover { color: var(--green-500); }
.contact-lead { color: var(--muted); margin: 24px 0 14px; font-size: 0.95rem; }
.btn-wa { background: var(--green-700); color: #fff; }
.btn-wa:hover { background: var(--green-800); }
.footer-addr a { color: var(--gold-soft); }

/* ================= Pustaka Islami ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.octa { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }

/* Kartu pustaka di beranda */
.library-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lib-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  padding: 30px 26px 26px; border-radius: 120px 120px var(--radius) var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; align-items: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.lib-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.6); }
.lib-ar { font-family: "Amiri", serif; font-size: 1.25rem; color: var(--gold-600); line-height: 1.6; }
.lib-icon {
  width: 60px; height: 60px; display: grid; place-items: center; margin: 4px 0 6px;
  background: linear-gradient(145deg, var(--green-700), var(--green-900)); color: var(--gold);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.lib-icon svg { width: 28px; height: 28px; }
.lib-card h3 { color: var(--green-900); font-size: 1.15rem; }
.lib-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.lib-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--green-700); }
.lib-card:hover .lib-go { color: var(--gold-600); }

/* Header halaman */
.page-hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, var(--green-700) 0%, var(--green-900) 50%, var(--green-950) 100%);
  padding: calc(var(--nav-h) + 40px) 0 56px;
}
.page-hero-inner { position: relative; display: grid; justify-items: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.page-ar { color: var(--gold-soft); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 6px; }
.page-lead { max-width: 640px; margin-top: 10px; opacity: 0.82; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0.82rem; margin-bottom: 18px; opacity: 0.75; }
.crumbs a:hover { color: var(--gold); }
.crumbs #crumbCurrent { display: inline-flex; gap: 8px; }
.subpage .section { padding: 56px 0 88px; }
.saw { font-family: "Amiri", serif; font-weight: 400; font-size: 0.8em; }

/* Toolbar, pencarian, chip */
.lib-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.search {
  flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 50px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(31, 138, 104, 0.12); }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--green-800); transition: all 0.2s;
}
.chip small { opacity: 0.6; margin-left: 4px; }
.chip:hover { border-color: var(--green-500); }
.chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }

/* Al-Qur'an: daftar surat */
.continue-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: #fff; box-shadow: var(--shadow);
}
.continue-card small { display: block; color: var(--gold-soft); font-size: 0.78rem; }
.continue-card > span:nth-child(2) { flex: 1; }
.cc-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(212, 175, 55, 0.18); color: var(--gold); }
.cc-icon svg { width: 22px; height: 22px; }
.surah-grid, .hadith-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.surah-card, .hadith-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.surah-card:hover, .hadith-item:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.s-num, .ayah-no, .h-num {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
  background: var(--green-100); color: var(--green-800);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.surah-card:hover .s-num, .hadith-item:hover .s-num { background: var(--green-800); color: var(--gold); }
.s-info { flex: 1; min-width: 0; display: grid; }
.s-info strong { color: var(--green-900); }
.s-info small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.hadith-item .s-info small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hadith-item > .ic { color: var(--muted); flex: none; }
.s-ar { font-family: "Amiri Quran", "Amiri", serif; font-size: 1.35rem; color: var(--green-800); line-height: 1.4; }

/* Al-Qur'an: baca surat */
.reader-bar {
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.reader-bar .btn { padding: 10px 18px; font-size: 0.88rem; }
.jump, .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--green-800); }
.jump select, .jump input {
  font: inherit; font-weight: 600; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
.jump input { width: 96px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--green-700); }
.surah-tafsir { margin-bottom: 18px; padding: 16px 20px; border-radius: var(--radius-sm); background: #fbf8ee; border: 1px solid #efe5c4; }
.surah-tafsir summary { cursor: pointer; font-weight: 700; color: var(--green-900); }
.surah-tafsir p { margin-top: 10px; color: #4a564f; font-size: 0.93rem; }
.bismillah { font-family: "Amiri Quran", "Amiri", serif; text-align: center; font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--green-900); margin: 26px 0 22px; line-height: 2; }
.ayah-list { display: grid; gap: 14px; }
.ayah {
  scroll-margin-top: calc(var(--nav-h) + 96px); padding: 22px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.ayah.playing { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18); background: #fffdf6; }
.ayah.marked .ayah-no { background: var(--gold); color: var(--green-950); }
.ayah-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ayah-actions { display: flex; gap: 4px; }
.ayah-actions button, .icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--green-700); transition: background 0.2s, color 0.2s;
}
.ayah-actions button:hover, .icon-btn:hover { background: var(--green-100); }
.ayah-actions svg, .icon-btn svg { width: 19px; height: 19px; }
.ayah.playing [data-act="play"] { background: var(--gold); color: var(--green-950); }
.ayah-actions .copied, .icon-btn.copied { background: var(--green-700); color: #fff; }
.ayah-ar { font-family: "Amiri Quran", "Amiri", serif; font-size: clamp(1.6rem, 3.6vw, 2.05rem); line-height: 2.35; text-align: right; direction: rtl; color: var(--ink); }
.ayah-end { font-family: "Amiri", serif; color: var(--gold-600); font-size: 0.85em; white-space: nowrap; }
.ayah-latin { margin-top: 12px; color: var(--gold-600); font-style: italic; font-size: 0.94rem; }
.ayah-tr { margin-top: 8px; color: #34433e; }
.ayah-tr .fn { font-size: 0.7em; font-weight: 700; color: var(--green-500); margin-left: 1px; }
.hide-latin .ayah-latin, .hide-terjemah .ayah-tr, .hide-terjemah .ayah-notes { display: none; }
.ayah-notes { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.ayah-notes summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.ayah-notes p { margin-top: 6px; }
.surah-nav, .hadith-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }

/* Hadits */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.tab {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); text-align: center;
  background: #fff; border: 1.5px solid var(--line); transition: all 0.2s;
}
.tab strong { color: var(--green-900); font-size: 0.95rem; }
.tab small { color: var(--muted); font-size: 0.78rem; }
.tab:hover { border-color: var(--green-500); }
.tab[aria-current="page"] { background: var(--green-800); border-color: var(--green-800); }
.tab[aria-current="page"] strong { color: #fff; }
.tab[aria-current="page"] small { color: var(--gold-soft); }
.kitab-desc { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 0.95rem; }
.hadith-card { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.hc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hc-no { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.hc-title { margin-top: 14px; font-size: 1.4rem; color: var(--green-900); }
.hc-ar { margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--green-50); font-family: "Amiri", serif; font-size: 1.45rem; line-height: 2.1; text-align: right; direction: rtl; display: grid; gap: 10px; }
.hc-text { margin-top: 18px; display: grid; gap: 10px; color: #34433e; }
.hc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hc-foot cite { font-style: normal; font-weight: 700; color: var(--gold-600); font-size: 0.88rem; }
.hadith-nav .jump { flex-wrap: wrap; justify-content: center; }

/* Doa */
.doa-grid { columns: 2 380px; column-gap: 20px; }
.doa-card { break-inside: avoid; margin-bottom: 20px; padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.doa-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.doa-card h3 { color: var(--green-900); font-size: 1.1rem; }
.doa-note { margin-top: 6px; font-size: 0.85rem; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--gold); }
.doa-ar { margin-top: 14px; font-family: "Amiri", serif; font-size: 1.6rem; line-height: 2.1; text-align: right; direction: rtl; color: var(--ink); }
.doa-latin { margin-top: 10px; font-style: italic; color: var(--gold-600); font-size: 0.92rem; }
.doa-id { margin-top: 8px; color: #34433e; font-size: 0.94rem; }
.doa-card cite { display: inline-block; margin-top: 12px; font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--green-700); background: var(--green-50); padding: 4px 12px; border-radius: 999px; }

/* Asmaul Husna */
.husna-intro { max-width: 760px; margin: 0 auto 30px; text-align: center; padding: 22px 26px; border-radius: var(--radius); background: #fbf8ee; border: 1px solid #efe5c4; }
.husna-intro p { font-style: italic; color: #4a564f; }
.husna-intro cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: 0.85rem; color: var(--gold-600); }
.husna-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.husna-card {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 30px 16px 20px;
  border-radius: 100px 100px var(--radius-sm) var(--radius-sm); background: #fff; border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.husna-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.6); }
.husna-card .h-num { width: 34px; height: 34px; font-size: 0.75rem; margin-bottom: 6px; }
.h-ar { font-family: "Amiri", serif; font-size: 2rem; line-height: 1.7; color: var(--green-900); }
.h-latin { color: var(--gold-600); font-size: 0.95rem; }
.h-id { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

/* ================= Pendaftaran Qurban ================= */
.q-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.q-form, .q-card, .q-status { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.q-form { padding: 28px; display: grid; gap: 22px; border-top: 4px solid var(--gold); }
.q-form-head h2 { font-size: 1.5rem; color: var(--green-900); margin-top: 8px; }
.q-form-head p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.q-step { border: 0; display: grid; gap: 12px; min-width: 0; }
.q-step legend { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-900); margin-bottom: 10px; }
.q-step legend span {
  width: 28px; height: 28px; display: grid; place-items: center; font-size: 0.8rem; background: var(--green-800); color: var(--gold);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.q-step[disabled] { opacity: 0.55; }
.q-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.q-option { position: relative; cursor: pointer; }
.q-option input { position: absolute; opacity: 0; pointer-events: none; }
.q-option-body {
  display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: var(--radius-sm); border: 2px solid var(--line);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.q-option-body strong { color: var(--green-900); }
.q-option-body > small { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.q-price { font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.q-price small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.q-quota { justify-self: start; margin-top: 4px; font-size: 0.74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.q-option:hover .q-option-body { border-color: var(--green-500); }
.q-option input:checked + .q-option-body { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 4px rgba(31, 138, 104, 0.12); }
.q-option input:focus-visible + .q-option-body { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-option.full { cursor: not-allowed; }
.q-option.full .q-option-body { opacity: 0.55; }
.q-option.full .q-quota { background: #fdf1ec; color: #b4532a; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.q-grid .full, .q-field.full { grid-column: 1 / -1; }
.q-field { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--green-900); }
.q-field small { font-weight: 500; color: var(--muted); }
.q-field input, .q-field select, .q-field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color 0.2s, box-shadow 0.2s;
}
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { outline: 0; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(31, 138, 104, 0.12); }
#sharesField { max-width: 260px; }
.q-radio-group { display: grid; gap: 8px; margin-top: 4px; }
.q-field-label { font-size: 0.86rem; font-weight: 700; color: var(--green-900); }
.q-radio { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.q-radio input, .q-consent input { width: 18px; height: 18px; accent-color: var(--green-700); flex: none; }
.q-help { color: var(--muted); font-size: 0.86rem; }
.q-summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: #fff; }
.q-summary span { color: var(--gold-soft); font-weight: 600; }
.q-summary strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.q-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: #34433e; cursor: pointer; }
.q-error { color: #b4532a; background: #fdf1ec; border: 1px solid #f3d3c4; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; }
.q-submit { justify-self: start; padding: 14px 32px; }
.q-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }
.q-card { padding: 22px; display: grid; gap: 12px; }
.q-card h3 { color: var(--green-900); font-size: 1.05rem; }
.q-card .btn { justify-content: center; }
.q-dalil { background: #fbf8ee; border-color: #efe5c4; box-shadow: none; }
.q-dalil p { font-style: italic; color: #4a564f; font-size: 0.92rem; }
.q-dalil cite { font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--gold-600); }

.q-result { margin-top: 28px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.q-status { padding: 28px; display: grid; gap: 14px; border-top: 4px solid var(--gold); }
.q-status-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.q-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.q-code { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--green-900); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.q-pill { justify-self: start; font-weight: 800; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.q-pill.gold { background: #fbf5e1; color: var(--gold-600); }
.q-pill.ok { background: var(--green-700); color: #fff; }
.q-pill.red { background: #fdf1ec; color: #b4532a; }
.q-committee { padding: 12px 14px; border-left: 3px solid var(--gold); background: #fbf8ee; border-radius: 0 10px 10px 0; font-size: 0.92rem; }
.q-detail { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 0.94rem; padding: 16px 0; border-block: 1px solid var(--line); }
.q-detail dt { color: var(--muted); }
.q-detail dd { color: var(--ink); }
.q-pay { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.q-qris { display: grid; gap: 6px; justify-items: center; padding: 14px; border: 2px solid var(--green-900); border-radius: var(--radius-sm); text-align: center; }
.q-qris img { width: 100%; height: auto; image-rendering: pixelated; }
.q-qris small { color: var(--muted); font-size: 0.78rem; }
.q-pay-text { display: grid; gap: 12px; }
.q-pay-text h3 { color: var(--green-900); }
.q-upload { display: grid; gap: 10px; }
.q-file { position: relative; display: block; cursor: pointer; }
.q-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.q-file span { display: block; padding: 14px 16px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-800); font-weight: 600; font-size: 0.9rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-file:hover span, .q-file input:focus-visible + span { border-color: var(--green-500); }
.q-upload .btn { justify-self: start; }

@media (max-width: 900px) {
  .q-layout, .q-pay { grid-template-columns: 1fr; }
  .q-side { position: static; }
  .q-qris { max-width: 260px; }
}
@media (max-width: 640px) {
  .q-form, .q-status { padding: 20px 16px; }
  .q-grid { grid-template-columns: 1fr; }
  .q-detail { grid-template-columns: 1fr; gap: 2px; }
  .q-detail dd { margin-bottom: 8px; }
}

/* ================= Blog / Kabar ================= */
/* Sampul tulisan: gambar menempel ke tepi atas kartu */
.news-card.has-cover { padding-top: 0; overflow: hidden; }
.nc-cover { display: block; margin: 0 -28px 10px; width: calc(100% + 56px); aspect-ratio: 1200 / 630; background: var(--green-100); overflow: hidden; }
.nc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.news-card:hover .nc-cover img { transform: scale(1.03); }
.post-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1200 / 630; background: var(--green-100); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .nc-title { font-size: 1.15rem; line-height: 1.35; color: var(--green-900); }
.news-card .nc-title a:hover { color: var(--green-500); }
.news-meta span[aria-hidden] { margin: 0 6px; opacity: 0.6; }
.blog-rss { margin-left: auto; }
.blog-pager { margin-top: 28px; }
.blog-pager a.pg { display: inline-grid; place-items: center; }
.kabar-more { display: flex; justify-content: center; margin-top: 28px; }

.hero-badge { margin-bottom: 14px; }
.post-title { max-width: 860px; font-size: clamp(1.8rem, 4.4vw, 2.7rem) !important; }
.post-meta { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; color: var(--gold-soft); font-size: 0.92rem; }
.post-meta span[aria-hidden] { margin: 0 6px; opacity: 0.6; }
.post-layout { display: grid; gap: 48px; }
.post { width: min(760px, 100%); margin: 0 auto; }
.post-lead { font-size: 1.15rem; line-height: 1.7; color: var(--green-900); font-weight: 500; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-body { display: grid; gap: 18px; font-size: 1.06rem; line-height: 1.85; color: #2c3a35; }
.post-body h2 { font-size: 1.5rem; color: var(--green-900); margin-top: 16px; line-height: 1.3; }
.post-body h3 { font-size: 1.22rem; color: var(--green-900); margin-top: 8px; }
.post-body h4 { font-size: 1.05rem; color: var(--green-800); }
.post-body ul, .post-body ol { padding-left: 24px; display: grid; gap: 8px; }
.post-body li::marker { color: var(--gold-600); font-weight: 700; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }
.post-body .saw, .nd-body .saw, .md-preview .saw { font-size: 1.2em; line-height: 1; }
.post-body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { padding: 18px 22px; border-left: 4px solid var(--gold); background: #fbf8ee; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #4a564f; font-style: italic; }
.post-body .md-ar, .nd-body .md-ar, .md-preview .md-ar { font-family: "Amiri", serif; font-style: normal; font-size: 1.6em; line-height: 2.1; text-align: right; color: var(--ink); }
.post-body blockquote.md-ar { border-left: 0; border-right: 4px solid var(--gold); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.event-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 26px; }
.event-box div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green-50); border: 1px solid var(--line); }
.event-box dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-600); }
.event-box dd { font-weight: 700; color: var(--green-900); }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-bar > span { font-weight: 700; color: var(--green-900); margin-right: 4px; }
.share-bar .btn { padding: 10px 18px; font-size: 0.88rem; }
.related { border-top: 1px solid var(--line); padding-top: 40px; }
.related h2 { text-align: center; color: var(--green-900); font-size: 1.4rem; margin-bottom: 22px; }
.related > p { display: flex; justify-content: center; margin-top: 22px; }

/* Animasi muncul saat scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--ink);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .navbar:has(.nav-links.open) { background: #fff; color: var(--ink); }
}

@media (max-width: 1024px) {
  .prayer-grid { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .fund-stats { grid-template-columns: 1fr 1fr; }
  .fund-stat.balance { grid-column: 1 / -1; }
  .guide { grid-template-columns: 1fr 1fr; }
  .guide-doa { grid-column: 1 / -1; }
}

@media (max-width: 900px) {

  .hero { padding: calc(var(--nav-h) + 40px) 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .basmalah { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .next-prayer { justify-self: center; }

  .about, .infaq, .contact { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

@media (max-width: 640px) {
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .guide { grid-template-columns: 1fr; }
  .library-grid, .tabs { grid-template-columns: 1fr 1fr; }
  .ayah, .hadith-card, .doa-card { padding: 20px 18px; }
  .reader-bar { position: static; }
  .surah-nav .btn, .hadith-nav > .btn { flex: 1 1 40%; justify-content: center; }
  .news-grid { grid-template-columns: 1fr; }
  .fund-report, .pengurus { padding: 22px 18px; }
  .nd-inner { padding: 30px 22px 24px; }
  .ab-label span, .ab-label { font-size: 0.68rem; }
  .np-time { font-size: 3rem; }
  .verse-card { padding: 60px 24px 32px; }
  .brand-text small { display: none; }
}
