:root{
  --bg:#f7fbf9; --card:#ffffff; --txt:#112b1f; --muted:#56796a;
  --brand:#16a34a;     /* hijau */
  --brand-2:#34d399;   /* hijau muda */
  --ring:#cfe9dd;
  --line:#e9f4ef;
  --chip:#f2fbf6;
}
*{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 500px at 5% -10%, #ecfaf3 0%, transparent 60%),
    radial-gradient(1200px 700px at 110% -20%, #e8f8f0 0%, transparent 60%),
    var(--bg);
}
a{color:#0b8f61;text-decoration:none}

.container{max-width:900px;margin:0 auto;padding:18px}
.card{
  background:var(--card);border:1px solid var(--ring);border-radius:18px;
  box-shadow:0 10px 30px rgba(8,100,60,.06);padding:18px;
}

/* ====== GRID CHIPS 3 KOLOM (responsif) ====== */
.lbl{display:block;font-weight:700;margin:8px 0 8px}
.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 RADIO STYLED */
.chip{width:100%}
.chip input{ /* sembunyikan radio asli */
  position:absolute;opacity:0;pointer-events:none
}
.chip label{
  width:100%;display:inline-flex;align-items:center;justify-content:center;
  padding:12px;border-radius:12px;border:1px solid var(--ring);
  background:var(--chip); color:#0f3a2a; font-weight:700; cursor:pointer;
  transition:transform .12s, box-shadow .12s, background .2s, border .2s;
  user-select:none
}
/* efek hover & klik */
.chip label:hover{box-shadow:0 6px 16px rgba(16,163,74,.12)}
.chip label:active{transform:scale(.98)}
/* state terpilih */
.chip input:checked + label{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  border-color:#22c55e; color:#fff; box-shadow:0 10px 24px rgba(16,163,74,.25)
}

/* INPUTS */
.input{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.input label{font-size:13px;color:var(--muted)}
.input input,.input textarea{
  background:#fbfefc;border:1px solid var(--ring);color:var(--txt);
  border-radius:12px;padding:12px 14px;font-size:15px;outline:0;
  transition:border .15s, box-shadow .15s, background .15s
}
.input input:focus,.input textarea:focus{
  border-color:#8fdcc0; box-shadow:0 0 0 3px rgba(52,211,153,.25); background:#ffffff;
}

/* BUTTON */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));color:#fff;border:0;border-radius:12px;
  padding:14px 16px;font-weight:750;cursor:pointer;box-shadow:0 10px 28px rgba(16,163,74,.25);
  transition:transform .12s ease, box-shadow .12s ease
}
.btn:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(16,163,74,.32)}
.btn:active{transform:translateY(0)}

.hr{height:1px;background:var(--line);margin:12px 0}
.muted{color:var(--muted)}

/* RINGKASAN */
.summary{background:#f3fbf7;border:1px solid var(--ring);border-radius:14px;padding:14px}
.kv{display:flex;justify-content:space-between;font-size:14px;color:#2f463a;margin:6px 0}
.kv.total{font-size:16px;font-weight:800;color:#083c2a;border-top:1px dashed var(--line);padding-top:8px;margin-top:8px}
.summary .kv span:last-child{font-variant-numeric:tabular-nums}

/* ABOUT collapsible */
.about-box{background:#f1fbf6;border:1px solid var(--ring);border-radius:14px;padding:14px}
.about-short{max-height:250px;overflow:hidden;position:relative}
.about-short:after{content:"";position:absolute;left:0;right:0;bottom:0;height:36px;
  background:linear-gradient(180deg,rgba(241,251,246,0), #f1fbf6 70%)}

/* MODAL RIWAYAT (LOCAL) */
.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:16px;box-shadow:0 20px 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:#0f6b4b}


/* ===== Bottom Sheet – Modern Pay ===== */
.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;
}
.btn-ghost:hover{box-shadow:0 8px 20px rgba(16,163,74,.15);transform:translateY(-1px)}


/* ===== Doa Donatur ===== */
.prayers{margin-top:18px}
.prayers-head{font-weight:800;margin-bottom:10px;display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;   /* <— dulu flex-start */
  margin-top:6px;}
.prayer-grid{
  display:grid;gap:12px;
  grid-template-columns: repeat(1, 1fr);
}
@media (max-width:820px){ .prayer-grid{grid-template-columns: repeat(1, 1fr);} }
@media (max-width:520px){ .prayer-grid{grid-template-columns: 1fr;} }

.prayer-card{
  background:#ffffff;
  border:1px solid var(--ring);
  border-radius:14px;
  padding:12px;
  box-shadow:0 8px 24px rgba(8,100,60,.05);
  display:flex;flex-direction:column;gap:8px
}
.prayer-top{display:flex;align-items:center;gap:10px}
.avatar{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,#dff7ea,#f2fbf6);
  border:1px solid #d5efe3;
  display:grid;place-items:center;font-weight:800;color:#0f6b4b
}
.prayer-name{font-weight:700}
.prayer-time{color:#56796a;font-size:12px}
.prayer-text{color:#27493a;white-space:pre-wrap}
.prayer-amount{font-size:12px;color:#0f6b4b;background:#f2fbf6;border:1px solid #cfe9dd;border-radius:999px;padding:4px 8px}

/* animasi masuk */
@keyframes slidePop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.prayer-card.animate{animation:slidePop .35s cubic-bezier(.2,.8,.2,1) both}

/* Doa Donatur (tanpa nominal/waktu, ada amin) */

/* PUSATKAN tombol amin */
.prayer-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;   /* <— dulu flex-start */
  margin-top:6px;
}

/* tombol amin lebih rapi */
.btn-amin{
  display:inline-flex; align-items:center; gap:8px;
  background:#f2fbf6; color:#0f6b4b; border:1px solid var(--ring);
  border-radius:999px; padding:8px 14px; font-weight:700; cursor:pointer;
  transition:transform .12s, box-shadow .12s;
}
.btn-amin:hover{ box-shadow:0 8px 20px rgba(16,163,74,.12); transform:translateY(-1px) }
.btn-amin[disabled]{ opacity:.6; cursor:not-allowed }
.amin-count{ font-weight:800; }

/*menapilkan waktu di doa */
.time-badge{
  margin-left:auto;              /* dorong ke kanan */
  font-size:12px;
  color:#0f6b4b;
  background:#eef8f3;
  border:1px solid var(--ring);
  border-radius:999px;
  padding:4px 8px;
}

/* ===== THANKS BOTTOM SHEET (tanpa backdrop) ===== */
.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;  /* center di layar lebar */
}
.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:22px
}
.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
}
.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 }
@media (max-width:520px){
  .tnx-row{ flex-direction:row; align-items:flex-start }
}

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

.quide-logo{
  width:56px; height:56px; border-radius:12px; overflow:hidden;
  background:#f2fbf6; border:1px solid var(--ring); display:grid; place-items:center;}

.guide-logo img{ width:100%; height:100%; object-fit:contain }
/* ===== Thanks Modal ===== */
/*.thanks-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.28);opacity:0;pointer-events:none;transition:.25s;z-index:70}*/
/*.thanks-backdrop.show{opacity:1;pointer-events:auto}*/
/*.thanks-modal{*/
/*  position:fixed;left:50%;top:50%;transform:translate(-50%,-48%) scale(.98);*/
/*  background:#fff;border:1px solid var(--ring);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.18);*/
/*  width:min(560px,92vw);max-height:86vh;overflow:auto;padding:16px;z-index:71;opacity:0;transition:transform .25s, opacity .25s;*/
/*}*/
/*.thanks-modal.show{opacity:1;transform:translate(-50%,-50%) scale(1)}*/

/*.thanks-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}*/
/*.thanks-ico{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;*/
/*  background:#e7fbef;border:1px solid #cfe9dd;color:#0f6b4b;font-size:24px}*/
/*.thanks-title{font-size:18px;font-weight:800}*/
/*.badge-inv{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}*/

/*.receipt{border:1px solid var(--ring);border-radius:14px;padding:12px;background:#fbfffd}*/
/*.receipt .row{display:flex;justify-content:space-between;margin:6px 0}*/
/*.receipt .label{color:#56796a}*/
/*.receipt .value{font-weight:800;color:#0f3a2a}*/
/*.tnx-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}*/
/*.thanks-note{*/
/*  margin-top:12px;*/
/*  background:#f6fbf8;*/
/*  border:1px solid var(--ring);*/
/*  border-radius:12px;*/
/*  padding:12px;*/
/*  color:#0f3a2a;*/
/*}*/
/*.thanks-note p{ margin:6px 0 }*/


/* ==== PAY SHEET – RAPI & TENGAH ==== */
/*.pay-wrap{display:flex;justify-content:center}*/
/*#invoiceCapture{*/
/*  width:min(560px,92vw);*/
/*  background:#fff;border:1px solid var(--ring);border-radius:16px;*/
/*  padding:14px; margin:0 auto;*/
/*}*/
/*.cap-grid{*/
/*  display:grid;gap:14px;align-items:center;justify-items:center;*/
/*  grid-template-columns: 1fr 1fr;*/
/*}*/
/*@media (max-width:540px){ .cap-grid{grid-template-columns:1fr} }*/

/*.cap-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}*/
/*.cap-title{font-weight:800}*/
/*.countdown{font-variant-numeric:tabular-nums;background:#f6fdf9;border:1px solid #d7ece3;border-radius:999px;padding:6px 10px;color:#0f6b4b;font-size:13px}*/
/*.cap-card{border:1px solid #e7f3ef;border-radius:12px;padding:10px;background:#fbfffd;width:100%}*/
/*.qrbox{display:grid;place-items:center;border:1px dashed #d7ece3;border-radius:12px;padding:12px;background:#f6fdf9}*/
/*.cap-actions{display:flex;gap:10px;justify-content:center;margin-top:12px;flex-wrap:wrap}*/
