/* Tema putih + aksen brand — Yayasan Sinar Abadi Indonesia */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #dbeafe;
  --brand-subtle: #eff6ff;
  --warm: #f4b942;
  --warm-soft: #fff7e6;
  --ink: #0f172a;
}

body { background: #f8fafc; color: var(--ink); font-weight: 500; }

.text-brand { color: var(--brand) !important; }

/* Navigasi */
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
.brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.brand-text { font-weight: 800; font-size: 14px; line-height: 1.1; color: var(--ink); }
.brand-text small { display: block; font-size: 11px; color: var(--brand); font-weight: 700; }

.badge-soft { background: var(--brand-light); color: #1e3a8a; font-weight: 700; }

/* Hero */
.hero-wrap { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.hero-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--brand-subtle); }
.hero-address { color: #fff; font-size: 14px; padding: 14px 16px; background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .75)); }

.org-name { color: var(--brand); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }
.legality { color: #475569; font-size: 12px; }
.campaign-title { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.4rem, 4vw, 2rem); }

/* Kartu metrik donasi (sudut membulat) */
.metric-card { border: 1px solid #eef2f7; border-radius: 20px; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.metric-label { font-size: 12px; color: #475569; }
.metric-amount { font-size: clamp(1.6rem, 5vw, 2rem); font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.badge-duration { background: #fff; border: 1px solid #e2e8f0; color: #475569; font-weight: 600; }

.progress { background: #f1f5f9; border-radius: 999px; }
.progress-bar { background: linear-gradient(90deg, var(--brand), #60a5fa); border-radius: 999px; transition: width .7s ease; }

/* Tombol brand */
.btn-brand { background: var(--brand); border: none; color: #fff; font-weight: 700; border-radius: 14px; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1px solid #e2e8f0; color: var(--ink); font-weight: 700; border-radius: 14px; background: #fff; }
.btn-outline-brand:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-subtle); }
.btn-share { width: 48px; height: 48px; }

/* Tab */
.nav-tabs .nav-link { color: #475569; font-weight: 700; border: none; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom: 3px solid var(--brand); background: transparent; }

.empty-note { border: 2px dashed #e2e8f0; border-radius: 16px; padding: 24px; color: #64748b; font-size: 14px; }

/* Donatur */
.donor-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand-subtle); color: #1e3a8a; font-weight: 800; flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* Doa */
.section-title { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.prayer-card { background: var(--brand-subtle); color: #1e3a8a; border-radius: 16px; padding: 16px; height: 100%; font-size: 14px; }

/* Cerita */
.story-heading { font-weight: 800; font-size: 16px; margin-top: 18px; padding-left: 10px; border-left: 4px solid var(--brand); }
.story p { color: #475569; font-size: 14px; line-height: 1.75; }

/* Form donasi */
.step-label { display: flex; align-items: center; gap: 8px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
.preset-btn { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; font-weight: 700; font-size: 13px; padding: 12px 4px; color: #334155; }
.preset-btn:hover, .preset-btn.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.method-card { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 14px 8px; cursor: pointer; color: #475569; }
.method-card.selected { border-color: var(--brand); background: var(--brand-subtle); color: var(--brand); }
.pay-info { background: #f8fafc; }
.qris-img { width: 176px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; }
.success-circle { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 999px; background: #ecfdf5; color: #059669; font-size: 30px; }

/* Sticky donate bar (mobile) */
.sticky-donate { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid #e2e8f0; padding: 12px 0; box-shadow: 0 -8px 25px rgba(0, 0, 0, .06); }
.main-wrap { padding-top: 16px; padding-bottom: 110px; }
@media (min-width: 992px) { .main-wrap { padding-bottom: 40px; padding-top: 32px; } }

.site-footer { margin-top: 40px; border-top: 1px solid #eef2f7; padding-top: 24px; font-size: 13px; color: #64748b; }

/* Total transfer + kode unik */
.total-box { background: var(--brand-subtle); color: #1e3a8a; border-radius: 16px; padding: 16px; }

/* Galeri kegiatan */
.gallery-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #f1f5f9; }
.gallery-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-tile span { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 8px 8px; color: #fff; font-size: 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7)); }
.gallery-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Logo yayasan, catatan donasi menunggu, deskripsi */
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; }
.pending-note { background: #fffbeb; color: #92400e; border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.desc-box { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 16px; font-size: 14px; color: #475569; line-height: 1.7; }
.collapsed-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }


/* Pembaruan visual: biru dengan aksen hangat dan animasi meriah */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: radial-gradient(circle at 8% 5%, #fff7e6 0, transparent 24rem), #f8fafc; }
.site-nav { box-shadow: 0 8px 30px rgba(15, 23, 42, .05); }
.brand-badge { background: linear-gradient(135deg, var(--brand), #60a5fa 70%, var(--warm)); }
.badge-soft { background: linear-gradient(110deg, #dbeafe, #fff2d2); color: #1e3a8a; }
.hero-wrap, .metric-card, .desc-box, .prayer-card, .gallery-tile { animation: rise-in .7s cubic-bezier(.2,.75,.25,1) both; }
.metric-card { border-color: rgba(244,185,66,.25); box-shadow: 0 12px 34px rgba(30,64,175,.07), 0 3px 12px rgba(244,185,66,.06); }
.campaign-title { background: linear-gradient(100deg, #123b80, #2563eb 65%, #c58b20); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-brand { background: linear-gradient(110deg, #1d4ed8, #3b82f6 72%, #e4a72e); transition: transform .2s ease, box-shadow .2s ease; }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.25); }
.progress-bar { background: linear-gradient(90deg, #2563eb, #60a5fa, #f4b942); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
.nav-tabs .nav-link.active { border-image: linear-gradient(90deg,#2563eb,#f4b942) 1; }
.story-heading { border-left-color: var(--warm); }
.success-circle { background: linear-gradient(135deg,#dcfce7,#fff2d2); color: #15803d; box-shadow: 0 0 0 9px rgba(244,185,66,.13); animation: pop-in .55s ease-out both; }
.social-actions { display:flex; flex-wrap:wrap; gap:.55rem; }
.social-actions a,.social-actions button { flex:1 1 120px; border:1px solid #e2e8f0; border-radius:13px; padding:.7rem .5rem; background:#fff; color:#1e3a8a; font-weight:700; text-align:center; text-decoration:none; }
.social-actions a:hover,.social-actions button:hover { border-color:var(--warm); background:var(--warm-soft); }
.confetti-piece { position:fixed; top:-14px; z-index:2000; width:9px; height:14px; pointer-events:none; animation: confetti-fall 2.8s ease-in forwards; }
@keyframes rise-in { from {opacity:0; transform:translateY(18px)} to {opacity:1; transform:translateY(0)} }
@keyframes pop-in { 0%{transform:scale(.55);opacity:0} 75%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
@keyframes shimmer { to {background-position:-200% 0} }
@keyframes confetti-fall { to {transform:translate3d(var(--drift),105vh,0) rotate(720deg);opacity:.15} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important} }


/* Ikon akun media sosial pada footer */
.footer-social { padding: 14px 16px; border: 1px solid #e6edf8; border-radius: 16px; background: linear-gradient(110deg, #eff6ff, #fffaf0); }
.footer-social-title { display:block; margin-bottom:10px; color:#1e3a8a; font-size:13px; font-weight:800; }
.footer-social-list { display:flex; flex-wrap:wrap; gap:9px; }
.footer-social-link { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:8px 12px; border:1px solid #dbe5f3; border-radius:12px; background:#fff; color:#1e40af; font-size:12px; font-weight:800; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease; }
.footer-social-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.footer-social-link:hover { transform:translateY(-2px); box-shadow:0 5px 14px rgba(37,99,235,.12); color:#1d4ed8; }
.footer-social-link.is-unconfigured { color:#94a3b8; border-style:dashed; background:#f8fafc; cursor:default; }
.footer-social-link.is-unconfigured svg { opacity:.7; }
.footer-social-note { display:block; margin-top:9px; color:#64748b; font-size:11px; }


/* Tema dominan hijau — Yayasan Sinar Abadi Indonesia */
:root {
  --brand: #15803d;
  --brand-dark: #166534;
  --brand-light: #dcfce7;
  --brand-subtle: #f0fdf4;
  --warm: #facc15;
  --warm-soft: #fefce8;
}
.text-brand, .org-name, .brand-text small { color: #15803d !important; }
.brand-badge { background: linear-gradient(135deg,#166534,#22c55e 75%,#facc15); box-shadow: 0 4px 12px rgba(21,128,61,.25); }
.badge-soft { background: linear-gradient(110deg,#dcfce7,#fef9c3); color:#14532d; }
.progress-bar { background: linear-gradient(90deg,#15803d,#4ade80,#facc15); }
.btn-brand { background: linear-gradient(110deg,#166534,#22c55e 72%,#a3e635); box-shadow:0 6px 16px rgba(21,128,61,.25); }
.btn-brand:hover,.btn-brand:focus { background:#166534; }
.btn-outline-brand:hover { border-color:#15803d; color:#166534; background:#f0fdf4; }
.nav-tabs .nav-link.active { color:#15803d; border-bottom-color:#15803d; }
.avatar { background:#f0fdf4; color:#166534; }
.prayer-card,.total-box { background:#f0fdf4; color:#14532d; }
.story-heading { border-left-color:#22c55e; }
.step-num { background:#15803d; }
.preset-btn:hover,.preset-btn.selected { border-color:#15803d; background:#15803d; }
.method-card.selected { border-color:#15803d; background:#f0fdf4; color:#166534; }
.footer-social { background:linear-gradient(110deg,#f0fdf4,#fefce8); }
.footer-social-title,.social-actions a,.social-actions button { color:#166534; }
.social-actions a:hover,.social-actions button:hover { border-color:#22c55e; background:#f0fdf4; }
.campaign-title { background:linear-gradient(100deg,#14532d,#16a34a 65%,#a3a635); -webkit-background-clip:text; background-clip:text; }
