/* =====================================================================
   Dompet Kebaikan · Design system v2 (karakter BMA)
   Font     : Plus Jakarta Sans (Tokotype, Jakarta) · angka tabular
   Warna    : Hijau BMA #006837 · hijau muda #8CC63F · aksen emas
   Grid     : 4px · radius 8/12/16 · satu jenis bayangan halus
   Aturan   : teks ≥ 12px, kontras ≥ 4.5:1, target sentuh ≥ 44px,
              kolom isian 16px (iPhone tidak zoom), fokus terlihat.
   ===================================================================== */

:root {
  /* Merek */
  --green-900: #053b22;
  --green-800: #004d29;
  --green-700: #006837;
  --green-600: #0b7a41;
  --green-500: #2f9a45;
  --lime-500: #8cc63f;
  --lime-100: #eef7e1;
  --green-100: #d9eee0;
  --green-50: #eff8f2;
  --gold-600: #946f0f;
  --gold-400: #d8b54a;
  --gold-300: #ead073;
  --gold-50: #fbf6e3;

  /* Netral bernuansa hijau (tinted) */
  --ink-900: #111c16;
  --ink-700: #33423a;
  --ink-500: #56665d;
  --ink-400: #6b7a72;
  --line: #e3e9e5;
  --line-strong: #cdd8d1;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #f8faf9;

  /* Status */
  --danger: #c53030;
  --danger-50: #fdeeee;
  --warn: #975a07;
  --warn-50: #fff5e3;
  --info: #2563a8;
  --info-50: #eaf2fb;

  /* Bentuk & kedalaman */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 28, 22, 0.05);
  --shadow: 0 1px 2px rgba(17, 28, 22, 0.04), 0 4px 16px rgba(17, 28, 22, 0.06);
  --shadow-lg: 0 20px 48px rgba(17, 28, 22, 0.18);
  --shadow-green: 0 10px 24px rgba(0, 104, 55, 0.24);
  --ring: 0 0 0 3px rgba(47, 154, 69, 0.28);

  /* Tipografi */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  /* Gerak */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --fast: 150ms;
  --slow: 240ms;

  /* Tata letak */
  --app-w: 480px;
  --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --grad-green: linear-gradient(140deg, #005c30 0%, #006837 45%, #1f8a43 100%);
  --grad-progress: linear-gradient(90deg, var(--green-500), var(--lime-500));
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M28 7l6 8.6 10.4-1.7-1.7 10.4L51.3 30l-8.6 6 1.7 10.4-10.4-1.7L28 53.3l-6-8.6-10.4 1.7 1.7-10.4L4.7 30l8.6-6-1.7-10.4 10.4 1.7z'/%3E%3Ccircle cx='28' cy='30' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg);
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
@media (min-width: 520px) {
  body {
    background:
      radial-gradient(900px 480px at 50% -160px, rgba(140, 198, 63, 0.16), transparent 70%),
      var(--bg);
  }
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: var(--lime-100); }

.app {
  position: relative;
  max-width: var(--app-w);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--surface);
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  overflow-x: clip;
}
.app.no-nav { padding-bottom: 0; }
.app.has-cta { padding-bottom: calc(84px + var(--safe-b)); }
@media (min-width: 520px) {
  .app { box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgba(17, 28, 22, 0.07); }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-500); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.pad { padding: 16px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.text-green { color: var(--green-700); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }

/* ---------- Strip mode demo ---------- */
.demo-strip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 6px 12px;
  font-size: 12px; font-weight: 500;
  color: #6b5210; background: var(--gold-50);
  border-bottom: 1px solid #f1e2ad;
}
.demo-strip .icon { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: 58px; padding: 0 8px 0 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.topbar.is-scrolled, .pagebar.is-scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; margin-right: auto; color: inherit; }
.brand-logo {
  display: block;
  width: 36px; height: 36px; flex: none;
  border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 15px; font-weight: 800; color: var(--green-700); letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-700);
  cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--green-50); color: var(--green-700); }
.icon-btn:active { background: var(--green-100); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 99px;
  background: #e0473b; box-shadow: 0 0 0 2px #fff;
}
.icon-btn.on-dark { color: #fff; background: rgba(17, 28, 22, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.icon-btn.on-dark:hover { background: rgba(17, 28, 22, 0.48); color: #fff; }

.saldo-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 34px; padding: 0 12px 0 10px;
  border-radius: 99px; white-space: nowrap;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--green-800); background: var(--green-50);
  box-shadow: inset 0 0 0 1px var(--green-100);
}
.saldo-chip .icon { width: 16px; height: 16px; color: var(--green-700); }
@media (max-width: 420px) { .topbar.is-auth .search-btn { display: none; } }

.pagebar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 4px;
  height: 54px; padding: 0 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
}
.pagebar h1 { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagebar .spacer { width: 40px; flex: none; }

/* ---------- Navigasi bawah ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; z-index: 40;
  transform: translateX(-50%);
  width: 100%; max-width: var(--app-w);
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-400);
  transition: color var(--fast) var(--ease);
}
.nav-item .icon { width: 22px; height: 22px; }
.nav-item.is-active { color: var(--green-700); font-weight: 700; }
.nav-item.is-active .icon { stroke-width: 2.2; }
.nav-item.is-center { position: relative; justify-content: flex-end; padding-bottom: 9px; }
.nav-fab {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 16px;
  color: #fff; background: var(--grad-green);
  box-shadow: 0 6px 14px rgba(0, 104, 55, 0.3), 0 0 0 4px #fff;
  transition: transform var(--fast) var(--ease);
}
.nav-item.is-center:active .nav-fab { transform: translateX(-50%) scale(0.96); }
.nav-fab .icon { width: 23px; height: 23px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border: 0; border-radius: var(--r);
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform 80ms var(--ease), opacity var(--fast);
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled, .btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--green-700); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 14px rgba(0, 104, 55, 0.2); }
.btn-primary:hover:not(:disabled) { background: var(--green-800); }
.btn-soft { color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.btn-soft:hover:not(:disabled) { background: var(--green-100); }
.btn-outline { color: var(--green-700); background: #fff; box-shadow: inset 0 0 0 1.5px var(--green-700); }
.btn-outline:hover:not(:disabled) { background: var(--green-50); }
.btn-ghost { color: var(--ink-700); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--green-700); }
.btn-white { color: var(--green-800); background: #fff; }
.btn-white:hover:not(:disabled) { background: var(--lime-100); }
.btn-danger { color: var(--danger); background: var(--danger-50); }
.btn-danger:hover:not(:disabled) { background: #fadcdc; }
.btn-gold { color: #3d2e05; background: var(--gold-300); }
.btn-gold:hover:not(:disabled) { background: #e3c55c; }
.btn-google { color: var(--ink-900); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-google:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 20px; height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.95); border-right-color: transparent;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.btn-soft.is-loading::after, .btn-outline.is-loading::after, .btn-white.is-loading::after,
.btn-ghost.is-loading::after, .btn-danger.is-loading::after, .btn-gold.is-loading::after, .btn-google.is-loading::after,
.icon-btn.is-loading::after {
  border-color: var(--green-700); border-right-color: transparent;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; border: 0; background: none; padding: 0; font-weight: 700; color: var(--green-700); cursor: pointer; font-size: 13px; }
.link-btn .icon { width: 16px; height: 16px; }

/* ---------- Section ---------- */
.section { padding: 20px 16px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.section-title::before { content: ''; width: 4px; height: 16px; border-radius: 4px; background: linear-gradient(var(--green-700), var(--lime-500)); flex: none; }
.section-link { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.section-link .icon { width: 16px; height: 16px; }

/* ---------- Kartu dompet ---------- */
.wallet-card {
  position: relative; overflow: hidden;
  margin: 4px 16px 0; padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: var(--pattern) 0 0 / 56px 56px, var(--grad-green);
  box-shadow: var(--shadow-green);
}
.wallet-card::after {
  content: ''; position: absolute; right: -70px; top: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 63, 0.4), transparent 65%);
  pointer-events: none;
}
.wallet-card > * { position: relative; z-index: 1; }
.wallet-label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; opacity: 0.94; }
.wallet-label .icon { width: 16px; height: 16px; }
.wallet-eye { margin-left: auto; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.wallet-eye:hover { background: rgba(255, 255, 255, 0.24); }
.wallet-eye .icon { width: 16px; height: 16px; }
.wallet-amount { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wallet-sub { margin-top: 4px; font-size: 12px; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.wallet-sub .icon { width: 14px; height: 14px; }
.wallet-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.wallet-action {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 6px; border-radius: 11px;
  font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: background var(--fast) var(--ease);
}
.wallet-action:hover { background: rgba(255, 255, 255, 0.22); }
.wallet-action .icon { width: 17px; height: 17px; }
.wallet-action.is-primary { color: var(--green-800); background: #fff; box-shadow: none; }
.wallet-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 10px 16px 0; padding: 10px 12px;
  font-size: 12.5px; color: var(--ink-700);
  background: var(--gold-50); border-radius: var(--r); border: 1px solid #f0e2b3;
}
.wallet-note .icon { width: 17px; height: 17px; color: var(--gold-600); margin-top: 2px; }
.greet { padding: 2px 16px 8px; font-size: 13px; color: var(--ink-500); }
.greet b { color: var(--ink-900); font-weight: 700; }

.promo-card {
  position: relative; overflow: hidden;
  margin: 4px 16px 0; padding: 16px;
  border-radius: 18px; color: #fff;
  background: var(--pattern) 0 0 / 56px 56px, var(--grad-green);
  box-shadow: var(--shadow-green);
}
.promo-card .kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: #243a0c; background: var(--lime-500);
}
.promo-card .kicker .icon { width: 14px; height: 14px; }
.promo-card h2 { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.22; max-width: calc(100% - 96px); }
.promo-card p { margin-top: 6px; font-size: 13px; opacity: 0.92; }
.promo-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.promo-art { position: absolute; right: 8px; top: 30px; width: 88px; opacity: 0.95; pointer-events: none; }

/* ---------- Carousel banner ---------- */
.carousel {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px; margin-top: 14px;
  scrollbar-width: none; scroll-padding: 0 16px;
}
.carousel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden;
  background: var(--green-50); box-shadow: 0 0 0 1px var(--line);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-promo {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
  padding: 10px 16px; color: #fff; min-width: 0;
  background: var(--pattern) 0 0 / 44px 44px, linear-gradient(120deg, #004d29, #0b7a41 60%, #5bb04a);
}
.slide-promo b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.slide-promo span { max-width: 100%; font-size: 12px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-promo em { margin-top: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: #2b3f10; background: var(--gold-300); }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); transition: all var(--slow) var(--ease); }
.dots i.is-active { width: 18px; background: var(--green-700); }

/* ---------- Kategori ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-700); text-align: center; line-height: 1.25;
}
.cat-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(160deg, #f5fbf7, #e4f2e8);
  box-shadow: inset 0 0 0 1px var(--green-100);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.cat:hover .cat-icon { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--green-100), var(--shadow); }
.cat-icon img { width: 38px; height: 38px; object-fit: contain; }
.cat-icon .icon { width: 23px; height: 23px; color: var(--green-700); }
.cat-icon.is-gold { background: linear-gradient(160deg, #fdf8e7, #f5e9bf); box-shadow: inset 0 0 0 1px #eedfa8; }
.cat-icon.is-gold .icon { color: var(--gold-600); }

/* ---------- Kartu program ---------- */
.camp-list { display: flex; flex-direction: column; gap: 12px; }
.camp-card {
  display: grid; grid-template-columns: 116px 1fr; gap: 12px;
  padding: 10px; border-radius: 14px;
  background: #fff; color: inherit;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.camp-card:hover { box-shadow: 0 0 0 1px var(--green-100), var(--shadow); }
.camp-card:active { transform: scale(0.99); }
.camp-thumb { position: relative; aspect-ratio: 1600 / 862; border-radius: 10px; overflow: hidden; background: var(--green-50); align-self: start; }
.camp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.camp-body { display: flex; flex-direction: column; min-width: 0; }
.camp-title {
  font-size: 13.5px; font-weight: 700; line-height: 1.38; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.camp-org { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; color: var(--ink-500); }
.camp-org .icon { width: 13px; height: 13px; color: var(--info); }
.camp-meta { margin-top: auto; padding-top: 8px; }
.camp-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 11.5px; color: var(--ink-500); }
.camp-amount b { font-size: 13.5px; color: var(--green-700); font-weight: 800; font-variant-numeric: tabular-nums; }

.camp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; scroll-padding: 0 16px; }
.camp-rail::-webkit-scrollbar { display: none; }
.camp-tile {
  flex: 0 0 236px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; color: inherit;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: box-shadow var(--fast) var(--ease);
}
.camp-tile:hover { box-shadow: 0 0 0 1px var(--green-100), var(--shadow); }
.camp-tile .camp-thumb { border-radius: 0; }
.camp-tile .camp-body { padding: 10px 12px 12px; flex: 1; }
.camp-tile .camp-title { font-size: 14px; }

.badge-float {
  position: absolute; left: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 77, 41, 0.86);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.badge-float .icon { width: 12px; height: 12px; }
.badge-float.is-gold { color: #3d2e05; background: rgba(234, 208, 115, 0.96); }

.progress { height: 6px; border-radius: 99px; background: var(--green-100); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-progress); transition: width 600ms var(--ease); }
.progress.is-open > i { width: 100%; background: repeating-linear-gradient(90deg, var(--green-500) 0 10px, var(--lime-500) 10px 20px); opacity: 0.5; }

/* Placeholder gambar program */
.ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 10px 12px; color: #fff;
  background: var(--pattern) 0 0 / 40px 40px, linear-gradient(135deg, #004d29, #0b7a41 55%, #6bb84a);
}
.ph .icon { width: 22px; height: 22px; opacity: 0.9; }
.ph b { font-size: 12px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph.is-gold { background: var(--pattern) 0 0 / 40px 40px, linear-gradient(135deg, #7a5d10, #b8912a 55%, #e3c566); }

/* ---------- Cara kerja ---------- */
.how {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--green-50), #fff);
  box-shadow: inset 0 0 0 1px var(--green-100);
}
.how h3 { font-size: 16px; font-weight: 800; }
.how > p { margin-top: 2px; color: var(--ink-500); font-size: 13px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.step-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--grad-green); font-weight: 800; }
.step b { font-size: 14px; }
.step p { font-size: 12.5px; color: var(--ink-500); margin-top: 1px; }
.moments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.moment {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 11px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: var(--green-800);
  background: #fff; box-shadow: inset 0 0 0 1px var(--green-100);
}
.moment .icon { width: 15px; height: 15px; color: var(--green-600); }
.moment.is-gold { color: #5c4508; background: var(--gold-50); box-shadow: inset 0 0 0 1px #eedfa8; }
.moment.is-gold .icon { color: var(--gold-600); }

/* ---------- Kartu promo zakat ---------- */
.zakat-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-50), #fff 72%);
  box-shadow: inset 0 0 0 1px #efe1ad;
}
.zakat-card h3 { font-size: 15.5px; font-weight: 800; }
.zakat-card p { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }
.zakat-card .btn { margin-top: 12px; }
.zakat-art { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); }
.zakat-art .icon { width: 32px; height: 32px; color: var(--gold-600); stroke-width: 1.6; }

/* ---------- Statistik & kepercayaan ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 14px 4px; border-radius: var(--r-lg);
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.stat { text-align: center; padding: 0 6px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 15px; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-500); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trust-item { padding: 12px 8px; border-radius: var(--r-lg); text-align: center; background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.trust-item .icon { width: 23px; height: 23px; color: var(--green-700); margin: 0 auto 6px; stroke-width: 1.8; }
.trust-item b { display: block; font-size: 13px; font-weight: 800; }
.trust-item span { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; line-height: 1.4; }

/* ---------- Kabar ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; color: inherit; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.news .camp-thumb { border-radius: 0; }
.news-body { padding: 10px 12px 12px; }
.news-body b { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-500); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 10px 14px; font-weight: 700; font-size: 13.5px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--ink-500); transition: transform var(--slow) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 14px 12px; font-size: 13px; color: var(--ink-700); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 28px; padding: 24px 18px 22px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--pattern) 0 0 / 56px 56px, var(--green-900);
  font-size: 12.5px;
}
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.68); }
.footer p { margin-top: 12px; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.footer-links a { color: #fff; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.footer-contact span, .footer-contact a { display: flex; gap: 8px; align-items: flex-start; color: rgba(255, 255, 255, 0.88); }
.footer-contact .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--lime-500); }
.footer small { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Chip & tab ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 4px; margin: 0 -16px; scrollbar-width: none; scroll-padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 13px; border-radius: 99px; border: 0;
  font-size: 13px; font-weight: 600; color: var(--ink-700); white-space: nowrap;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer; transition: all var(--fast) var(--ease);
}
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip .icon { width: 16px; height: 16px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--green-500); }
.chip.is-active { color: #fff; background: var(--green-700); box-shadow: none; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tab {
  flex: 1; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--ink-500); background: transparent; cursor: pointer; white-space: nowrap;
  transition: all var(--fast) var(--ease);
}
.tab:hover { color: var(--ink-900); }
.tab.is-active { color: var(--green-800); background: #fff; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; font-size: 12px; background: var(--green-100); color: var(--green-800); font-variant-numeric: tabular-nums; }

.underline-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding: 0 16px; position: sticky; top: 0; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); z-index: 5; }
.underline-tabs button {
  position: relative; height: 44px; border: 0; background: none; padding: 0;
  font-size: 14px; font-weight: 700; color: var(--ink-400); cursor: pointer;
}
.underline-tabs button:hover { color: var(--ink-700); }
.underline-tabs button.is-active { color: var(--green-700); }
.underline-tabs button.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--green-700); }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-700); }
.label .opt { font-weight: 500; color: var(--ink-400); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px;
  border: 0; border-radius: var(--r);
  font: inherit; font-size: 16px; color: var(--ink-900);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow var(--fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2356665d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { box-shadow: inset 0 0 0 1.5px #b9c6be; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-600), var(--ring); }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { box-shadow: inset 0 0 0 2px var(--danger); }
.input.is-invalid:focus { box-shadow: inset 0 0 0 2px var(--danger), 0 0 0 3px rgba(197, 48, 48, 0.2); }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--ink-500); pointer-events: none; }
.input-group .input { padding-left: 46px; font-weight: 700; font-variant-numeric: tabular-nums; }
.input-amount { height: 52px; font-size: 19px !important; letter-spacing: -0.01em; }
.hint { margin-top: 5px; font-size: 12px; color: var(--ink-500); }
.error-text { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--danger); font-weight: 600; }
.error-text .icon { width: 16px; height: 16px; margin-top: 1px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 6px 0; cursor: pointer; }
.switch-row b { display: block; font-size: 13.5px; font-weight: 700; }
.switch-row span { display: block; font-size: 12px; color: var(--ink-500); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: -8px; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background var(--fast) var(--ease); }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); transition: transform var(--slow) var(--ease); }
.switch input:checked + i { background: var(--green-600); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { box-shadow: var(--ring); }

.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-700); cursor: pointer; line-height: 1.5; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green-700); flex: none; }

/* Pilihan nominal */
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.amount-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-opt {
  position: relative;
  min-height: 48px; padding: 6px 8px; border: 0; border-radius: var(--r);
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer; transition: all var(--fast) var(--ease);
  font-variant-numeric: tabular-nums;
}
.cols-4 .amount-opt { min-height: 44px; font-size: 13.5px; }
.amount-opt:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.amount-opt.is-active { color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green-700); }
.amount-opt small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-500); margin-top: 1px; }

/* Pilihan (radio card) */
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 58px; padding: 10px 12px; border: 0; border-radius: 14px; text-align: left;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer; transition: all var(--fast) var(--ease); color: inherit;
}
.option:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.option.is-active { background: #f5fbf7; box-shadow: inset 0 0 0 2px var(--green-700); }
.option.is-disabled { opacity: 0.6; cursor: not-allowed; }
.option-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--r); color: var(--green-700); background: var(--green-50); font-size: 12px; font-weight: 800; }
.option-icon .icon { width: 20px; height: 20px; }
.option-icon.is-gold { color: var(--gold-600); background: var(--gold-50); }
.option-icon img { width: 30px; height: 30px; object-fit: contain; }
.option-body { flex: 1; min-width: 0; }
.option-body b { display: block; font-size: 14px; font-weight: 700; }
.option-body span { display: block; font-size: 12px; color: var(--ink-500); }
.option-body .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--green-800); background: var(--lime-100); vertical-align: 1px; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); transition: all var(--fast) var(--ease); }
.option.is-active .radio { box-shadow: inset 0 0 0 7px var(--green-700); }
.sub-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -2px 0 2px; padding: 10px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.sub-opt { min-height: 40px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.sub-opt:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.sub-opt.is-active { color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-700); background: var(--green-50); }

/* Hari (mingguan) */
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { min-height: 40px; border: 0; border-radius: 10px; font-size: 13px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: pointer; color: var(--ink-700); }
.day:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.day.is-active { color: #fff; background: var(--green-700); box-shadow: none; }

/* ---------- Kartu & ringkasan ---------- */
.card { border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.card-pad { padding: 16px; }
.card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.summary { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; color: var(--ink-700); }
.summary-row b { color: var(--ink-900); font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 15px; font-weight: 700; }
.summary-row.total b { font-size: 17px; color: var(--green-700); font-weight: 800; }

.mini-camp { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: inherit; }
.mini-camp .camp-thumb { border-radius: 9px; }
.mini-camp b { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-camp span { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* ---------- Daftar ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r); color: var(--green-700); background: var(--green-50); }
.list-icon .icon { width: 20px; height: 20px; }
.list-icon.is-out { color: var(--ink-700); background: var(--bg); }
.list-icon.is-gold { color: var(--gold-600); background: var(--gold-50); }
.list-icon.is-danger { color: var(--danger); background: var(--danger-50); }
.list-body { flex: 1; min-width: 0; }
.list-body b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-body span { display: block; font-size: 12px; color: var(--ink-500); }
.list-end { text-align: right; flex: none; }
.list-end b { display: block; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.list-end .plus { color: var(--green-600); }
.list-end span:not(.badge) { font-size: 12px; color: var(--ink-500); }
.list-end .badge { margin-top: 3px; }

.menu-list { border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 16px; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-900); cursor: pointer; transition: background var(--fast); }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item:hover { background: var(--surface-2); }
.menu-item > .icon:first-child { color: var(--green-700); }
.menu-item .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--ink-400); }
.menu-item.is-danger, .menu-item.is-danger > .icon:first-child { color: var(--danger); }

/* ---------- Badge & notice ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; line-height: 1.5;
  color: var(--ink-700); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.badge .icon { width: 13px; height: 13px; }
.badge-success { color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.badge-warn { color: var(--warn); background: var(--warn-50); box-shadow: inset 0 0 0 1px #f5deb3; }
.badge-danger { color: var(--danger); background: var(--danger-50); box-shadow: inset 0 0 0 1px #f5cccc; }
.badge-info { color: var(--info); background: var(--info-50); box-shadow: inset 0 0 0 1px #cfe0f3; }
.badge-gold { color: #6b5210; background: var(--gold-50); box-shadow: inset 0 0 0 1px #eedfa8; }
.badge-lime { color: #365512; background: var(--lime-100); box-shadow: inset 0 0 0 1px #dcebc4; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); font-size: 12.5px; line-height: 1.55; }
.notice > .icon { width: 17px; height: 17px; margin-top: 1px; }
.notice b { font-weight: 700; }
.notice-info { color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.notice-warn { color: #6b4a07; background: var(--gold-50); box-shadow: inset 0 0 0 1px #efe0ad; }
.notice-danger { color: #8f2525; background: var(--danger-50); box-shadow: inset 0 0 0 1px #f5cccc; }

/* ---------- CTA melekat ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 50%; z-index: 40; transform: translateX(-50%);
  width: 100%; max-width: var(--app-w);
  display: flex; gap: 10px; align-items: center;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -10px 24px rgba(17, 28, 22, 0.06);
}
.sticky-cta .btn { flex: 1; min-width: 0; }
.sticky-cta .icon-btn { width: 46px; height: 46px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cta-total { flex: 1; min-width: 0; }
.cta-total span { display: block; font-size: 12px; color: var(--ink-500); }
.cta-total b { display: block; font-size: 17px; font-weight: 800; color: var(--green-700); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- Detail program ---------- */
.hero { position: relative; aspect-ratio: 1600 / 862; background: var(--green-50); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px; background: linear-gradient(rgba(0, 0, 0, 0.3), transparent); z-index: 2; }
.detail-card { position: relative; margin-top: -20px; padding: 20px 16px 4px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: #fff; }
.detail-card h1 { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; margin-top: 12px; }
.org-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.org-row .brand-logo { width: 40px; height: 40px; }
.org-row b { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; }
.org-row b .icon { width: 16px; height: 16px; color: var(--info); }
.org-row span { font-size: 12px; color: var(--ink-500); }
.raised { margin-top: 18px; }
.raised-amount { font-size: 23px; font-weight: 800; color: var(--green-700); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.raised-target { margin-top: 2px; font-size: 13px; color: var(--ink-500); }
.raised .progress { height: 8px; margin: 12px 0; }
.raised-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.raised-stats div { padding: 12px 8px; text-align: center; }
.raised-stats div + div { border-left: 1px solid var(--line); }
.raised-stats b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.raised-stats span { font-size: 12px; color: var(--ink-500); }
.auto-promo {
  display: flex; gap: 12px; align-items: center;
  margin: 16px 16px 0; padding: 14px; border-radius: var(--r-lg); color: #fff;
  background: var(--pattern) 0 0 / 44px 44px, var(--grad-green);
}
.auto-promo .icon-wrap { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); background: rgba(255, 255, 255, 0.16); }
.auto-promo b { display: block; font-size: 14px; font-weight: 800; }
.auto-promo span { display: block; font-size: 12px; opacity: 0.92; }
.auto-promo .btn { margin-left: auto; flex: none; }

.prose { font-size: 14px; line-height: 1.75; color: var(--ink-700); }
.prose p { margin: 0 0 12px; }
.prose h2, .prose h3 { margin: 20px 0 8px; color: var(--ink-900); font-size: 17px; font-weight: 800; }
.prose img { border-radius: var(--r); margin: 12px 0; height: auto; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--lime-500); background: var(--green-50); border-radius: 0 var(--r) var(--r) 0; }
.collapsible { position: relative; max-height: 300px; overflow: hidden; }
.collapsible::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.collapsible.is-open { max-height: none; }
.collapsible.is-open::after { display: none; }

.donor { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.donor:last-child { border-bottom: 0; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; font-size: 14px; font-weight: 800; color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.avatar.is-lg { width: 64px; height: 64px; font-size: 22px; color: #fff; background: var(--grad-green); box-shadow: none; }
.donor-body { flex: 1; min-width: 0; }
.donor-body b { font-size: 14px; font-weight: 700; }
.donor-body .amount { font-size: 13px; color: var(--green-700); font-weight: 700; font-variant-numeric: tabular-nums; }
.donor-body p { margin-top: 8px; padding: 10px 12px; border-radius: var(--r); font-size: 14px; color: var(--ink-700); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.donor-body small { display: block; font-size: 12px; color: var(--ink-400); margin-top: 3px; }

/* ---------- Halaman bayar ---------- */
.pay-status { padding: 24px 16px 6px; text-align: center; }
.pay-status .status-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 22px; }
.pay-status .status-icon .icon { width: 34px; height: 34px; }
.pay-status h2 { font-size: 18px; font-weight: 800; }
.pay-status p { margin-top: 6px; color: var(--ink-500); font-size: 13px; }
.status-icon.is-wait { color: var(--warn); background: var(--warn-50); }
.status-icon.is-ok { color: #fff; background: var(--grad-green); box-shadow: var(--shadow-green); }
.status-icon.is-bad { color: var(--danger); background: var(--danger-50); }
.status-icon.is-info { color: var(--green-700); background: var(--green-50); }
.big-amount { margin: 16px 16px 0; padding: 20px 16px; border-radius: var(--r-lg); text-align: center; background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.big-amount span { font-size: 13px; color: var(--ink-500); }
.big-amount b { display: block; margin-top: 4px; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.big-amount b mark { color: #fff; background: var(--green-700); border-radius: 8px; padding: 0 5px; margin-left: 1px; }
.big-amount .copy { margin-top: 12px; }
.bank-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.bank-logo { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--r); font-size: 13px; font-weight: 800; color: var(--green-700); background: var(--green-50); }
.bank-logo img { width: 38px; height: 38px; object-fit: contain; }
.bank-box b { display: block; font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 0.02em; }
.bank-box div span { display: block; font-size: 13px; color: var(--ink-500); }
.countdown { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--warn); background: var(--warn-50); font-variant-numeric: tabular-nums; }
.countdown .icon { width: 16px; height: 16px; }
.upload-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); border: 0; width: 100%; text-align: left; transition: box-shadow var(--fast); }
.upload-box:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.upload-box input { display: none; }
.upload-box img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span:first-child { color: var(--ink-500); flex: none; max-width: 48%; }
.kv > div > span:last-child { text-align: right; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Jadwal ---------- */
.sched { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.sched-top { display: flex; gap: 12px; align-items: flex-start; }
.sched-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); color: #fff; background: var(--grad-green); }
.sched-icon .icon { width: 22px; height: 22px; }
.sched.is-paused .sched-icon { background: var(--line-strong); }
.sched-body { flex: 1; min-width: 0; }
.sched-body b { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sched-body span { display: block; font-size: 13px; color: var(--ink-500); }
.sched-camp { margin-top: 3px; font-size: 13px !important; color: var(--ink-700) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-camp .icon { width: 13px; height: 13px; vertical-align: -2px; color: var(--green-600); }
.sched-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-500); }
.sched-foot .icon { width: 15px; height: 15px; }
.sched-actions { display: flex; gap: 2px; }

.preview-card { padding: 18px; border-radius: var(--r-lg); color: #fff; background: var(--pattern) 0 0 / 44px 44px, var(--grad-green); box-shadow: var(--shadow-green); }
.preview-card small { font-size: 12px; opacity: 0.88; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.preview-card p { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.preview-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.preview-card .meta div { padding: 10px 12px; border-radius: var(--r); background: rgba(255, 255, 255, 0.14); }
.preview-card .meta span { display: block; font-size: 12px; opacity: 0.88; }
.preview-card .meta b { display: block; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.template { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 0; border-radius: var(--r-lg); text-align: left; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: inherit; transition: box-shadow var(--fast); }
.template:hover { box-shadow: inset 0 0 0 1.5px var(--green-500); }
.template .icon { width: 22px; height: 22px; color: var(--green-700); }
.template b { font-size: 14px; font-weight: 800; }
.template span { font-size: 12px; color: var(--ink-500); }

/* ---------- Kosong, skeleton ---------- */
.empty { padding: 36px 24px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 24px; color: var(--green-700); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.empty-icon .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.empty b { display: block; font-size: 15px; font-weight: 800; }
.empty p { margin-top: 6px; font-size: 13px; color: var(--ink-500); }
.empty .btn { margin-top: 16px; }

.skeleton { position: relative; overflow: hidden; background: #edf2ee; border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin-top: 8px; }
.sk-card { height: 100px; border-radius: var(--r-lg); }

/* ---------- Sheet, dialog, toast ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 22, 15, 0.5); animation: fade var(--fast) ease-out; }
.sheet {
  width: 100%; max-width: var(--app-w); max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 16px calc(20px + var(--safe-b));
  border-radius: 24px 24px 0 0; background: #fff;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--slow) var(--ease);
}
.sheet-handle { width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 99px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { font-size: 18px; font-weight: 800; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions > .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(32px); opacity: 0.5; } }

.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; background: var(--ink-900); box-shadow: var(--shadow-lg); animation: toastIn var(--slow) var(--ease); }
.toast .icon { width: 20px; height: 20px; flex: none; }
.toast-success { background: var(--green-700); }
.toast-error { background: #b42b2b; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: all var(--slow) var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Auth ---------- */
.auth-hero { padding: 28px 20px 8px; }
.auth-hero .brand-logo { width: 64px; height: 64px; border-radius: 18px; }
.auth-hero h1 { margin-top: 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.auth-hero p { margin-top: 6px; color: var(--ink-500); font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 13px; color: var(--ink-400); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 52px; }
.pass-wrap .icon-btn { position: absolute; right: 2px; top: 2px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 20px 16px; }
.profile-head b { display: block; font-size: 17px; font-weight: 800; }
.profile-head div span { display: block; font-size: 13px; color: var(--ink-500); }

/* ---------- Kalkulator ---------- */
.result-card { padding: 20px; border-radius: var(--r-lg); text-align: center; background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-100); }
.result-card span { font-size: 13px; color: var(--ink-500); }
.result-card b { display: block; margin-top: 4px; font-size: 26px; font-weight: 800; color: var(--green-700); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.result-card p { margin-top: 6px; font-size: 13px; color: var(--ink-700); }
.result-card.is-none { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.result-card.is-none b { color: var(--ink-700); font-size: 19px; }

/* ---------- Search ---------- */
.search-box { position: relative; display: block; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.search-box .input { padding-left: 42px; height: 44px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.search-box .input:focus { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
