/* =====================================================================
   Undangan Digital — Resepsi Milad ke-114 Muhammadiyah
   Pimpinan Daerah Muhammadiyah Kota Depok
   Palet: biru Muhammadiyah, emas, hijau tua, putih, krem.
   ===================================================================== */

/* ----------------------------- 1. font ----------------------------- */
@font-face {
  font-family: 'InterVar';
  src: url('fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair';
  src: url('fonts/playfair-var.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair';
  src: url('fonts/playfair-italic.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'AmiriQuran';
  src: url('fonts/amiriquran-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ----------------------------- 2. token & dasar ----------------------------- */
:root {
  --biru: #0B2E59;
  --biru-2: #123C6E;
  --biru-3: #17497F;
  --biru-muda: #2A64B5;
  --biru-langit: #E8F0FB;
  --emas: #D4A72C;
  --emas-muda: #F0D488;
  --emas-tua: #A87B18;
  --emas-lembut: #FBF3DC;
  --hijau: #0B5138;
  --hijau-2: #0E7A5E;
  --krem: #FBF8F0;
  --krem-2: #F5EFE1;
  --putih: #FFFFFF;
  --tinta: #16233A;
  --redup: #5B6A82;
  --garis: #E4DCC9;
  --bayang: 0 22px 50px -28px rgba(11, 46, 89, .45);
  --bayang-lembut: 0 10px 28px -18px rgba(11, 46, 89, .38);
  --radius: 20px;
  --radius-kecil: 12px;
  --font: 'InterVar', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Playfair', Georgia, 'Times New Roman', serif;
  --arab: 'AmiriQuran', 'Traditional Arabic', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--tinta);
  background: var(--krem);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--biru-2); text-decoration: none; }
a:hover { color: var(--biru-muda); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; color: var(--biru); }
h1 { font-size: clamp(1.85rem, 5.2vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.7vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wadah { width: min(1120px, 100% - 36px); margin: 0 auto; }
.wadah-sempit { width: min(760px, 100% - 36px); margin: 0 auto; }
.seksi { padding: clamp(56px, 9vw, 104px) 0; position: relative; overflow-x: clip; }
.seksi-krem { background: linear-gradient(180deg, var(--krem) 0%, var(--krem-2) 100%); }
.seksi-putih { background: var(--putih); }
.seksi-biru { background: radial-gradient(120% 120% at 15% 0%, #17497F 0%, #0B2E59 55%, #082444 100%); color: #EAF1FB; }
.seksi-biru h2, .seksi-biru h3 { color: #fff; }
.seksi-biru p { color: #C8D8EE; }

.teks-tengah { text-align: center; }
.teks-redup { color: var(--redup); }
.teks-kecil { font-size: .86rem; }
.teks-arab { font-family: var(--arab); direction: rtl; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.9; color: var(--hijau); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 18px; } .mb-3 { margin-bottom: 28px; }

/* ----------------------------- 3. tombol ----------------------------- */
.tombol {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 13px 24px;
  min-height: 46px;
  border-radius: 999px;
  border: 1.4px solid transparent;
  font-family: var(--font);
  font-weight: 650;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  text-align: center;
  justify-content: center;
  line-height: 1.2;
}
.tombol:hover { transform: translateY(-2px); }
.tombol:active { transform: translateY(0); }
.tombol-emas {
  background: linear-gradient(135deg, #F2D98F 0%, #D4A72C 48%, #B98C1E 100%);
  color: #3A2803;
  box-shadow: 0 14px 30px -16px rgba(212, 167, 44, .95), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.tombol-emas:hover { color: #2A1D02; box-shadow: 0 18px 38px -16px rgba(212, 167, 44, 1); }
.tombol-gelap { background: linear-gradient(135deg, var(--biru-3), var(--biru)); color: #fff; box-shadow: 0 14px 30px -18px rgba(11, 46, 89, .85); }
.tombol-gelap:hover { color: #fff; }
.tombol-garis { background: transparent; border-color: rgba(11, 46, 89, .28); color: var(--biru); }
.tombol-garis:hover { background: rgba(11, 46, 89, .06); }
.tombol-putih { background: #fff; color: var(--biru); border-color: rgba(11, 46, 89, .14); }
.tombol-hijau { background: linear-gradient(135deg, var(--hijau-2), var(--hijau)); color: #fff; }
.tombol-kecil { padding: 9px 16px; min-height: 38px; font-size: .84rem; }
.tombol-blok { width: 100%; }
.tombol:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.tombol-baris { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------- 4. ornamen ----------------------------- */
.ornamen-garis {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 26px; width: min(340px, 82%); color: var(--emas);
}
.ornamen-garis::before, .ornamen-garis::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornamen-garis::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornamen-garis svg { width: 26px; height: 26px; flex: none; }
.seksi-biru .ornamen-garis { color: var(--emas-muda); }

.pola-islami {
  position: absolute; inset: 0;
  background-image: url('img/ornamen.svg');
  background-size: 220px 220px;
  opacity: .07;
  pointer-events: none;
}
.seksi-biru .pola-islami { opacity: .14; }

/* ----------------------------- 5. splash + cover ----------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #17497F 0%, #0B2E59 45%, #061C38 100%);
  transition: opacity .6s ease, visibility .6s ease;
}
#splash.splash-hilang { opacity: 0; visibility: hidden; }
.splash-isi { text-align: center; color: var(--emas-muda); }

/* Plat putih untuk logo: lambang berwarna biru/hijau tua perlu latar terang
   agar tetap terbaca di atas latar gelap (sampul, nav, footer, layar pembuka). */
.logo-plat {
  display: inline-grid; place-items: center;
  grid-template-columns: 1fr; grid-template-rows: 1fr;   /* area pasti → tinggi 100% bermakna */
  background: #fff;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .5), 0 0 0 1px rgba(212, 167, 44, .38);
}
/* Gambar di dalam plat selalu muat & proporsional (max-* menang atas tinggi tetap
   yang mungkin diwarisi dari aturan lama .nav-brand img / .footer-logo img). */
.logo-plat > img {
  display: block;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

.splash-plat {
  display: grid; place-items: center;
  background: #fff;
  width: clamp(180px, 38vw, 302px);
  height: clamp(180px, 38vw, 302px);
  margin: 0 auto 22px;
  padding: clamp(12px, 2.4vw, 20px);
  border-radius: clamp(26px, 6vw, 40px);
  box-shadow: 0 34px 70px -30px #000, 0 0 0 1px rgba(212, 167, 44, .5), 0 0 64px rgba(212, 167, 44, .3);
  animation: splashMuncul .85s cubic-bezier(.2, .7, .2, 1) both, splashDenyut 3.6s ease-in-out .9s infinite;
}
.splash-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes splashMuncul {
  from { opacity: 0; transform: scale(.86) translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes splashDenyut {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
/* Teks di bawah logo splash: dua baris (kegiatan + tingkat), rapat & proporsional */
.splash-teks {
  display: grid; gap: 4px;
  font-family: var(--display);
  text-transform: uppercase;
  color: #EADFC0;
  max-width: min(340px, 92vw);
  margin: 0 auto;
}
.splash-teks-baris {
  display: block;
  font-size: clamp(.72rem, 2.4vw, .92rem);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
}
.splash-teks-baris.kecil {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(.6rem, 2vw, .72rem);
  letter-spacing: .2em;
  color: #B9C9E1;
}
.splash-bar { width: 128px; height: 2px; margin: 16px auto 0; background: rgba(255, 255, 255, .18); overflow: hidden; border-radius: 2px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--emas), transparent); animation: jalan 1.3s ease-in-out infinite; }
@keyframes jalan { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.cover {
  position: fixed; inset: 0; z-index: 120;
  height: 100vh; height: 100dvh;
  display: grid; place-items: center;
  padding: clamp(8px, 2vh, 20px) clamp(12px, 3vw, 22px);
  overflow: hidden;                 /* TANPA gulir: semuanya harus muat satu layar */
  background: #FFFFFF;
  transition: opacity .9s ease, transform .9s ease, visibility .9s ease;
}
.cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('img/ornamen.svg');
  background-size: 220px 220px;
  opacity: .055;
}
.cover.foto-latar {
  background-image: linear-gradient(rgba(255, 255, 255, .90), rgba(255, 255, 255, .96)), var(--foto-cover, none);
  background-size: cover; background-position: center;
}
.cover.foto-latar::before { opacity: .05; }
.cover-hilang { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }

/* isi sampul: kolom fleksibel, tinggi terkunci pada layar & rapat secukupnya */
.cover-isi {
  position: relative; z-index: 2;
  width: min(600px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(3px, .9vh, 9px);
  text-align: center;
  color: var(--tinta);
  padding: clamp(14px, 2.4vh, 26px) clamp(12px, 3vw, 26px);
  overflow: hidden;
  border: 0; border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.cover-isi::before, .cover-isi::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid rgba(168, 123, 24, .55);
}
.cover-isi::before { top: 2px; left: 2px; border-right: 0; border-bottom: 0; }
.cover-isi::after { bottom: 2px; right: 2px; border-left: 0; border-top: 0; }
.cover-musik {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 34px; height: 34px; min-height: 34px;
  border-color: rgba(168, 123, 24, .4);
  background: rgba(255, 255, 255, .92);
  color: var(--biru);
}
.cover-musik svg { width: 15px; height: 15px; }

.cover-logo { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 3vw, 20px); margin-bottom: 0; }
.logo-plat-cover {
  width: clamp(66px, min(17vw, 13.5vh), 112px);
  height: clamp(66px, min(17vw, 13.5vh), 112px);
  padding: clamp(6px, 1.4vw, 11px);
  border-radius: clamp(14px, 3.4vw, 22px);
  box-shadow: 0 14px 30px -18px rgba(11, 46, 89, .45), 0 0 0 1px rgba(168, 123, 24, .35);
}
.cover-logo .pemisah { width: 1px; height: clamp(34px, 8vh, 52px); background: linear-gradient(180deg, transparent, rgba(168, 123, 24, .7), transparent); }

.cover-eyebrow {
  font-size: clamp(.6rem, min(2.2vw, 1.5vh), .74rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8A6410;
  margin: 0;
}
.cover-arab { font-family: var(--arab); font-size: clamp(.92rem, min(3vw, 1.95vh), 1.2rem); color: var(--hijau); margin: 0; line-height: 1.6; }
.cover-judul {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, min(4.9vw, 3.3vh), 2.1rem);
  line-height: 1.14;
  letter-spacing: .01em;
  margin: 0;
  color: var(--biru);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}
.cover-tingkat {
  font-size: clamp(.68rem, min(2.3vw, 1.55vh), .86rem);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #4A5A75;
  margin: 0;
}
.cover-tema {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(.78rem, min(2.5vw, 1.75vh), .98rem);
  color: #8A6410;
  margin: 0;
  line-height: 1.4;
}
.cover-info {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: clamp(4px, 1vw, 7px);
  margin: clamp(4px, .9vh, 9px) 0 0;
  max-width: 100%;
}
.cover-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: clamp(3px, .6vh, 5px) clamp(8px, 2.2vw, 11px);
  border: 1px solid rgba(168, 123, 24, .3);
  border-radius: 999px;
  background: #FBF7EC;
  color: #3D4C66;
  font-size: clamp(.66rem, min(2.15vw, 1.5vh), .78rem);
  line-height: 1.3;
  max-width: 100%;
}
.cover-chip .chip-ikon { width: 11px; height: 11px; flex: none; color: var(--emas-tua); opacity: .9; }
.cover-chip.lokasi {
  border-radius: 12px;
  text-align: left;
  white-space: normal;
  max-width: min(430px, 100%);
}
.cover-kepada {
  margin: clamp(5px, 1.1vh, 12px) auto 0;
  padding: clamp(6px, 1.1vh, 10px) clamp(12px, 3vw, 20px);
  border-top: 1px solid rgba(168, 123, 24, .32);
  border-bottom: 1px solid rgba(168, 123, 24, .32);
  max-width: 440px; width: 100%;
}
.cover-kepada small { display: block; letter-spacing: .16em; text-transform: uppercase; font-size: clamp(.54rem, 1.7vw, .64rem); color: #5F6E86; margin-bottom: 2px; }
.cover-kepada strong { font-family: var(--display); font-size: clamp(.92rem, min(3vw, 2.1vh), 1.14rem); color: var(--biru); }
.cover-instansi { display: block; font-size: clamp(.62rem, 2vw, .74rem); color: #5F6E86; margin-top: 2px; }
.cover-catatan { margin: clamp(4px, .8vh, 9px) 0 0; color: #5F6E86; font-size: clamp(.56rem, 1.85vw, .68rem); }

.tombol-buka {
  margin-top: clamp(5px, 1.1vh, 12px);
  padding: clamp(10px, 1.5vh, 14px) clamp(22px, 5vw, 32px);
  font-size: clamp(.84rem, 2.6vw, 1rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  animation: denyut 3.4s ease-in-out infinite;
}
@keyframes denyut {
  0%, 100% { box-shadow: 0 14px 30px -16px rgba(212, 167, 44, .9), 0 0 0 0 rgba(212, 167, 44, .45); }
  55% { box-shadow: 0 18px 34px -14px rgba(212, 167, 44, 1), 0 0 0 12px rgba(212, 167, 44, 0); }
}

/* ----------------------------- 6. nav publik ----------------------------- */
.nav-publik {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(12px, 4vw, 28px);
  background: rgba(8, 34, 66, .9);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(212, 167, 44, .28);
  transform: translateY(-105%);
  transition: transform .5s ease;
}
.nav-publik.tampil { transform: translateY(0); }
.nav-brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: #F4EBD3; }
.logo-plat-nav { width: 34px; height: 34px; padding: 3px; border-radius: 9px; flex: none; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.nav-brand img { height: 32px; width: auto; flex: none; }
.nav-brand span { display: block; min-width: 0; }
.nav-brand strong { display: block; font-family: var(--display); font-size: .86rem; color: #FBF2D9; line-height: 1.2; }
.nav-brand small { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #A9BFDD; }
.nav-tautan { display: none; gap: 4px; }
.nav-tautan a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  font-size: .8rem; color: #D6E2F3; transition: background .2s, color .2s;
}
.nav-tautan a:hover, .nav-tautan a.aktif { background: rgba(212, 167, 44, .18); color: #F7E7BC; }
.nav-aksi { display: flex; align-items: center; gap: 8px; flex: none; }

.tombol-ikon {
  width: 40px; height: 40px; min-height: 40px; padding: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 167, 44, .4);
  background: rgba(255, 255, 255, .07);
  color: #F0DFB4;
  cursor: pointer;
  transition: background .2s, transform .2s, color .2s;
}
.tombol-ikon:hover { background: rgba(212, 167, 44, .22); transform: translateY(-1px); }
/* Ikon di dalam tombol WAJIB diberi ukuran: SVG tanpa width/height memakai
   ukuran bawaan 300x150 sehingga tombol menjadi sangat tinggi. */
.tombol svg { width: 18px; height: 18px; flex: none; }
.tombol-buka svg { width: 17px; height: 17px; }
.tombol-ikon svg { width: 19px; height: 19px; }
.tombol-ikon.musik-nyala { background: linear-gradient(135deg, #F0D488, #D4A72C); color: #3A2803; animation: denyut 3s ease-in-out infinite; }

/* nav bawah (mobile) */
.nav-bawah {
  position: fixed; bottom: 12px; left: 50%; transform: translate(-50%, 150%);
  z-index: 70;
  display: flex; gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(8, 34, 66, .94);
  border: 1px solid rgba(212, 167, 44, .34);
  box-shadow: 0 20px 40px -22px #000;
  backdrop-filter: blur(14px);
  transition: transform .5s ease;
  max-width: calc(100vw - 20px);
}
.nav-bawah.tampil { transform: translate(-50%, 0); }
.nav-bawah a {
  display: grid; place-items: center; gap: 1px;
  width: 58px; padding: 6px 2px;
  border-radius: 999px;
  color: #C9D8ED;
  font-size: .58rem; letter-spacing: .04em;
  line-height: 1.1;
}
.nav-bawah a svg { width: 18px; height: 18px; }
.nav-bawah a.aktif { background: rgba(212, 167, 44, .2); color: #F7E7BC; }

/* ----------------------------- 7. reveal ----------------------------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].masuk { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tombol-buka, .splash-plat, .tombol-ikon.musik-nyala { animation: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- 8. bagian undangan ----------------------------- */
.undangan-isi { opacity: 0; transition: opacity 1s ease; }
.undangan-isi.tampil { opacity: 1; }

.pembuka { position: relative; padding-top: clamp(80px, 14vw, 130px); overflow: hidden; }
.pembuka-kartu {
  position: relative;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 52px) clamp(20px, 4.5vw, 48px);
  box-shadow: var(--bayang);
  text-align: center;
  overflow: hidden;
}
.pembuka-kartu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--biru) 0%, var(--emas) 50%, var(--hijau-2) 100%);
}
.pembuka-salam { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 3vw, 1.35rem); color: var(--biru-2); }
.pembuka-tema {
  display: inline-block;
  margin: 6px auto 0;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--emas-lembut);
  border: 1px solid rgba(212, 167, 44, .45);
  color: var(--emas-tua);
  font-size: .8rem;
  letter-spacing: .05em;
}
.pembuka-host { margin-top: 20px; font-size: .9rem; color: var(--redup); }
.pembuka-host strong { color: var(--tinta); }

/* kutipan penutup sebelum salam */
.pembuka-frasa {
  margin: 24px auto 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1rem, 2.6vw, 1.16rem);
  color: var(--hijau);
  letter-spacing: .01em;
}

/* ---------------------------- tanda tangan undangan ---------------------------- */
.ttd {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--garis);
}
.ttd-instansi { font-family: var(--display); font-size: clamp(1rem, 2.6vw, 1.14rem); color: var(--biru); margin: 0; }
.ttd-kegiatan {
  letter-spacing: .1em;
  font-size: clamp(.78rem, 2.1vw, .92rem);
  font-weight: 700;
  color: var(--tinta);
  margin: 2px 0 0;
}
.ttd-tingkat { font-size: .8rem; color: var(--redup); margin: 2px 0 0; }

.ttd-baris {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 32px);
  margin-top: clamp(16px, 3vw, 26px);
  text-align: center;
}
.ttd-pihak { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ttd-jabatan { font-size: .82rem; color: var(--redup); }
.ttd-ruang { display: block; height: clamp(46px, 8vw, 62px); }
.ttd-nama {
  display: block;
  font-size: clamp(.82rem, 2.2vw, .95rem);
  color: var(--tinta);
  line-height: 1.35;
  border-bottom: 1px solid rgba(11, 46, 89, .28);
  padding: 0 4px 3px;
  word-break: break-word;
}
.ttd-mengetahui {
  margin-top: clamp(20px, 3.5vw, 30px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.ttd-mengetahui .ttd-jabatan { margin: 0; }
.ttd-organisasi {
  font-family: var(--display);
  font-size: clamp(.82rem, 2.2vw, .95rem);
  font-weight: 700;
  color: var(--biru);
  line-height: 1.35;
  margin: 2px 0 0;
}
.ttd-mengetahui .ttd-ruang { height: clamp(42px, 7.5vw, 58px); }
.ttd-nbm { margin: 6px 0 0; font-size: .78rem; letter-spacing: .04em; color: var(--redup); }

@media (max-width: 420px) {
  .ttd-baris { gap: 12px; }
  .ttd-nama { font-size: .8rem; padding: 0 2px 3px; }
}

/* hitung mundur */
.hitung-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 18px);
  margin: 26px auto 8px;
  max-width: 640px;
}
.hitung-item {
  position: relative;
  padding: clamp(12px, 3vw, 22px) 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(212, 167, 44, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.hitung-angka {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 7vw, 2.7rem);
  line-height: 1;
  background: linear-gradient(180deg, #FFF6DC, #E9C567 70%, #C99B2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.hitung-label { display: block; margin-top: 8px; font-size: clamp(.6rem, 2.2vw, .72rem); letter-spacing: .18em; text-transform: uppercase; color: #BFD0E7; }
.hitung-tanggal { text-align: center; font-size: clamp(.82rem, 2.6vw, .95rem); color: #DCE7F6; margin-top: 14px; }
.hitung-selesai { text-align: center; font-family: var(--display); font-size: 1.2rem; color: var(--emas-muda); }

/* kartu detail */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); }
.grid > * { min-width: 0; }

.kartu-info {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  text-align: center;
  box-shadow: var(--bayang-lembut);
  transition: transform .3s ease, box-shadow .3s ease;
}
.kartu-info:hover { transform: translateY(-4px); box-shadow: var(--bayang); }
.kartu-info .ikon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--emas-lembut);
  border: 1px solid rgba(212, 167, 44, .4);
  color: var(--emas-tua);
}
.kartu-info .ikon svg { width: 26px; height: 26px; }
.kartu-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.kartu-info p { margin: 0; font-size: .92rem; color: var(--redup); }
.kartu-info strong { color: var(--tinta); font-weight: 650; }
.dresscode {
  margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; font-size: .86rem; color: var(--redup);
}
.dresscode span {
  padding: 6px 14px; border-radius: 999px; background: var(--biru-langit);
  color: var(--biru-2); border: 1px solid rgba(42, 100, 181, .2); font-weight: 600;
}

/* agenda */
.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(212, 167, 44, .7) 8%, rgba(212, 167, 44, .7) 92%, transparent);
}
.timeline-item { position: relative; padding: 0 0 26px 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: 8px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--emas);
  box-shadow: 0 0 0 4px rgba(212, 167, 44, .16);
}
.timeline-item.inti::before { background: var(--emas); box-shadow: 0 0 0 6px rgba(212, 167, 44, .22); }
.timeline-waktu {
  display: inline-block; padding: 3px 12px; margin-bottom: 6px;
  border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  background: rgba(11, 46, 89, .07); color: var(--biru-2);
  font-variant-numeric: tabular-nums;
}
.timeline-item h3 { font-size: 1.06rem; margin-bottom: 3px; }
.timeline-item p { margin: 0; color: var(--redup); font-size: .91rem; }

/* lokasi */
.lokasi-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(18px, 3vw, 30px); align-items: stretch; }
.lokasi-teks { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--bayang-lembut); }
.lokasi-teks h3 { margin-bottom: 6px; }
.lokasi-alamat { color: var(--redup); font-size: .94rem; }
.peta-bingkai {
  position: relative; min-height: 300px; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--garis); box-shadow: var(--bayang-lembut); background: var(--biru-langit);
}
.peta-bingkai iframe { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 300px; border: 0; display: block; background: transparent; }
/* lapisan cadangan di belakang peta — tampil bila Google Maps diblokir/ gagal dimuat */
.peta-cadangan {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
  background: linear-gradient(160deg, var(--biru-langit), #F7F3E8);
  color: var(--redup); font-size: .9rem;
}
.peta-cadangan strong { font-family: var(--display); color: var(--biru); font-size: 1.05rem; }
.peta-cadangan span { max-width: 340px; }
.peta-cadangan .tombol { margin-top: 4px; }

/* RSVP */
.rsvp-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 30px); align-items: start; }
.kartu-form { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--bayang); }
.stat-panel { background: linear-gradient(165deg, #123C6E, #0B2E59); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 30px); color: #E6EEF9; border: 1px solid rgba(212, 167, 44, .3); box-shadow: var(--bayang); }
.stat-panel h3 { color: #FBF2D9; font-size: 1.1rem; margin-bottom: 14px; }
.stat-baris { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.stat-baris:last-of-type { border-bottom: 0; }
.stat-baris span { font-size: .88rem; color: #C3D3E9; }
.stat-baris strong { font-family: var(--display); font-size: 1.5rem; color: #F5E4B8; }
.stat-total { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(212, 167, 44, .14); border: 1px solid rgba(212, 167, 44, .32); text-align: center; }
.stat-total strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--emas-muda); line-height: 1.1; }
.stat-total span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #D8C89B; }

.daftar-hadir-kecil { margin-top: 18px; display: grid; gap: 8px; }
.daftar-hadir-kecil div { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: #D5E2F2; }
.daftar-hadir-kecil .inisial {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .66rem; font-weight: 700;
  background: rgba(212, 167, 44, .22); color: #F4E3B7;
}

/* formulir */
.bidang { margin-bottom: 16px; }
.bidang label { display: block; font-size: .82rem; font-weight: 650; color: var(--biru-2); margin-bottom: 6px; letter-spacing: .01em; }
.bidang label .wajib { color: #C0392B; }
.bidang input[type="text"], .bidang input[type="tel"], .bidang input[type="number"],
.bidang input[type="date"], .bidang input[type="time"], .bidang input[type="email"],
.bidang input[type="password"], .bidang select, .bidang textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  font-family: var(--font);
  font-size: .94rem;
  color: var(--tinta);
  background: #FCFAF5;
  border: 1.4px solid var(--garis);
  border-radius: var(--radius-kecil);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bidang textarea { min-height: 104px; resize: vertical; }
.bidang input:focus, .bidang select:focus, .bidang textarea:focus {
  outline: none; background: #fff;
  border-color: var(--emas);
  box-shadow: 0 0 0 4px rgba(212, 167, 44, .16);
}
.bidang .petunjuk { display: block; margin-top: 5px; font-size: .76rem; color: var(--redup); }
.bidang-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pilihan-status { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pilihan-status label {
  display: flex; align-items: center; gap: 9px; margin: 0;
  padding: 12px 14px; border-radius: var(--radius-kecil);
  border: 1.4px solid var(--garis); background: #FCFAF5;
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--tinta);
  transition: border-color .2s, background .2s;
}
.pilihan-status input { accent-color: var(--hijau-2); width: 17px; height: 17px; }
.pilihan-status label:has(input:checked) { border-color: var(--hijau-2); background: #EEF8F3; color: var(--hijau); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ucapan */
.ucapan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 22px); margin-top: 26px; }
.kartu-ucapan {
  position: relative;
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--bayang-lembut);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.kartu-ucapan:hover { transform: translateY(-3px); box-shadow: var(--bayang); }
.kartu-ucapan::before {
  content: '❝';
  position: absolute; top: 8px; right: 16px;
  font-family: var(--display); font-size: 2.4rem; color: rgba(212, 167, 44, .3); line-height: 1;
}
.kartu-ucapan .pesan { font-size: .93rem; color: #2A3550; margin: 0 0 16px; position: relative; z-index: 1; }
.kartu-ucapan .pengirim { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--garis); }
.kartu-ucapan .pengirim .inisial {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 700;
  background: linear-gradient(135deg, var(--biru-3), var(--biru));
  color: #F4E3B7;
}
.kartu-ucapan .pengirim strong { display: block; font-size: .86rem; color: var(--biru); line-height: 1.25; }
.kartu-ucapan .pengirim small { display: block; font-size: .74rem; color: var(--redup); }

/* galeri */
.galeri-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 18px); margin-top: 24px; }
.galeri-item {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--garis); background: var(--biru-langit);
  aspect-ratio: 4 / 3; cursor: zoom-in;
  box-shadow: var(--bayang-lembut);
}
.galeri-item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-item .ket {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 28, 55, .82));
  color: #F3EBD4; font-size: .8rem; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.galeri-item:hover .ket, .galeri-item:focus-visible .ket { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 190;
  display: none; place-items: center;
  padding: 20px;
  background: rgba(4, 16, 32, .92);
}
.lightbox.buka { display: grid; }
.lightbox img { max-width: min(1000px, 100%); max-height: 82vh; border-radius: 10px; border: 1px solid rgba(212, 167, 44, .4); }
.lightbox figcaption { text-align: center; color: #E9DFC2; font-size: .86rem; margin-top: 12px; }
.lightbox .tutup {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1);
  color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* bagikan */
.bagikan-kartu {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(18px, 3vw, 32px);
  align-items: center;
  background: linear-gradient(160deg, #123C6E, #0B2E59);
  border: 1px solid rgba(212, 167, 44, .3);
  border-radius: var(--radius);
  padding: clamp(22px, 3.6vw, 38px);
  color: #E7EFF9;
  box-shadow: var(--bayang);
}
.bagikan-kartu h2 { color: #FBF2D9; margin-bottom: 6px; }
.bagikan-kartu p { color: #C2D2E8; margin-bottom: 16px; }
.qr-kotak { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid rgba(212, 167, 44, .5); }
.qr-kotak img { width: 150px; height: 150px; }
.qr-kotak small { display: block; text-align: center; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--redup); margin-top: 6px; }

/* footer */
.footer {
  background: #061C38; color: #B9C9E1;
  padding: clamp(36px, 6vw, 56px) 0 28px;
  border-top: 1px solid rgba(212, 167, 44, .24);
  position: relative;
}
.footer::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('img/ornamen.svg'); background-size: 220px 220px; opacity: .05;
}
.footer-isi { position: relative; z-index: 1; text-align: center; }
/* Logo di dalam plat selalu mengisi kotak plat secara proporsional
   (object-fit: contain) — menimpa aturan tinggi tetap lama pada nav/footer. */
.cover-logo .logo-plat > img,
.nav-brand .logo-plat > img,
.footer-logo .logo-plat > img {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

.footer-logo { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.logo-plat-footer { width: 74px; height: 74px; padding: 8px; border-radius: 18px; }
.footer-logo img { height: 52px; width: auto; opacity: .95; }
.footer h3 { color: #F5E9C8; font-size: 1.05rem; margin-bottom: 4px; }
.footer .kredit {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: .76rem; color: #93A9C7;
}
.footer .kredit img { height: 28px; width: auto; }
.footer .kredit strong { color: #D8E2F0; }

/* flash publik */
.flash-area { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 130; width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: 12px;
  font-size: .88rem; line-height: 1.45;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
  border: 1px solid;
  animation: muncul .35s ease;
}
@keyframes muncul { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.flash-success { background: #EAF7F0; border-color: #AEDCC5; color: #145C3D; }
.flash-error { background: #FDEDEC; border-color: #F3BDB7; color: #8C2A20; }
.flash-warning { background: #FFF7E6; border-color: #EBD19A; color: #7A5810; }
.flash-info { background: #EDF3FC; border-color: #BCD2EE; color: #1B477E; }
.flash-teks { flex: 1; }
.flash-tutup { background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 2px; }

/* galat */
.galat-kartu { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 42px 28px; text-align: center; box-shadow: var(--bayang); max-width: 520px; }
.galat-angka { font-family: var(--display); font-size: 4.4rem; line-height: 1; color: var(--emas); }

/* =====================================================================
   9. PANEL PANITIA
   ===================================================================== */
.panel-body { background: #F4F1E8; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 80;
  width: 258px;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 60% at 0% 0%, #17497F 0%, #0B2E59 55%, #082444 100%);
  color: #D7E3F4;
  border-right: 1px solid rgba(212, 167, 44, .25);
  transition: transform .3s ease;
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar-brand img { height: 40px; width: auto; flex: none; background: #fff; border-radius: 8px; padding: 3px; }
.sidebar-brand .brand-teks { min-width: 0; }
.sidebar-brand strong { display: block; font-family: var(--display); font-size: .9rem; color: #FBF2D9; line-height: 1.2; }
.sidebar-brand small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB6D6; }
.sidebar-tutup { display: none; margin-left: auto; background: none; border: 0; color: #D7E3F4; font-size: 1.1rem; cursor: pointer; }
.sidebar-nav { padding: 12px 10px 20px; flex: 1; }
.nav-grup { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #8AA5C9; margin: 16px 10px 6px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 2px;
  border-radius: 10px; color: #CBD9EC; font-size: .87rem;
  transition: background .2s, color .2s;
}
.sidebar-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-link.active { background: rgba(212, 167, 44, .18); color: #FBEECB; box-shadow: inset 2px 0 0 var(--emas); }
.sidebar-link .nav-ikon { width: 20px; text-align: center; flex: none; }
.badge-nav { margin-left: auto; background: var(--emas); color: #3A2803; font-size: .66rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.sidebar-kaki { padding: 12px 14px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; }
.sidebar-kaki .user-nama { color: #F3E9CD; font-weight: 650; display: block; }
.sidebar-kaki .user-peran { color: #9FB6D6; font-size: .72rem; }
.sidebar-kaki .tautan-keluar { display: inline-block; margin-top: 8px; color: #F0D488; font-size: .8rem; }

.app-main { flex: 1; min-width: 0; margin-left: 258px; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(14px, 2.5vw, 26px);
  background: rgba(244, 241, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--garis);
}
.topbar h1 { font-size: clamp(1.05rem, 2.2vw, 1.32rem); margin: 0; }
.topbar .topbar-aksi { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--garis); background: #fff; cursor: pointer; font-size: 1.1rem; }
.isi-panel { padding: clamp(16px, 2.6vw, 28px); }
.isi-panel > * + * { margin-top: 22px; }

.kartu { background: #fff; border: 1px solid var(--garis); border-radius: 16px; padding: clamp(18px, 2.6vw, 26px); box-shadow: var(--bayang-lembut); min-width: 0; }
.kartu h2 { font-size: 1.14rem; margin-bottom: 4px; }
.kartu h3 { font-size: 1rem; }
.kartu-kepala { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kartu-kepala h2, .kartu-kepala h3 { margin: 0; }
.kartu-kepala .sub { font-size: .8rem; color: var(--redup); margin: 2px 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.stat-kartu {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--garis); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--bayang-lembut);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.stat-kartu::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--biru-3), var(--emas)); }
.stat-kartu:hover { transform: translateY(-3px); box-shadow: var(--bayang); }
.stat-kartu .stat-label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--redup); }
.stat-kartu .stat-angka { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--biru); line-height: 1.1; margin-top: 2px; }
.stat-kartu .stat-sub { font-size: .74rem; color: var(--redup); }
.stat-kartu.emas::after { background: linear-gradient(180deg, var(--emas), var(--emas-tua)); }
.stat-kartu.hijau::after { background: linear-gradient(180deg, var(--hijau-2), var(--hijau)); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; border: 1px solid; }
.badge-netral { background: #F1F1EC; border-color: #DCDCD2; color: #56606E; }
.badge-info { background: #EAF2FD; border-color: #BFD6F4; color: #1B4C8F; }
.badge-sukses { background: #EAF7F0; border-color: #AEDCC5; color: #145C3D; }
.badge-peringatan { background: #FFF6E4; border-color: #EBD19A; color: #7A5810; }
.badge-bahaya { background: #FDECEA; border-color: #F2B9B2; color: #8C2A20; }
.badge-emas { background: #FBF3DC; border-color: #E7CF8F; color: #7A5810; }
.badge-biru { background: #EAF1FB; border-color: #C3D7F0; color: #17497F; }

.tabel-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--garis); }
table.tabel { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; min-width: 560px; }
table.tabel th, table.tabel td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #EFEBE0; vertical-align: top; }
table.tabel th { background: #F7F3E8; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--redup); white-space: nowrap; }
table.tabel tr:last-child td { border-bottom: 0; }
table.tabel tbody tr:hover { background: #FCFAF3; }
table.tabel td.aksi { white-space: nowrap; }
table.tabel .kecil { font-size: .76rem; color: var(--redup); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .penuh { grid-column: 1 / -1; }
.aksi-baris { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }

.empty { text-align: center; padding: 34px 18px; color: var(--redup); }
.empty-ikon { font-size: 2rem; margin-bottom: 6px; }
.empty strong { display: block; color: var(--tinta); margin-bottom: 4px; }
.empty p { margin: 0; font-size: .86rem; }
.empty-aksi { margin-top: 12px; }

.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #EAE4D6; font-size: .88rem; }
.kv:last-child { border-bottom: 0; }
.kv-label { color: var(--redup); }
.kv-nilai { text-align: right; font-weight: 600; color: var(--tinta); }

.bar { height: 8px; background: #EFEADD; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--biru-3), var(--emas)); border-radius: 999px; }
.hbar { display: grid; gap: 10px; }
.hbar-baris { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 10px; align-items: center; font-size: .82rem; }
.hbar-label { color: var(--redup); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-trek { height: 9px; background: #EFEADD; border-radius: 999px; overflow: hidden; }
.hbar-trek i { display: block; height: 100%; background: linear-gradient(90deg, var(--biru-3), var(--emas)); }
.hbar-nilai { font-weight: 650; color: var(--biru); font-variant-numeric: tabular-nums; }

.vbar { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.vbar-kolom { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.vbar-batang { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--biru-3), var(--biru)); min-height: 3px; }
.vbar-batang.emas { background: linear-gradient(180deg, var(--emas-muda), var(--emas)); }
.vbar-label { font-size: .62rem; color: var(--redup); white-space: nowrap; }

.panel-login-body {
  min-height: 100vh; display: grid; place-items: center;
  padding: 22px;
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(23, 73, 127, .9) 0%, transparent 60%),
    linear-gradient(160deg, #0B2E59, #061C38);
}
.login-kartu { width: min(430px, 100%); background: #FFFDF8; border-radius: 20px; padding: clamp(24px, 5vw, 38px); box-shadow: 0 40px 80px -40px #000; border: 1px solid rgba(212, 167, 44, .35); }
.login-kartu .login-logo { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.login-kartu .login-logo img { height: 52px; width: auto; }
.login-kartu h1 { font-size: 1.3rem; text-align: center; margin-bottom: 2px; }
.login-kartu .sub { text-align: center; font-size: .82rem; color: var(--redup); margin-bottom: 20px; }
.login-kartu .kembali { display: block; text-align: center; margin-top: 16px; font-size: .82rem; }

.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--garis); }
.thumb-aset { width: 100%; max-width: 180px; height: 96px; object-fit: contain; background: #F7F3E8; border: 1px dashed var(--garis); border-radius: 10px; padding: 8px; }
.aset-pratinjau {
  display: grid; place-items: center;
  min-height: 150px; padding: 16px;
  border: 1px dashed var(--garis); border-radius: 12px;
  background: #FCFAF3;
}
.aset-pratinjau img { max-height: 120px; max-width: 100%; object-fit: contain; }
.aset-pratinjau-lebar img { max-height: 150px; width: 100%; object-fit: cover; border-radius: 8px; }
.aset-pratinjau.kosong { color: var(--redup); font-size: .82rem; text-align: center; }
.kotak-info {
  padding: 12px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.5;
  background: var(--emas-lembut); border: 1px solid rgba(212, 167, 72, .38); color: #7A5810;
}

.file-box {
  position: relative; display: block;
  border: 1.5px dashed #D6CDB8; border-radius: 12px;
  background: #FCFAF3; padding: 16px; text-align: center;
  font-size: .84rem; color: var(--redup);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.file-box:hover { border-color: var(--emas); background: #FFFDF6; }
.file-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-box strong { display: block; color: var(--biru-2); font-size: .88rem; margin-bottom: 2px; }

/* sidebar mobile */
.sidebar-tirai { display: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar-tutup { display: block; }
  .app-main { margin-left: 0; }
  .hamburger { display: grid; place-items: center; }
  body.sidebar-buka .sidebar { transform: translateX(0); box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  body.sidebar-buka .sidebar-tirai { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(6, 22, 42, .55); }
  .form-grid { grid-template-columns: 1fr; }
}

/* ----------------------------- 10. responsif publik ----------------------------- */
@media (min-width: 900px) {
  .nav-tautan { display: flex; }
  .nav-bawah { display: none; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .lokasi-grid { grid-template-columns: 1fr; }
  .rsvp-grid { grid-template-columns: 1fr; }
  .ucapan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bagikan-kartu { grid-template-columns: 1fr; text-align: center; }
  .qr-kotak { margin: 0 auto; }
  .peta-bingkai { min-height: 260px; }
  .peta-bingkai iframe { min-height: 260px; }
}
/* layar pendek (HP lama / lanskap ponsel): semuanya tetap muat tanpa gulir */
@media (max-height: 680px) {
  .cover-isi { gap: 2px; padding: 10px 10px 12px; }
  .logo-plat-cover { width: clamp(56px, min(15vw, 12vh), 92px); height: clamp(56px, min(15vw, 12vh), 92px); }
  .cover-chip { font-size: .66rem; padding: 3px 8px; }
  .cover-catatan { display: none; }
}
@media (max-height: 560px) {
  .cover-arab { display: none; }
  .cover-tema { font-size: .74rem; }
  .cover-kepada { padding: 5px 12px; margin-top: 4px; }
}

@media (max-width: 620px) {
  .galeri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeri-item:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .ucapan-grid { grid-template-columns: 1fr; }
  .bidang-baris { grid-template-columns: 1fr; }
  .pilihan-status { grid-template-columns: 1fr; }
  .cover-isi { padding: 24px 18px 28px; }
  .nav-brand small { display: none; }
  .nav-tautan { display: none; }
  .timeline-item { padding-left: 40px; }
  .hitung-grid { gap: 7px; }
  .nav-bawah a { width: 52px; }
  .footer-logo img { height: 42px; }
  .logo-plat-footer { width: 62px; height: 62px; border-radius: 15px; }
  .splash-plat { margin-bottom: 18px; }
}
@media (max-width: 380px) {
  .nav-bawah a { width: 46px; font-size: .53rem; }
  .nav-bawah a svg { width: 16px; height: 16px; }
  .tombol-buka { padding: 14px 22px; width: 100%; }
}

/* =====================================================================
   11. STATISTIK & GRAFIK (panel)
   ===================================================================== */
.grafik .garis-svg { width: 100%; height: auto; display: block; }
.garis-svg .grid { stroke: #EAE4D6; stroke-width: 1; }
.garis-svg .sumbu { fill: #8A95A6; font-size: 9px; font-family: var(--font); }
.legenda { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .78rem; color: var(--redup); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.grafik-catatan {
  margin-top: 10px; font-size: .78rem; color: var(--redup);
  padding: 8px 12px; border-radius: 10px; background: #FCFAF3; border: 1px dashed var(--garis);
}
.baris-ringkas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-stat {
  background: #F7F3E8; border: 1px solid var(--garis); border-radius: 999px;
  padding: 5px 12px; font-size: .78rem; color: var(--redup);
}
.chip-stat strong { color: var(--biru); }
.filter-statistik { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-statistik select { min-width: 168px; }

.donat-bungkus { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donat {
  position: relative; flex: none;
  width: 132px; height: 132px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(11, 46, 89, .06);
}
.donat-lubang {
  position: absolute; inset: 24px; border-radius: 50%;
  background: #fff; display: grid; place-content: center; text-align: center;
  box-shadow: inset 0 1px 6px rgba(11, 46, 89, .06);
}
.donat-lubang strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--biru); line-height: 1.1; }
.donat-lubang span { display: block; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--redup); }
.donat-legenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; min-width: 150px; font-size: .8rem; }
.donat-legenda li { display: flex; align-items: center; gap: 8px; }
.donat-legenda i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donat-label { color: var(--redup); }
.donat-nilai { margin-left: auto; font-weight: 650; color: var(--tinta); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) {
  .donat-bungkus { justify-content: center; }
  .donat { width: 116px; height: 116px; }
  .donat-lubang { inset: 21px; }
}

/* =====================================================================
   12. EFEK VISUAL MEWAH (opsional — body.efek-mewah)
   Semua animasi dimatikan otomatis saat prefers-reduced-motion.
   ===================================================================== */
.progres-gulir {
  position: fixed; top: 0; left: 0; z-index: 130;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--emas-tua), var(--emas-muda), var(--emas));
  box-shadow: 0 0 12px rgba(212, 167, 44, .65);
  transition: width .12s linear;
  pointer-events: none;
}
.efek-mewah .progres-gulir.tampil { opacity: 1; }

/* partikel debu emas di sampul */
.kanvas-partikel {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cover-glow { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cover-glow i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(64px); opacity: .17;
  transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px), 0);
  transition: transform .6s ease-out;
}
.cover-glow i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle, rgba(42,100,181,.75), transparent 70%); animation: melayang 22s ease-in-out infinite; }
.cover-glow i:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; bottom: -12vmax; background: radial-gradient(circle, rgba(11,81,56,.6), transparent 70%); animation: melayang 26s ease-in-out infinite reverse; }
.cover-glow i:nth-child(3) { width: 30vmax; height: 30vmax; right: 12vmax; top: 8vmax; background: radial-gradient(circle, rgba(212,167,44,.32), transparent 70%); animation: melayang 19s ease-in-out infinite; }
@keyframes melayang {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(3vmax, -2vmax, 0) scale(1.08); }
  66% { transform: translate3d(-2vmax, 3vmax, 0) scale(.96); }
}

/* masuk berurutan elemen sampul */
.efek-mewah .cover-isi > * { animation: masukSampul .95s cubic-bezier(.2,.7,.2,1) both; }
.efek-mewah .cover-isi > *:nth-child(1) { animation-delay: .08s; }
.efek-mewah .cover-isi > *:nth-child(2) { animation-delay: .16s; }
.efek-mewah .cover-isi > *:nth-child(3) { animation-delay: .24s; }
.efek-mewah .cover-isi > *:nth-child(4) { animation-delay: .32s; }
.efek-mewah .cover-isi > *:nth-child(5) { animation-delay: .40s; }
.efek-mewah .cover-isi > *:nth-child(6) { animation-delay: .48s; }
.efek-mewah .cover-isi > *:nth-child(7) { animation-delay: .56s; }
.efek-mewah .cover-isi > *:nth-child(8) { animation-delay: .64s; }
.efek-mewah .cover-isi > *:nth-child(9) { animation-delay: .72s; }
.efek-mewah .cover-isi > *:nth-child(10) { animation-delay: .80s; }
.efek-mewah .cover-isi > *:nth-child(n+11) { animation-delay: .88s; }
@keyframes masukSampul {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* kilau judul & garis emas */
/* Judul sampul berlatar putih: tetap biru tua agar kontras & tidak memakai
   gradien emas (akan tenggelam di atas putih). */
.efek-mewah .cover-judul {
  background-image: none;
  -webkit-text-fill-color: currentColor;
  color: var(--biru);
  animation: sorotJudul 7s ease-in-out infinite;
}
@keyframes sorotJudul {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}
@keyframes kilauEmas {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.efek-mewah .ornamen-garis svg { animation: denyutOrnamen 6.5s ease-in-out infinite; }
@keyframes denyutOrnamen {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .95; }
  50% { transform: scale(1.09) rotate(6deg); opacity: 1; }
}

/* pola islami bergerak + aurora seksi biru */
.efek-mewah .pola-islami { animation: polaGeser 48s linear infinite; }
@keyframes polaGeser {
  from { background-position: 0 0; }
  to { background-position: 220px 220px; }
}
.efek-mewah .seksi-biru {
  background-size: 170% 170%;
  animation: auroraBiru 26s ease-in-out infinite;
}
@keyframes auroraBiru {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
}

/* sapuan cahaya pada tombol emas */
.efek-mewah .tombol-emas { position: relative; overflow: hidden; }
.efek-mewah .tombol-emas::after {
  content: ''; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, .5) 48%, transparent 62%);
  transform: translateX(-140%);
  animation: sapuCahaya 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sapuCahaya {
  0%, 62% { transform: translateX(-140%); }
  82%, 100% { transform: translateX(140%); }
}

/* kartu melayang halus saat disorot */
.efek-mewah .kartu-info,
.efek-mewah .kartu-ucapan,
.efek-mewah .timeline-item { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease; }
.efek-mewah .kartu-info:hover,
.efek-mewah .kartu-ucapan:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -32px rgba(11, 46, 89, .55); }
.efek-mewah .timeline-item:hover { border-color: rgba(212, 167, 44, .55); }
.efek-mewah .galeri-item img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.efek-mewah .galeri-item:hover img { transform: scale(1.06); filter: saturate(1.08); }

/* angka hitung mundur berdenyut saat berubah */
.hitung-angka.pop { animation: popAngka .5s cubic-bezier(.2,.7,.2,1); }
@keyframes popAngka {
  0% { transform: translateY(-4px) scale(1.12); color: var(--emas-muda); }
  100% { transform: none; }
}

/* varian arah reveal.
   ⚠️ JANGAN memakai clip-path untuk keadaan awal elemen yang diamati IntersectionObserver:
   Chromium menganggap elemen ter-clip penuh sebagai TIDAK berpotongan sehingga `.masuk`
   tidak pernah diberikan → elemen (mis. peta lokasi) hilang selamanya. Cukup geser halus,
   dan luber horizontal dipotong oleh `.seksi { overflow-x: clip }` di atas. */
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal="kiri"] { transform: translateX(-26px); }
[data-reveal="kanan"] { transform: translateX(26px); }
[data-reveal="zoom"].masuk,
[data-reveal="kiri"].masuk,
[data-reveal="kanan"].masuk { transform: none; }

@media (max-width: 620px) {
  .cover-glow i { filter: blur(44px); opacity: .13; }
  .cover-glow i:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .progres-gulir,
  .kanvas-partikel,
  .cover-glow { display: none !important; }
  .efek-mewah .cover-isi > *,
  .efek-mewah .cover-judul,
  .efek-mewah .ornamen-garis svg,
  .efek-mewah .pola-islami,
  .efek-mewah .seksi-biru,
  .efek-mewah .tombol-emas::after,
  .hitung-angka.pop { animation: none !important; }
}

/* ----------------------------- 13. cetak ----------------------------- */
@media print {
  .nav-publik, .nav-bawah, .tombol-ikon, .cover, #splash, .lightbox, .sidebar, .topbar, .no-print,
  .progres-gulir, .kanvas-partikel, .cover-glow { display: none !important; }
  body { background: #fff; }
  .app-main { margin: 0; }
  .kartu, .stat-kartu { box-shadow: none; border-color: #bbb; }
  .seksi { padding: 14px 0; }
}

/* ----------------------------- 14. kirim WhatsApp ----------------------------- */
.wa-progres {
  border: 1.4px solid var(--garis);
  border-radius: 12px;
  background: #FBF8EF;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.wa-progres-kepala {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--navy, #0B2E59);
  margin-bottom: 8px;
}
.wa-bar {
  height: 9px;
  border-radius: 999px;
  background: #EFE7D3;
  overflow: hidden;
}
.wa-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emas), var(--emas-muda));
  transition: width .25s ease;
}
.wa-progres-hasil {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--redup);
}
.wa-pratinjau {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #F7F3E8;
  border: 1px solid var(--garis);
  font-size: .82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow: auto;
}
.daftar-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 18px;
  margin-top: 10px;
}
.daftar-placeholder code {
  background: #F7F3E8;
  border: 1px solid var(--garis);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .76rem;
}
@media print {
  .wa-progres, .wa-pratinjau { display: none !important; }
}
