/* Warna diatur dari config.js (tema). Nilai di bawah hanya cadangan. */
:root {
  --primary: #0f6e5a;
  --accent: #f2a93b;
  --dark: #0d2b26;
  --text: #33413e;
  --muted: #6b7a76;
  --bg: #ffffff;
  --bg-alt: #f5f8f7;
  --line: #e4ebe9;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(13, 43, 38, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.25; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Tombol */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .25s; font-family: inherit; }
.btn-sm { padding: .55em 1.15em; font-size: .9rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Navbar */
.navbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; padding: 14px 0; }
.navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.06); padding: 8px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img, .brand-mark { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; color: inherit; }
.brand-text small { font-size: .75rem; opacity: .8; }
.navbar.scrolled .brand { color: var(--dark); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.9); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { background: rgba(255,255,255,.15); color: #fff; }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--text); }
.navbar.scrolled .nav-links a:not(.btn):hover, .navbar.scrolled .nav-links a.active { background: var(--primary-soft); color: var(--primary); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; padding: 6px; }
.navbar.scrolled .nav-toggle { color: var(--dark); }

/* Hero */
.hero { position: relative; min-height: min(92vh, 780px); display: flex; align-items: center; color: #fff; padding: 130px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, color-mix(in srgb, var(--dark) 88%, transparent), color-mix(in srgb, var(--primary) 75%, transparent)), var(--hero-img, none) center/cover, var(--dark); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 40%), radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 40%); }
.hero-inner { max-width: 760px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .85rem; font-weight: 500; margin-bottom: 22px; }
.badge .ic { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); opacity: .9; margin-bottom: 32px; max-width: 620px; }

/* Statistik */
.stats-wrap { position: relative; margin-top: -60px; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.stat { text-align: center; padding: 22px 12px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.stat span { color: var(--muted); font-size: .92rem; }

/* Section umum */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; max-width: 640px; margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin-top: 12px; }
.lead { color: var(--muted); margin-bottom: 14px; }

.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* Placeholder gambar */
.ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 12px;
  background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--accent) 18%, white)); color: var(--primary); font-size: .85rem; font-weight: 500; }
.ph .ic { width: 38px; height: 38px; opacity: .6; }

/* Profil */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/4.3; box-shadow: var(--shadow); }
.split-media > img, .split-media > .ph { width: 100%; height: 100%; object-fit: cover; }
.since { position: absolute; left: 20px; bottom: 20px; background: var(--accent); color: var(--dark); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); }
.since strong { display: block; font-size: 1.8rem; line-height: 1; font-weight: 800; }
.since span { font-size: .8rem; font-weight: 600; }
.vm { display: grid; gap: 16px; margin-top: 24px; }
.vm-card { background: var(--bg-alt); border-left: 4px solid var(--primary); padding: 18px 20px; border-radius: 12px; }
.vm-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.checks { list-style: none; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--primary); margin-top: 3px; width: 1.1em; }

/* Layanan */
.service { padding: 30px; }
.ic-box { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; transition: .3s; }
.ic-box .ic { width: 26px; height: 26px; }
.ic-box.sm { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.ic-box.sm .ic { width: 20px; height: 20px; }
.service:hover .ic-box { background: var(--primary); color: #fff; }
.service h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .95rem; }

/* Keunggulan */
.features { display: grid; gap: 22px; }
.feature { display: flex; gap: 18px; }
.feature .num { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--dark); font-weight: 800; }
.feature h3 { font-size: 1.08rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Berita */
.news { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.news-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-img img, .news-img .ph { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.news:hover .news-img img { transform: scale(1.06); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time, .m-body time { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .83rem; }
.news-body h3 { font-size: 1.12rem; }
.news-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .9rem; }
.news:hover .more .ic { transform: translateX(4px); }
.more .ic { transition: .2s; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.g-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; }
.g-item img, .g-item .ph { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 34px 16px 14px; color: #fff; font-size: .92rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: grid; gap: 2px; transition: .3s; }
.g-item figcaption strong { font-weight: 700; line-height: 1.3; }
.g-item figcaption small { opacity: .85; font-size: .78rem; }
.g-count { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(4px); z-index: 1; }
.g-count .ic { width: 15px; height: 15px; }
.g-item:hover img { transform: scale(1.08); }
.g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Tim */
.team { text-align: center; padding: 28px 20px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; border: 4px solid var(--primary-soft); }
.avatar img, .avatar .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.avatar .ph span { display: none; }
.team h3 { font-size: 1.05rem; }
.team p { color: var(--primary); font-size: .9rem; font-weight: 500; }

/* Testimoni */
.testi { padding: 30px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.testi .q { width: 36px; height: 36px; color: var(--accent); }
.testi p { color: var(--text); font-style: italic; flex: 1; }
.testi footer { display: flex; align-items: center; gap: 12px; }
.initial { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testi strong { display: block; color: var(--dark); }
.testi small { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--primary); transition: .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 60%, var(--dark))); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.cta p { opacity: .9; }

/* Kontak */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci small { color: var(--muted); font-size: .8rem; display: block; }
.ci div div { color: var(--dark); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { padding: 32px; display: grid; gap: 16px; }
.form:hover { transform: none; }
.form h3 { font-size: 1.3rem; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--dark); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); transition: .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.form .btn { justify-content: center; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: .93rem; max-width: 340px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.7); transition: .2s; }
.footer a:hover { color: var(--accent); }
.fc li { display: flex; gap: 10px; font-size: .93rem; }
.fc .ic { color: var(--accent); margin-top: 3px; width: 1.1em; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--accent); color: var(--dark); }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .87rem; text-align: center; }

/* WA melayang */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: .25s; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: .25s; }
.modal.show { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 20, 17, .75); backdrop-filter: blur(4px); }
.modal-box { position: relative; background: #fff; border-radius: 20px; width: min(720px, 100%); max-height: 90vh; overflow: auto; transform: translateY(20px); transition: .3s; }
.modal.wide .modal-box { width: min(1000px, 100%); background: transparent; }
.modal.show .modal-box { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.m-img { aspect-ratio: 16/8; overflow: hidden; }
.m-img img, .m-img .ph { width: 100%; height: 100%; object-fit: cover; }
.m-body { padding: 28px 32px 36px; }
.m-body h2 { font-size: 1.6rem; margin: 8px 0 16px; }
.m-body p { margin-bottom: 14px; }
.m-gal img, .m-gal .ph { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 14px; min-height: 360px; }
.m-cap { color: #fff; text-align: center; margin-top: 12px; font-weight: 500; }

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

/* Responsif */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 70px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: #fff; padding: 14px; border-radius: 16px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { color: var(--text) !important; }
  .nav-links a.active { background: var(--primary-soft) !important; color: var(--primary) !important; }
  .nav-links .btn { margin: 6px 0 0; justify-content: center; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .split-media { aspect-ratio: 16/11; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .brand-text small { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat strong { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { text-align: center; justify-content: center; }
}

/* =================== PENGGALANGAN DANA =================== */
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 18%, white); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn.block { width: 100%; justify-content: center; }
.btn-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; transition: .2s; }
.btn-icon:hover { background: var(--primary-soft); border-color: transparent; }
.btn-icon.wa { color: #fff; background: #25d366; border-color: #25d366; }
.btn-icon.wa:hover { filter: brightness(1.05); }
.small { font-size: .85rem; }
.muted { color: var(--muted); }

/* Filter */
.camp-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: .2s; }
.chip b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--bg-alt); font-size: .78rem; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.active b { background: rgba(255,255,255,.2); }

/* Kartu kampanye */
.camp { overflow: hidden; display: flex; flex-direction: column; }
.camp[hidden] { display: none; }
.camp-img { position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: pointer; }
.camp-img img, .camp-img .ph { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.camp:hover .camp-img img { transform: scale(1.05); }
.tag-hot { left: auto !important; right: 14px; background: #e5484d !important; }
.tag-done { left: auto !important; right: 14px; background: var(--dark) !important; display: inline-flex; align-items: center; gap: 4px; }
.tag-done .ic { width: 1em; height: 1em; }
.camp-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.camp-body h3 { font-size: 1.12rem; cursor: pointer; }
.camp-body h3:hover { color: var(--primary); }
.camp-body > p { color: var(--muted); font-size: .92rem; flex: 1; }
.camp-prog { display: grid; gap: 6px; }
.camp-prog.box { background: var(--bg-alt); padding: 18px; border-radius: 14px; margin: 4px 0 18px; }
.camp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.camp-row.small { font-size: .82rem; color: var(--muted); }
.camp-row.small span { display: inline-flex; align-items: center; gap: 4px; }
.money { color: var(--primary); font-size: 1.1rem; font-weight: 800; }
.money.big { font-size: 1.5rem; }
.pct { font-weight: 800; color: var(--dark); font-size: .95rem; }
.prog { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, #eef2f1); overflow: hidden; }
.prog-bar { height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); position: relative; }
.reveal .prog-bar { width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.in .prog-bar { width: var(--p); }
.is-done .prog-bar { background: var(--dark); }
.camp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .83rem; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.camp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.camp-actions { display: flex; gap: 8px; }
.camp-actions .btn { flex: 1; justify-content: center; padding: .75em 1em; }

/* Popup detail */
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.m-sub { font-size: 1.1rem; margin: 6px 0 10px; }

/* Popup donasi */
.donate { padding-top: 30px; }
.m-title { font-size: 1.3rem !important; margin: 4px 0 14px !important; padding-right: 36px; }
.donate .prog { margin-bottom: 6px; }
.step { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.step h3 { font-size: 1rem; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.nominal { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 12px; }
.nominal .chip { padding: 10px 8px; border-radius: 12px; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.field input, .field textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.input-rp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); overflow: hidden; }
.input-rp:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.input-rp b { padding: 0 4px 0 14px; color: var(--muted); }
.input-rp input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 1.1rem; font-weight: 700; }
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; padding: 5px; background: var(--bg-alt); border-radius: 12px; margin-bottom: 14px; }
.tab { font: inherit; font-weight: 600; font-size: .92rem; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.qris { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; }
.qris img, .qris .ph { width: 240px; max-width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.rek { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.rek-info { flex: 1; display: grid; line-height: 1.35; min-width: 0; }
.rek-info small { color: var(--muted); font-size: .8rem; }
.rek-info strong { font-size: 1.1rem; color: var(--dark); letter-spacing: .03em; }
.rek-info span { font-size: .85rem; color: var(--text); }
.total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, white); border: 1px solid color-mix(in srgb, var(--accent) 45%, white); margin: 12px 0; font-size: .9rem; }
.total small { grid-column: 1; color: var(--muted); }
.total strong { grid-column: 1; font-size: 1.35rem; color: var(--dark); }
.total .btn-icon { grid-column: 2; grid-row: 1 / 3; }
.total span { grid-column: 1 / -1; margin-top: 6px; }
.total[hidden] { display: none; }
.tab-pane[hidden] { display: none; }
.note { font-size: .85rem; color: var(--muted); background: var(--bg-alt); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }

/* Notifikasi kecil */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .m-body { padding: 24px 20px 28px; }
  .m-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Layar memuat (sebelum data dari database tampil) */
html:not(.ready) body::before { content: ""; position: fixed; inset: 0; z-index: 999; background: #fff; }
html:not(.ready) body::after { content: ""; position: fixed; z-index: 1000; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Daftar donatur terbaru */
.donors { display: grid; gap: 10px; }
.donor { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg-alt); border-radius: 12px; }
.donor .initial { width: 38px; height: 38px; font-size: .9rem; flex-shrink: 0; }
.donor strong { color: var(--dark); }
.donor .money { font-size: .92rem; margin-left: 4px; }
.donor small { display: block; color: var(--muted); font-size: .78rem; }
.donor p { margin: 4px 0 0 !important; font-size: .88rem; font-style: italic; color: var(--text); }

/* =====================================================================
   BAGIAN TAMBAHAN — Program, Khataman, Santri, Transparansi, Roadmap
   ===================================================================== */
.sec-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 28px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: .85rem; }
.sec-note .ic { width: 1em; margin-top: 3px; flex-shrink: 0; color: var(--primary); }

/* Program */
.prog-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service { display: flex; flex-direction: column; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pill { font-size: .72rem; font-weight: 700; color: color-mix(in srgb, var(--accent) 70%, #5a3000); background: color-mix(in srgb, var(--accent) 16%, white); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.checks.sm { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); gap: 6px; font-size: .88rem; }

/* Khataman */
.section.khatam { background: radial-gradient(1000px 400px at 50% 0%, color-mix(in srgb, var(--primary) 9%, white), var(--bg) 70%); }
.khatam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 920px; margin: 0 auto; }
.khatam-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); overflow: hidden; }
.khatam-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.khatam-card p { color: var(--text); }
.khatam-no { position: absolute; right: 20px; top: 10px; font-size: 4rem; font-weight: 800; color: color-mix(in srgb, var(--primary) 8%, white); line-height: 1; }
.khatam-time { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 8px; padding: 8px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.khatam-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; text-align: center; }
.khatam-foot p { font-weight: 600; color: var(--dark); }

/* Santri */
.highlight { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 760px; margin: 0 auto 28px; padding: 16px 22px; border-radius: 14px; background: linear-gradient(120deg, var(--dark), var(--primary)); color: #fff; font-weight: 600; text-align: left; }
.highlight .ic { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent); }
.santri-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.santri { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.santri .initial { flex-shrink: 0; }
.santri-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.santri-body small { font-size: .8rem; }
.juz { font-weight: 800; color: var(--primary); }
.juz small { color: var(--muted); font-weight: 500; }

/* Transparansi */
.fin { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.fin-chart, .fin-mix { padding: 28px; }
.fin-legend { display: flex; gap: 18px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.fin-legend i, .mix-list i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 14px; align-items: end; }
.bar-grp { display: grid; justify-items: center; gap: 2px; text-align: center; }
.bar-pair { display: flex; align-items: flex-end; gap: 6px; height: 220px; width: 100%; justify-content: center; }
.bar { width: 28px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; position: relative; }
.reveal .bar { height: 0; transition: height 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.reveal.in .bar { height: var(--h); }
.bar.in { background: var(--primary); }
.bar.out { background: var(--accent); }
.bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--dark); white-space: nowrap; padding-bottom: 4px; }
.bar-grp strong { margin-top: 8px; color: var(--dark); }
.bar-grp small { font-size: .75rem; }
.bar-grp .pos { color: var(--primary); font-weight: 700; }
.bar-grp .neg { color: #c2410c; font-weight: 700; }
.fin-mix h3 { font-size: 1.05rem; margin-bottom: 18px; }
.donut { width: 170px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; }
.donut span { width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.mix-list { list-style: none; display: grid; gap: 10px; font-size: .9rem; }
.mix-list li { display: flex; align-items: center; gap: 4px; }
.mix-list span { flex: 1; }

/* Roadmap */
.road { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; padding-top: 22px; }
.road::before { content: ""; position: absolute; top: 29px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.road li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 18px 18px; margin-top: 8px; }
.road-dot { position: absolute; top: -15px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.road small { color: var(--primary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.road h3 { font-size: 1.1rem; margin: 2px 0 6px; color: var(--dark); }
.road p { font-size: .88rem; color: var(--muted); }

@media (max-width: 960px) {
  .fin { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; padding-top: 0; padding-left: 26px; }
  .road::before { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--primary), var(--accent)); }
  .road-dot { top: 22px; left: -25px; }
  .road li { padding: 18px; }
}
@media (max-width: 600px) {
  .bar { width: 18px; }
  .bar-pair { height: 170px; }
  .bar b { font-size: .62rem; }
  .santri-list { grid-template-columns: 1fr; }
  .khatam-card { padding: 24px; }
}


/* ---------- Penampil album (lightbox) ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: #0a1517; display: flex; flex-direction: column; color: #fff; animation: lbIn .2s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.lb-title { flex: 1; min-width: 0; display: grid; }
.lb-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title small { opacity: .7; font-size: .8rem; }
.lb-no { font-size: .85rem; opacity: .8; font-variant-numeric: tabular-nums; }
.lb-btn { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .2s; flex-shrink: 0; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 70px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity .25s; user-select: none; }
.lb-img.in { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-cap { text-align: center; padding: 10px 20px 0; font-weight: 500; }
.lb-desc { text-align: center; padding: 4px 20px 0; opacity: .75; font-size: .88rem; max-width: 760px; margin: 0 auto; }
.lb-thumbs { display: flex; gap: 8px; padding: 14px 18px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.lb-thumbs button { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: .2s; }
.lb-thumbs button.on { border-color: var(--accent); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .lb-stage { padding: 0 6px; }
  .lb-nav { width: 38px; height: 38px; background: rgba(0,0,0,.45); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-thumbs button { width: 52px; height: 40px; }
}
