/* PeduliNusa public contribution workspace.
 * Everything is scoped to the fundraising shell so the shared storefront
 * renderer can host this vertical without changing other merchant themes.
 */
.pnd-body {
  --pnd-ink: #163b36;
  --pnd-muted: #6e817b;
  --pnd-border: #e4ece8;
  --pnd-surface: #ffffff;
  --pnd-soft: #f4f8f5;
  --pnd-cream: #fff8e9;
  --pnd-green: #0d6b5d;
  --pnd-emerald: #10a486;
  --pnd-gold: #e4a928;
  background: #edf3f0;
}
.merchant-fundraising-shell {
  min-height: 100vh;
  color: var(--pnd-ink, #163b36);
  background: #edf3f0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 16px 28px;
}
.pnd-app {
  width: min(100%, 720px);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  background: var(--pnd-surface, #fff);
  box-shadow: 0 18px 54px rgba(20, 61, 52, .10);
  overflow: clip;
}
.pnd-app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--pnd-border);
  backdrop-filter: blur(14px);
}
.pnd-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.pnd-brand-mark, .pnd-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; background: var(--pnd-green); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.pnd-brand-copy { min-width: 0; display: grid; gap: 1px; }
.pnd-brand-copy strong { font-size: 16px; line-height: 1.1; white-space: nowrap; }
.pnd-brand-copy small { color: var(--pnd-muted); font-size: 11px; white-space: nowrap; }
.pnd-header-actions { display: inline-flex; align-items: center; gap: 8px; }
.pnd-icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--pnd-border); border-radius: 12px; background: #fff; color: var(--pnd-green); font-size: 17px; cursor: pointer; }
.pnd-main { padding: 18px; }
.pnd-search { position: relative; margin-bottom: 18px; }
.pnd-search input { width: 100%; min-height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--pnd-border); border-radius: 14px; color: var(--pnd-ink); background: var(--pnd-soft); font: inherit; outline: none; }
.pnd-search input:focus { border-color: var(--pnd-emerald); box-shadow: 0 0 0 3px rgba(16,164,134,.14); }
.pnd-search::before { content: "⌕"; position: absolute; left: 16px; top: 8px; color: var(--pnd-muted); font-size: 22px; pointer-events: none; }
.pnd-hero { position: relative; min-height: 248px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 18px; border-radius: 22px; background: linear-gradient(145deg, #084d45, #0d816d); color: #fff; }
.pnd-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.pnd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,44,39,.92) 0%, rgba(3,61,53,.72) 53%, rgba(3,61,53,.12) 100%); }
.pnd-hero-content { position: relative; z-index: 1; width: min(100%, 480px); padding: 28px 24px; }
.pnd-eyebrow, .pnd-kicker { margin: 0 0 8px; color: var(--pnd-gold); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pnd-hero h1 { margin: 0 0 9px; color: #fff; font-size: clamp(27px, 5vw, 40px); line-height: 1.06; letter-spacing: -.045em; }
.pnd-hero p { margin: 0; max-width: 42ch; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.55; }
.pnd-hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 16px; border: 0; border-radius: 12px; background: var(--pnd-gold); color: #193f38; font-weight: 800; cursor: pointer; }
.pnd-dots { position: absolute; right: 18px; bottom: 16px; z-index: 2; display: inline-flex; gap: 5px; }
.pnd-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.55); }
.pnd-dots i.is-active { width: 20px; background: var(--pnd-gold); }
.pnd-section { margin-top: 24px; }
.pnd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pnd-section-head h2, .pnd-section-head h1 { margin: 0; color: var(--pnd-ink); font-size: 20px; letter-spacing: -.03em; }
.pnd-section-head p { margin: 4px 0 0; color: var(--pnd-muted); font-size: 12px; line-height: 1.45; }
.pnd-link { color: var(--pnd-green); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pnd-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border: 1px solid #e4eee9; border-radius: 16px; background: #f7fbf8; }
.pnd-impact-item { padding: 5px 8px; border-right: 1px solid var(--pnd-border); }
.pnd-impact-item:last-child { border-right: 0; }
.pnd-impact-item strong { display: block; color: var(--pnd-green); font-size: 18px; letter-spacing: -.035em; }
.pnd-impact-item span { display: block; margin-top: 2px; color: var(--pnd-muted); font-size: 10px; line-height: 1.35; }
.pnd-chip-row { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.pnd-chip-row::-webkit-scrollbar { display: none; }
.pnd-type-chip { min-width: 102px; display: grid; gap: 5px; padding: 12px; border: 1px solid var(--pnd-border); border-radius: 14px; background: #fff; color: var(--pnd-ink); text-align: left; cursor: pointer; }
.pnd-type-chip strong { font-size: 14px; }
.pnd-type-chip small { color: var(--pnd-muted); font-size: 10px; }
.pnd-type-chip.is-donation { border-color: #bee3d7; background: #effaf5; }
.pnd-type-chip.is-zakat { border-color: #f1ddb0; background: #fff9ec; }
.pnd-type-chip.is-waqf { border-color: #d5d9eb; background: #f5f6fc; }
.pnd-category-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.pnd-category-row::-webkit-scrollbar { display: none; }
.pnd-category-chip { display: grid; justify-items: center; gap: 5px; min-width: 76px; padding: 10px 8px; border: 1px solid var(--pnd-border); border-radius: 13px; background: #fff; color: var(--pnd-ink); cursor: pointer; }
.pnd-category-chip span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--pnd-soft); color: var(--pnd-green); font-size: 14px; font-weight: 800; }
.pnd-category-chip strong { font-size: 10px; white-space: nowrap; }
.pnd-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pnd-campaign-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--pnd-border); border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 5px 16px rgba(20,61,52,.045); }
.pnd-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfece7; }
.pnd-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pnd-card-media .pnd-fund-badge { position: absolute; left: 10px; top: 10px; }
.pnd-fund-badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--pnd-green); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pnd-fund-badge.is-zakat { color: #9b6a14; }
.pnd-fund-badge.is-waqf { color: #4a557f; }
.pnd-card-body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 12px; }
.pnd-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--pnd-muted); font-size: 10px; }
.pnd-card-location { display: block; color: var(--pnd-muted); font-size: 10px; line-height: 1.3; }
.pnd-card-body h3 { margin: 0; color: var(--pnd-ink); font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
.pnd-card-body h3 button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.pnd-card-body p { margin: 0; color: var(--pnd-muted); font-size: 11px; line-height: 1.45; }
.pnd-progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 99px; background: #e4eee9; }
.pnd-progress::-webkit-progress-bar { border-radius: inherit; background: #e4eee9; }
.pnd-progress::-webkit-progress-value { border-radius: inherit; background: var(--pnd-emerald); }
.pnd-progress::-moz-progress-bar { border-radius: inherit; background: var(--pnd-emerald); }
.pnd-card-stats { display: flex; justify-content: space-between; gap: 8px; color: var(--pnd-muted); font-size: 10px; }
.pnd-card-stats strong { color: var(--pnd-ink); }
.pnd-card-cta { display: flex; align-items: center; justify-content: center; min-height: 35px; margin-top: auto; padding: 8px 10px; border: 1px solid #bfdfd5; border-radius: 10px; background: #eff9f5; color: var(--pnd-green); font-size: 11px; font-weight: 800; cursor: pointer; }
.pnd-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pnd-story-card { padding: 12px; border-radius: 14px; background: var(--pnd-cream); }
.pnd-story-card strong { display: block; color: var(--pnd-ink); font-size: 12px; line-height: 1.3; }
.pnd-story-card p { margin: 7px 0; color: #6f796f; font-size: 11px; line-height: 1.45; }
.pnd-story-card small { color: #a27c2a; font-size: 10px; font-weight: 800; }
.pnd-bottom-nav { position: sticky; bottom: 0; z-index: 19; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0 -1px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pnd-border); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.pnd-bottom-nav button { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 3px 2px; border: 0; background: transparent; color: var(--pnd-muted); font: inherit; font-size: 10px; cursor: pointer; }
.pnd-bottom-nav button span { font-size: 17px; line-height: 1; }
.pnd-bottom-nav button.is-active { color: var(--pnd-green); font-weight: 800; }
.pnd-bottom-nav button.is-active span { color: var(--pnd-emerald); }
.pnd-empty { padding: 28px 18px; border: 1px dashed #cbded6; border-radius: 16px; background: #f8fbf9; text-align: center; }
.pnd-empty strong { display: block; font-size: 15px; }
.pnd-empty p { margin: 5px 0 0; color: var(--pnd-muted); font-size: 12px; }
.pnd-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 0; border: 0; background: transparent; color: var(--pnd-green); font-size: 12px; font-weight: 800; cursor: pointer; }
.pnd-detail-media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #dfece7; }
.pnd-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.pnd-detail-copy { padding-top: 17px; }
.pnd-detail-copy h1 { margin: 8px 0; color: var(--pnd-ink); font-size: clamp(25px, 6vw, 35px); line-height: 1.08; letter-spacing: -.045em; }
.pnd-detail-copy > p { margin: 0; color: var(--pnd-muted); font-size: 13px; line-height: 1.6; }
.pnd-detail-org { display: flex; align-items: center; gap: 8px; margin: 13px 0; color: var(--pnd-muted); font-size: 11px; }
.pnd-detail-org .pnd-avatar { width: 28px; height: 28px; border-radius: 9px; font-size: 10px; }
.pnd-share { margin-left: auto; padding: 6px 9px; border: 1px solid #cce3da; border-radius: 9px; background: #f3faf7; color: var(--pnd-green); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.pnd-detail-metrics { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; margin-top: 15px; }
.pnd-detail-metrics div { padding: 10px; border-radius: 12px; background: var(--pnd-soft); }
.pnd-detail-metrics strong { display: block; color: var(--pnd-ink); font-size: 14px; }
.pnd-detail-metrics small { display: block; margin-top: 3px; color: var(--pnd-muted); font-size: 10px; }
.pnd-detail-section { margin-top: 22px; }
.pnd-detail-section h2 { margin: 0 0 9px; color: var(--pnd-ink); font-size: 17px; }
.pnd-detail-section p, .pnd-detail-section li { color: var(--pnd-muted); font-size: 12px; line-height: 1.6; }
.pnd-detail-section ul { margin: 0; padding-left: 18px; }
.pnd-update-list { display: grid; gap: 9px; }
.pnd-update-item { padding: 11px 12px; border-left: 3px solid var(--pnd-emerald); border-radius: 0 12px 12px 0; background: var(--pnd-soft); }
.pnd-update-item small { display: block; color: var(--pnd-green); font-size: 10px; font-weight: 800; }
.pnd-update-item strong { display: block; margin-top: 3px; color: var(--pnd-ink); font-size: 12px; }
.pnd-update-item p { margin: 4px 0 0; color: var(--pnd-muted); font-size: 11px; line-height: 1.45; }
.pnd-sticky-cta { position: sticky; bottom: 72px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 0; padding: 12px 14px; border: 1px solid #d5e9e2; border-radius: 15px; background: rgba(246,252,249,.96); box-shadow: 0 8px 18px rgba(20,61,52,.08); backdrop-filter: blur(12px); }
.pnd-sticky-cta small { display: block; color: var(--pnd-muted); font-size: 10px; }
.pnd-sticky-cta strong { display: block; margin-top: 3px; font-size: 13px; }
.pnd-primary { min-height: 40px; padding: 0 15px; border: 0; border-radius: 11px; background: var(--pnd-green); color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.pnd-flow-head { margin-bottom: 17px; }
.pnd-flow-head h1 { margin: 5px 0 7px; color: var(--pnd-ink); font-size: 28px; line-height: 1.1; letter-spacing: -.045em; }
.pnd-flow-head p { margin: 0; color: var(--pnd-muted); font-size: 12px; line-height: 1.5; }
.pnd-filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 15px; }
.pnd-filter-row label { display: grid; gap: 5px; color: var(--pnd-muted); font-size: 10px; font-weight: 800; }
.pnd-filter-row select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--pnd-border); border-radius: 10px; background: #fff; color: var(--pnd-ink); font: inherit; font-size: 11px; }
.pnd-amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 14px 0; }
.pnd-amount-option { min-height: 48px; border: 1px solid var(--pnd-border); border-radius: 12px; background: #fff; color: var(--pnd-ink); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.pnd-amount-option.is-selected { border-color: var(--pnd-emerald); background: #effaf5; color: var(--pnd-green); box-shadow: 0 0 0 2px rgba(16,164,134,.12); }
.pnd-form { display: grid; gap: 12px; }
.pnd-form label { display: grid; gap: 6px; color: var(--pnd-ink); font-size: 11px; font-weight: 800; }
.pnd-form input, .pnd-form textarea, .pnd-form select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--pnd-border); border-radius: 11px; background: #fff; color: var(--pnd-ink); font: inherit; font-size: 12px; outline: none; }
.pnd-form textarea { min-height: 80px; resize: vertical; }
.pnd-form input:focus, .pnd-form textarea:focus, .pnd-form select:focus { border-color: var(--pnd-emerald); box-shadow: 0 0 0 3px rgba(16,164,134,.12); }
.pnd-form .pnd-check { display: flex; grid-template-columns: none; align-items: center; gap: 8px; color: var(--pnd-muted); font-weight: 500; }
.pnd-form .pnd-check input { width: 17px; min-height: 17px; accent-color: var(--pnd-green); }
.pnd-summary { display: grid; gap: 8px; margin: 0 0 15px; padding: 13px; border-radius: 14px; background: var(--pnd-soft); }
.pnd-summary div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.pnd-summary span { color: var(--pnd-muted); }
.pnd-summary strong { color: var(--pnd-ink); text-align: right; }
.pnd-payment-options { display: grid; gap: 9px; }
.pnd-payment-submit { width: 100%; margin-top: 16px; }
.pnd-payment-option { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--pnd-border); border-radius: 13px; background: #fff; }
.pnd-payment-option strong { display: block; color: var(--pnd-ink); font-size: 12px; }
.pnd-payment-option small { display: block; margin-top: 3px; color: var(--pnd-muted); font-size: 10px; }
.pnd-payment-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #eaf8f3; color: var(--pnd-green); font-size: 12px; font-weight: 800; }
.pnd-status { padding: 24px 18px; border: 1px solid #d9e9df; border-radius: 18px; background: #f5fbf7; text-align: center; }
.pnd-status-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 18px; background: #d8f0e5; color: var(--pnd-green); font-size: 26px; }
.pnd-status h1 { margin: 0; color: var(--pnd-ink); font-size: 23px; letter-spacing: -.035em; }
.pnd-status p { margin: 8px auto 0; max-width: 42ch; color: var(--pnd-muted); font-size: 12px; line-height: 1.55; }
.pnd-status-code { margin: 17px 0; padding: 11px; border-radius: 10px; background: #fff; color: var(--pnd-green); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.pnd-account-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border: 1px solid var(--pnd-border); border-radius: 16px; background: #fff; }
.pnd-account-card h2 { margin: 0; color: var(--pnd-ink); font-size: 17px; }
.pnd-account-card p { margin: 4px 0 0; color: var(--pnd-muted); font-size: 12px; line-height: 1.45; }
.pnd-note { margin: 0 0 15px; padding: 11px 12px; border-radius: 11px; background: #fff8e9; color: #846b35; font-size: 11px; line-height: 1.5; }
@media (min-width: 760px) {
  .merchant-fundraising-shell { padding: 22px 16px 36px; }
  .pnd-app { border-radius: 24px; }
}
@media (max-width: 520px) {
  .merchant-fundraising-shell { padding: 0; }
  .pnd-app { width: 100%; min-height: 100vh; box-shadow: none; }
  .pnd-app-header { padding-inline: 16px; }
  .pnd-main { padding: 16px; }
  .pnd-card-grid { grid-template-columns: 1fr; }
  .pnd-story-grid { grid-template-columns: 1fr; }
  .pnd-story-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
  .pnd-story-card p { grid-column: 1 / -1; margin: 2px 0; }
  .pnd-story-card small { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .merchant-fundraising-shell *, .merchant-fundraising-shell *::before, .merchant-fundraising-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
