:root{
  --bg:#f6fbf7;
  --bg-soft:#edf7f0;
  --card:#ffffff;
  --card-soft:#f8fcf9;
  --txt:#163326;
  --txt-strong:#10281d;
  --muted:#5a7467;
  --brand:#0f8f4d;
  --brand-dark:#0a6c39;
  --brand-2:#27ae60;
  --brand-soft:#eaf7ef;
  --ring:#d4e9dc;
  --line:#e4f0e8;
  --line-strong:#c5dfce;
  --chip:#f7fcf8;
  --shadow:0 18px 45px rgba(11, 81, 45, .08);
  --shadow-soft:0 10px 28px rgba(11, 81, 45, .06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--txt);
  background:
    radial-gradient(900px 460px at -5% -10%, rgba(210,239,219,.8) 0%, transparent 62%),
    radial-gradient(1000px 580px at 110% 0%, rgba(221,244,228,.85) 0%, transparent 64%),
    linear-gradient(180deg,#f9fcfa 0%, #f4faf6 100%);
}
a{color:var(--brand-dark);text-decoration:none}
.material-symbols-outlined{
  font-family:"Material Symbols Outlined";
  font-weight:normal;
  font-style:normal;
  font-size:20px;
  line-height:1;
  letter-spacing:normal;
  text-transform:none;
  display:inline-block;
  white-space:nowrap;
  word-wrap:normal;
  direction:ltr;
  -webkit-font-smoothing:antialiased;
}

.page-shell{min-height:100%}
.topbar{
  position:sticky;
  top:0;
  z-index:35;
  backdrop-filter:blur(14px);
  background:rgba(246,251,247,.88);
  border-bottom:1px solid rgba(197,223,206,.65);
}
.topbar-inner{
  width:min(760px, calc(100vw - 24px));
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-name{
  font-family:Manrope,Inter,sans-serif;
  font-size:20px;
  font-weight:800;
  color:var(--brand-dark);
  letter-spacing:-.03em;
}
.brand-subtitle{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.container{max-width:900px;margin:0 auto;padding:20px 18px 36px}
.card{
  background:#ffffff;
  border:1px solid #dbeadf;
  border-radius:32px;
  box-shadow:var(--shadow);
  padding:22px;
}

.intro-panel{
  display:block;
  padding:18px 16px;
  border-radius:24px;
  background:
    radial-gradient(circle at top left, rgba(39,174,96,.14) 0%, transparent 36%),
    linear-gradient(135deg, #fbfefb 0%, #f3fbf5 100%);
  border:1px solid #dceee2;
  box-shadow:var(--shadow-soft);
}
.intro-copy h1{
  margin:10px 0 10px;
  font-family:Manrope,Inter,sans-serif;
  font-size:clamp(24px, 7vw, 32px);
  line-height:1.14;
  letter-spacing:-.04em;
  color:var(--txt-strong);
}
.intro-copy p{
  margin:0;
  max-width:34ch;
  font-size:14px;
  line-height:1.7;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#edf8f0;
  border:1px solid #d6eadc;
  color:var(--brand-dark);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.eyebrow--soft{background:#f6fbf8}
.support-card,
.checkout-card{
  background:#ffffff;
  border:1px solid #dceee4;
  border-radius:28px;
  box-shadow:var(--shadow-soft);
}
.support-card{padding:20px 18px 18px}
.checkout-card{
  margin-top:20px;
  padding:18px 0 0;
  background:transparent;
  border:0;
  border-top:1px solid #dce8df;
  border-radius:0;
  box-shadow:none;
}
.checkout-dock{
  width:100%;
  max-width:none;
  margin:20px 0 0;
}
.section-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:Manrope,Inter,sans-serif;
  font-weight:800;
  font-size:20px;
  color:#173b2c;
  margin-bottom:14px;
}
.section-title--sub{
  margin-top:4px;
  font-size:18px;
}
.section-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:var(--brand-dark);
  border:1px solid #cfe6d7;
  background:linear-gradient(180deg,#f8fdf9,#eef8f1);
  font-size:12px;
  font-weight:800;
}
.section-icon--symbol{
  font-size:20px;
}
.support-divider{
  height:1px;
  margin:18px 0;
  background:linear-gradient(90deg, transparent, #dceee4 12%, #dceee4 88%, transparent);
}
.compact-gap{margin-bottom:4px}

.lbl{display:block;font-weight:700;margin:8px 0 10px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (max-width:520px){.grid-3{grid-template-columns:repeat(2,1fr)}}

.chip{width:100%}
.chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.chip label{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px;
  border-radius:16px;
  border:1px solid #d7e8dd;
  background:var(--chip);
  color:#184130;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s, box-shadow .12s, background .2s, border .2s;
  user-select:none;
  text-align:center;
}
.chip label:hover{box-shadow:0 10px 18px rgba(16,163,74,.10)}
.chip label:active{transform:scale(.98)}
.chip input:checked + label{
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  border-color:#1d9c58;
  color:#fff;
  box-shadow:0 14px 30px rgba(15,143,77,.22);
}

.input{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.input label{font-size:13px;color:#4f645b;font-weight:700}
.input input,.input textarea{
  background:#fbfdfc;
  border:1px solid #dfeae4;
  color:var(--txt);
  border-radius:18px;
  padding:13px 15px;
  font-size:15px;
  outline:0;
  transition:border .15s, box-shadow .15s, background .15s, transform .15s;
}
.input textarea{
  min-height:120px;
  resize:vertical;
  line-height:1.7;
}
.field-note{
  margin-top:2px;
  color:#b42318;
  font-size:12px;
  line-height:1.45;
}
.field-note.is-hidden{
  display:none;
}
.field-note.is-error{
  display:block;
}
.input input:focus,.input textarea:focus{
  border-color:#8fd1aa;
  box-shadow:0 0 0 4px rgba(39,174,96,.14);
  background:#ffffff;
}
.input-highlight input{
  background:linear-gradient(180deg,#f7fcf8,#ffffff);
  border-color:#cfe1d6;
}

.confirm-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:14px;
  color:#4f645b;
  line-height:1.6;
}
.confirm-row input{
  appearance:none;
  width:19px;
  height:19px;
  margin:2px 0 0;
  border-radius:6px;
  border:1px solid #d1e6d7;
  background:#fff;
  flex:0 0 19px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.03);
}
.confirm-row input:checked{
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  border-color:#1e9b58;
  box-shadow:0 0 0 3px rgba(39,174,96,.10);
}
.confirm-row span{font-size:14px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  border:0;
  border-radius:14px;
  padding:14px 16px;
  font-weight:750;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(15,143,77,.22);
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(15,143,77,.28)}
.btn:active{transform:translateY(0)}
.btn-soft{
  background:#eef8f2;
  color:var(--brand-dark);
  border:1px solid #d4e9dc;
  box-shadow:none;
  padding:10px 14px;
}
.btn-soft:hover{
  box-shadow:0 10px 20px rgba(15,143,77,.10);
}
.pay-btn{
  min-height:58px;
  border-radius:999px;
  font-size:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.pay-btn-icon{
  font-size:22px;
  margin-right:2px;
}

.muted{color:var(--muted)}
.summary{
  background:#ffffff;
  border:1px solid #dce8df;
  border-radius:18px;
  padding:16px 18px;
}
.kv{display:flex;justify-content:space-between;align-items:flex-end;font-size:18px;color:#234334;margin:0;gap:12px}
.summary .kv span:first-child{
  font-size:14px;
  font-weight:700;
  letter-spacing:.02em;
  color:#345a4a;
}
.summary .kv span:last-child{
  font-variant-numeric:tabular-nums;
  font-family:Manrope,Inter,sans-serif;
  font-size:32px;
  line-height:.95;
  font-weight:800;
  color:var(--brand-dark);
  letter-spacing:-.05em;
}
.summary-sub{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(207,230,215,.9);
  color:#5f7569;
  font-size:13px;
}
.summary-sub b{color:#173b2c}

.about-box{
  margin:8px 0 16px;
  background:linear-gradient(180deg,#f7fcf9 0%, #f1f9f4 100%);
  border:1px solid #dceee2;
  border-radius:26px;
  padding:16px;
}
.about-head{
  margin-bottom:12px;
}
.about-title{
  margin-top:10px;
  font-family:Manrope,Inter,sans-serif;
  font-size:20px;
  font-weight:800;
  line-height:1.2;
  color:var(--txt-strong);
}
.about-action{
  margin-top:12px;
}
.about-text{
  font-size:14px;
  line-height:1.75;
}
.about-text p{margin:0 0 12px}
.about-text p:last-child{margin-bottom:0}
.about-short{max-height:160px;overflow:hidden;position:relative}
.about-short:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:46px;
  background:linear-gradient(180deg,rgba(241,249,244,0), #f1f9f4 72%);
}

.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.25);z-index:40}
.modal.show{display:flex}
.modal-card{
  width:min(560px,92vw);
  max-height:80vh;
  overflow:auto;
  background:#fff;
  border:1px solid var(--ring);
  border-radius:22px;
  box-shadow:0 24px 60px rgba(0,0,0,.18);
  padding:16px;
}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid #eef3ef;font-size:14px;text-align:left}
.table th{color:var(--brand-dark)}

.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.25s;z-index:60}
.sheet-backdrop.open{opacity:1;pointer-events:auto}
.sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:61;
  background:#fff;
  border-radius:20px 20px 0 0;
  box-shadow:0 -24px 60px rgba(0,0,0,.16);
  transform:translateY(110%);
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
}
.sheet.open{transform:translateY(0)}
.sheet-header{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 16px;border-bottom:1px solid var(--line)}
.sheet-drag{width:56px;height:5px;border-radius:999px;background:#e6efe9}
.sheet-title{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sheet-title h3{margin:0;font-size:18px}
.countdown-badge{font-variant-numeric:tabular-nums;background:#f0fff4;border:1px solid #c7f0d8;color:#0d6b45;padding:6px 10px;border-radius:999px;font-size:12px}

.sheet-body{padding:16px 18px 6px;max-height:74vh;overflow:auto}
.pay-grid{
  display:grid;
  gap:16px;
  align-items:start;
  justify-items:center;
  grid-template-columns:1fr 1fr;
}
@media (max-width:620px){.pay-grid{grid-template-columns:1fr}}

.pay-card{
  width:100%;
  background:#ffffff;
  border:1px solid var(--ring);
  border-radius:16px;
  box-shadow:0 10px 26px rgba(8,100,60,.06);
  padding:14px;
}
.qr-frame{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  background:linear-gradient(180deg,#f7fff9,#ffffff);
  border:1px dashed #cfe9dd;
  border-radius:16px;
  padding:14px;
}
.qr-box{display:grid;place-items:center;background:#fff;border:1px solid #e7f3ef;border-radius:12px;padding:10px}
.meta{display:grid;gap:10px}
.meta-row{display:flex;align-items:center;gap:10px;justify-content:center}
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid #e6efe9;background:#f6fbf8;color:#0f6b4b;font-size:12px}
.meta small{color:#56796a}
.amount{font-weight:800;color:#0f3a2a}
.hr-soft{height:1px;background:var(--line);margin:8px 0}

.sheet-actions{
  position:sticky;
  bottom:0;
  left:0;
  right:0;
  background:linear-gradient(180deg,rgba(255,255,255,0),#fff 30%);
  padding:12px 0 6px;
  margin-top:8px;
}
.actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.btn-ghost{
  background:#f2fbf6;
  color:#0f6b4b;
  border:1px solid #cfe9dd;
  box-shadow:none;
}
.btn-ghost:hover{box-shadow:0 8px 20px rgba(16,163,74,.15);transform:translateY(-1px)}

.prayers{
  margin-top:30px;
  padding:24px 0 0;
  border-top:1px solid #dce8df;
  background:transparent;
}
.prayers::before{
  content:none;
}
.prayers-head{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 16px;
}
.prayers-heading{
  display:block;
}
.prayers-kicker{
  display:inline-flex;
  color:#113628;
  font-family:Manrope,Inter,sans-serif;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.04em;
  margin-bottom:0;
}
.prayers-head p{
  margin:0;
  max-width:50ch;
  color:#587064;
  line-height:1.7;
  font-size:14px;
}
.prayer-grid{display:grid;gap:0;grid-template-columns:repeat(1, minmax(0,1fr))}

.prayer-card{
  position:relative;
  background:transparent;
  border:0;
  border-bottom:1px solid #e2ece4;
  border-radius:0;
  padding:18px 0 16px;
  box-shadow:none;
  display:block;
  transition:background .18s ease;
}
.prayer-card::before{
  content:none;
}
.prayer-top{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding-left:0;
}
.avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#ecf8f0,#dff3e6);
  border:1px solid #d2e8d9;
  color:#0f6b4b;
  font-family:Manrope,Inter,sans-serif;
  font-size:16px;
  font-weight:800;
  box-shadow:0 6px 14px rgba(15,143,77,.08);
}
.prayer-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.prayer-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.prayer-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.prayer-name{
  font-family:Manrope,Inter,sans-serif;
  font-weight:800;
  font-size:16px;
  line-height:1.25;
  color:#1f352b;
}
.prayer-bubble{
  position:relative;
  background:#f4f7f5;
  border:1px solid #e3ebe6;
  border-radius:18px 18px 18px 8px;
  padding:12px 14px;
}
.prayer-text{
  color:#27493a;
  white-space:pre-wrap;
  line-height:1.7;
  padding:0;
  font-size:14px;
  overflow-wrap:anywhere;
  font-style:normal;
}

@keyframes cardReveal{
  from{opacity:0;transform:translateY(18px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.reveal-card{
  opacity:0;
  transform:translateY(18px) scale(.97);
  transition:opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.reveal-card.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  animation:cardReveal .45s cubic-bezier(.2,.8,.2,1);
}

.prayer-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  padding-left:2px;
  flex-wrap:wrap;
}
.btn-amin{
  position:relative;
  overflow:visible;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:transparent;
  color:#0f6b4b;
  border:1px solid transparent;
  border-radius:999px;
  padding:6px 10px;
  font-weight:700;
  cursor:pointer;
  transition:transform .12s, box-shadow .12s;
}
.btn-amin-icon{
  font-size:17px;
  color:#1aa45e;
}
.btn-amin:hover{background:#eef8f2;border-color:#d7efdf;transform:translateY(-1px)}
.btn-amin[disabled]{opacity:.6;cursor:not-allowed}
.amin-meta{
  color:#6b7d72;
  font-size:12px;
  font-weight:600;
}
.amin-count{font-weight:800;color:#27493a}
.btn-amin.is-thanked{
  box-shadow:0 0 0 6px rgba(23,181,101,.16), 0 10px 22px rgba(16,163,74,.18);
}
@keyframes aminParticle{
  0%{
    opacity:1;
    transform:translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
  }
  100%{
    opacity:0;
    transform:translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--rot, 180deg)) scale(.35);
  }
}
.amin-particle{
  position:absolute;
  width:var(--size, 9px);
  height:calc(var(--size, 9px) * 1.7);
  border-radius:2px;
  pointer-events:none;
  background:linear-gradient(180deg, var(--c1, #ff6b6b), var(--c2, #ff2d55));
  box-shadow:0 0 14px rgba(255,59,48,.35), 0 0 22px rgba(255,140,105,.28);
  z-index:3;
  animation:aminParticle var(--dur, 620ms) cubic-bezier(.2,.8,.2,1) forwards;
}

.time-badge{
  font-size:12px;
  color:#6a8276;
  white-space:nowrap;
  align-self:start;
}
.prayer-sentinel{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:56px;
  margin-top:8px;
  color:#6f7f70;
  font-size:13px;
}

.tnx-sheet{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:65;
  background:#ffffff;
  border-top:1px solid var(--ring);
  border-radius:18px 18px 0 0;
  box-shadow:0 -20px 60px rgba(0,0,0,.14);
  transform:translateY(110%);
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
  max-width:720px;
  margin:0 auto;
}
.tnx-sheet.open{transform:translateY(0)}
.tnx-head{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #eef3ef}
.tnx-ico{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e7fbef;
  border:1px solid #cfe9dd;
  color:#0f6b4b;
  font-size:14px;
  font-weight:800;
}
.tnx-title{font-weight:800;font-size:17px}
.tnx-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:4px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e6efe9;
  background:#f6fbf8;
  color:#0f6b4b;
  font-size:12px;
}
.tnx-body{padding:12px 14px}
.tnx-msg{background:#fbfffd;border:1px solid var(--ring);border-radius:12px;padding:12px;color:#284b3a;line-height:1.7}
.tnx-row{display:flex;justify-content:space-between;gap:8px;margin:6px 0}
.tnx-label{color:#56796a}
.tnx-value{font-weight:800;color:#0f3a2a}
.tnx-actions{display:flex;gap:10px;justify-content:center;padding:12px;border-top:1px solid #eef3ef}

.donation-logo{
  width:56px;
  height:56px;
  border-radius:16px;
  overflow:hidden;
  background:#f2fbf6;
  border:1px solid var(--ring);
  display:grid;
  place-items:center;
}
.donation-logo--top{
  width:48px;
  height:48px;
  border-radius:14px;
}
.donation-logo img{width:100%;height:100%;object-fit:contain}

.guide-strip{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
img.guide-logo{
  width:auto;
  max-width:min(100%, 150px);
  height:auto;
  max-height:58px;
  object-fit:contain;
  display:block;
}

@media (max-width:760px){
  .topbar-inner{width:calc(100vw - 24px)}
  .about-head{flex-direction:column}
}

@media (max-width:640px){
  .container{padding:14px 12px 28px}
  .card{
    padding:14px;
    border-radius:24px;
    backdrop-filter:none;
  }
  #donasiForm{padding-bottom:0}
  .topbar-inner{padding:12px 0}
  .brand-name{font-size:18px}
  .btn-soft{padding:9px 12px}
  .intro-panel,
  .about-box,
  .support-card,
  .checkout-card{border-radius:22px}
  .intro-panel{padding:16px 14px}
  .intro-copy h1{font-size:24px}
  .intro-copy p{max-width:none;font-size:14px}
  .about-box{padding:14px}
  .support-card{padding:16px 14px 14px}
  .checkout-card{
    padding:16px 14px;
    position:static;
    inset:auto;
    z-index:auto;
    width:100%;
    margin:18px 0 0;
    background:transparent;
    border:0;
    border-top:1px solid #dce8df;
    border-radius:0;
    box-shadow:none;
    backdrop-filter:none;
    transition:none;
  }
  .section-title{font-size:18px}
  .section-icon--symbol{font-size:18px}
  .summary .kv span:last-child{font-size:22px}
  .summary-sub{font-size:12px;flex-wrap:wrap}
  .pay-btn{font-size:16px}
  .pay-btn-icon{font-size:20px}
  .prayers{
    margin-top:24px;
    padding:22px 0 4px;
  }
  .prayers-kicker{font-size:24px}
  .prayer-card{padding:14px 0 12px}
  .prayer-top{
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
  }
  .avatar{
    width:38px;
    height:38px;
    font-size:15px;
  }
  .prayer-meta{
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
  }
  .prayer-name{font-size:17px}
  .prayer-text{font-size:14px}
  .prayer-actions{padding-left:0}
  .prayer-top{padding-left:0}
  .amin-meta{font-size:12px}
  .amin-particle{
    box-shadow:0 0 18px rgba(255,59,48,.45), 0 0 28px rgba(255,140,105,.35);
  }
}
