@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root{
  --app-max: 430px;
  --brand: #f07607;
  --text: #1f2937;
  --muted: #6b7280;
  --tabbar-h: 68px;
  --header-h: 64px;
}

html,body{ background:#f3f4f6; }
body{
  font-family: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.bg-brand{ background:var(--brand); }
.text-brand{ color:var(--brand); }
.text-muted{ color:var(--muted); }
.text-primary{ color:var(--text); }
.text-secondary{ color:#7c8b99; }
/* ===== MOBILE FRAME ===== */
.mobile-shell{
  width:100%;
  max-width:var(--app-max);
  min-height:100vh;
  margin:0 auto;
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.08);
  position:relative;
  display:flex;
  flex-direction:column;
}
.main-content{ flex:1 1 auto; padding-bottom:calc(var(--tabbar-h) + 16px); }

/* ===== HEADER MOBILE ===== */
.mobile-header{ position:sticky; top:0; z-index:20; background:#fff; }
.mobile-header .inner{ padding:12px 16px; border-bottom:1px solid #eef0f2; }
.logo-ibk{ height:28px; border-radius:6px; }
.search-pill{ position:relative; margin-top:8px; }
.search-pill input{
  width:100%; padding:12px 14px 12px 44px; border-radius:999px; border:0; outline:0; background:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.08); font-size:15px; color:var(--text);
}
.search-pill .bi{ position:absolute; left:16px; top:50%; transform:translateY(-50%); font-size:18px; color:#7c8b99; }

/* ===== HERO SLIDER ===== */
.hero-slider .ratio{ border-radius:0; overflow:hidden; box-shadow:0 10px 22px rgba(0,0,0,.12); }

/* ===== GRID AKSI CEPAT ===== */
.quick-actions{ padding:18px 16px 8px; }
.quick-actions h5{ font-weight:700; color:var(--text); margin-bottom:10px; }
.quick-actions .item{ text-align:center; }
.quick-actions .icon{
  width:42px; height:42px; border-radius:999px; display:flex; align-items:center; justify-content:center;
  background:#fff; box-shadow:inset 0 0 0 1px rgba(47,179,68,.08);
  margin:0 auto 8px; overflow:hidden;
}
.quick-actions .icon img{ width:100%; height:100%; object-fit:cover; border-radius:999px; }
.quick-actions .label{ font-size:13px; color:#111827; }

/* ===== SECTION TITLES ===== */
.section-title{ padding:8px 16px 0; }
.section-title h5{ font-weight:800; color:#111827; margin:0; }
.section-title p{ color:#6b7280; margin:2px 0 0; font-size:13px; }

/* ===== HORIZONTAL SCROLL CARDS ===== */
.scroll-x{ display:flex; gap:12px; overflow-x:auto; padding:12px 16px; scroll-snap-type:x mandatory; }
.scroll-x::-webkit-scrollbar{ height:8px; }
.scroll-x::-webkit-scrollbar-thumb{ background:#e5e7eb; border-radius:999px; }
.card-banner{ min-width:300px; scroll-snap-align:start; border:0; border-radius:12px; overflow:hidden; box-shadow:0 6px 16px rgba(0,0,0,.08); }

/* ===== BOTTOM TABBAR ===== */
.app-tabbar{ position:fixed; left:50%; transform:translateX(-50%); bottom:0; width:100%; max-width:var(--app-max); height:var(--tabbar-h); background:#fff; border-top-left-radius:16px; border-top-right-radius:16px; box-shadow:0 -8px 20px rgba(0,0,0,.08); z-index:30; }
.app-tabbar .nav{ height:100%; display:grid; grid-template-columns:repeat(5,1fr); }
.app-tabbar a{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; text-decoration:none; color:#6b7280; font-size:11px; }
.app-tabbar a .bi{ font-size:20px; }
.app-tabbar a.active{ color:var(--brand); font-weight:600; }

/* Scroll */
.scroll-x{ display:flex; gap:12px; overflow-x:auto; padding:12px 16px; }
.scroll-snap{ scroll-snap-type:x mandatory; }
.scroll-snap > *{ scroll-snap-align:start; }
/* Tunjukkan kartu berikut sedikit (feel slider) */
.peeking > .card{ min-width:calc(100% - 56px); }
@media (min-width:480px){ .peeking > .card{ min-width:360px; } }

/* Kartu donasi */
.card-donation{ border:0; border-radius:16px; overflow:hidden;
  box-shadow:0 8px 22px rgba(145, 145, 145, 0.11); background:#fff; }
.line-clamp-1{ display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.progress-ibk{ height:8px; background:#eef2f7; border-radius:999px; }
.progress-ibk .progress-bar{ background:var(--brand); }
.org-verified{ font-size:14px; line-height:1; }

/* kartu donasi: jangan ada underline di semua teks di dalamnya */
a.card-donation{ text-decoration: none !important; color: inherit; }
a.card-donation:hover,
a.card-donation:focus,
a.card-donation:active{ text-decoration: none !important; }

/* link "Lihat semua" */
.section-seeall .see-all-link{ text-decoration: none !important; }
.section-seeall .see-all-link:hover{ text-decoration: underline; } /* optional */


/* Swiper donation slider */
.donation-swiper{ padding:12px 20px; }
.donation-swiper swiper-slide:first-of-type{ margin-left:100px; }
.donation-swiper swiper-slide:last-of-type{  margin-right:16px; }
.donation-swiper .donation-slide{ width:calc(100% - 56px); }
@media (min-width:480px){ .donation-swiper .donation-slide{ width:300px; } }

.news-swiper{
  padding:0 18px 56px;
  perspective:1300px;
}
.news-swiper swiper-slide{
  width:calc(100% - 64px);
}
@media (min-width:480px){
  .news-swiper swiper-slide{ width:360px; }
}
.news-slide{ padding:22px 6px 36px; }
.news-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
  background:linear-gradient(160deg, rgba(15,23,42,.96), rgba(15,23,42,.82)) padding-box,
            linear-gradient(140deg, rgba(59,130,246,.4), rgba(236,72,153,.35)) border-box;
  border:1px solid transparent;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 24px 56px rgba(15,23,42,.22);
  transition:transform .45s ease, box-shadow .45s ease;
  color:#fff;
}
.news-card__media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
}
.news-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.04);
  transition:transform .6s ease;
}
.news-card__overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.75) 100%);
  pointer-events:none;
}
.news-card__badge{
  position:absolute;
  top:18px;
  left:18px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(0, 0, 0, 1);
  backdrop-filter:blur(8px);
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.news-card__badge .pulse{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#facc15;
  position:relative;
}
.news-card__badge .pulse::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:inherit;
  border:2px solid rgba(250,204,21,.5);
  animation:pulse-glow 1.8s ease-out infinite;
}
.news-card__body{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:22px 24px 26px;
  background:linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.9) 100%);
}
.news-card__meta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(226,232,240,.8);
}
.news-card__meta .bi{ font-size:15px; color:var(--brand); }
.news-card__title{
  font-size:19px;
  font-weight:800;
  line-height:1.45;
  color:#f8fafc;
}
.news-card__excerpt{
  font-size:14px;
  line-height:1.7;
  color:rgba(226,232,240,.75);
}
.news-card__cta{ margin-top:auto; }
.news-card__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  background:rgba(148,163,184,.12);
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  transition:transform .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.news-card__link .bi{ font-size:18px; transition:transform .35s ease; }
.news-card:hover{
  transform:translateY(-14px) scale(1.01);
  box-shadow:0 30px 70px rgba(15,23,42,.28);
}
.news-card:hover .news-card__media img{ transform:scale(1.1); }
.news-card:hover .news-card__link{
  background:var(--brand);
  border-color:var(--brand);
  color:#0f172a;
}
.news-card:hover .news-card__link .bi{ transform:translateX(6px); }
.news-card__glow{
  position:absolute;
  inset:auto;
  width:120%;
  height:120px;
  bottom:-60px;
  left:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle, rgba(59,130,246,.35) 0%, rgba(236,72,153,0) 60%);
  filter:blur(32px);
  opacity:.6;
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
}
.news-card:hover .news-card__glow{
  opacity:1;
  transform:translate(-50%, -4px);
}
.news-card__link:hover{ text-decoration:none; }
.news-swiper::part(pagination){ bottom:10px; }
.news-swiper::part(pagination-bullet){
  width:10px;
  height:10px;
  background:rgba(148,163,184,.5);
  opacity:1;
}
.news-swiper::part(pagination-bullet-active){
  background:var(--brand);
  width:24px;
  border-radius:999px;
}
.news-swiper::part(pagination-bullet-active){ transform:none; }

@keyframes pulse-glow{
  0%{ opacity:.85; transform:scale(.7); }
  70%{ opacity:0; transform:scale(1.65); }
  100%{ opacity:0; transform:scale(1.7); }
}
.section-seeall{ display:flex; justify-content:flex-end; padding:6px 16px 12px; }
.see-all-link{ font-weight:600; color:var(--brand); text-decoration:none; }
.see-all-link:hover{ text-decoration:underline; }

/* tombol & badge */
.btn-ibk{ background:#f07607; color:#fff; }
.btn-ibk:hover{ background:#cc6406; color:#fff; }
.badge-soft{ background:rgba(240,118,7,.12); color:#f07607; }

/* ===== Toolbar (kategori/filter) ===== */
.toolbar-mobile{
  display:flex; align-items:center; gap:8px;
  padding:10px 16px; background:#fff; border-bottom:1px solid #eef0f2;
}
.chip{
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #000;
  border-radius: 5px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip.icon{ padding:8px 10px; }
.chip .bi{ font-size:16px; }

/* ===== List Program ===== */
.program-list{ display:flex; flex-direction:column; gap:14px; padding:12px 12px 18px; }
.program-row{
  display:flex;
  gap:12px;
  padding:12px;
  /* background:#fff; */
  border-bottom: 1px solid rgba(0,0,0,.08)
  /* border-radius:14px; */
  /* border:1px solid #eef0f2; box-shadow:0 1px 0 rgba(0,0,0,.02); */
}
.program-row:hover{ text-decoration:none; }

.program-thumb{ flex:0 0 40%; max-width:40%; }
.program-thumb .ratio,
.program-thumb img{
  width:100%; height:100%; object-fit:cover; border-radius:16px;
  aspect-ratio: 16/9;
}

.program-body{ flex:1 1 auto; min-width:0; }
.program-title{ font-weight:800; color:#111827; margin-bottom:4px; }
.program-org{ color:#6b7280; font-size:13px; margin-bottom:8px; }
.divider-soft{ height:6px; background:#eef2f7; border-radius:999px; margin:6px 0 8px; }

.progress-ibk{ height:8px; background:#eef2f7; border-radius:999px; overflow:hidden; }
.progress-ibk .progress-bar{ background:var(--brand); }

.program-meta{
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-top:8px;
}
.program-meta .val{ font-weight:700; }
.program-meta .label{ font-size:12px; color:#6b7280; }

/* ===== Pager Mobile ===== */
.pager-mobile{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px 90px; /* +90 utk jarak dari tabbar */
}
.btn-page{
  background:var(--brand); border-radius:999px;
  padding:8px 14px; font-weight:600; color:#fff; font-size:14px; text-decoration:none;
}
.btn-page:hover{
   color:black;
}
.btn-page.disabled{ opacity:.5; pointer-events:none; }
.page-indicator{ font-size:12px; color:#6b7280; }

/* ===== Link & underline clean up ===== */
a.program-row,
a.program-row:hover,
a.program-row:focus{ color:var(--brand); text-decoration:none; }

/* ===== Auth (Login) ===== */
.auth-wrap{ padding:16px; }
.auth-title{ font-weight:800; color:#111827; margin:4px 0 14px; }
.form-label{ font-weight:600; color:#111827; font-size:14px; }

.input-pill{ position:relative; }
.form-control-ibk{
  width:100%; height:52px; border-radius:14px; border:1px solid #e5e7eb; outline:0;
  padding:12px 16px; background:#fff; color:#111827; font-size:15px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0), 0 2px 0 rgba(0,0,0,.02);
}
.form-control-ibk::placeholder{ color:#9ca3af; }

.input-pill.with-icon .toggle-eye{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:36px; height:36px; border:0; background:transparent; color:#6b7280;
  display:flex; align-items:center; justify-content:center; border-radius:999px;
}
.input-pill.with-icon .toggle-eye:active{ background:#f3f4f6; }

.btn-brand{
  background:var(--brand); color:#fff; border-radius:14px; padding:12px 16px; font-weight:700;
}
.btn-brand:hover{ filter:brightness(.95); color:#fff; }

.btn-outline-brand{
  border:2px solid var(--brand); color:var(--brand); border-radius:14px;
  padding:12px 16px; font-weight:700; background:#fff;
}
.btn-outline-brand:hover{ background:rgba(0,0,0,.02); color:var(--brand); }

.forgot-link{ color:var(--brand); text-decoration:none; font-weight:500; font-size:14px; }
.forgot-link:hover{ text-decoration:underline; }

.auth-divider{ text-align:center; color:#111827; margin:18px 0; }

/* Jika main-content mengandung .auth-wrap, jadikan area centering */
.main-content:has(.auth-wrap){
  display: grid;
  place-items: center;        /* center horizontal + vertical */
  min-height: calc(100svh - var(--tabbar-h) - var(--header-h));
  padding: 16px;              /* jarak aman dari tepi */
}

/* Batasi lebar form agar proporsional di frame mobile */
.auth-wrap{
  width: 100%;
  max-width: 360px;           /* bisa 380–400 sesuai selera */
}

/* ===== Tombol brand ===== */
.btn-brand{
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.btn-brand:hover{ filter: brightness(.95) !important; color:#fff !important; }

/* Outline brand (Daftar Sekarang) */
.btn-outline-brand{
  border: 2px solid var(--brand) !important;
  color: var(--brand) !important;
  background: #fff !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.btn-outline-brand:hover{ background: rgba(0,0,0,.02) !important; color: var(--brand) !important; }

/* Input pill tetap rapi */
.input-pill .form-control-ibk{
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  background: #fff;
  color: #111827;
  font-size: 15px;
}

/* Eye button di field password */
.input-pill.with-icon .toggle-eye{
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; background: transparent; color: #6b7280;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
}

/* ===== Toolbar status ===== */
.filter-tabs{
  display:flex; flex-wrap:nowrap; gap:8px;
  padding:10px 16px; overflow-x:auto; background:#fff; border-bottom:1px solid #eef0f2;
}
.filter-tabs .chip{
  border:1px solid #e5e7eb; background:#fff; color:#111827;
  border-radius:999px; padding:8px 12px; font-weight:600; white-space:nowrap; text-decoration:none;
}
.filter-tabs .chip.active{ border-color:var(--brand); color:var(--brand); }

/* ===== History list ===== */
.donation-history{ display:flex; flex-direction:column; gap:12px; padding:12px; }
.history-row{
  display:flex; gap:12px; padding:12px; background:#fff; border-radius:14px;
  border:1px solid #eef0f2; box-shadow:0 1px 0 rgba(0,0,0,.02);
}
.history-row:hover{ text-decoration:none; }

.history-row .thumb{ flex:0 0 34%; max-width:34%; }
.history-row .thumb img{
  width:100%; height:100%; object-fit:cover; border-radius:12px; aspect-ratio: 16/9;
}

.history-row .body{ flex:1 1 auto; min-width:0; }
.history-row .title{ font-weight:800; color:#111827; margin-bottom:4px; }
.history-row .org{ color:#6b7280; font-size:13px; margin-bottom:8px; }

.history-row .meta{ display:flex; justify-content:space-between; align-items:flex-end; gap:8px; }
.history-row .meta .left .val{ font-weight:800; }
.history-row .meta .left .label{ font-size:12px; color:#6b7280; }

/* Badge status */
.badge-status{
  display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700;
  border:1px solid transparent; line-height:1;
}
.badge-status.pending{ color:#92400e; background:#fef3c7; border-color:#fde68a; } /* amber */
.badge-status.sukses{ color:#ffffff; background:var(--brand); border-color:transparent; } /* brand */
.badge-status.gagal{ color:#991b1b; background:#fee2e2; border-color:#fecaca; } /* red */
.badge-status.refund{ color:#374151; background:#e5e7eb; border-color:#d1d5db; } /* gray */

/* Empty state */
.empty-state{ text-align:center; color:#6b7280; padding:24px 16px; }
.empty-state img{ width:160px; height:90px; object-fit:cover; border-radius:12px; margin-bottom:8px; }

/* Pager (pakai yang sama dengan /program) */
.pager-mobile{ display:flex; align-items:center; justify-content:space-between; padding:10px 16px 90px; }
.btn-page{ background:#fff; border:1px solid #e5e7eb; border-radius:999px; padding:8px 12px; font-weight:600; color:#111827; text-decoration:none; }
.btn-page.disabled{ opacity:.5; pointer-events:none; }
.page-indicator{ font-size:12px; color:#6b7280; }

/* ===== Detail Program ===== */
.with-cta{ padding-bottom: calc(var(--tabbar-h) + 110px); }

.detail-hero .hero-img{
    /* border-bottom-left-radius: 18px; */
    /* border-bottom-right-radius: 18px; */
    overflow:hidden;
}
.detail-hero .hero-top{
  position:absolute; inset:12px 12px auto 12px; display:flex; justify-content:space-between; gap:8px; pointer-events:none;
}
.btn-back{
  pointer-events:auto; width:40px; height:40px; border:0; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}
.share-pill{
  pointer-events:auto;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  height: 40px;
  font-size:10px;
  background:#fff;
  color:#111827;
  border-radius:48px 0 0 48px;
  padding:8px 28px;
  font-weight:600;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}
.share-pill .bi{ font-size:18px; }

.detail-header{ padding:14px 16px 8px; background:#fff; }
.title-large{ font-weight:800; color:#111827; line-height:1.25; margin-bottom:6px; }
.money{ font-weight:800; font-size:24px; color: var(--brand); }

.toggle-progress{ color:#6b7280 !important; font-weight:600; text-decoration:none; }
.toggle-progress .bi{ vertical-align:-2px; }

.org-card{
  margin:8px 12px; padding:12px; background:#f5f8ff; border-radius:14px; display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
  border:1px solid #e6efff;
}
.org-card .org-left img{ width:44px; height:44px; border-radius:999px; object-fit:cover; }
.org-card .org-name{ font-weight:800; color:#111827; }
.org-verified{
  display:inline-flex; align-items:center; gap:6px; background:#e6efff; color:#1d4ed8; font-weight:700; border-radius:999px; padding:6px 10px; font-size:12px;
}
.org-verified .bi{ font-size:14px; }

.detail-about{ padding:12px 16px 0; background:#fff; }

/* Progress bar reuse */
.progress-ibk{ height:8px; background:#eef2f7; border-radius:999px; overflow:hidden; }
.progress-ibk .progress-bar{ background: var(--brand); }

/* CTA bawah di atas tabbar */
.cta-bottom{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom: calc(var(--tabbar-h) + 12px);
  width:100%; max-width:var(--app-max); padding:0 12px;
  display:flex; gap:12px; z-index:25;
}
.btn-cta-large{ border-radius:999px; padding:14px 16px; font-weight:800; width:100%; }

/* ===== About ===== */
.about-hero{ padding:12px 12px 0; }
.about-hero .wrap{ border-radius:16px; overflow:hidden; position:relative; }
.about-hero .badge-top{
  position:absolute;  color:white;  border-radius:5px;
  padding:6px 10px; font-weight:700; box-shadow:0 6px 14px rgba(0,0,0,.12);
}

.page-title{ padding:12px 16px 0; font-weight:800; color:#111827; }

.section{ padding:12px 16px 0; }
.section-heading{ font-weight:800; color:#111827; margin-bottom:8px; }

.card-soft{
  background:#fff; border:1px solid #eef0f2; border-radius:14px; padding:12px;
}

.value-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.value-card{ display:flex; gap:10px; align-items:flex-start; background:#fff; border:1px solid #eef0f2; border-radius:14px; padding:12px; }
.value-card .icon{
  width:40px; height:40px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.04); color: var(--brand);
}
.value-card .title{ font-weight:800; color:#111827; }
.value-card .desc{ color:#6b7280; font-size:13px; }

.stat-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat-card{ text-align:center; background:#fff; border:1px solid #eef0f2; border-radius:14px; padding:14px; }
.stat-card .val{ font-weight:900; font-size:22px; color:var(--brand); line-height:1; }
.stat-card .label{ margin-top:4px; font-size:12px; color:#6b7280; }

.timeline{ position:relative; margin-left:16px; }
.timeline:before{ content:''; position:absolute; left:0; top:4px; bottom:4px; width:2px; background: repeating-linear-gradient(#e5e7eb, #e5e7eb 8px, transparent 8px, transparent 16px); }
.timeline .item{ position:relative; padding-left:16px; margin-bottom:12px; }
.timeline .item .dot{ position:absolute; left:-6px; top:4px; width:10px; height:10px; background:var(--brand); border-radius:999px; }
.timeline .year{ font-weight:800; color:#111827; }
.timeline .text{ color:#6b7280; font-size:13px; }

.team-list{ display:flex; flex-direction:column; gap:10px; }
.team-card{ display:flex; gap:12px; align-items:center; background:#fff; border:1px solid #eef0f2; border-radius:14px; padding:10px 12px; }
.team-card img{ width:48px; height:48px; border-radius:999px; object-fit:cover; }
.team-card .name{ font-weight:800; color:#111827; }
.team-card .role{ font-size:12px; color:#6b7280; }

.contact-card{
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
  background:#fff; border:1px solid #eef0f2; border-radius:14px; padding:12px;
}
.contact-card .left{ width:36px; height:36px; border-radius:10px; background:#fff7f0; display:flex; align-items:center; justify-content:center; color:var(--brand); }
.contact-card .mid .title{ font-weight:800; color:#111827; }
.contact-card .mid .desc{ font-size:12px; color:#6b7280; }

/* Kecilkan tombol brand agar pas di kartu kontak */
.contact-card .btn.btn-sm{ padding:8px 10px; border-radius:10px; font-weight:700; }

/* Responsif kecil (opsional) */
@media (min-width:420px){
  .value-grid{ grid-template-columns:1fr 1fr; }
}

/* ===== Donation Page ===== */
.donation-wrap{ padding:12px; }
.donation-header{ position:sticky; top:0; z-index:15; background:#fff; padding:8px 0 6px; display:flex; align-items:center; gap:10px; }
.donation-header .btn-back{
  width:36px; height:36px; border-radius:10px; background:#fff; border:1px solid #e5e7eb;
  display:flex; align-items:center; justify-content:center;
}
.donation-header .title{ font-weight:800; color:#111827; }

.program-mini{
  display:flex; gap:10px; padding:10px; background:#fff; border:1px solid #eef0f2; border-radius:14px;
}
.program-mini img{ width:92px; height:56px; object-fit:cover; border-radius:10px; }
.program-mini .p-title{ font-weight:800; color:#111827; }
.program-mini .p-org{ color:#6b7280; font-size:12px; margin-top:2px; }

.section-title-sm{ font-weight:800; color:#111827; margin-bottom:8px; }

.amount-pills{ display:flex; flex-wrap:wrap; gap:8px; }
.pill{
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f07607;
  font-weight: 600;
  color: white;
}
.pill.sm{ padding:8px 12px; font-weight:600; }
.pill.active{ border-color:var(--brand); color:var(--brand);background:white; }

.input-amount{ display:flex; align-items:center; gap:8px; margin-top:10px; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px; background:#fff; }
.input-amount .prefix{ font-weight:800; color:#111827; }
.input-amount input{
  border:0; outline:0; width:100%; font-weight:800; font-size:20px; background:transparent;
}

.brand-switch:checked{ background-color:var(--brand); border-color:var(--brand); }

.recurring-area{ margin-top:8px; }
.pill-group{ display:flex; gap:8px; }

.form-control-ibk{ width:100%; height:48px; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px; background:#fff; }
.form-label{ font-size:14px; font-weight:700; color:#111827; }

.method-list{ display:flex; flex-direction:column; gap:10px; }
.method-item{
  display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center;
  background:#fff; border:1px solid #eef0f2; border-radius:12px; padding:10px 12px;
}
.method-item input{ display:none; }
.method-item .icon img{ width:36px; height:36px; object-fit:cover; border-radius:8px; }
.method-item .m-title{ font-weight:800; color:#111827; }
.method-item .m-desc{ font-size:12px; color:#6b7280; }
.method-item .checkmark{ opacity:0; color:var(--brand); font-size:18px; }
.method-item:has(input:checked){ border-color:var(--brand); }
.method-item:has(input:checked) .checkmark{ opacity:1; }

.textarea-ibk{ position:relative; }
.textarea-ibk textarea{
  width:100%; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px; background:#fff; resize:vertical;
}
.textarea-ibk .counter{
  position:absolute; right:10px; bottom:8px; font-size:12px; color:#6b7280;
}

/* CTA bottom */
.cta-pay{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom: calc(var(--tabbar-h) + 12px);
  width:100%; max-width:var(--app-max); padding:10px 12px; z-index:25;
  display:flex; gap:10px; align-items:center;
}
.cta-pay .sum{ background:#fff; border:1px solid #eef0f2; border-radius:12px; padding:10px 12px; flex:1; }
.cta-pay .sum .label{ font-size:12px; color:#6b7280; }
.cta-pay .sum .val{ font-weight:900; color:var(--brand); font-size:18px; }
.btn-cta{ border-radius:12px; padding:12px 16px; font-weight:800; white-space:nowrap; }

/* ===== Payment Picker (bottom sheet) ===== */
.method-picker{ margin-top:6px; }
.method-selected{
  display:flex; align-items:center; gap:12px; background:#fff; border:1px solid #eef0f2;
  border-radius:12px; padding:10px 12px;
}
.method-selected .icon img{ width:40px; height:40px; border-radius:10px; object-fit:contain; }
.method-selected .meta .title{ font-weight:800; color:#111827; line-height:1.1; }
.method-selected .meta .code{ font-size:12px; color:#6b7280; }

/* modal jadi bottom sheet */
.modal-sheet .modal-dialog{
  position:fixed; left:50%; bottom:0; transform:translateX(-50%);
  margin:0; width:100%; max-width:var(--app-max);
}
.modal-sheet .modal-content{
  border:0; border-top-left-radius:16px; border-top-right-radius:16px; box-shadow:0 -8px 24px rgba(0,0,0,.16);
}
.sheet-handle{
  width:46px; height:6px; border-radius:999px; background:#e5e7eb; margin:10px auto 4px;
}
.sheet-header{
  display:flex; align-items:center; justify-content:space-between; padding:6px 12px 6px 16px;
}
.sheet-header .title{ font-weight:800; color:#111827; }

/* sticky search */
.sheet-search{ position:sticky; top:0; background:#fff; padding:6px 12px 10px; z-index:2; }
.pm-search{ position:relative; }
.pm-search input{
  width:100%; height:44px; border-radius:12px; border:1px solid #e5e7eb; padding:8px 12px 8px 38px;
}
.pm-search .bi{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#6b7280; }

/* chips kategori */
.group-chips{ display:flex; gap:8px; padding:0 12px 8px; overflow-x:auto; }
.group-chips .chip{
  border:1px solid #e5e7eb; background:#fff; color:#111827; border-radius:999px; padding:8px 12px; font-weight:600; white-space:nowrap;
}
.group-chips .chip.active{ border-color:var(--brand); color:var(--brand); }

/* grid tile */
.sheet-body{ padding:8px 12px 12px; max-height:calc(100svh - 180px); overflow:auto; }
.tile-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
@media (max-width:360px){ .tile-grid{ grid-template-columns:repeat(2,1fr); } }

.pm-tile{
  display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
  background:#fff; border:1px solid #eef0f2; border-radius:12px; padding:10px; min-height:92px;
}
.pm-tile img{ width:28px; height:28px; object-fit:contain; }
.pm-tile .t-title{ font-size:12px; font-weight:700; color:#111827; line-height:1.2; }
.pm-tile .t-code{ font-size:11px; color:#6b7280; }
.pm-tile.active{ border-color:var(--brand); box-shadow:0 0 0 2px rgba(240,118,7,.15); }

.pm-empty{
  text-align:center; color:#6b7280; padding:18px 0;
}
.pm-empty .bi{ font-size:28px; display:block; margin-bottom:6px; }

/* ===== Bottom Sheet Fix (selalu center, aman di mobile) ===== */
.modal-sheet{ --bs-modal-margin: 0; }
.modal-sheet .modal-dialog{
  position: fixed;
  inset: auto 0 0 0;        /* top:auto; right:0; bottom:0; left:0 */
  width: min(100vw, var(--app-max));
  margin: 0 auto;           /* center horizontal tanpa translate */
  transform: none !important;
  pointer-events: auto;
}
.modal-sheet .modal-content{
  border: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.16);
}

/* animasi naik dari bawah (override animasi bootstrap) */
.modal.fade.modal-sheet .modal-dialog{ transform: translateY(24px) !important; transition: transform .2s ease-out; }
.modal.show.modal-sheet .modal-dialog{ transform: translateY(0) !important; }

/* body modal: scroll internal, bukan halaman */
.modal-sheet .sheet-body{
  max-height: calc(100svh - 190px); /* header + search + chips */
  overflow: auto;
}

/* handle + header + search tetap terlihat saat scroll */
.modal-sheet .sheet-header{ position: sticky; top: 0; background:#fff; z-index: 3; }
.modal-sheet .sheet-search{ position: sticky; top: 48px; background:#fff; z-index: 2; }
.modal-sheet .group-chips{ position: sticky; top: 96px; background:#fff; z-index: 1; padding-bottom: 8px; }

/* cegah geser horizontal saat modal open pada browser yg menambah padding-right */
body.modal-open{ padding-right: 0 !important; overflow-y: auto; }
