/* ===========================================================
   Volunteer Day · GMS Purwokerto — Gallery
   Tema: golden-hour editorial dark. Foto jadi bintang,
   chrome-nya hangat & berkarakter.
   =========================================================== */

:root {
  --bg:        #15110b;
  --bg-2:      #1c1710;
  --surface:   #221b12;
  --surface-2: #2c2417;
  --line:      rgba(244, 236, 224, 0.09);
  --line-2:    rgba(244, 236, 224, 0.16);
  --text:      #f5ede0;
  --muted:     #b3a489;
  --faint:     #7d7058;
  --gold:      #f0a838;
  --gold-soft: #f5c46b;
  --coral:     #e8623f;
  --ok:        #7fb069;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 50px -20px rgba(0,0,0,0.8);
  --maxw:      1340px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240,168,56,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232,98,63,0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(21,17,11,0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  color: #2a1c08;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 18px -6px rgba(240,168,56,0.7), inset 0 1px 0 rgba(255,255,255,.4);
  letter-spacing: -1px;
}
.brand-text h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 19px; line-height: 1; letter-spacing: -0.02em;
}
.brand-text span { font-size: 11.5px; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; margin-left: 6px; flex: 1; }
.tabs a {
  position: relative; padding: 9px 15px; border-radius: 99px;
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: color .18s, background .18s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #2a1c08; background: linear-gradient(145deg, var(--gold-soft), var(--gold)); }

.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); padding: 9px 14px; border-radius: 99px;
  font-weight: 600; font-size: 13.5px; transition: .15s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.icon-btn.active { background: var(--gold); color: #2a1c08; border-color: var(--gold); }
.icon-btn.ghost { padding: 9px 12px; }

/* ---------------- Index banner ---------------- */
.index-banner {
  position: sticky; top: 70px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  margin: 10px clamp(16px,4vw,40px); padding: 10px 16px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 99px; font-size: 13.5px; color: var(--muted);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 0 0 rgba(240,168,56,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(240,168,56,0); } 100% { box-shadow: 0 0 0 0 rgba(240,168,56,0); } }
.index-bar { flex: 1; height: 5px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.index-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--coral), var(--gold)); transition: width .4s; }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(34px,6vw,72px) clamp(16px,4vw,40px) clamp(10px,2vw,18px); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-kicker {
  margin: 0 0 10px; font-size: 12.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.hero-title {
  margin: 0; font-family: var(--font-display);
  font-weight: 900; font-size: clamp(40px, 8vw, 86px); line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, #fff7e9 10%, var(--gold-soft) 55%, var(--coral) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title em { font-style: italic; font-weight: 500; }
.hero-tagline { margin: 16px 0 0; max-width: 520px; color: var(--muted); font-size: clamp(15px,2vw,18px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; }
.stat .lab { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }

/* ---------------- Toolbar ---------------- */
.toolbar {
  position: relative; z-index: 5;
  max-width: var(--maxw); margin: 0 auto; padding: 8px clamp(16px,4vw,40px) 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.toolbar-left { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; }
.toolbar-left .back { font-size: 14px; font-family: var(--font-body); color: var(--muted); cursor: pointer; }
.toolbar-left .back:hover { color: var(--gold); }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.select, .search-input {
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 99px; padding: 9px 14px; font-family: inherit; font-size: 13.5px;
}
.search-input { min-width: 220px; }
.select:focus, .search-input:focus { outline: none; border-color: var(--gold); }

/* ---------------- Main / grid ---------------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 14px clamp(16px,4vw,40px) 120px; position: relative; z-index: 4; }

/* justified photo grid (rows computed by JS) */
.jgrid { display: flex; flex-wrap: wrap; gap: 7px; }
.jcell {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  opacity: 0; transform: translateY(10px); animation: rise .5s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.jcell img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.jcell img.loaded { opacity: 1; }
.jcell:hover img { transform: scale(1.06); }
/* skeleton shimmer selama thumbnail belum termuat */
.jcell.loading::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--surface) 28%, var(--surface-2) 50%, var(--surface) 72%);
  background-size: 200% 100%; animation: shimmer 1.15s infinite linear;
}
.jcell::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%); transition: .2s;
}
.jcell:hover::after { opacity: 1; }
.jcell .pick {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0,0,0,.35); opacity: 0; transition: .15s;
  display: grid; place-items: center; color: #fff; font-size: 13px; z-index: 4;
}
.jcell:hover .pick, body.selectmode .jcell .pick { opacity: 1; }
.jcell.selected { outline: 3px solid var(--gold); outline-offset: -3px; }
.jcell.selected .pick { background: var(--gold); border-color: var(--gold); color: #2a1c08; opacity: 1; }
.jcell .badge {
  position: absolute; bottom: 7px; right: 8px; z-index: 2; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 99px; opacity: 0; transition: .15s;
}
.jcell:hover .badge { opacity: 1; }
.jcell .score {
  position: absolute; bottom: 8px; left: 8px; z-index: 2; font-size: 11px; font-weight: 700;
  color: #2a1c08; background: var(--gold-soft); padding: 2px 8px; border-radius: 99px;
}

/* ---------------- Card grids (albums/people) ---------------- */
.cardgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.albumcard, .personcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s;
  opacity: 0; transform: translateY(12px); animation: rise .5s forwards;
}
.albumcard:hover, .personcard:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.albumcard .cover { aspect-ratio: 4/3; background: var(--surface-2); position: relative; }
.albumcard .cover img { width: 100%; height: 100%; object-fit: cover; }
.albumcard .cover.empty { display: grid; place-items: center; color: var(--faint); font-family: var(--font-display); font-size: 40px; }
.albumcard .body { padding: 13px 15px 15px; }
.albumcard h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.albumcard p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.personcard { text-align: center; padding-bottom: 14px; }
.personcard .avatar { aspect-ratio: 1; background: var(--surface-2); }
.personcard .avatar img { width: 100%; height: 100%; object-fit: cover; }
.personcard .avatar.empty { display: grid; place-items: center; font-size: 38px; color: var(--faint); }
.personcard h3 { margin: 12px 12px 2px; font-size: 15px; font-weight: 700; }
.personcard h3.unnamed { color: var(--muted); font-style: italic; font-weight: 500; }
.personcard span { color: var(--faint); font-size: 12.5px; }

/* ---------------- Buttons ---------------- */
.btn {
  border: 1px solid var(--gold); background: var(--gold); color: #2a1c08;
  padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 13.5px;
  transition: .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn.danger { background: transparent; border-color: rgba(232,98,63,.5); color: var(--coral); }
.btn.danger:hover { background: rgba(232,98,63,.12); }

/* ---------------- Empty / loading ---------------- */
.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty .big { font-family: var(--font-display); font-size: 30px; color: var(--text); margin-bottom: 8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); margin: 60px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loadmore { display: grid; place-items: center; padding: 30px; }

/* ---------------- Selection bar ---------------- */
.selbar {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 22px;
  background: rgba(34,27,18,0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 99px; box-shadow: var(--shadow);
  animation: rise .3s; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center;
}
.selbar > span { font-weight: 700; color: var(--gold-soft); }
.selbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.selbar .btn { padding: 8px 14px; }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8,6,3,0.94); backdrop-filter: blur(8px); }
.lb-figure { position: relative; z-index: 2; margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; gap: 12px; animation: rise .3s; }
.lb-imgwrap { position: relative; line-height: 0; }
.lb-imgwrap img { max-width: 94vw; max-height: 76vh; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); }
.lb-faces { position: absolute; inset: 0; pointer-events: none; }
.lb-faces .fbox {
  position: absolute; border: 2px solid var(--gold); border-radius: 6px; pointer-events: auto; cursor: pointer;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0); transition: .15s;
}
.lb-faces .fbox:hover { border-color: var(--gold-soft); background: rgba(240,168,56,.12); }
.lb-faces .fbox .ftag {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11.5px; font-weight: 700; color: #2a1c08; background: var(--gold-soft);
  padding: 2px 9px; border-radius: 99px;
}
.lb-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-meta { color: var(--muted); font-size: 13px; }
.lb-meta b { color: var(--text); font-weight: 600; }
.lb-buttons { display: flex; gap: 8px; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(34,27,18,0.7); color: var(--text); font-size: 30px; line-height: 1; backdrop-filter: blur(6px);
}
.lb-nav:hover { background: var(--gold); color: #2a1c08; border-color: var(--gold); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(34,27,18,0.7); color: var(--text); font-size: 18px; backdrop-filter: blur(6px); }
.lb-close:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,6,3,0.8); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 2; width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); animation: rise .25s;
}
.modal-card h2 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.modal-card p.sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 13px; font-family: inherit; font-size: 14.5px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 70px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.album-pick { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; margin-top: 6px; }
.album-pick button {
  text-align: left; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; transition: .15s;
}
.album-pick button:hover { border-color: var(--gold); }
.album-pick button span { color: var(--faint); font-size: 12.5px; }

/* dropzone for face search */
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 50px 24px; text-align: center;
  color: var(--muted); transition: .2s; cursor: pointer; background: var(--surface);
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); color: var(--gold-soft); background: var(--surface-2); }
.dropzone .dz-icon { font-size: 46px; margin-bottom: 10px; }
.dropzone .dz-title { font-family: var(--font-display); font-size: 22px; color: var(--text); margin-bottom: 6px; }
.searchresult-head {
  display: flex; align-items: center; gap: 16px; margin: 18px 0 14px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.searchresult-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.searchresult-head .qimg { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 2px solid var(--gold); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  padding: 13px 22px; border-radius: 99px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); animation: rise .25s;
}
.toast.ok { border-color: rgba(127,176,105,.5); }
.toast.err { border-color: rgba(232,98,63,.5); color: #ffd9cc; }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px 12px; padding: 10px 16px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text h1 { font-size: 16px; }
  .brand-text span { font-size: 10px; letter-spacing: 0.1em; }
  .topbar-actions { flex: 0 0 auto; gap: 6px; }
  .icon-btn { padding: 8px 12px; font-size: 13px; }
  .tabs {
    order: 3; flex-basis: 100%; margin-left: 0; gap: 6px;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex: 0 0 auto; padding: 8px 14px; font-size: 13.5px; }
  .hero-stats { gap: 18px 22px; }

  /* lightbox: foto lebih kecil supaya caption + tombol muat tanpa berdesakan */
  .lightbox {
    padding: env(safe-area-inset-top) env(safe-area-inset-right)
             env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .lb-figure { max-width: 94vw; max-height: 92vh; max-height: 90dvh; gap: 10px; }
  .lb-imgwrap img { max-width: 92vw; max-height: 56vh; max-height: 54dvh; }
  .lb-nav { width: 40px; height: 40px; font-size: 20px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-caption { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
  .lb-meta { font-size: 12.5px; }
  .lb-exif { justify-content: center; }
  /* tombol: maksimal 2 per baris, rata, tidak pernah meluber ke samping */
  .lb-buttons {
    width: 100%; gap: 8px; display: flex; flex-wrap: wrap; justify-content: center;
  }
  .lb-buttons .btn {
    flex: 1 1 calc(50% - 8px); min-width: 0; max-width: 100%;
    padding: 12px 8px; font-size: 13.5px; justify-content: center; white-space: nowrap;
  }
  .lb-close { top: calc(env(safe-area-inset-top) + 8px); right: 8px; }

  /* selection bar: tombol penuh & rata */
  .selbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .selbar-actions { width: 100%; }
  .selbar-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* request card admin: tombol turun ke bawah biar muat */
  .reqcard { flex-wrap: wrap; }
  .reqcard .acts { width: 100%; }
  .reqcard .acts .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   Intro / curtain — kapsul kenangan
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  background:
    radial-gradient(900px 600px at 50% 28%, rgba(240,168,56,0.16), transparent 60%),
    radial-gradient(700px 500px at 70% 90%, rgba(232,98,63,0.12), transparent 55%),
    #100c07;
  cursor: pointer;
  animation: introIn .9s ease both;
}
.intro.lift { animation: introLift 1s cubic-bezier(.7,0,.2,1) both; pointer-events: none; }
.intro-glow {
  position: absolute; width: 60vw; height: 60vw; max-width: 620px; max-height: 620px;
  border-radius: 50%; filter: blur(60px); opacity: .5;
  background: radial-gradient(circle, rgba(245,196,107,.6), transparent 65%);
  animation: glowPulse 4s ease-in-out infinite;
}
.intro-inner { position: relative; z-index: 1; max-width: 640px; }
.intro-kicker {
  margin: 0 0 18px; font-size: clamp(11px,2.4vw,13px); letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  opacity: 0; animation: fadeUp .8s ease .25s both;
}
.intro-title {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(46px, 12vw, 120px); line-height: 0.9; letter-spacing: -0.03em;
  background: linear-gradient(160deg, #fff7e9 8%, var(--gold-soft) 52%, var(--coral) 118%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: fadeUp .9s ease .45s both;
}
.intro-title span { font-style: italic; font-weight: 500; }
.intro-line {
  margin: 22px 0 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(17px,3.6vw,24px); color: var(--text); opacity: 0;
  animation: fadeUp .9s ease .7s both;
}
.intro-rule {
  width: 64px; height: 2px; margin: 26px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; animation: fadeUp .9s ease .95s both;
}
.intro-hint {
  margin: 22px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); opacity: 0; animation: fadeUp .9s ease 1.15s both;
}

@keyframes introIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes introLift { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-3%); visibility: hidden; } }
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.12); opacity: .6; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Closing / memory band — menuju Volunteer Day 2.0
   ============================================================ */
.closing { margin-top: clamp(48px, 9vw, 110px); padding: clamp(56px,9vw,120px) clamp(16px,4vw,40px) clamp(40px,6vw,72px); position: relative; }
.closing::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(92%, var(--maxw)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing-kicker {
  margin: 0 0 18px; font-size: 12.5px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.closing-title {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 7vw, 72px); line-height: 1.0; letter-spacing: -0.03em;
  color: var(--text);
}
.closing-title em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(160deg, #fff7e9 5%, var(--gold-soft) 55%, var(--coral) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing-body {
  margin: 26px auto 0; max-width: 560px; color: var(--muted);
  font-size: clamp(15px,2vw,17px); line-height: 1.75;
}
.closing-arc {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 38px;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  padding: 12px 26px; border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(244,236,224,0.03);
}
.closing-arc .arrow { color: var(--gold); }
.closing-arc .next {
  background: linear-gradient(160deg, var(--gold-soft), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.closing-sign {
  margin: 34px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-kicker, .intro-title, .intro-line, .intro-rule, .intro-hint, .intro-glow { animation: none !important; opacity: 1 !important; }
  .intro.lift { transition: opacity .4s; opacity: 0; }
}

/* ---------------- EXIF strip di lightbox ---------------- */
.lb-exif {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px;
  font-family: var(--font-body);
}
.lb-exif .chip {
  font-size: 12px; color: var(--gold-soft); background: rgba(240,168,56,0.10);
  border: 1px solid rgba(240,168,56,0.22); padding: 3px 10px; border-radius: 99px;
  letter-spacing: .02em; white-space: nowrap;
}
.lb-exif .chip .k { color: var(--faint); margin-right: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
#lbDownloadRaw { border-color: rgba(240,168,56,.4); color: var(--gold-soft); }
#lbHide:hover { border-color: var(--coral); color: #ffd9cc; }
.closing-sign strong { color: var(--gold-soft); font-weight: 600; }

/* ---------------- Admin: review permintaan & foto tersembunyi ---------------- */
.admin-sec { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.admin-sec h3 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 17px;
  display: flex; align-items: center; gap: 9px;
}
.admin-sec h3 .count {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: #2a1c08;
  background: var(--gold); border-radius: 99px; padding: 1px 9px;
}
.reqlist { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.reqcard {
  display: flex; gap: 12px; align-items: center; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.reqcard img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); }
.reqcard .info { flex: 1; min-width: 0; }
.reqcard .info .fn { font-weight: 600; font-size: 13px; }
.reqcard .info .rs { color: var(--muted); font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.reqcard .info .by { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
.reqcard .acts { display: flex; gap: 6px; flex: none; }
.reqcard .acts .btn { padding: 7px 12px; font-size: 13px; }
.btn.approve { background: linear-gradient(145deg, #8fd17a, var(--ok)); color: #10240a; border: none; }
.hidden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: 8px; max-height: 280px; overflow-y: auto; }
.hidden-cell { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.hidden-cell img { width: 100%; height: 100%; object-fit: cover; }
.hidden-cell button {
  position: absolute; inset: auto 0 0 0; font-size: 11px; padding: 4px;
  background: rgba(8,6,3,.8); color: var(--gold-soft); border: none; width: 100%;
}
.empty-mini { color: var(--faint); font-size: 13px; padding: 8px 2px; }
.icon-btn.has-pending { border-color: var(--coral); color: var(--gold-soft); }

/* ---------------- Ikon FA dalam tombol ---------------- */
.btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn i, .icon-btn i { font-size: 0.95em; line-height: 1; }
.back i { margin-right: 4px; }

/* ---------------- Badge jumlah di tombol gerigi ---------------- */
.icon-btn { position: relative; }
.icon-btn .dot {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

/* ---------------- Badge RAW di grid ---------------- */
.raw-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #2a1c08; background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  padding: 3px 7px; border-radius: 6px; pointer-events: none;
  box-shadow: 0 2px 8px -2px rgba(0,0,0,.6);
}

/* ---------------- Skeleton loader lightbox ---------------- */
#lbImg { opacity: 0; transition: opacity .25s ease; }
#lbImg.ready { opacity: 1; }
.lb-imgwrap.loading {
  min-width: min(60vw, 460px); min-height: min(58vh, 460px);
  border-radius: 8px; overflow: hidden; position: relative;
}
.lb-imgwrap.loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--surface) 28%, var(--surface-2) 50%, var(--surface) 72%);
  background-size: 200% 100%; animation: shimmer 1.15s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* sentinel infinite-scroll */
.tail { height: 1px; width: 100%; }

/* ---------------- Halaman Orang: header wajah + slider ambang ---------------- */
.person-head { display: flex; gap: 18px; align-items: center; margin: 4px 0 22px; flex-wrap: wrap; }
.person-face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); flex: none; }
.person-info h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.person-info .thresh { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.person-info .thresh label { font-size: 13px; color: var(--muted); }
.person-info .thresh label b { color: var(--gold-soft); }
.person-info .thresh input[type=range] { width: 260px; max-width: 100%; accent-color: var(--gold); }
.person-info .thresh .hint { font-size: 11.5px; color: var(--faint); }
.person-count { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
@media (max-width: 760px) { .person-head { gap: 12px; } .person-face { width: 60px; height: 60px; } .person-info h2 { font-size: 18px; } }
