/* ==========================================================================
   Peduli Daarul Hikmah — Sistem Donasi Pendidikan Pesantren
   Palet: emerald tua, emas antik, krem hangat
   ========================================================================== */

:root {
  --ink: #12241e;
  --ink-soft: #4d635a;
  --ink-mute: #7d8f87;
  --cream: #fbf6ec;
  --cream-2: #f4ecdb;
  --line: #e6dcc6;
  --em-900: #06342a;
  --em-800: #084538;
  --em-700: #0b5d4a;
  --em-600: #0e7a5f;
  --em-500: #14977a;
  --gold-700: #9a7418;
  --gold-500: #c8a24a;
  --gold-300: #ecd392;
  --white: #ffffff;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --sh-sm: 0 1px 2px rgba(6, 52, 42, 0.06), 0 4px 14px -6px rgba(6, 52, 42, 0.14);
  --sh-md: 0 2px 6px rgba(6, 52, 42, 0.06), 0 18px 40px -22px rgba(6, 52, 42, 0.28);
  --sh-lg: 0 30px 70px -40px rgba(6, 52, 42, 0.55);
  --grad-gold: linear-gradient(135deg, #e3c274 0%, #c8a24a 48%, #a8801f 100%);
  --grad-em: linear-gradient(135deg, #12977a 0%, #0b5d4a 60%, #06342a 100%);
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { max-width: 100%; vertical-align: middle; }
.icon-inline { display: inline-block; }
a { color: var(--em-700); text-decoration: none; }
a:hover { color: var(--em-600); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold-300); color: var(--em-900); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

/* ---------- utilitas ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 52px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-700);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin: 14px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::before { display: none; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--ink-mute); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 24px; font-size: 0.94rem; font-weight: 700;
  cursor: pointer; transition: transform .18s ease, box-shadow .22s ease, background .22s ease, color .18s ease;
  text-align: center; line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-gold { background: var(--grad-gold); color: #2c1f05; box-shadow: 0 10px 24px -12px rgba(168, 128, 31, 0.9); }
.btn-gold:hover { transform: translateY(-2px); color: #2c1f05; box-shadow: 0 16px 30px -14px rgba(168, 128, 31, 0.95); }
.btn-em { background: var(--grad-em); color: #fff; box-shadow: 0 12px 26px -14px rgba(6, 52, 42, 0.9); }
.btn-em:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.55); border-color: var(--line); color: var(--em-800); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--gold-300); color: var(--em-800); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(230, 220, 198, 0.9);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: 0 12px 30px -24px rgba(6, 52, 42, 0.7); background: rgba(251, 246, 236, 0.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--em-900); }
.brand:hover { color: var(--em-900); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-em); display: grid; place-items: center;
  box-shadow: 0 8px 18px -10px rgba(6, 52, 42, .9);
  border: 1px solid rgba(236, 211, 146, .55);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-700); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); transition: background .18s, color .18s;
}
.nav a:hover { background: var(--cream-2); color: var(--em-800); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--em-900); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--em-900);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 68px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("img/pattern.svg");
  background-size: 220px 220px; opacity: 0.5;
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 10%, #000 0%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; width: 640px; height: 640px; right: -180px; top: -240px;
  background: radial-gradient(circle, rgba(200, 162, 74, .28) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--gold-300);
  font-size: 0.76rem; font-weight: 700; color: var(--em-800); box-shadow: var(--sh-sm);
}
.hero-badge b { display: inline-flex; align-items: center; gap: 6px; background: var(--grad-gold); color: #3a2905; padding: 3px 10px; border-radius: 999px; font-size: .68rem; letter-spacing: .06em; }
.hero h1 { font-size: clamp(2.35rem, 4.9vw, 3.85rem); margin: 22px 0 0; }
.hero h1 .hl {
  color: var(--em-700); white-space: nowrap;
  background-image: linear-gradient(90deg, rgba(236, 211, 146, .95), rgba(200, 162, 74, .42));
  background-repeat: no-repeat;
  background-size: 100% .3em;
  background-position: 0 92%;
}
.arabic {
  font-family: var(--font-ar); direction: rtl; color: var(--gold-700);
  font-size: 1.32rem; line-height: 2; margin: 22px 0 0; padding-inline-start: 16px;
  border-inline-start: 2px solid var(--gold-300);
}
.hero-lead { margin-top: 18px; color: var(--ink-soft); font-size: 1.06rem; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 30px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .stat { padding-right: 30px; border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: 0; padding-right: 0; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--em-800); line-height: 1.1; }
.stat-label { font-size: 0.76rem; color: var(--ink-mute); font-weight: 600; letter-spacing: .04em; margin-top: 4px; }

/* hero art */
.hero-art { position: relative; }
.hero-art .ring {
  position: absolute; inset: -34px -34px auto auto; width: 220px; height: 220px;
  border: 1px dashed rgba(168, 128, 31, .5); border-radius: 50%; z-index: 0;
}
.hero-arch {
  position: relative; z-index: 1; border-radius: 260px 260px 26px 26px; overflow: hidden;
  border: 8px solid #fff; box-shadow: var(--sh-lg); aspect-ratio: 4 / 4.4; background: var(--em-900);
}
.hero-arch img, .hero-arch svg { width: 100%; height: 100%; object-fit: cover; }
.hero-arch .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 22px 22px;
  background: linear-gradient(to top, rgba(6, 21, 17, .92), rgba(6, 21, 17, .55) 55%, transparent);
  color: #fff;
}
.hero-arch .caption .tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); font-weight: 800; }
.hero-arch .caption h3 { font-size: 1.22rem; margin-top: 6px; color: #fff; }
.float-card {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px; padding: 13px 16px; box-shadow: var(--sh-md);
}
.float-card .fc-label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.float-card .fc-value { font-family: var(--font-display); font-size: 1.15rem; color: var(--em-800); font-weight: 600; }
.float-card.top { top: 34px; left: -28px; }
.float-card.bottom { bottom: 44px; right: -22px; min-width: 214px; }
.float-card.bottom .bar { height: 7px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-top: 9px; }
.float-card.bottom .bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-gold); }

/* ---------- marquee aktivitas ---------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .5); overflow: hidden; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; padding: 13px 0; animation: slide 44s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; }
.ticker-item b { color: var(--em-800); font-weight: 800; }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- pita angka ---------- */
.band {
  position: relative; background: var(--em-900); color: #fff; overflow: hidden;
  border-top: 1px solid rgba(236, 211, 146, .35); border-bottom: 1px solid rgba(236, 211, 146, .35);
}
.band::before {
  content: ""; position: absolute; inset: 0; background-image: url("img/pattern.svg");
  background-size: 240px 240px; opacity: .14; filter: brightness(3);
}
.band-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 46px 0; }
.band-item { text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); padding: 6px 10px; }
.band-item:last-child { border-right: 0; }
.band-num { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.15rem); color: var(--gold-300); font-weight: 600; line-height: 1.1; }
.band-label { font-size: .78rem; color: rgba(255, 255, 255, .72); margin-top: 6px; letter-spacing: .05em; }

/* ---------- kartu program ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.program-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .28s ease, border-color .25s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--gold-300); }
.program-cover { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--em-800); }
.program-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program-card:hover .program-cover img { transform: scale(1.045); }
.cover-chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(6, 52, 42, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(8px);
}
.chip-gold { background: var(--grad-gold); color: #3a2905; border-color: rgba(255,255,255,.5); }
.program-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.program-body h3 { font-size: 1.28rem; }
.program-body h3 a { color: var(--ink); }
.program-body h3 a:hover { color: var(--em-700); }
.program-desc { color: var(--ink-soft); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.progress { height: 9px; border-radius: 999px; background: var(--cream-2); overflow: hidden; position: relative; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-em); position: relative; }
.progress > i::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 26px;
  background: linear-gradient(90deg, transparent, rgba(236, 211, 146, .9)); border-radius: 999px;
}
.program-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .85rem; }
.program-meta .raised { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--em-800); }
.program-meta .target { color: var(--ink-mute); font-size: .8rem; }
.program-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px dashed var(--line); margin-top: auto;
}
.program-foot .donors { font-size: .8rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.program-foot .donors svg { width: 15px; height: 15px; color: var(--gold-700); }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .85rem; color: var(--em-700); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.days-left { font-size: .76rem; font-weight: 700; color: var(--gold-700); }

/* ---------- langkah donasi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 30px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-300) 0 8px, transparent 8px 16px);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream); border: 1px solid var(--gold-300);
  box-shadow: 0 0 0 8px var(--cream); position: relative; z-index: 1; color: var(--em-700);
}
.step-num svg { width: 24px; height: 24px; }
.step h4 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- transparansi ---------- */
.soft { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 45%, var(--cream) 100%); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm);
  backdrop-filter: blur(10px);
}
.trust-icon {
  width: 52px; height: 52px; border-radius: 16px 16px 8px 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fdf6e3, #f0e2bd); border: 1px solid var(--gold-300); color: var(--gold-700);
  margin-bottom: 18px;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.trust-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- testimoni ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  box-shadow: var(--sh-sm); position: relative; overflow: hidden;
}
.quote-card::before {
  content: "”"; position: absolute; top: -18px; right: 16px; font-family: var(--font-display);
  font-size: 7rem; color: var(--cream-2); line-height: 1;
}
.quote-text { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.6; color: var(--em-900); position: relative; }
.quote-person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--grad-em); color: var(--gold-300); font-weight: 800; font-size: .85rem; letter-spacing: .03em;
}
.quote-person strong { display: block; font-size: .9rem; }
.quote-person span { font-size: .76rem; color: var(--ink-mute); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--gold-300); box-shadow: var(--sh-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: .96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--em-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-700);
  transition: transform .22s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad-em);
  color: #fff; padding: 54px 46px; display: flex; align-items: center; justify-content: space-between;
  gap: 34px; box-shadow: var(--sh-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; background-image: url("img/pattern.svg");
  background-size: 200px 200px; opacity: .18; filter: brightness(3);
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; }
.cta h2 em { color: var(--gold-300); font-style: normal; }
.cta p { color: rgba(255, 255, 255, .78); margin-top: 10px; max-width: 46ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--em-900); color: rgba(255, 255, 255, .74); padding: 64px 0 0; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; background-image: url("img/pattern.svg");
  background-size: 240px 240px; opacity: .1; filter: brightness(3);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer .brand-name { color: #fff; }
.site-footer p { font-size: .88rem; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-300); margin: 0 0 16px; font-weight: 800;
}
.footer-col a { display: block; color: rgba(255, 255, 255, .74); font-size: .88rem; padding: 5px 0; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bank { font-size: .84rem; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.footer-bank:last-child { border-bottom: 0; }
.footer-bank strong { display: block; color: #fff; font-weight: 700; }
.footer-bottom {
  position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; color: rgba(255, 255, 255, .55);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }

/* ---------- halaman program ---------- */
.page-hero { padding: 40px 0 12px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-mute); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-mute); font-weight: 600; }
.crumbs a:hover { color: var(--em-700); }
.crumbs span { color: var(--gold-500); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.detail-cover {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-md); aspect-ratio: 16 / 9; background: var(--em-900); margin-bottom: 28px;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.detail .tagline { color: var(--ink-soft); font-size: 1.04rem; }
.detail .body { margin-top: 26px; color: var(--ink-soft); }
.detail .body p { margin-bottom: 14px; white-space: pre-line; }
.detail .body .story p:first-child { font-size: 1.02rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); }
.panel + .panel { margin-top: 22px; }
/* ikon inline di dalam teks */
.panel h4 svg { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 7px; color: var(--gold-700); }
.donate-head .sub svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.hero-arch img, .hero-arch svg { display: block; }

.panel h4 { font-size: 1.08rem; margin-bottom: 14px; }
.panel-narrow { padding: 20px 22px; }
.alloc { display: grid; gap: 16px; }
.alloc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .9rem; }
.alloc-row .alloc-label { display: flex; align-items: center; gap: 8px; }
.alloc-row .alloc-pct { font-weight: 800; color: var(--em-800); font-size: .86rem; }
.alloc-bar { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.alloc-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-gold); }

/* sidebar donasi */
.donate-box { position: sticky; top: 98px; }
.donate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.donate-head { padding: 22px 24px 18px; background: linear-gradient(160deg, #fdf9f0, #f7efdb); border-bottom: 1px solid var(--line); }
.donate-head .raised-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.donate-head .raised { font-family: var(--font-display); font-size: 1.62rem; color: var(--em-800); font-weight: 600; }
.donate-head .pct-pill {
  font-size: .74rem; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  background: var(--grad-gold); color: #3a2905;
}
.donate-head .progress { margin: 12px 0 10px; height: 10px; }
.donate-head .sub { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-mute); }
.donate-body { padding: 22px 24px 26px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--em-900); margin-bottom: 6px; letter-spacing: .01em; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field input[type="email"],
.field input[type="password"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fffdf8; font-size: .93rem; transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--em-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 151, 122, .12);
}
.field textarea { resize: vertical; min-height: 78px; }
.field .hint { font-size: .74rem; color: var(--ink-mute); margin-top: 5px; }
.amount-wrap { position: relative; }
.amount-wrap .prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 800; color: var(--gold-700); font-size: .9rem;
}
.amount-wrap input { padding-left: 44px !important; font-weight: 800; font-size: 1.02rem !important; letter-spacing: .01em; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.preset {
  border: 1px solid var(--line); background: #fffdf8; border-radius: 10px; padding: 9px 4px;
  font-size: .79rem; font-weight: 700; color: var(--em-800); cursor: pointer;
  transition: all .16s ease;
}
.preset:hover { border-color: var(--gold-500); background: #fffaf0; }
.preset.active { background: var(--grad-em); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -8px rgba(6,52,42,.8); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--em-600); flex: none; }
.secure-note { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: .74rem; color: var(--ink-mute); margin-top: 12px; }
.secure-note svg { width: 13px; height: 13px; }

/* ---------- daftar donatur ---------- */
.donor-list { display: grid; gap: 2px; }
.donor-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.donor-item:last-child { border-bottom: 0; }
.donor-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, #f6ecd2, #eadcbc); color: var(--gold-700); font-weight: 800; font-size: .8rem;
  border: 1px solid var(--gold-300);
}
.donor-main { flex: 1; min-width: 0; }
.donor-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.donor-name { font-weight: 700; font-size: .88rem; }
.donor-amount { font-weight: 800; font-size: .86rem; color: var(--em-700); white-space: nowrap; }
.donor-msg { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: 2px; }
.donor-time { font-size: .72rem; color: var(--ink-mute); margin-top: 3px; }

/* ---------- pembayaran / status ---------- */
.pay-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.bank-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 18px; background: #fffdf8;
  margin-bottom: 11px; transition: border-color .18s, background .18s;
}
.bank-card:hover { border-color: var(--gold-300); background: #fffbf1; }
.bank-card .bank-name { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--gold-700); text-transform: uppercase; }
.bank-card .bank-num { font-family: var(--font-display); font-size: 1.08rem; color: var(--em-900); letter-spacing: .02em; }
.bank-card .bank-owner { font-size: .76rem; color: var(--ink-mute); }
.copy-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 13px;
  font-size: .76rem; font-weight: 800; color: var(--em-700); cursor: pointer; transition: all .16s;
  display: inline-flex; align-items: center; gap: 6px; flex: none;
}
.copy-btn:hover { background: var(--em-800); color: #fff; border-color: var(--em-800); }
.copy-btn svg { width: 13px; height: 13px; }

/* ---------- QRIS ---------- */
.qris-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(135deg, #eaf3ff, #dbe8ff); color: #1a3f8f;
  border: 1px solid #c3d8ff; font-size: .68rem; font-weight: 800; letter-spacing: .1em;
}
.panel-head-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.panel-head-inline h4 { margin-bottom: 0 !important; }
.pay-method-line { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--ink-soft); }
.qris-box {
  display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 22px; align-items: start; margin-top: 16px;
}
.qris-tile {
  display: block; padding: 12px; border-radius: var(--r-md); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .18s, box-shadow .18s;
}
.qris-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.qris-tile img { width: 100%; height: auto; border-radius: 8px; }
.qris-info { min-width: 0; }
.qris-merchant {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 8px;
}
.qris-amount-label { font-size: .72rem; color: var(--ink-mute); letter-spacing: .06em; text-transform: uppercase; }
.qris-amount { font-family: var(--font-display); font-size: 1.8rem; color: var(--em-800); line-height: 1.15; margin-bottom: 10px; }
.qris-note { font-size: .8rem; color: var(--ink-soft); margin-bottom: 14px; }

/* pratinjau QRIS di panel pengelola */
.qris-preview {
  display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center;
  margin-top: 20px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--r-md); background: #fffdf8;
}
.qris-preview-img img { border-radius: 10px; border: 1px solid var(--line); background: #fff; width: 190px; height: 190px; object-fit: contain; }
.qris-preview-empty {
  width: 190px; height: 190px; border-radius: 10px; border: 1px dashed var(--line); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: .76rem; color: var(--ink-mute); text-align: center; padding: 16px;
}
.qris-preview-empty svg { width: 22px; height: 22px; color: var(--gold-500); }
.qris-preview-body { min-width: 0; }

.method-pick { display: grid; gap: 9px; }
.method-opt {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: #fffdf8; transition: all .16s ease;
}
.method-opt:hover { border-color: var(--gold-300); background: #fffbf1; }
.method-opt input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--em-600); flex: none; }
.method-opt:has(input:checked) { border-color: var(--em-500); background: #f2fbf7; box-shadow: 0 0 0 3px rgba(20,151,122,.1); }
.method-body { display: grid; gap: 1px; }
.method-body strong { font-size: .85rem; color: var(--em-900); }
.method-body small { font-size: .74rem; color: var(--ink-mute); line-height: 1.4; }

.amount-display { font-family: var(--font-display); font-size: 2.1rem; color: var(--em-800); line-height: 1.1; }
.code-pill {
  display: inline-flex; align-items: center; gap: 9px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .92rem; font-weight: 700; background: var(--cream-2); color: var(--em-900);
  padding: 7px 14px; border-radius: 10px; letter-spacing: .05em;
}
.receipt { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.receipt-head { padding: 28px 30px; background: linear-gradient(160deg, #fdf9f0, #f5ecd8); text-align: center; border-bottom: 1px dashed var(--line); }
.receipt-body { padding: 26px 30px; }
.row-kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.row-kv:last-child { border-bottom: 0; }
.row-kv dt { color: var(--ink-mute); margin: 0; }
.row-kv dd { margin: 0; font-weight: 700; text-align: right; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-warn { background: #fdf1d6; color: #96690c; }
.badge-ok { background: #dcf5ea; color: #0b6b4f; }
.badge-bad { background: #fde4e4; color: #a32020; }
.badge-neutral { background: var(--cream-2); color: var(--ink-soft); }

.upload-zone {
  border: 2px dashed var(--gold-300); border-radius: var(--r-md); padding: 26px 20px;
  text-align: center; background: #fffdf8; cursor: pointer; transition: all .18s ease;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--em-500); background: #f4fbf8; }
.upload-zone.has-file { border-style: solid; border-color: var(--em-500); background: #f2fbf7; }
.upload-icon {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-2); color: var(--gold-700);
}
.upload-icon svg { width: 22px; height: 22px; }
.upload-zone strong { font-size: .92rem; display: block; }
.upload-zone small { color: var(--ink-mute); font-size: .78rem; }

.timeline { display: grid; gap: 0; }
.tl-item { display: flex; gap: 14px; position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 4px; width: 2px;
  background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--cream-2); color: var(--ink-mute); font-size: .7rem; font-weight: 800; z-index: 1;
  border: 1px solid var(--line);
}
.tl-item.done .tl-dot { background: var(--em-700); color: #fff; border-color: var(--em-700); }
.tl-item.active .tl-dot { background: var(--grad-gold); color: #3a2905; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(200,162,74,.18); }
.tl-body strong { font-size: .9rem; display: block; }
.tl-body span { font-size: .78rem; color: var(--ink-mute); }

/* ---------- form cek / pencarian ---------- */
.lookup { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.lookup input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .95rem;
}
.lookup input:focus { outline: none; border-color: var(--em-500); box-shadow: 0 0 0 4px rgba(20,151,122,.12); }

/* ---------- alert ---------- */
.alert {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px 17px; border-radius: var(--r-md);
  font-size: .88rem; margin-bottom: 18px; border: 1px solid transparent;
}
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert-ok { background: #e7f8f0; border-color: #b7e8d3; color: #0a5f47; }
.alert-warn { background: #fdf4dd; border-color: #f0dda6; color: #8a6110; }
.alert-bad { background: #fdeaea; border-color: #f3c9c9; color: #9c1f1f; }

/* ---------- animasi masuk ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.7,.3,1), transform .7s cubic-bezier(.22,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-body { background: #f6f2e8; }
.admin-shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--em-900); color: rgba(255,255,255,.72); padding: 26px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: #fff; margin-bottom: 30px; padding-left: 6px; }
.admin-side .brand-sub { color: var(--gold-300); }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px;
  font-size: .89rem; font-weight: 600; color: rgba(255,255,255,.74); transition: all .18s;
}
.admin-nav a svg { width: 17px; height: 17px; opacity: .85; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--grad-gold); color: #33260a; box-shadow: 0 10px 22px -14px rgba(0,0,0,.8); }
.admin-nav a.active svg { opacity: 1; }
.admin-side-foot { margin-top: 30px; padding: 16px 14px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.admin-side-foot a { color: var(--gold-300); }
.admin-main { padding: 28px 32px 56px; min-width: 0; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.7rem; }
.admin-top p { font-size: .88rem; color: var(--ink-mute); margin-top: 4px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-sm); }
.acard .ac-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.acard .ac-value { font-family: var(--font-display); font-size: 1.55rem; color: var(--em-800); margin-top: 8px; font-weight: 600; line-height: 1.15; }
.acard .ac-sub { font-size: .76rem; color: var(--ink-mute); margin-top: 4px; }
.acard.gold { background: linear-gradient(160deg, #fdf7e6, #f7ecd0); border-color: var(--gold-300); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.table-scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 640px; }
table.tbl th {
  text-align: left; padding: 13px 16px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); background: #fdfaf3; border-bottom: 1px solid var(--line); font-weight: 800; white-space: nowrap;
}
table.tbl td { padding: 13px 16px; border-bottom: 1px solid #f0e9d8; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fdfaf3; }
.tbl-title { font-weight: 700; color: var(--em-900); }
.tbl-sub { font-size: .76rem; color: var(--ink-mute); }
.money { font-weight: 800; color: var(--em-700); white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 32px; height: 32px;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-soft); transition: all .16s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { border-color: var(--em-500); color: var(--em-700); background: #f2fbf7; }
.icon-btn.danger:hover { border-color: #e08c8c; color: #a32020; background: #fdeaea; }
.chip-ok, .chip-off {
  font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em;
}
.chip-ok { background: #dcf5ea; color: #0b6b4f; }
.chip-off { background: #eee7d7; color: #8a7c5c; }
.progress-mini { height: 6px; width: 90px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-top: 5px; }
.progress-mini i { display: block; height: 100%; background: var(--grad-em); border-radius: 999px; }

.admin-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-em);
}
.login-wrap::after {
  content: ""; position: absolute; inset: 0; background-image: url("img/pattern.svg");
  background-size: 240px 240px; opacity: .16; filter: brightness(3);
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px; background: #fff;
  border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.6);
}
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h1 { font-size: 1.5rem; text-align: center; }
.login-card .sub { text-align: center; color: var(--ink-mute); font-size: .87rem; margin: 6px 0 24px; }
.demo-hint {
  margin-top: 18px; font-size: .78rem; color: var(--ink-soft); background: var(--cream-2);
  border: 1px dashed var(--gold-300); border-radius: 10px; padding: 10px 13px; text-align: center;
}
.demo-hint code { background: #fff; padding: 1px 6px; border-radius: 5px; font-weight: 700; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-pill {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
}
.filter-pill.active { background: var(--em-800); color: #fff; border-color: var(--em-800); }
.filter-pill:hover { border-color: var(--gold-300); }

/* ---------- laporan realisasi & saldo ---------- */
.saldo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.saldo-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 17px; display: flex; flex-direction: column; gap: 2px;
}
.saldo-card .saldo-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.saldo-card strong {
  font-family: var(--font-display); font-size: 1.18rem; line-height: 1.25; color: var(--em-800); margin-top: 4px;
}
.saldo-card small { font-size: .74rem; color: var(--ink-mute); }
.saldo-card.highlight { background: linear-gradient(160deg, #fdf7e6, #f7ecd0); border-color: var(--gold-300); }
.saldo-card.highlight strong { color: var(--gold-700); }
.saldo-neg, .saldo-card strong.saldo-neg { color: #a32020; }
.saldo-bar { height: 10px; border-radius: 999px; background: var(--cream-2); overflow: hidden; margin-top: 16px; }
.saldo-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-gold); }
.saldo-bar-note {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 8px;
  font-size: .76rem; font-weight: 700; color: var(--ink-mute);
}

.report-list { display: grid; gap: 14px; margin-top: 18px; }
.report-item {
  display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px;
}
.report-thumb {
  width: 116px; height: 88px; border-radius: 10px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; gap: 4px; text-align: center;
}
.report-thumb img { width: 100%; height: 100%; object-fit: cover; }
.report-thumb svg { width: 20px; height: 20px; color: var(--ink-mute); }
.report-thumb span { font-size: .6rem; color: var(--ink-mute); line-height: 1.2; padding: 0 6px; }
.report-thumb.empty { border-style: dashed; background: #fdfaf3; }
.report-main { min-width: 0; }
.report-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.report-top strong { font-size: .96rem; color: var(--em-900); font-weight: 800; line-height: 1.35; }
.report-amount { font-weight: 800; font-size: .9rem; color: var(--em-700); white-space: nowrap; }
.report-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; color: var(--ink-mute); margin-top: 3px; }
.report-meta svg { width: 13px; height: 13px; }
.report-meta a { color: var(--em-700); font-weight: 700; }
.report-desc { font-size: .85rem; color: var(--ink-soft); margin-top: 7px; line-height: 1.6; }
.report-empty {
  margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--r-md);
  background: #fdfaf3; font-size: .87rem; color: var(--ink-soft);
}
.report-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }

.saldo-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.saldo-row {
  display: grid; grid-template-columns: 1.7fr .95fr .95fr .95fr auto; gap: 14px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #f0e9d8; font-size: .88rem;
}
.saldo-row:last-child { border-bottom: 0; }
.saldo-row.head {
  background: #fdfaf3; padding: 11px 20px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 800; color: var(--ink-mute);
}
.saldo-row:not(.head):hover { background: #fdfaf3; }
.saldo-name a { font-weight: 700; color: var(--em-900); }
.saldo-name small { display: block; font-size: .72rem; color: var(--ink-mute); font-weight: 600; }
.saldo-cell { font-weight: 700; color: var(--em-700); white-space: nowrap; }
.saldo-balance { color: var(--gold-700); font-weight: 800; }
.saldo-k { display: none; }
.saldo-link { justify-self: end; }
.saldo-link .link-arrow { font-size: .78rem; }
.admin-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- responsif ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .float-card.top { left: -8px; }
  .float-card.bottom { right: -8px; }
  .detail-grid { grid-template-columns: 1fr; }
  .donate-box { position: static; }
  .pay-grid { grid-template-columns: 1fr; }
  .qris-box { grid-template-columns: 1fr; }
  .qris-tile { max-width: 260px; }
  .qris-preview { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .band-item:nth-child(2) { border-right: 0; }
  .trust-grid, .quote-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 18px; border-radius: 0 0 20px 20px; }
  .admin-side .brand { margin-bottom: 16px; }
  .admin-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .admin-nav a { white-space: nowrap; }
  .admin-side-foot { display: none; }
  .admin-main { padding: 22px 18px 48px; }
}
@media (max-width: 780px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 78px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--sh-md);
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { height: 70px; }
  .site-header .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .site-header .brand-mark svg { width: 24px; height: 24px; }
  .site-header .brand-name { font-size: .92rem; line-height: 1.12; }
  .site-header .brand-sub { font-size: .5rem; letter-spacing: .1em; white-space: nowrap; }
  .nav-cta .btn span { display: none; }
  .section { padding: 60px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .steps::before { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 38px 28px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .hero { padding: 44px 0 60px; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat { padding-right: 20px; }
  .stat-num { font-size: 1.35rem; }
  .arabic { font-size: 1.15rem; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site-footer { padding-top: 48px; }
  .detail-cover { aspect-ratio: 16 / 10; }
  .program-body { padding: 18px; }
  .saldo-grid { grid-template-columns: 1fr; }
  .admin-cards.cols-3 { grid-template-columns: 1fr; }
  .report-item { grid-template-columns: 1fr; }
  .report-thumb { width: 100%; height: 168px; }
  .report-hero { align-items: flex-start; }
  .saldo-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px 12px; padding: 16px 18px; align-items: start; }
  .saldo-row.head { display: none; }
  .saldo-name { grid-column: 1 / -1; }
  .saldo-k { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 800; }
  .saldo-cell { font-size: .85rem; }
  .saldo-link { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 480px) {
  .presets { grid-template-columns: 1fr 1fr; }
  .qris-amount { font-size: 1.55rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .float-card.bottom { min-width: 0; right: 0; bottom: 20px; }
  .float-card.top { top: 14px; left: 0; }
  .hero-arch { aspect-ratio: 4 / 4.6; }
  .lookup { flex-direction: column; }
  .lookup .btn { width: 100%; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .page-hero { padding: 0 0 8px; }
  .page-hero h1 { font-size: 1.5rem; }
  .panel, .table-wrap, .ledger-card, .ledger-strip { box-shadow: none; }
  .ledger-cards { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ledger-card { padding: 10px 12px; }
  .ledger-card strong { font-size: 1rem; }
  .ledger-card small { font-size: .62rem; }
  table.tbl, table.tbl.ledger-table { min-width: 0; font-size: .72rem; }
  table.tbl th, table.tbl td, table.tbl tfoot td { padding: 6px 8px; }
  thead { display: table-header-group; }
  tr, .month-row, .cat-row, .ledger-exp { break-inside: avoid; }
  .mbar-track i, .cat-track i, .saldo-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================================================
   Laporan gabungan (penerimaan − pengeluaran − saldo semua program)
   ========================================================================== */
.ledger-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ledger-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px;
  box-shadow: var(--sh-sm); display: grid; gap: 4px; align-content: start;
}
.ledger-card .saldo-label { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.ledger-card .saldo-label svg { width: 14px; height: 14px; color: var(--gold-700); }
.ledger-card strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--em-800); line-height: 1.2; letter-spacing: -.01em; }
.ledger-card strong.out { color: #8c5a10; }
.ledger-card small { font-size: .75rem; color: var(--ink-mute); line-height: 1.45; }
.ledger-card.highlight { background: linear-gradient(160deg, #fdf7e6, #f7ecd0); border-color: var(--gold-300); }
.ledger-card.highlight strong { color: var(--gold-700); }

.ledger-rows { display: grid; gap: 0; margin-top: 4px; }
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 2px; border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--ink-soft);
}
.ledger-row strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--em-900); white-space: nowrap; }
.ledger-row.total {
  border-bottom: 0; border-top: 2px solid var(--gold-300); margin-top: 4px; padding-top: 15px;
  font-weight: 700; color: var(--em-900);
}
.ledger-row.total strong { font-size: 1.25rem; color: var(--gold-700); }

.ledger-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.ledger-head strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--em-900); }

table.tbl.ledger-table th:nth-child(n+2) { text-align: right; }
table.tbl.ledger-table th:last-child { text-align: left; }
.ledger-prog { font-weight: 800; color: var(--em-900); font-size: .9rem; line-height: 1.35; display: inline-block; }
.ledger-prog:hover { color: var(--em-600); text-decoration: underline; }
.ledger-num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--em-700); }
.ledger-balance { color: var(--gold-700); font-weight: 800; }
.ledger-progress { min-width: 130px; }
table.tbl tfoot td {
  padding: 14px 16px; background: #fdf7e6; border-top: 2px solid var(--gold-300);
  font-weight: 800; color: var(--em-900); font-size: .87rem;
}
table.tbl tfoot td:first-child { white-space: nowrap; }

/* rekap bulanan */
.months { display: grid; gap: 14px; margin-top: 6px; }
.month-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.month-name { font-size: .8rem; font-weight: 800; color: var(--em-900); text-transform: capitalize; }
.month-bars { display: grid; gap: 6px; }
.mbar { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mbar-k { font-size: .7rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.mbar-track { height: 9px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.mbar-track i { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.mbar-track i.in, .cat-track i.in { background: var(--grad-em); }
.mbar-track i.out, .cat-track i.out { background: var(--grad-gold); }
.mbar-v { font-size: .76rem; font-weight: 700; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.months-legend { display: flex; gap: 18px; margin-top: 16px; font-size: .74rem; color: var(--ink-mute); }
.months-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend.in { background: var(--em-600); }
.legend.out { background: var(--gold-500); }

/* pengeluaran per kategori */
.cat-list { display: grid; gap: 18px; margin-top: 6px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cat-head strong { font-size: .9rem; color: var(--em-900); }
.cat-bars { display: grid; gap: 6px; margin-top: 6px; }
.cat-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cat-k { font-size: .7rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }
.cat-track { height: 9px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.cat-track i { display: block; height: 100%; border-radius: 999px; }
.cat-v { font-size: .78rem; font-weight: 700; color: var(--ink-soft); text-align: right; white-space: nowrap; }

/* rincian seluruh pengeluaran */
.ledger-exp-list { display: grid; gap: 0; }
.ledger-exp { padding: 15px 0; border-bottom: 1px dashed var(--line); }
.ledger-exp:last-child { border-bottom: 0; padding-bottom: 2px; }
.ledger-exp-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.ledger-exp-top strong { font-size: .92rem; color: var(--em-900); line-height: 1.35; }
.ledger-exp-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; color: var(--ink-mute); margin-top: 3px; }
.ledger-exp-meta svg { width: 13px; height: 13px; }
.ledger-exp-meta a { color: var(--em-700); font-weight: 700; }

/* strip saldo di dashboard admin */
.ledger-strip {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); margin-bottom: 26px; overflow: hidden;
}
.ls-item { padding: 15px 22px; display: grid; gap: 2px; border-right: 1px solid var(--line); flex: 1 1 170px; }
.ls-item span { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute); }
.ls-item strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--em-800); }
.ls-item.total { background: #fdf7e6; }
.ls-item.total strong { color: var(--gold-700); }
.ls-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 15px 20px; font-size: .8rem; font-weight: 800;
  color: var(--em-700); white-space: nowrap;
}
.ls-link:hover { background: #f4fbf8; }
.ls-link svg { width: 14px; height: 14px; }

@media (max-width: 1020px) {
  .ledger-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .month-row { grid-template-columns: 1fr; gap: 6px; }
  .mbar { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .cat-bar { grid-template-columns: 82px minmax(0, 1fr) auto; }
  .ledger-row { font-size: .86rem; }
  .ledger-row strong { font-size: .95rem; }
}
@media (max-width: 520px) {
  .ledger-cards { grid-template-columns: 1fr; }
  .mbar { grid-template-columns: 1fr; gap: 3px; }
  .mbar-v { text-align: left; }
  .cat-bar { grid-template-columns: 1fr; gap: 3px; }
  .cat-v { text-align: left; }
  .ls-item { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .ls-link { flex: 1 1 100%; justify-content: center; }
}
