/* ===================== DESIGN TOKENS ===================== */
:root {
  --wi-bg: #eeecea;
  --wi-rust: #E6A705;
  --wi-rust-dark: #c24f2b;
  --wi-ink: #3d3d39;
  --wi-slate: #47514a;
  --wi-muted: #7c7c76;
  --wi-line: #d9d7cf;
  --wi-serif: 'Cormorant Garamond', Georgia, serif;
  --wi-script: 'Great Vibes', cursive;
  --wi-sans: 'Figtree', system-ui, sans-serif;
}

.wi-section { font-family: var(--wi-sans); color: var(--wi-ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wi-section img { display: block; max-width: 100%; }
.wi-section a { 
  /* color: inherit;  */
  text-decoration: none; }

/* ===================== TYPOGRAPHY UTILITIES ===================== */
.wi-section .script { font-family: var(--wi-script); color: var(--wi-rust); line-height: 1.05; }
.wi-section .serif  { font-family: var(--wi-serif); }
.wi-section .sub    { color: var(--wi-muted); font-size: 15px; letter-spacing: .5px; margin: 20px 0; }
.wi-section p       { font-size: 16px; line-height: 1.85; color: var(--wi-muted); font-weight: 300; }

/* ===================== LAYOUT ===================== */
.wi-container { max-width: 1200px; margin: 0 auto; padding: 0 50px; }
.wi-section { padding: 90px 0; text-align: center; position: relative; }
.wi-section .stitle { font-family: var(--wi-script); color: var(--wi-rust); font-size: clamp(42px,6vw,68px); margin-bottom: 10px; }
.wi-section .divline { width: 1px; height: 40px; background: #b9b9b2; margin: 26px auto; }

/* ===================== BUTTON ===================== */
.wi-btn {
  display: inline-block;
  font-family: var(--wi-sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 40px;
  background: var(--wi-rust);
  color: #fff;
  border: 1.5px solid var(--wi-rust);
  transition: all .25s;
  cursor: pointer;
}
.wi-btn:hover { background: transparent; color: var(--wi-rust); }
.wi-btn.outline { background: transparent; color: var(--wi-rust); }
.wi-btn.outline:hover { background: var(--wi-rust); color: #fff; }
.wi-btn.white {
  background: transparent;
  border-color: rgba(255,255,255,.85);
  color: #fff;
  padding: 14px 32px;
  letter-spacing: 2px;
  font-size: 12px;
}
.wi-btn.white:hover { background: #fff; color: var(--wi-ink); }

/* ===================== SCROLL REVEAL ===================== */
.wi-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s ease, transform .9s ease;
}
.wi-reveal.in { opacity: 1; transform: none; }

/* ===================== COVER / INTRO ===================== */
.wi-cover {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: #fff;
  transition: opacity .9s ease, transform .9s ease;
  overflow: hidden;
}
.wi-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,14,8,.5) 0%, rgba(18,14,8,.55) 100%);
  z-index: 1;
}
.wi-cover .wi-cover-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.06);
  animation: wiCoverZoom 8s ease forwards;
}
@keyframes wiCoverZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.wi-cover .wi-cover-content {
  position: relative;
  z-index: 2;
  animation: wiFadeInUp .9s .3s both;
}
@keyframes wiFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.wi-cover .dear   { font-family: var(--wi-sans); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.wi-cover .guest-name { font-family: var(--wi-sans); font-size: clamp(22px,4.5vw,32px); font-weight: 600; letter-spacing: .5px; line-height: 1.3; color: #fff; margin: 4px 0 18px; text-transform: none; }
.wi-cover .guest  { font-family: var(--wi-script); font-size: clamp(28px,6vw,42px); color: #fff; margin-bottom: 20px; }
.wi-cover .names  { font-family: var(--wi-serif); font-weight: 500; font-size: clamp(44px,12vw,88px); line-height: 1.02; margin-bottom: 14px; }
.wi-cover .date   { letter-spacing: 4px; text-transform: uppercase; font-size: clamp(11px,2.8vw,14px); margin-bottom: 32px; color: rgba(255,255,255,.82); }
.wi-cover.wi-hide { opacity: 0; transform: translateY(-40px); pointer-events: none; }
.wi-cover .deco-line { width: 1px; height: 50px; background: rgba(255,255,255,.4); margin: 0 auto 22px; animation: wiGrowLine 1s 1s both; }
@keyframes wiGrowLine { from { height: 0; opacity: 0; } to { height: 50px; opacity: 1; } }

/* ===================== HERO ===================== */
.wi-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  background-color: #1a1410;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.wi-hero .the   { font-family: var(--wi-script); font-size: clamp(38px,6vw,60px); color: #fff; opacity: .92; }
.wi-hero .names { font-family: var(--wi-serif); font-weight: 500; font-size: clamp(50px,9vw,96px); line-height: 1.01; margin-top: -4px; }
.wi-hero .date  { letter-spacing: 5px; text-transform: uppercase; font-size: clamp(11px,1.5vw,14px); margin: 18px 0 120px; color: rgba(255,255,255,.82); }
.wi-hero .countdown-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.wi-countdown { display: flex; gap: 8px; align-items: center; justify-content: center; }
.wi-cd-unit { text-align: center; }
.wi-cd-num {
  font-family: var(--wi-serif);
  font-size: clamp(32px,5vw,54px);
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
  display: block;
}
.wi-cd-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }
.wi-cd-sep { font-family: var(--wi-serif); font-size: clamp(28px,4vw,44px); color: rgba(255,255,255,.4); line-height: 1; padding-bottom: 14px; }
.wi-hero .scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: wiBounce 2s infinite;
}
@keyframes wiBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
.wi-hero .scroll-hint svg { width: 20px; height: 20px; }

/* ===================== VERSE ===================== */
.wi-verse { background: var(--wi-bg); }
.wi-verse .sanskrit {
  font-family: var(--wi-serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 21px);
  color: #6f6f69;
  line-height: 1.8;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  margin: 0 auto;
}
.wi-verse .verse-quote { max-width: 620px; margin: 0 auto; font-style: italic; }

/* ===================== COUPLE ===================== */
.wi-couple { padding-bottom: 80px; background: var(--wi-bg); }
.wi-cards { display: flex; align-items: stretch; justify-content: center; gap: 0; margin-top: 52px; }
.wi-card {
  flex: 1;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  opacity: 0;
  transition: opacity .9s ease, transform .9s ease, box-shadow .3s;
}
.wi-card:hover { box-shadow: 0 28px 80px rgba(0,0,0,.13); }
.wi-card.left  { transform: translateX(-80px); }
.wi-card.right { transform: translateX(80px); }
.wi-card.in    { opacity: 1; transform: none; }
.wi-card .ph { aspect-ratio: 6/4; background: linear-gradient(135deg,#e3d8c4,#cdbfa4); overflow: hidden; position: relative; }
.wi-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.wi-card:hover .ph img { transform: scale(1.04); }
.wi-card .body { padding: 28px 24px 36px; }
.wi-card .role { color: var(--wi-muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.wi-card .nm   { font-family: var(--wi-serif); font-weight: 600; font-size: 42px; color: var(--wi-rust); margin: 4px 0 35px; line-height: 1; }
.wi-card .of   { color: var(--wi-muted); font-size: 14px; }
.wi-card .parent { font-family: var(--wi-serif); font-size: 21px; color: #63635d; margin: 2px 0 20px; }
.wi-card .wi-btn  { font-size: 12px; padding: 9px 22px; }
.wi-rings-img { width: 140px; display: flex; align-items: center; justify-content: center; flex: none; padding: 0 10px; }
.wi-rings-img img { width: 120px; height: auto; display: block; animation: wiFloatRings 4s ease-in-out infinite; }
@keyframes wiFloatRings { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media(max-width:768px) {
  .wi-cards { flex-direction: column; align-items: center; gap: 28px; }
  .wi-card.left,.wi-card.right { transform: translateY(40px); }
  .wi-card { max-width: 100%; width: 100%; }
  .wi-card .ph { aspect-ratio: 4/3; }
  .wi-card .nm { font-size: 34px; margin-bottom: 20px; }
  .wi-rings-img { order: -1; width: 80px; margin: 0 auto; }
  .wi-rings-img img { width: 70px; }
}

/* ===================== VIDEO ===================== */
.wi-videosec { padding: 0; }
.wi-videosec video, .wi-videosec .vph { width: 100%; height: 60vh; object-fit: cover; display: block; }
.wi-videosec .vph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#d9cdb4,#c3b393);
  color: #8f7f5f; font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
}

/* ===================== SAVE THE DATE ===================== */
.wi-event { background: var(--wi-bg); }
.wi-event-grid { display: flex; justify-content: center; gap: 0; margin-top: 90px; flex-wrap: wrap; }
.wi-event-col { flex: 1; max-width: 600px; padding: 10px 50px; min-width: 260px; }
.wi-event-col + .wi-event-col { border-left: 1px solid var(--wi-line); }
.wi-event-col h3 { font-family: var(--wi-serif); font-weight: 500; font-size: 30px; color: var(--wi-slate); margin-bottom: 18px; }
.wi-event-col .row   { color: var(--wi-muted); font-size: 15px; margin: 5px 0; }
.wi-event-col .place { margin: 18px 0 22px; color: #5c5c56; font-family: var(--wi-serif); font-size: 18px; }
@media(max-width:768px) {
  .wi-event-grid { flex-direction: column; align-items: center; gap: 0; margin-top: 40px; }
  .wi-event-col+.wi-event-col { border-left: 0; border-top: 1px solid var(--wi-line); padding-top: 36px; margin-top: 36px; }
  .wi-event-col { padding: 10px 16px; max-width: 100%; width: 100%; }
}
.wi-cal-icon { width: 52px; height: 52px; border: 1.5px solid var(--wi-line); border-radius: 10px; margin: 0 auto 16px; display: flex; flex-direction: column; overflow: hidden; }
.wi-cal-icon .cal-top { background: var(--wi-rust); height: 16px; }
.wi-cal-icon .cal-num { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--wi-serif); font-size: 18px; font-weight: 600; color: var(--wi-ink); }

/* ===================== GALLERY ===================== */
.wi-gallery { padding-bottom: 110px; background: var(--wi-bg); }
.wi-gal-wrap { display: flex; align-items: flex-start; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.wi-gal-title { flex: none; width: 240px; text-align: left; padding-top: 10px; }
.wi-gal-title .script { font-size: clamp(52px,6vw,78px); line-height: 1.0; }
.wi-gal-title p { font-size: 14px; margin-top: 8px; }
.wi-gal-content { flex: 1; min-width: 260px; }
.wi-gal-slider {
  display: flex; gap: 14px; overflow-x: auto; cursor: grab; padding: 6px 0;
  scrollbar-width: none; -ms-overflow-style: none; user-select: none;
  /* JANGAN pakai -webkit-overflow-scrolling: touch — di iOS properti itu
     membuat scrollLeft dari JS diabaikan, sehingga auto-slide beku di HP. */
}
.wi-gal-slider::-webkit-scrollbar { display: none; }
.wi-gal-slider.dragging { cursor: grabbing; }
.wi-gal-slide { flex: none; width: 300px; height: 300px; border-radius: 10px; overflow: hidden; position: relative; }
.wi-gal-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.wi-gal-slide:hover::after { background: rgba(0,0,0,.1); }
.elementor .wi-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: transform .5s ease; }
.wi-gal-slide:hover img { transform: scale(1.05); }
.wi-gal-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.wi-gal-bottom .wi-gal-item { aspect-ratio: 4/3; height: 300px; }
.wi-gal-item { border-radius: 10px; overflow: hidden; cursor: pointer; position: relative; }
.wi-gal-item::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .3s; }
.wi-gal-item:hover::after { background: rgba(0,0,0,.12); }
.elementor .wi-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.wi-gal-item:hover img { transform: scale(1.05); }
@media(max-width:768px) {
  .wi-gallery { padding-bottom: 50px; }
  .wi-gallery .wi-container { padding: 0; }
  .wi-gal-wrap { flex-direction: column; gap: 16px; align-items: center;}
  .wi-gal-title { width: auto; text-align: center; padding: 0 18px; }
  .wi-gal-title .script { font-size: 52px; }
  /* min-width:0 WAJIB: tanpa ini, .wi-gal-content (flex item di flex-column)
     tidak boleh menyusut < min-content isinya, sehingga slider melebar
     mengikuti SEMUA foto (lebar > layar) → tidak ada overflow → tidak ada
     yang bisa di-scroll (baik swipe maupun tombol). */
  .wi-gal-content { padding: 0 !important; min-width: 0; width: 100%; }
  .wi-gal-slider {
    gap: 10px; padding: 4px 18px;
    /* width/max-width 100% MENGUNCI slider selebar layar → foto yang berlebih
       jadi overflow horizontal yang bisa digeser (native maupun scrollBy). */
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* touch-action: pan-x + overflow-y: hidden menjadikan ini scroller
       horizontal satu-arah yang tegas, supaya swipe tidak "bocor" ke scroll
       vertikal halaman di sebagian webview. */
    touch-action: pan-x;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
  }
  .wi-gal-slide { 
    width: 65vw; 
    /* height: 220px;  */
  }
  .wi-gal-bottom { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; padding: 0 18px; }
  .wi-gal-bottom .wi-gal-item { aspect-ratio: 4/3; height: 100%;  }
}

/* ===================== WISHES (sticky) ===================== */
/* JS moves the sticky behavior to the outermost Elementor wrapper (position:sticky
   does not work on the inner <section> because its wrappers match its height).
   Nilai `top` di-set inline oleh JS: top = tinggi-layar − tinggi-section
   (negatif untuk section yang lebih tinggi dari layar), sehingga section
   discroll normal sampai selesai dibaca baru terkunci — aman di mobile.
   JANGAN pakai bottom:0 — sticky bottom justru menarik section naik
   menutupi layar pertama saat halaman dimuat. */
.wi-stick-under { position: sticky !important; z-index: 1; }
.wi-stick-over  { position: relative; z-index: 2; }

.wi-wishes { position: sticky; top: 0; z-index: 1; min-height: 100vh; background: var(--wi-rust-dark); color: #fff; display: flex; align-items: center; padding: 60px 0; font-family: var(--wi-sans); -webkit-font-smoothing: antialiased; }
.wi-wishes .inner { display: flex; align-items: center; gap: 60px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; flex-wrap: wrap; }
.wi-wishes .wtitle { flex: 1; text-align: left; min-width: 260px; }
.wi-wishes .wtitle .script { font-family: var(--wi-script); color: #fff; font-size: clamp(50px,7vw,88px); line-height: 1.1; }
.wi-wishes .wtitle p { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 15px; max-width: 300px; line-height: 1.85; font-weight: 300; }
.wi-wishes form { flex: 1; text-align: left; min-width: 260px; }
.wi-wishes label { display: block; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin: 18px 0 8px; color: rgba(255,255,255,.7); }
.wi-wishes input, .wi-wishes textarea, .wi-wishes select {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; font-family: var(--wi-sans); font-size: 15px; outline: none;
  transition: border-color .2s, background .2s;
}
.wi-wishes input:focus, .wi-wishes textarea:focus, .wi-wishes select:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.18); }
.wi-wishes input::placeholder, .wi-wishes textarea::placeholder { color: rgba(255,255,255,.45); }
.wi-wishes textarea { min-height: 120px; resize: vertical; }
.wi-wishes select { cursor: pointer; }
.wi-wishes select option { background: #3b2a24; color: #fff; }
.wi-form-notice {
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px;
  background: rgba(231, 76, 60, 0.2); border: 1px solid rgba(231, 76, 60, 0.5); color: #ffb4a2;
}
.wi-form-notice.success {
  background: rgba(46, 204, 113, 0.2); border-color: rgba(46, 204, 113, 0.5); color: #a8e6cf;
}
.wi-wishes .wi-submit {
  width: 100%; margin-top: 20px; background: #fff; color: var(--wi-rust-dark); border: none; border-radius: 10px;
  padding: 16px; font-weight: 500; cursor: pointer; font-family: var(--wi-sans); font-size: 15px; letter-spacing: .5px; transition: opacity .2s, background .2s, color .2s;
}
.wi-wishes .wi-submit:hover { opacity: .9; }
@media(max-width:768px) {
  .wi-wishes { position: relative; min-height: auto; padding: 60px 0; }
  .wi-wishes .inner { flex-direction: column; gap: 32px; padding: 0 20px; }
  .wi-wishes .wtitle { text-align: center; }
  .wi-wishes .wtitle .script { font-size: clamp(44px,12vw,72px); }
  .wi-wishes .wtitle p { max-width: 100%; font-size: 14px; }
  .wi-wishes form { width: 100%; }
}

/* ===================== WISHES DISPLAY ===================== */
.wi-wishes-display { background: var(--wi-bg); padding: 70px 0; }
.wi-wishes-display .stitle { margin-bottom: 25px; }

/* Bar Ringkasan Statistik RSVP */
.wi-wishes-stats {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  margin: 0 auto 35px; max-width: 600px; padding: 16px 24px;
  background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.wi-stat-item { flex: 1; text-align: center; }
.wi-stat-item:not(:last-child) { border-right: 1px solid rgba(0,0,0,.08); }
.wi-stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--wi-rust); font-family: var(--wi-serif); line-height: 1.1; }
.wi-stat-lbl { display: block; font-size: 12px; color: var(--wi-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

.wi-wish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 10px; text-align: left; }
.wi-wish-card { position: relative; background: #fff; border-radius: 12px; padding: 22px 35px 22px 22px; box-shadow: 0 6px 24px rgba(0,0,0,.05); animation: wiWishIn .5s ease both; display: flex; flex-direction: column; }
@keyframes wiWishIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.wi-wish-card .wc-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wi-wish-card .wc-name { font-family: var(--wi-serif); font-size: 19px; color: var(--wi-rust); font-weight: 600; line-height: 1.2; word-break: break-word; }
.wi-card-badge {
  display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.wi-badge-hadir { background: #e8f5e9; color: #2e7d32; }
.wi-badge-absen { background: #ffebee; color: #c62828; }

.wi-wish-card .wc-msg { font-size: 14px; color: var(--wi-muted); line-height: 1.65; flex-grow: 1; margin-bottom: 12px; word-break: break-word; white-space: pre-line; }
.wi-wish-card .wc-time { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.5px; }

/* Tombol hapus (moderasi) — hanya dirender kalau admin sedang login. */
.wc-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.05);
  color: var(--wi-muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.wc-delete:hover { background: #c0392b; color: #fff; }
.wc-delete:disabled { opacity: .5; cursor: default; }

.wi-wish-empty { color: var(--wi-muted); font-size: 15px; font-style: italic; text-align: center; grid-column: 1 / -1; padding: 40px 0; }

/* Tombol Load More */
.wi-load-more-wrap { text-align: center; margin-top: 35px; }
.wi-load-more-btn {
  background: transparent; border: 1.5px solid var(--wi-rust); color: var(--wi-rust);
  padding: 12px 28px; border-radius: 30px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .25s ease; font-family: var(--wi-sans); letter-spacing: 0.5px;
}
.wi-load-more-btn:hover { background: var(--wi-rust); color: #fff; transform: translateY(-1px); }

@media(max-width:768px) {
  .wi-wishes-stats { padding: 12px 16px; gap: 10px; }
  .wi-stat-num { font-size: 22px; }
  .wi-stat-lbl { font-size: 11px; }
  .wi-wish-list { grid-template-columns: 1fr; }
}

/* ===================== THANK YOU ===================== */
.wi-thankyou {
  position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-align: center; padding: 60px 24px;
  background-color: #1a1410; background-position: center; background-size: cover; background-repeat: no-repeat;
  font-family: var(--wi-sans); -webkit-font-smoothing: antialiased;
}
.wi-thankyou .wi-reveal { width: 100%; max-width: 820px; margin: 0 auto; }
.wi-inviters { margin: 0 auto 90px; width: 100%; max-width: 760px; }
.wi-inviters-title {
  font-family: var(--wi-serif);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  color: #f0c898;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.wi-inviters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
  align-items: start;
  text-align: center;
}
.wi-inviters-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wi-inviter-item {
  font-family: var(--wi-sans);
  font-size: 15px;
  font-weight: 400;
  color: #f2eee6;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.wi-thankyou .script {
  font-family: var(--wi-script);
  color: #fff;
  font-size: clamp(54px,8vw,96px);
  line-height: 1.1;
  margin-top: 25px; /* Spasi tambahan agar tidak mepet */
}
.wi-thankyou p { color: #f2eee6; max-width: 600px; margin: 20px auto 0; font-size: 16px; line-height: 1.85; font-weight: 300; }
.wi-thankyou .with { margin-top: 30px; font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: 1px; }
.wi-thankyou .with b { display: block; font-family: var(--wi-serif); font-weight: 600; color: #f0c898; font-size: 26px; margin-top: 6px; font-style: italic; }
.wi-thankyou .deco { margin: 30px auto 0; color: rgba(255,255,255,.35); }

/* ===================== FOOTER ===================== */
.wi-footer { position: relative; z-index: 3; background: #2f2a22; color: #b7af9e; text-align: center; padding: 24px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===================== MUSIC ===================== */
.wi-music-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999997; /* di bawah cover & lightbox, di atas semua section */
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--wi-rust);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, opacity .2s;
  opacity: .85;
}
.wi-music-btn:hover { transform: scale(1.08); opacity: 1; }
.wi-music-btn.playing { animation: wiMusicSpin 3s linear infinite; }
@keyframes wiMusicSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media(max-width:768px) {
  .wi-music-btn { width: 52px; height: 52px; bottom: 16px; left: 16px; }
}

/* ===================== GIFT / ANGPAO DIGITAL ===================== */
/* Konten langsung tampil (tanpa animasi amplop — revisi Pak Bayu 10/7),
   tapi section tetap ikut efek sticky reveal: full-viewport & konten di
   tengah supaya terlihat utuh saat terkunci ditimpa Thank You. */
.wi-gift {
  background: var(--wi-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Jarak napas dari section Kind Words di atasnya — PADDING (bukan margin):
   margin menciptakan celah transparan yang membuat section Wishes (sticky,
   warna oranye) di belakangnya "mengintip" lewat celah itu. Padding terisi
   background sendiri (--wi-bg), jadi solid/tertutup. Selector 2-class
   (.wi-gift.wi-section) sengaja dipakai agar spesifisitasnya menang atas
   aturan .wi-section generik di GLOBAL MOBILE FIXES, terlepas urutan file. */
.wi-gift.wi-section { padding-top: 160px; }
@media(max-width:768px) {
  .wi-gift.wi-section { padding-top: 50px; }
}
.wi-gift-sub { max-width: 560px; margin: 0 auto 34px; }
.wi-gift-content { display: block; }

/* Kartu rekening */
.wi-gift-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 10px 36px rgba(0,0,0,.07);
  max-width: 420px;
  margin: 0 auto 18px;
  text-align: left;
}
.wi-gift-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.wi-gift-card .bank-logo { height: 34px; width: auto; display: block; }
.wi-gift-card .bank-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--wi-ink);
}
.wi-gift-card .wi-copy-btn {
  background: transparent;
  border: 1px solid var(--wi-line);
  border-radius: 30px;
  padding: 8px 16px;
  font-family: var(--wi-sans);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--wi-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s;
}
.wi-gift-card .wi-copy-btn:hover { border-color: var(--wi-rust); color: var(--wi-rust); }
.wi-gift-card .acc-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wi-gift-card .acc-num {
  font-family: var(--wi-serif);
  font-size: 24px;
  letter-spacing: 1.5px;
  color: var(--wi-ink);
}
.wi-gift-card .acc-name { color: var(--wi-muted); font-size: 14px; }

/* Alamat pengiriman kado */
.wi-gift-address { max-width: 480px; margin: 30px auto 0; }
.wi-gift-address h4 {
  font-family: var(--wi-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--wi-ink);
  margin-bottom: 10px;
}
.wi-gift-address p { font-size: 15px; margin-bottom: 12px; }
.wi-gift-address .row { font-size: 14px; color: var(--wi-muted); margin: 4px 0; }
.wi-gift-address .row b { color: var(--wi-ink); font-weight: 600; }

/* Tombol konfirmasi WA */
.wi-gift-wa { margin-top: 28px; }

@media(max-width:768px) {
  .wi-gift-sub { padding: 0 6px; }
  .wi-gift-card { padding: 20px 18px; }
  .wi-gift-card .acc-num { font-size: 20px; }
}

/* ===================== LIGHTBOX ===================== */
#wi-lightbox {
  display: none; position: fixed; inset: 0; z-index: 999998; background: rgba(0,0,0,.9);
  align-items: center; justify-content: center; cursor: zoom-out;
}
#wi-lightbox.open { display: flex; }
#wi-lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; pointer-events: none; }
#wi-lightbox .lb-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; opacity: .7; transition: opacity .2s; }
#wi-lightbox .lb-close:hover { opacity: 1; }

/* ===================== GLOBAL MOBILE FIXES ===================== */
@media(max-width:768px) {
  .wi-container { padding: 0 18px; }
  .wi-section { padding: 50px 0; }
  .wi-cover { padding: 30px 24px; }
  .wi-cover::before { background: linear-gradient(180deg, rgba(18,14,8,.55) 0%, rgba(18,14,8,.7) 100%); }
  .wi-cover .wi-cover-bg { background-position: center top; transform: scale(1); animation: none; }
  .wi-cover .wi-cover-content { width: 100%; max-width: 880px; }
  .wi-cover .dear { font-size: 13px; letter-spacing: 3px; margin-bottom: 12px; }
  .wi-cover .guest { font-size: 32px; margin-bottom: 16px; }
  .wi-cover .names { font-size: 58px; margin-bottom: 14px; }
  .wi-cover .date { font-size: 12px; letter-spacing: 4px; margin-bottom: 28px; }
  .wi-cover .deco-line { height: 40px; margin-bottom: 18px; }
  .wi-cover .wi-btn.white { font-size: 13px; padding: 14px 32px; letter-spacing: 2px; }

  .wi-hero { min-height: 100vh; min-height: 100dvh; padding: 80px 20px 100px; background-position: center top; }
  .wi-hero .the { font-size: 42px; }
  .wi-hero .names { font-size: 64px; }
  .wi-hero .date { margin: 16px 0 50px !important; font-size: 12px; letter-spacing: 4px; }
  .wi-hero .countdown-label { font-size: 12px; letter-spacing: 3px; margin-bottom: 12px; }
  .wi-cd-num { font-size: 40px; }
  .wi-cd-lbl { font-size: 10px; }
  .wi-cd-sep { font-size: 32px; padding-bottom: 12px; }
  .wi-countdown { gap: 10px; }
  .wi-hero .scroll-hint { bottom: 25px; font-size: 11px; }

  .wi-verse { padding: 50px 0; }
  .wi-verse .sanskrit { font-size: 15px; line-height: 1.7; padding: 0 10px; max-width: 100%; }
  .wi-verse .verse-quote { font-size: 14px; padding: 0 10px; }
  .wi-verse .stitle { font-size: 36px; }

  .wi-couple { padding-bottom: 100px; }
  .wi-cards { margin-top: 32px; }

  .wi-videosec video, .wi-videosec .vph { height: 40vh; }

  .wi-event .stitle { font-size: clamp(36px,10vw,56px); }

  .wi-thankyou { min-height: 100vh; padding: 60px 20px; background-position: center top; }
  .wi-inviters { margin-bottom: 90px; }
  .wi-inviters-title { font-size: 20px; margin-bottom: 18px; letter-spacing: 1.5px; }
  .wi-inviters-grid { gap: 12px 16px; }
  .wi-inviter-item { font-size: 13px; line-height: 1.45; }
  .wi-thankyou .script { font-size: 56px; margin-top: 30px; }
  .wi-thankyou p { font-size: 14px; max-width: 100%; }
}
