/* ==========================================================================
   Derma Produktif Indonesia — Design System
   Palet: Putih (#FFFFFF) · Hijau (#0E7A4B) · Kuning (#F7C948)
   ========================================================================== */

:root {
  /* Brand */
  --green-900: #07301E;
  --green-800: #0A4A2F;
  --green-700: #0B5F3C;
  --green: #0E7A4B;        /* primary */
  --green-600: #12935B;
  --green-500: #17A868;
  --green-100: #E7F5EE;
  --green-50:  #F3FAF6;

  --yellow: #F7C948;
  --yellow-600: #E8B62F;
  --yellow-100: #FEF6DA;

  --ink: #0F1D16;
  --ink-2: #33443B;
  --muted: #6B7B72;
  --line: #E6ECE8;
  --line-2: #EFF3F0;
  --bg: #FFFFFF;
  --bg-soft: #F7FAF8;

  --danger: #D64545;
  --warn: #E09B1A;
  --info: #2F6FED;

  /* Type */
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(10, 40, 25, .06);
  --sh-sm: 0 2px 8px rgba(10, 40, 25, .06);
  --sh: 0 8px 24px rgba(10, 40, 25, .08);
  --sh-lg: 0 18px 50px rgba(10, 40, 25, .12);

  --container: 1160px;
  --header-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(14, 122, 75, .35); outline-offset: 2px; }
::selection { background: var(--yellow); color: var(--green-900); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 860px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.stack > * + * { margin-top: var(--gap, 16px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hide { display: none !important; }
.text-green { color: var(--green); }
.text-danger { color: var(--danger); }
.nowrap { white-space: nowrap; }

/* ---------- Typography scale ---------- */
.h1 { font-size: clamp(30px, 5.2vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: clamp(19px, 2.4vw, 24px); font-weight: 750; }
.h4 { font-size: 17px; font-weight: 700; }
.lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--ink-2); line-height: 1.65; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--yellow); }
.eyebrow.center-before::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 6px 16px rgba(14, 122, 75, .18);
}
.btn:hover { background: var(--green-700); box-shadow: 0 10px 22px rgba(14, 122, 75, .24); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-pill); }
.btn-yellow { --btn-bg: var(--yellow); --btn-fg: var(--green-900); box-shadow: 0 6px 16px rgba(247, 201, 72, .35); }
.btn-yellow:hover { background: var(--yellow-600); box-shadow: 0 10px 22px rgba(247, 201, 72, .45); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--green); --btn-bd: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--green-50); border-color: var(--green-100); box-shadow: none; }
.btn-white { --btn-bg: #fff; --btn-fg: var(--green-900); box-shadow: var(--sh-sm); }
.btn-white:hover { background: #fff; box-shadow: var(--sh); }
.btn-soft { --btn-bg: var(--green-100); --btn-fg: var(--green-700); box-shadow: none; }
.btn-soft:hover { background: #D9F0E4; }
.btn-outline-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.45); box-shadow: none; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-danger { --btn-bg: #FDEEEE; --btn-fg: var(--danger); box-shadow: none; }
.btn-danger:hover { background: #FADADA; }
.btn-icon { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; transition: .18s ease;
}
.chip:hover { border-color: var(--green-100); background: var(--green-50); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-active:hover { background: var(--green-700); }
.chip-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chip-scroll > .chip { flex: none; }
.chip-scroll::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--green-100); color: var(--green-700);
}
.badge-yellow { background: var(--yellow-100); color: #8A6400; }
.badge-gray { background: #F1F4F2; color: var(--muted); }
.badge-danger { background: #FDEEEE; color: var(--danger); }
.badge-warn { background: #FFF4E0; color: #A86A00; }
.badge-green-solid { background: var(--green); color: #fff; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.card-pad { padding: 20px; }
.card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--green-100); }

/* ---------- Progress ---------- */
.progress {
  position: relative; height: 8px; border-radius: var(--r-pill);
  background: var(--green-100); overflow: hidden;
}
.progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.progress.thin { height: 6px; }
.progress.lg { height: 12px; }
.progress.on-dark { background: rgba(255,255,255,.18); }
.progress.on-dark > span { background: linear-gradient(90deg, var(--yellow), #FFE08A); }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.label {
  display: block; font-size: 13.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px;
}
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
/* Native <select> is as wide as its longest <option>, which blows out narrow screens */
.select { text-overflow: ellipsis; }
.input::placeholder, .textarea::placeholder { color: #9AA8A0; }
.input:hover, .select:hover, .textarea:hover { border-color: #CFDAD3; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14, 122, 75, .12);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7B72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.input-group { position: relative; }
.input-group .input { padding-left: 46px; }
.input-group .prefix {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; font-size: 15px; pointer-events: none;
}
.input-group .suffix-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 36px; padding: 0 10px; border-radius: var(--r-xs); font-size: 13px; font-weight: 650; color: var(--green);
}
.input-group .suffix-btn:hover { background: var(--green-50); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.amount-opt {
  min-height: 48px; padding: 8px 10px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; transition: .16s;
}
.amount-opt:hover { border-color: var(--green-100); background: var(--green-50); }
.amount-opt.is-active { border-color: var(--green); background: var(--green-50); color: var(--green-700); box-shadow: 0 0 0 3px rgba(14,122,75,.08); }

/* ---------- Header / nav ---------- */
/* The header is injected into <div id="header">. An auto-height wrapper would trap the
   sticky bar (it can only stick inside its parent's box), so drop the wrapper's box. */
#header { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10,40,25,.04); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; }
img.brand-logo { object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-weight: 800; font-size: 15.5px; letter-spacing: -.02em; color: var(--green-900); }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; min-width: 0; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: var(--r-pill); white-space: nowrap;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
  color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: color .18s, background .18s;
}
.nav-link:hover { color: var(--green); background: var(--green-50); }
.nav-link.is-active { color: var(--green-700); background: var(--green-100); }
.nav-caret { width: 14px; height: 14px; flex: none; transition: transform .2s; opacity: .7; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-item.is-open > .nav-trigger { color: var(--green); background: var(--green-50); }
/* Dropdown panel */
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 6px);
  min-width: 248px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg, 16px);
  box-shadow: 0 18px 44px rgba(8, 40, 26, .14), 0 2px 6px rgba(8, 40, 26, .06);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  /* visibility flips instantly on open, but waits for the fade on close */
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
  z-index: 60;
}
.nav-menu::before { /* invisible bridge so the pointer can cross the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.nav-item.is-open .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.nav-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-menu-link:hover, .nav-menu-link:focus-visible { background: var(--green-50); color: var(--green-700); }
.nav-menu-link.is-active { background: var(--green-100); color: var(--green-700); }
.nav-menu-ic { display: inline-flex; color: var(--green); opacity: .85; }
.nav-menu-ic svg { width: 17px; height: 17px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.nav-toggle { display: none; }
/* Scroll progress hairline (accent for the sticky mobile bar) */
.header-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transform: scaleX(0); transform-origin: 0 50%; opacity: 0;
  transition: transform .15s linear, opacity .2s ease;
  pointer-events: none;
}
.site-header.is-scrolled .header-progress { opacity: 1; }
.header-progress.is-on { opacity: 1; }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 48, 30, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(88vw, 380px);
  background: #fff; transform: translateX(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; padding: 0;
  box-shadow: -20px 0 60px rgba(7,48,30,.18);
  overscroll-behavior: contain;
  outline: none;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: none; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--green-50), #fff);
}
.drawer-head .brand { gap: 9px; }
.drawer-head .brand-logo { width: 34px; height: 34px; }
.drawer-head .brand-name { font-size: 14.5px; }
.drawer-head .brand-sub { font-size: 9.5px; letter-spacing: .12em; }
.drawer-close {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.drawer-close:hover { background: var(--green-100); border-color: var(--green-100); color: var(--green-700); }
.drawer-close:active { transform: scale(.94); }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-body {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 14px 14px calc(16px + var(--safe-b));
}
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 10px 12px; border-radius: var(--r-sm);
  font-weight: 650; font-size: 15.5px; color: var(--ink);
  transition: background .16s, color .16s;
  -webkit-tap-highlight-color: transparent;
}
.drawer-link-ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--green-700);
  transition: background .16s, color .16s;
}
.drawer-link-ic svg { width: 19px; height: 19px; }
.drawer-link-lbl { flex: 1 1 auto; min-width: 0; }
.drawer-link-arrow { width: 16px; height: 16px; flex: none; color: #B4C2BA; transition: transform .16s, color .16s; }
.drawer-link:hover { background: var(--green-50); color: var(--green-700); }
.drawer-link:hover .drawer-link-ic { background: var(--green-100); }
.drawer-link:hover .drawer-link-arrow { color: var(--green); transform: translateX(2px); }
.drawer-link.is-active { background: var(--green-100); color: var(--green-800); }
.drawer-link.is-active .drawer-link-ic { background: var(--green); color: #fff; }
.drawer-link.is-active .drawer-link-arrow { color: var(--green); }
.drawer-link:active { background: var(--green-100); }
.drawer-group-label {
  margin: 12px 0 4px; padding-inline: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.drawer-link-sub { padding-left: 10px; }
.drawer-foot {
  display: grid; gap: 10px;
  padding-top: 16px; margin-top: 16px;
  border-top: 1px solid var(--line);
}
.drawer-foot .btn { min-height: 46px; }
/* Short screens (landscape phones, 320x480): tighten so the CTA stays visible */
@media (max-height: 600px) {
  .drawer-head { padding-block: 10px; }
  .drawer-link { min-height: 46px; padding-block: 8px; }
  .drawer-link-ic { width: 32px; height: 32px; border-radius: 9px; }
  .drawer-body { padding-block: 10px 12px; }
  .drawer-foot { padding-top: 12px; margin-top: 12px; gap: 8px; }
  .drawer-foot .btn { min-height: 42px; }
}

/* Bottom nav (mobile) */
.bottom-nav { display: none; }

/* Background scroll lock while the drawer is open */
body.drawer-open { overflow: hidden; overscroll-behavior: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 68px) 0 clamp(40px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(247, 201, 72, .18), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(14, 122, 75, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { margin-top: 14px; }
.hero h1 .hl { position: relative; color: var(--green); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em;
  background: var(--yellow); opacity: .55; z-index: -1; border-radius: 3px;
}
.hero .lead { margin-top: 16px; max-width: 500px; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; }
.hero-stat .num { font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -.03em; color: var(--green-900); }
.hero-stat .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.hero-media { position: relative; }
.hero-media .main-img {
  border-radius: 28px 28px 28px 90px; overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 4.6; background: var(--green-100);
}
.hero-media .main-img img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; left: -10px; bottom: 26px; background: #fff;
  border-radius: var(--r); padding: 13px 15px; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 11px; min-width: 220px;
  border: 1px solid var(--line-2);
}
.float-card .ic {
  width: 38px; height: 38px; border-radius: 12px; background: var(--green-100); color: var(--green);
  display: grid; place-items: center; flex: none;
}
.float-card .t { font-size: 12px; color: var(--muted); }
.float-card .v { font-weight: 750; font-size: 14px; color: var(--ink); }
.float-badge {
  position: absolute; right: 14px; top: 14px; background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px); border-radius: var(--r-pill); padding: 7px 13px;
  font-size: 12px; font-weight: 700; color: var(--green-800); display: flex; gap: 6px; align-items: center;
  box-shadow: var(--sh-sm);
}

/* ---- Trust strip (di bawah hero, index.html) ---- */
.trust-strip { border-block: 1px solid var(--line); background: var(--bg-soft); }
.trust-items {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; padding: 18px 0; margin: 0; list-style: none;
}
.trust-item { min-width: 0; }

.trust-card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 13px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .24s, box-shadow .24s, transform .24s, background .24s;
}
.trust-card:hover { border-color: var(--green-100); box-shadow: 0 10px 24px rgba(7,48,30,.1); transform: translateY(-2px); }
.trust-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.trust-ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
  transition: background .24s, color .24s, border-color .24s;
}
.trust-ic svg { width: 19px; height: 19px; }
.trust-card:hover .trust-ic { background: var(--green); color: #fff; border-color: var(--green); }

.trust-txt { min-width: 0; display: grid; gap: 2px; }
.trust-txt b { font-size: 13px; font-weight: 750; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.trust-txt small { font-size: 11px; line-height: 1.4; color: #5F6F65; }

@media (max-width: 1023px) {
  .trust-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .trust-items { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .trust-card { padding: 11px 12px; gap: 11px; }
  .trust-ic { width: 36px; height: 36px; border-radius: 10px; }
  .trust-ic svg { width: 17px; height: 17px; }
  .trust-txt b { font-size: 12.5px; }
  /* di HP cukup ikon + judul, sub-teks disembunyikan agar ringkas */
  .trust-txt small { display: none; }
}

/* ==========================================================================
   Bidang Gerak — Empat Pilar Program (index.html)
   ========================================================================== */
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .pillar-grid { grid-template-columns: 1fr; gap: 12px; } }

.pillar-card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  padding: 20px; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .26s, box-shadow .26s, transform .26s;
}
/* garis aksen atas */
.pillar-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-500));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { border-color: var(--green-100); box-shadow: 0 16px 36px rgba(7,48,30,.12); transform: translateY(-3px); }
.pillar-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.pillar-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
  margin-bottom: 13px; transition: background .26s, color .26s, border-color .26s, transform .26s;
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card:hover .pillar-icon { background: var(--green); color: #fff; border-color: var(--green); transform: scale(1.04); }

.pillar-name { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.3; }
.pillar-goal { margin: 7px 0 0; font-size: 12.75px; line-height: 1.6; color: #5A6B61; }

.pillar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pillar-chip {
  font-size: 10.5px; font-weight: 650; line-height: 1.3;
  color: #4B5C52; background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 4px 7px;
}
.pillar-chip--more { color: var(--green-700); background: var(--green-50); border-color: var(--green-100); font-weight: 800; }

.pillar-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line);
}
.pillar-count { font-size: 11.5px; font-weight: 750; color: var(--green-700); }
.pillar-go {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); flex: none;
  transition: background .26s, color .26s, transform .26s;
}
.pillar-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar-card:hover .pillar-go { background: var(--green); color: #fff; transform: translateX(3px); }

/* stagger muncul saat reveal */
.pillar-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

@media (max-width: 620px) {
  .pillar-card { padding: 17px; border-radius: 16px; }
  .pillar-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 11px; }
  .pillar-icon svg { width: 21px; height: 21px; }
  .pillar-name { font-size: 16px; }
  .pillar-goal { font-size: 12.5px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 6.5vw, 84px) 0; }
.section-soft { background: var(--bg-soft); }
.section-green { background: var(--green-900); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head .h2 { margin-top: 10px; }
.section-head p { margin-top: 8px; max-width: 520px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--green); white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Campaign cards ---------- */
.campaign-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.campaign-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--green-100); }
.campaign-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.campaign-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.campaign-card:hover .campaign-thumb img { transform: scale(1.045); }
.campaign-thumb .cat {
  position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.95); font-size: 11.5px; font-weight: 700; color: var(--green-800);
  box-shadow: var(--sh-xs);
}
.campaign-thumb .cat.gold { background: var(--yellow); color: var(--green-900); }
.campaign-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.campaign-title { font-size: 16px; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.campaign-money { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.campaign-money .raised { font-size: 16px; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.campaign-money .target { font-size: 12px; color: var(--muted); }
.campaign-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---------- Story / prose ---------- */
.prose { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 32px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 24px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose blockquote {
  border-left: 4px solid var(--yellow); background: var(--yellow-100);
  padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink); font-style: italic;
}
.prose img { border-radius: var(--r); }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Donation detail ---------- */
.detail-layout { display: grid; gap: 24px; }
.detail-main { min-width: 0; }
.detail-hero { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10; background: var(--green-100); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb svg { width: 13px; height: 13px; }
.donate-box {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh);
}
.donate-box .raised { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--green-700); }
.donate-box .of { font-size: 13.5px; color: var(--muted); }
.donate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; padding: 14px 0; border-block: 1px solid var(--line-2); }
.donate-stat .v { font-weight: 800; font-size: 15px; color: var(--ink); }
.donate-stat .l { font-size: 11.5px; color: var(--muted); }
.share-row { display: flex; gap: 8px; margin-top: 12px; }
.share-row .btn { flex: 1; }

.donor-list { display: flex; flex-direction: column; gap: 0; }
.donor-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.donor-item:last-child { border-bottom: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700); font-weight: 750; font-size: 14px;
  border: 2px solid #fff; box-shadow: var(--sh-xs);
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.alt1 { background: var(--yellow-100); color: #8A6400; }
.avatar.alt2 { background: #E8F0FE; color: #2F5FD0; }
.avatar.alt3 { background: #FDE8F1; color: #C2407A; }
.avatar.alt4 { background: #EAE6FD; color: #5B45C4; }

/* Steps */
.steps { display: grid; gap: 12px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: s; content: counter(s);
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.step .t { font-weight: 700; font-size: 15px; }
.step .d { font-size: 13.5px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; gap: 20px; }
.mini-campaign { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line-2); }
.mini-campaign img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: none; }
.bank-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: .16s;
}
.bank-opt + .bank-opt { margin-top: 8px; }
.bank-opt:hover { border-color: var(--green-100); }
.bank-opt input { accent-color: var(--green); width: 18px; height: 18px; }
.bank-opt.is-active { border-color: var(--green); background: var(--green-50); }
.bank-logo { width: 46px; height: 30px; border-radius: 6px; background: var(--green-900); color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; flex: none; }
/* Logo asli bank: plat putih + logo contain agar tetap terbaca & tidak gepeng */
.bank-logo.bank-logo-img { display: block; width: 54px; height: 34px; background: #fff; border: 1px solid var(--line); padding: 4px 6px; box-sizing: border-box; overflow: hidden; }
.bank-logo.bank-logo-img img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; color: var(--ink-2); }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 16px; color: var(--ink); }
.copy-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--green-50); border: 1px dashed var(--green-100); border-radius: var(--r-sm); padding: 12px 14px;
}
.copy-field .num { font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--green-900); font-variant-numeric: tabular-nums; }
.copy-btn { font-size: 12.5px; font-weight: 700; color: var(--green); padding: 6px 10px; border-radius: var(--r-xs); background: #fff; border: 1px solid var(--line); }
.copy-btn:hover { background: var(--green-100); }
.wa-preview {
  background: #E5DDD5; border-radius: var(--r); padding: 14px;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 12px 12px;
}
.wa-bubble {
  background: #DCF8C6; border-radius: 10px 0 10px 10px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.55; color: #111; white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); max-width: 100%; word-break: break-word;
}
.wa-time { text-align: right; font-size: 10.5px; color: #667781; margin-top: 4px; }

/* ---------- Auth: lihat assets/css/auth.css (kartu popup terpusat) ---------- */
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); background: var(--bg-soft); }
.sidebar {
  display: none; flex-direction: column; gap: 4px; background: #fff;
  border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.sidebar-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #93A29A; padding: 16px 12px 6px; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .16s;
}
.side-link svg { width: 18px; height: 18px; flex: none; color: #7A8C82; }
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.is-active { background: var(--green-100); color: var(--green-700); font-weight: 700; }
.side-link.is-active svg { color: var(--green); }
.side-link .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); background: var(--yellow); color: var(--green-900); }
.dash-main { padding: 20px 16px 96px; min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dash-head h1 { font-size: clamp(21px, 3vw, 27px); font-weight: 800; letter-spacing: -.03em; }
.dash-head p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.stat-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-100); color: var(--green); margin-bottom: 12px; }
.stat-card .ic svg { width: 17px; height: 17px; }
.stat-card .v { font-size: clamp(17px, 2.6vw, 22px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.stat-card .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-card .delta { font-size: 11.5px; font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; }
.stat-card .delta.up { color: var(--green); }
.stat-card .delta.down { color: var(--danger); }
.stat-card.accent { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.stat-card.accent .ic { background: rgba(247,201,72,.18); color: var(--yellow); }
.stat-card.accent .l { color: rgba(255,255,255,.65); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line-2); }
.panel-head h3 { font-size: 15.5px; font-weight: 750; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.panel + .panel { margin-top: 16px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 11px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: #FBFDFC; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 160px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh); padding: 6px; display: none;
}
.menu-pop.is-open { display: block; }
.menu-pop button, .menu-pop a {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--r-xs); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.menu-pop button:hover, .menu-pop a:hover { background: var(--bg-soft); }
.menu-pop button.danger { color: var(--danger); }
.menu-pop svg { width: 15px; height: 15px; }

.list-rows { display: flex; flex-direction: column; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.row-item:last-child { border-bottom: 0; }
.row-item .grow { min-width: 0; }
.row-item .t { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .v { font-weight: 750; font-size: 13.5px; white-space: nowrap; }

.empty { text-align: center; padding: 40px 20px; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
.empty h4 { font-size: 15px; }
.empty p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(7,48,30,.45);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  opacity: 0; pointer-events: none; transition: opacity .22s; backdrop-filter: blur(3px);
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 22px 20px calc(22px + var(--safe-b));
  transform: translateY(18px); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.modal-close:hover { background: var(--line); }
.modal-close svg { width: 17px; height: 17px; }
.modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.modal-foot .btn { flex: 1; }

/* Toast */
.toast-wrap { position: fixed; z-index: 200; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; background: var(--green-900); color: #fff;
  padding: 13px 15px; border-radius: var(--r); box-shadow: var(--sh-lg); font-size: 14px;
  animation: toastIn .28s cubic-bezier(.2,.8,.2,1); pointer-events: auto;
}
.toast svg { width: 18px; height: 18px; flex: none; color: var(--yellow); margin-top: 1px; }
.toast.err { background: var(--danger); }
.toast.err svg { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 12px 14px; font-size: 13.5px; font-weight: 650; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--green-700); border-bottom-color: var(--green); }

/* Article cards */
.article-card { display: flex; gap: 14px; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: .2s; }
.article-card:hover { box-shadow: var(--sh); border-color: var(--green-100); transform: translateY(-2px); }
.article-card .thumb { width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--green-100); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.article-card h3 { font-size: 15px; font-weight: 750; line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-feature { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; }
.article-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,48,30,.92), rgba(7,48,30,.25) 55%, transparent); }
.article-feature .body { position: relative; z-index: 1; padding: 24px; max-width: 640px; }
.article-feature h2 { font-size: clamp(20px, 3vw, 28px); margin-top: 8px; }
.article-feature p { font-size: 13.5px; color: rgba(255,255,255,.82); margin-top: 8px; }
.article-list { display: flex; flex-direction: column; gap: 12px; }

/* About page */
.about-hero { background: linear-gradient(160deg, var(--green-900), var(--green-800) 55%, var(--green-700)); color: #fff; border-radius: 0 0 40px 40px; overflow: hidden; position: relative; padding: 46px 0 54px; }
.about-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.28), transparent 65%);
}
.value-grid { display: grid; gap: 14px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.value-card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--green-100); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.value-card .ic svg { width: 21px; height: 21px; }
.value-card h3 { font-size: 16px; }
.value-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--green-100); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--green-500); }
.tl-item .yr { font-size: 12px; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.tl-item h4 { font-size: 15px; margin-top: 2px; }
.tl-item p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.person-card { text-align: center; }
.person-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; background: var(--green-100); border: 4px solid #fff; box-shadow: var(--sh-sm); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card .n { font-weight: 750; font-size: 15px; }
.person-card .r { font-size: 12.5px; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.contact-layout > * { min-width: 0; }
.info-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.info-item:last-child { border-bottom: 0; }
.info-item > div { min-width: 0; }
.info-item .v { overflow-wrap: anywhere; word-break: break-word; }
.info-item .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-100); color: var(--green); display: grid; place-items: center; flex: none; }
.info-item .ic svg { width: 18px; height: 18px; }
.info-item .t { font-size: 12.5px; color: var(--muted); }
.info-item .v { font-size: 14px; font-weight: 650; }
.map-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--green-50); display: grid; place-items: center; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 650; font-size: 14px; text-align: left; }
.faq-q svg { width: 18px; height: 18px; color: var(--muted); transition: transform .22s; flex: none; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--green); }
.faq-a { display: none; padding: 0 16px 15px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.faq-item.is-open .faq-a { display: block; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; padding: clamp(26px, 5vw, 46px);
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.35), transparent 65%);
}
.cta-band h2 { font-size: clamp(22px, 3.4vw, 32px); max-width: 520px; position: relative; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.82); max-width: 480px; position: relative; font-size: 14.5px; }
.cta-band .btn { margin-top: 20px; position: relative; }

/* Footer */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.72); padding: 46px 0 calc(28px + var(--safe-b)); }
.footer-grid { display: grid; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--yellow); }
/* logo asli berwarna hijau-oranye: beri plat putih agar tetap terbaca di atas hijau tua */
.site-footer img.brand-logo { background: #fff; border-radius: 11px; padding: 4px; box-sizing: border-box; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-links a:hover { color: var(--yellow); }
.footer-desc { font-size: 13.5px; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .18s; }
.social-btn:hover { background: var(--yellow); color: var(--green-900); }
.social-btn svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; }
.footer-bottom a:hover { color: var(--yellow); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .campaign-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(4, 1fr); }
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: var(--r-xl); padding-bottom: 24px; }
  .toast-wrap { bottom: 24px; }
}

@media (min-width: 768px) {
  .container { padding-inline: 28px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 372px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-main { padding: 26px 24px 60px; }
  .campaign-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .article-card { align-items: center; }
  .article-card .thumb { width: 150px; height: 104px; }
  .article-card h3 { font-size: 16.5px; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .persons-grid { grid-template-columns: repeat(4, 1fr); }
  .timeline.two-col { padding-left: 0; }
  .timeline.two-col::before { display: none; }
  .tl-item { padding-left: 26px; }
  .hero-media .float-card { left: -28px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 74px; }
  .dash { grid-template-columns: 250px minmax(0, 1fr); }
  .sidebar { display: flex; }
  .nav-toggle { display: none !important; }
  .hero { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
  .hero-media .main-img { aspect-ratio: 4 / 4.3; }
  .persons-grid { grid-template-columns: repeat(4, 1fr); }
  .about-hero { padding: 64px 0 72px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  /* Keep the 5-item desktop nav on one line on smaller laptops */
  .header-inner { gap: 10px; }
  .nav-link { padding: 8px 9px; font-size: 13.5px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .1em; }
  .header-actions .btn-sm { padding-inline: 11px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .site-header { position: sticky; top: 0; }
  .header-inner { height: var(--header-h); gap: 10px; padding-inline: 16px; }
  .nav { display: none; }
  /* Header actions are the only element left in the bar -> push them to the trailing edge */
  .header-actions { margin-left: auto; gap: 0; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 42px; height: 42px; margin-right: -6px; /* optical alignment to the 16px gutter */
    border-radius: 12px;
    background: var(--green-50); color: var(--green-700);
    border: 1px solid var(--green-100);
    transition: background .18s, color .18s, transform .18s;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle svg { width: 21px; height: 21px; }
  .nav-toggle:hover { background: var(--green-100); }
  .nav-toggle:active { transform: scale(.94); background: var(--green-100); }
  .nav-toggle[aria-expanded="true"] { background: var(--green); border-color: var(--green); color: #fff; }
  .brand { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { font-size: 9.5px; letter-spacing: .12em; }
  .header-actions .btn.desk-only { display: none; }
  /* Sticky bar needs its own stacking context so the accent line sits on the border */
  .site-header { isolation: isolate; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b));
    justify-content: space-around; align-items: center;
    box-shadow: 0 -6px 24px rgba(10,40,25,.05);
  }
  /* min-width:0 + flex:1 agar 5 item muat di layar 320px tanpa overflow */
  .bnav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 4px; border-radius: 12px; font-size: 10.5px; font-weight: 650; color: #8A9A91; flex: 1 1 0; min-width: 0; text-align: center; }
  .bnav-item svg { width: 21px; height: 21px; flex: none; }
  .bnav-item > span { line-height: 1.15; white-space: nowrap; }
  .bnav-item.is-active { color: var(--green); }
  .bnav-donate { flex: 0 0 auto; min-width: 56px; margin-top: -22px; }
  .bnav-donate .disc {
    width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff;
    display: grid; place-items: center; box-shadow: 0 8px 20px rgba(14,122,75,.35); border: 4px solid #fff;
  }
  .bnav-donate .disc svg { width: 22px; height: 22px; }
  .bnav-donate .lbl { color: var(--green); margin-top: 2px; }
  .site-footer { padding-bottom: calc(84px + var(--safe-b)); }
  body.has-bottom-nav .dash-main { padding-bottom: 96px; }
}

@media (max-width: 559px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { gap: 8px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .modal-foot { flex-direction: column-reverse; }
  .table { min-width: 560px; }
  .donate-box { position: static; }
}

/* ==========================================================================
   Page hero (halaman internal)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--green-900), var(--green-800) 55%, var(--green-700));
  color: #fff; border-radius: 0 0 32px 32px; overflow: hidden; position: relative;
  padding: clamp(28px, 5vw, 54px) 0 clamp(34px, 6vw, 62px);
}
.page-hero::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.26), transparent 65%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(26px, 4.4vw, 42px); letter-spacing: -.03em; }
.page-hero .hero-stat .num { color: #fff; }
.page-hero .hero-stat .lbl { color: rgba(255, 255, 255, .78); }

.stat-grid .num { font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; letter-spacing: -.03em; color: var(--green-900); }
.stat-grid .lbl { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* Auth */
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--bg-soft); color: var(--ink); }
.pw-toggle svg { width: 18px; height: 18px; }
.strength { display: flex; gap: 4px; margin-top: 8px; }
.strength span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background .2s; }
.strength.s1 span:nth-child(1) { background: var(--danger); }
.strength.s2 span:nth-child(-n+2) { background: var(--warn); }
.strength.s3 span:nth-child(-n+3) { background: var(--yellow-600); }
.strength.s4 span { background: var(--green); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 16px; border-radius: var(--r-pill);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
  transition: transform .18s, box-shadow .18s, background .18s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, .46); background: #1FBF5B; color: #fff; }
.wa-float-ic { flex: none; }
body.has-bottom-nav .wa-float { bottom: calc(84px + var(--safe-b)); }
@media (max-width: 559px) {
  .wa-float { right: 14px; bottom: calc(14px + var(--safe-b)); padding: 12px; }
  body.has-bottom-nav .wa-float { bottom: calc(80px + var(--safe-b)); }
  .wa-float-txt { display: none; }
}

/* Back to top — bertumpuk di atas tombol WhatsApp dengan offset tetap */
.to-top {
  position: fixed; right: 20px; bottom: calc(84px + var(--safe-b)); z-index: 59;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--green-700); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(7, 48, 30, .16);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background .18s, color .18s, box-shadow .18s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(14, 122, 75, .32); }
.to-top:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
body.has-bottom-nav .to-top { bottom: calc(148px + var(--safe-b)); }
@media (max-width: 559px) {
  .to-top { right: 14px; bottom: calc(74px + var(--safe-b)); width: 42px; height: 42px; }
  body.has-bottom-nav .to-top { bottom: calc(138px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .01s, visibility .01s; transform: none; }
}
@media print { .to-top { display: none !important; } }

/* ==========================================================================
   Konten organisasi: profil, visi-misi, nilai, pilar program, laporan
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 4vw, 52px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); background: var(--green-50); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-800); font-size: 13px; font-weight: 600; border: 1px solid var(--green-100); }

.value-grid.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-grid.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .value-grid.cols-3, .value-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) { .value-grid.cols-3, .value-grid.cols-2 { grid-template-columns: 1fr; } }
.value-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: 12px; }

.check-list { display: grid; gap: 12px; }
.check-list li, .check-list .row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.check-list svg { flex: none; margin-top: 2px; color: var(--green); }

/* ==========================================================================
   Struktur Organisasi (tentang.html#struktur) — bagan berjenjang
   ========================================================================== */
.org-sec { position: relative; }
.org-flow { display: grid; }

/* kartu per jenjang */
.org-tier {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: 0 1px 2px rgba(7,48,30,.04);
  transition: box-shadow .25s, border-color .25s;
}
.org-tier:hover { border-color: var(--green-100); box-shadow: 0 12px 30px rgba(7,48,30,.08); }

.org-tier-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.org-tier-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.org-tier-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.org-tier-txt { flex: 1; min-width: 0; }
.org-tier-step { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.org-tier-name { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.015em; line-height: 1.3; }
.org-tier-desc { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; color: #606F66; }
.org-tier-count {
  flex: none; align-self: center; font-size: 11px; font-weight: 750; color: #606F66;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}

/* daftar orang */
.org-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; margin-top: 14px; }
.org-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 13px; background: var(--bg-soft); border: 1px solid var(--line-2);
  transition: background .22s, border-color .22s, box-shadow .22s, transform .22s;
}
.org-card:hover { background: #fff; border-color: var(--green-100); box-shadow: 0 8px 20px rgba(7,48,30,.09); transform: translateY(-1px); }
.org-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-100), var(--green-50));
  color: var(--green-800); font-weight: 800; font-size: 14.5px; letter-spacing: .02em;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(7,48,30,.1);
}
.org-info { min-width: 0; }
.org-name { margin: 0; font-size: 14px; font-weight: 750; color: var(--ink); line-height: 1.3; }
.org-role { margin: 2px 0 0; font-size: 12px; color: #606F66; line-height: 1.4; }
.org-found {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #7A5F0C; background: var(--yellow-100); border-radius: 999px; padding: 2px 8px 2px 6px;
}
.org-found svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }

/* penghubung antar jenjang */
.org-link { position: relative; display: grid; place-items: center; height: 40px; }
.org-link::before {
  content: ""; width: 2px; height: 100%; border-radius: 2px;
  background: linear-gradient(180deg, var(--green-100), var(--green-500), var(--green-100));
}
.org-link span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  border: 2px solid var(--green-500); box-shadow: 0 0 0 4px var(--bg-soft);
}

@media (max-width: 620px) {
  .org-tier { padding: 16px; border-radius: 16px; }
  .org-tier-head { gap: 10px; padding-bottom: 12px; flex-wrap: wrap; }
  .org-tier-ic { width: 34px; height: 34px; border-radius: 10px; }
  .org-tier-ic svg { width: 16px; height: 16px; }
  .org-tier-name { font-size: 15px; }
  .org-tier-desc { font-size: 12px; }
  .org-tier-count { font-size: 10.5px; padding: 3px 8px; }
  .org-people { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .org-card { padding: 11px; }
  .org-avatar { width: 42px; height: 42px; font-size: 13.5px; }
  .org-link { height: 32px; }
}

/* ==========================================================================
   Filosofi Logo (tentang.html) — panggung logo + daftar elemen
   ========================================================================== */
.logo-sec { position: relative; }
.logo-wrap { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 960px) { .logo-wrap { grid-template-columns: 1fr; gap: 24px; } }

/* --- Panggung logo --- */
.logo-stage {
  position: sticky; top: 88px;
  border-radius: 24px; padding: 34px 24px 26px; overflow: hidden;
  background: linear-gradient(170deg, #FFFFFF 0%, var(--green-50) 100%);
  border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(7,48,30,.08);
  text-align: center;
}
@media (max-width: 960px) { .logo-stage { position: static; } }

/* cincin dekoratif di belakang logo */
.logo-stage-rings { position: absolute; inset: 0; pointer-events: none; }
.logo-stage-rings::before, .logo-stage-rings::after {
  content: ""; position: absolute; left: 50%; top: 34px; transform: translateX(-50%);
  border-radius: 50%; border: 1px dashed var(--green-100);
}
.logo-stage-rings::before { width: 270px; height: 270px; }
.logo-stage-rings::after { width: 210px; height: 210px; border-style: solid; border-color: var(--green-50); }

.logo-plate {
  position: relative; z-index: 1; width: 196px; height: 196px; margin: 0 auto;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; box-shadow: 0 10px 30px rgba(7,48,30,.12), 0 0 0 8px rgba(255,255,255,.65);
}
.logo-plate img { width: 188px; height: 188px; object-fit: contain; display: block; border-radius: 50%; }

.logo-legend { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 26px; text-align: left; }
.logo-swatch { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.78); border: 1px solid var(--line); }
.logo-swatch .dot { flex: none; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(7,48,30,.24); }
.logo-swatch .txt { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.logo-swatch .txt b { display: block; font-size: 12px; font-weight: 750; color: var(--ink); }

/* --- Daftar elemen --- */
.logo-elements { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.logo-el {
  position: relative; display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 20px 20px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.logo-el:hover { border-color: var(--green-100); box-shadow: 0 12px 30px rgba(7,48,30,.09); transform: translateY(-2px); }
.logo-el-num {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  /* teks digelapkan agar kontras ≥ 4.5:1 di atas tint warna logo */
  color: color-mix(in srgb, var(--dot, var(--green)) 55%, #000);
  background: color-mix(in srgb, var(--dot, var(--green)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--dot, var(--green)) 26%, #fff);
}
.logo-el-body { min-width: 0; }
.logo-el-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.logo-el-title { margin: 0; font-size: 15px; font-weight: 780; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; flex: 1 1 200px; }
.logo-el-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  color: color-mix(in srgb, var(--dot) 55%, #000);
  background: color-mix(in srgb, var(--dot) 12%, #fff);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.logo-el-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1px rgba(7,48,30,.18); }
.logo-el-text { margin: 7px 0 0; font-size: 13.5px; line-height: 1.72; color: var(--muted); }

@media (max-width: 620px) {
  .logo-stage { padding: 26px 18px 20px; }
  .logo-plate { width: 168px; height: 168px; }
  .logo-plate img { width: 160px; height: 160px; }
  .logo-stage-rings::before { width: 228px; height: 228px; top: 26px; }
  .logo-stage-rings::after { width: 176px; height: 176px; top: 26px; }
  .logo-el { padding: 16px; gap: 13px; }
  .logo-el-num { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .logo-el-title { font-size: 14.5px; }
  .logo-el-text { font-size: 13px; line-height: 1.68; }
}

/* ==========================================================================
   Laporan Keuangan Audited (transparansi.html#keuangan)
   ========================================================================== */
.fin-sec { position: relative; }

/* --- ringkasan utama --- */
.fin-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .fin-hero { grid-template-columns: 1fr; } }

.fin-hero-main {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 24px 24px 22px;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 58%, var(--green-700) 100%);
  color: #fff; box-shadow: 0 16px 40px rgba(7,48,30,.2);
}
.fin-hero-main::after {
  content: ""; position: absolute; pointer-events: none; width: 230px; height: 230px;
  right: -80px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.2), transparent 70%);
}
.fin-label {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.fin-year {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; padding: 1px 7px; font-size: 11px; letter-spacing: .02em;
}
.fin-big {
  position: relative; margin-top: 10px;
  font-size: clamp(26px, 4.4vw, 38px); font-weight: 850; letter-spacing: -.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fin-sub { position: relative; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.76); line-height: 1.5; }

.fin-meter {
  position: relative; height: 10px; margin-top: 18px; border-radius: 99px;
  background: rgba(255,255,255,.14); overflow: hidden;
}
.fin-meter span {
  display: block; height: 100%; border-radius: 99px; width: 0;
  background: linear-gradient(90deg, var(--yellow), #FFDD7A);
  transition: width 1s cubic-bezier(.22,.61,.36,1);
}
.fin-meter-legend {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px;
  font-size: 11.5px; color: rgba(255,255,255,.78);
}
.fin-meter-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-meter-legend b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.fin-meter-legend .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fin-meter-legend .d-in { background: rgba(255,255,255,.5); }
.fin-meter-legend .d-out { background: var(--yellow); }

.fin-hero-side { display: grid; gap: 12px; align-content: start; }
.fin-stat {
  display: flex; align-items: flex-start; gap: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  transition: border-color .24s, box-shadow .24s;
}
.fin-stat:hover { border-color: var(--green-100); box-shadow: 0 8px 22px rgba(7,48,30,.08); }
.fin-stat-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.fin-stat-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fin-stat-l { display: block; font-size: 11.5px; font-weight: 700; color: #5F6F65; letter-spacing: .02em; }
.fin-stat-v { display: block; margin-top: 2px; font-size: 18px; font-weight: 820; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fin-stat-s { display: block; margin-top: 1px; font-size: 11px; color: #5F6F65; line-height: 1.4; }

/* --- grid alokasi + audit --- */
.fin-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .fin-grid { grid-template-columns: 1fr; } }

.fin-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.fin-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.fin-card-title { margin: 0; font-size: 15px; font-weight: 780; color: var(--ink); letter-spacing: -.01em; }
.fin-card-note {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-50); border-radius: 999px; padding: 3px 9px;
}

/* alokasi: bar horizontal */
.alloc-list { display: grid; gap: 15px; }
.alloc-row { --c: var(--green); }
.alloc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.alloc-name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.alloc-pct { font-size: 13px; font-weight: 820; color: var(--ink); font-variant-numeric: tabular-nums; }
.alloc-track { height: 9px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.alloc-track span {
  display: block; height: 100%; border-radius: 99px; background: var(--c);
  transition: width .9s cubic-bezier(.22,.61,.36,1);
}

/* --- kartu audit --- */
.fin-audit {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--green-100); border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 28px rgba(7,48,30,.07);
}
.fin-audit::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow));
}
.fin-audit-seal {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); margin-bottom: 13px;
}
.fin-audit-seal svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fin-audit-title { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.35; color: var(--ink); letter-spacing: -.015em; }
.fin-audit-text { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: #5A6B61; }
.fin-audit-list { list-style: none; margin: 15px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 9px; }
.fin-audit-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #5A6B61; }
.fin-audit-list li svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--green); stroke-width: 2; }
.fin-audit-list b { color: var(--ink); font-weight: 750; }
.fin-audit .btn { margin-top: 18px; font-weight: 760; }
.fin-audit-note { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: #5F6F65; text-align: center; }

@media (max-width: 620px) {
  .fin-hero-main { padding: 20px 18px; border-radius: 18px; }
  .fin-big { font-size: 27px; }
  .fin-stat { padding: 14px; }
  .fin-stat-v { font-size: 16.5px; }
  .fin-card, .fin-audit { padding: 16px; border-radius: 16px; }
  .fin-card-head { flex-wrap: wrap; gap: 6px; }
  .alloc-list { gap: 13px; }
}

/* ==========================================================================
   Legalitas (tentang.html#legalitas) — kartu verifikasi + grid dokumen
   ========================================================================== */
.legal-sec { position: relative; overflow: hidden; }
.legal-sec::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 620px; height: 620px; right: -220px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, var(--green-50) 0%, rgba(243,250,246,0) 68%);
}
.legal-sec > .container { position: relative; z-index: 1; }

.legal-wrap { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .legal-wrap { grid-template-columns: 1fr; } }

/* --- Kartu verifikasi --- */
.legal-verify {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 26px 24px 24px;
  background: linear-gradient(165deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: #fff; box-shadow: 0 18px 44px rgba(7, 48, 30, .22);
}
.legal-verify::after {
  content: ""; position: absolute; pointer-events: none;
  width: 210px; height: 210px; right: -70px; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,201,72,.22), transparent 70%);
}
.legal-ribbon {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: var(--yellow); color: var(--green-900);
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 7px 14px 7px 18px; border-bottom-left-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.legal-seal {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: var(--yellow);
}
.legal-seal svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legal-verify-name { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; margin: 0; color: #fff; }
.legal-verify-sub { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.68); }

.legal-verify-list { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 13px; }
.legal-verify-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
.legal-verify-list svg { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--yellow); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.legal-verify-list li:empty { display: none; }

.legal-cta { position: relative; z-index: 1; margin-top: 22px; }
.legal-cta .btn { font-weight: 750; }
.legal-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.6); text-align: center; }

/* --- Grid dokumen --- */
.legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .legal-grid { grid-template-columns: 1fr; } }

.legal-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 18px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.legal-card::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--green); opacity: 0; transition: opacity .25s;
}
.legal-card:hover { border-color: var(--green-100); box-shadow: 0 10px 26px rgba(7,48,30,.09); transform: translateY(-2px); }
.legal-card:hover::before { opacity: 1; }
.legal-card-ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
  transition: background .25s, color .25s;
}
.legal-card-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legal-card:hover .legal-card-ic { background: var(--green); color: #fff; border-color: var(--green); }
.legal-card-body { min-width: 0; padding-right: 18px; }
.legal-card-tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-50); border-radius: 5px; padding: 2px 6px; margin-bottom: 6px;
}
.legal-card-label { margin: 0; font-size: 13px; font-weight: 750; color: var(--ink); line-height: 1.35; }
.legal-card-value { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.legal-card-check {
  position: absolute; top: 16px; right: 14px; color: var(--green-500); opacity: .55;
}
.legal-card-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Lebar penuh untuk butir "Prinsip" (teks panjang) */
.legal-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Mobile: kartu verifikasi lebih ringkas */
@media (max-width: 960px) {
  .legal-verify { padding: 22px 20px; }
  .legal-verify-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .legal-verify-list { grid-template-columns: 1fr; }
  .legal-card { padding: 16px; }
  .legal-card-ic { width: 38px; height: 38px; border-radius: 11px; }
}

.report-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .18s, box-shadow .18s; }
.report-row:hover { border-color: var(--green-100); box-shadow: var(--sh-sm); }
.report-row .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green); flex: none; }
.report-row .meta { font-size: 12.5px; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--green-50); display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(7,32,20,.82)); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.gallery-item .play-ic { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.gallery-item .play-ic svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.gallery-item .dur { position: absolute; top: 8px; right: 8px; background: rgba(7,32,20,.75); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }

/* ---- Galeri dokumentasi: kartu klik + hover zoom (transparansi.html) ---- */
.gal-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; background: var(--green-50); text-align: left; font: inherit; color: inherit;
  box-shadow: 0 1px 2px rgba(7,48,30,.06); transition: box-shadow .28s, transform .28s;
}
.gal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.gal-card:hover { box-shadow: 0 14px 32px rgba(7,48,30,.18); transform: translateY(-2px); }
.gal-card:hover img, .gal-card:focus-visible img { transform: scale(1.07); }
.gal-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.gal-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 34px 12px 11px;
  background: linear-gradient(transparent, rgba(7,32,20,.86)); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
}
.gal-card .cap small { display: block; font-weight: 500; opacity: .8; font-size: 11px; margin-top: 2px; }
.gal-card .zoom-ic {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--green-900); display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; box-shadow: 0 2px 8px rgba(7,48,30,.22);
}
.gal-card .zoom-ic svg { width: 15px; height: 15px; }
.gal-card:hover .zoom-ic, .gal-card:focus-visible .zoom-ic { opacity: 1; transform: scale(1); }
.gal-card .album-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px;
  background: rgba(7,48,30,.62); backdrop-filter: blur(4px); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
@media (hover: none) { .gal-card .zoom-ic { opacity: 1; transform: scale(1); } }

/* Varian kartu video (media.html) — rasio 16:9 + tombol play */
.gal-card--video { cursor: pointer; }
.gal-card--video img { aspect-ratio: 16 / 9; }
.gal-card--video .play-ic {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  pointer-events: none; transition: transform .28s;
}
.gal-card--video .play-ic svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.gal-card--video:hover .play-ic { transform: scale(1.08); }
.gal-card--video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(7,32,20,.18); transition: background .28s;
}
.gal-card--video:hover::after { background: rgba(7,32,20,.06); }
.gal-card--video .dur {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(7,32,20,.78); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Welcome popup — ajakan donasi (program acak)
   ========================================================================== */
.welcome-bd {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  padding: 20px; background: rgba(7, 32, 20, .62); backdrop-filter: blur(5px);
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
}
.welcome-bd.is-open { opacity: 1; pointer-events: auto; }

.welcome {
  position: relative; width: min(100%, 430px); max-height: calc(100vh - 40px);
  overflow: hidden auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), opacity .32s;
}
.welcome-bd.is-open .welcome { transform: none; opacity: 1; }

.welcome-x {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(7, 32, 20, .52); backdrop-filter: blur(6px);
  transition: background .2s, transform .2s;
}
.welcome-x:hover { background: rgba(7, 32, 20, .72); }
.welcome-x:active { transform: scale(.92); }
.welcome-x svg { width: 16px; height: 16px; }

/* --- gambar --- */
.welcome-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50); }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,32,20,.34) 0%, transparent 38%, transparent 62%, rgba(7,32,20,.5) 100%);
}
.welcome-tag {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.94); color: var(--green-800);
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.16);
}
.welcome-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.welcome-media .welcome-tag:has(svg) { color: #8A5B00; }

/* --- isi --- */
.welcome-body { padding: 18px 20px 20px; }
.welcome-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-700);
}
.welcome-eyebrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.welcome-title { margin: 0; font-size: 18.5px; font-weight: 820; line-height: 1.32; letter-spacing: -.02em; color: var(--ink); }
.welcome-sum { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #5A6B61; }

.welcome-bar { height: 8px; border-radius: 99px; background: var(--green-50); overflow: hidden; margin-top: 16px; }
.welcome-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.welcome-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; font-size: 11.5px; color: #5A6B61; }
.welcome-stats b { color: var(--green-800); font-weight: 800; }

.welcome-actions { display: grid; gap: 8px; margin-top: 16px; }
.welcome-actions .btn { font-weight: 760; }
.welcome-foot {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: 11px 0 0; font-size: 11px; color: #5F6F65; text-align: center;
}
.welcome-foot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }

@media (max-width: 480px) {
  .welcome-bd { padding: 14px; align-items: end; }
  .welcome { width: 100%; border-radius: 20px; max-height: calc(100dvh - 28px); }
  .welcome-media { aspect-ratio: 16 / 9; }
  .welcome-body { padding: 16px 16px 18px; }
  .welcome-title { font-size: 17px; }
  .welcome-sum { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-bd, .welcome { transition: none; }
}

/* ==========================================================================
   Lightbox galeri (popup + slide)
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
  background: rgba(6, 22, 15, .94); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .24s ease;
}
.lb.is-open { opacity: 1; }
.lb-bar {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; color: #fff; flex: none;
}
.lb-count { font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .9; font-variant-numeric: tabular-nums; }
.lb-actions { margin-left: auto; display: flex; gap: 8px; }
.lb-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn:active { transform: scale(.94); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-btn.is-on { background: var(--green); border-color: var(--green); }

.lb-stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.lb-stage.can-pan { touch-action: none; cursor: grab; }
.lb-track { display: flex; height: 100%; transition: transform .38s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.lb-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 0 16px; }
.lb-slide img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: transform .3s ease; cursor: zoom-in;
  -webkit-user-drag: none;
}
.lb-slide.is-zoomed img { cursor: zoom-in; box-shadow: none; }
.lb-stage.can-pan { cursor: grab; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, opacity .2s, transform .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-nav:active { transform: translateY(-50%) scale(.94); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb.is-single .lb-nav, .lb.is-single .lb-dots { display: none; }

.lb-foot {
  flex: none; display: flex; align-items: flex-end; gap: 16px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); color: #fff;
}
.lb-cap-wrap { min-width: 0; }
.lb-title { font-size: 15.5px; font-weight: 750; line-height: 1.35; margin: 0; }
.lb-meta { margin: 3px 0 0; font-size: 12.5px; opacity: .72; }
.lb-dots { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.lb-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.32); transition: background .2s, width .2s;
}
.lb-dot.is-active { background: var(--yellow); width: 20px; border-radius: 4px; }

@media (max-width: 700px) {
  .lb-slide { padding: 0 6px; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav svg { width: 18px; height: 18px; }
  .lb-foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .lb-title { font-size: 14px; }
  .lb-dots { max-width: 40%; }
}

.agenda-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.agenda-date { flex: none; width: 60px; text-align: center; border-radius: 12px; background: var(--green-50); color: var(--green-800); padding: 8px 4px; }
.agenda-date .d { font-size: 20px; font-weight: 800; line-height: 1; }
.agenda-date .m { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
.partner-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.partner-card .av { width: 40px; height: 40px; border-radius: 10px; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; font-weight: 800; flex: none; }

/* Kalkulator zakat */
.calc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result { background: linear-gradient(160deg, var(--green-800), var(--green-700)); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.calc-result .lbl { font-size: 13px; opacity: .82; }
.calc-result .val { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 10px; }
.calc-result .note { font-size: 12.5px; opacity: .84; line-height: 1.55; }
.tabs .tab { }
.gabung-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .gabung-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Responsif tambahan: grid pilar & strip kepercayaan
   ========================================================================== */
.field-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1023px) {
  #typeGrid, #joinSteps, #reportStats, .field-nav { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 559px) {
  #typeGrid, #joinSteps, #reportStats, #impactGrid, .field-nav { grid-template-columns: 1fr !important; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs .tab { flex: none; white-space: nowrap; }
  .calc-grid > *, .split > *, .value-grid > *, .partner-grid > *, .gallery-grid > * { min-width: 0; }
  .calc-grid .card { overflow: hidden; }
  img, iframe, svg { max-width: 100%; }
}


/* ---- Embed YouTube (galeri video publik) ---- */
.yt-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
button.gallery-item { border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* ==========================================================================
   Pelacakan kode donasi (donasi.html · akun.html · checkout.html)
   ========================================================================== */
.code-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--green-50); border: 1px dashed var(--green-500);
  color: var(--green-800); cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.8px; font-weight: 700; letter-spacing: .02em;
  transition: background .18s, border-color .18s;
}
.code-chip:hover { background: var(--green-100); border-color: var(--green); }
.code-chip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.code-chip svg { flex: none; opacity: .7; }
.code-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.track-row {
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  display: grid; gap: 8px; background: #fff;
}
.track-row + .track-row { margin-top: 10px; }
.track-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.track-amount { font-size: clamp(18px, 2.6vw, 22px); font-weight: 800; letter-spacing: -.03em; color: var(--green-800); }
.track-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.track-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.track-summary {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px;
  border-radius: var(--r-sm); background: var(--green-50); color: var(--green-800); font-size: 13px;
}
.track-summary svg { flex: none; }
.track-missing {
  margin-top: 10px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--yellow-100); color: #6B4E00; font-size: 12.8px; line-height: 1.6;
}
.track-missing code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 5px;
}
