/* ======================================================================
   1. TOKENS — Dark Luxury Emerald & Gold
   ====================================================================== */
:root {
  --emerald: #064e3b;
  --emerald-2: #065f46;
  --navy: #0f172a;
  --navy-2: #0b1222;
  --gold: #d4af37;
  --gold-light: #f3dc8b;
  --gold-grad: linear-gradient(135deg, #f7e7a6 0%, #d4af37 45%, #a8841f 100%);
  --text: #f1f5f2;
  --muted: #a7b8b1;
  --line: rgba(212, 175, 55, .32);
  --glass: rgba(6, 78, 59, .32);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slide-h: 100vh;
}
@supports (height: 100svh) { :root { --slide-h: 100svh; } }

/* ======================================================================
   2. FULL-SCREEN SCROLL SNAP
   <html> menjadi scroller agar AOS (yang mendengarkan scroll window) tetap bekerja.
   ====================================================================== */
html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
html.is-locked { overflow: hidden; }       /* terkunci selama cover tampil */

body {
  margin: 0;
  overflow-x: clip;                         /* clip: tidak membuat body jadi scroll container */
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

.slide {
  position: relative;
  height: var(--slide-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;                 /* 1 swipe = 1 slide */
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Isi slide: jika konten lebih tinggi dari layar HP, scroll di dalam (bukan terpotong) */
.slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: clamp(3.5rem, 9vh, 5.5rem) 1.1rem clamp(4.5rem, 10vh, 6rem);
}
.slide-inner::-webkit-scrollbar { display: none; }

/* Latar belakang slide */
.bg-emerald { background: radial-gradient(ellipse at 30% 20%, #0b6b51 0%, var(--emerald) 40%, #032a20 100%); }
.bg-navy    { background: radial-gradient(ellipse at 70% 10%, #1e293b 0%, var(--navy) 55%, var(--navy-2) 100%); }

/* Parallax latar fixed: gambar diam, slide bergeser di atasnya → kesan kedalaman */
.bg-fixed {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(6, 78, 59, .78)), var(--img);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
/* iOS Safari tidak mendukung background-attachment: fixed → fallback scroll */
@supports (-webkit-touch-callout: none) { .bg-fixed { background-attachment: scroll; } }

/* Pola art-deco tipis di atas latar */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='.08'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M10 40a30 30 0 0 1 60 0M20 40a20 20 0 0 1 40 0'/%3E%3Cpath d='M-40 80a40 40 0 0 1 80 0M40 80a40 40 0 0 1 80 0M-30 80a30 30 0 0 1 60 0M50 80a30 30 0 0 1 60 0'/%3E%3C/g%3E%3C/svg%3E");
}
.bg-fixed::before { opacity: .25; }

/* ======================================================================
   3. LAPISAN PARALLAX MULTI-ARAH
   Digerakkan JS: posisi scroll per slide + pointer (desktop) / giroskop (HP).
   ====================================================================== */
.layer { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.orb { border-radius: 50%; filter: blur(2px); }
.orb-gold { background: radial-gradient(circle at 35% 35%, rgba(247, 231, 166, .55), rgba(212, 175, 55, .12) 60%, transparent 72%); }
.orb-emerald { background: radial-gradient(circle at 35% 35%, rgba(52, 211, 153, .35), rgba(6, 95, 70, .12) 60%, transparent 72%); }
.sparkle { width: 14px; height: 14px; color: var(--gold-light); }
.leaf { width: 120px; color: var(--gold); opacity: .55; }
.arch-line { border: 1px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0; }

/* ======================================================================
   4. KOMPONEN
   ====================================================================== */
.eyebrow { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.slide-no { font-family: var(--font-head); font-style: italic; color: var(--gold-light); opacity: .8; }
.title { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.9rem, 7.5vw, 3rem); line-height: 1.15; margin: 0; color: #fff; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.script { font-family: var(--font-head); font-style: italic; font-weight: 400; }
.muted { color: var(--muted); }

.ornament { display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--gold); margin: .9rem auto; }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament i { font-size: .7rem; }

.lux-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  outline: 1px solid rgba(212, 175, 55, .12);
  outline-offset: -7px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.btn-gold, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.4rem; border-radius: 50rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s;
}
.btn-gold { border: 0; color: #1c1606; background: var(--gold-grad); box-shadow: 0 10px 26px -10px rgba(212, 175, 55, .75); }
.btn-gold:hover { color: #1c1606; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(212, 175, 55, .9); }
.btn-line { border: 1px solid rgba(212, 175, 55, .6); color: var(--gold-light); background: rgba(15, 23, 42, .25); }
.btn-line:hover { color: #1c1606; background: var(--gold); }
.btn-sm-x { padding: .45rem .9rem; font-size: .7rem; }
.btn-gold:focus-visible, .btn-line:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ======================================================================
   5. COVER OVERLAY
   ====================================================================== */
.cover {
  position: fixed; inset: 0; z-index: 1060;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, .55), rgba(6, 78, 59, .9)), var(--cover-img) center / cover;
  transition: opacity 1s var(--ease), visibility 1s, transform 1.2s var(--ease);
}
.cover.is-open { opacity: 0; visibility: hidden; transform: scale(1.06); }
.cover-card { width: min(100%, 400px); padding: 2.5rem 1.5rem 2rem; border-radius: 999px 999px 22px 22px; }
.cover-names { font-family: var(--font-head); font-style: italic; font-size: clamp(2.6rem, 12vw, 3.6rem); line-height: 1.1; margin: .5rem 0; }
.cover-guest { margin: 1.5rem 0; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cover-guest small { display: block; font-size: .78rem; color: var(--muted); }
.cover-guest strong { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; margin-top: .2rem; word-break: break-word; }

/* ======================================================================
   6. SLIDE-SLIDE
   ====================================================================== */
/* 1 · Hero */
.hero-names { font-family: var(--font-head); font-style: italic; font-weight: 400; font-size: clamp(3.2rem, 15vw, 6.2rem); line-height: 1; margin: .5rem 0; }
.hero-names span { display: block; font-size: .45em; color: var(--gold-light); margin: .2em 0; }
.hero-date { display: inline-flex; gap: .9rem; align-items: center; font-family: var(--font-head); letter-spacing: .25em; color: var(--gold-light); }
.hero-date i { width: 1px; height: 1.2rem; background: var(--gold); }
.swipe-hint { position: absolute; left: 50%; bottom: 1.5rem; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .3rem; font-size: .62rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-light); text-decoration: none; }
.swipe-hint i { font-size: 1.1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 2 · Ayat */
.arabic { font-family: 'Amiri', serif; font-size: clamp(1.25rem, 5.2vw, 1.8rem); line-height: 2.1; color: var(--gold-light); direction: rtl; margin: 0 0 .8rem; }
.verse { font-family: var(--font-head); font-style: italic; font-size: clamp(.98rem, 3.6vw, 1.15rem); line-height: 1.7; margin: 0 0 .6rem; }
.welcome { max-width: 520px; margin: 1.25rem auto 0; font-size: .9rem; color: var(--muted); }

/* 3 · Mempelai */
.couple-grid { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
@media (min-width: 768px) { .couple-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.person-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; text-align: left; }
.person-photo { flex: 0 0 auto; width: 96px; aspect-ratio: 3 / 4; border-radius: 999px 999px 14px 14px; overflow: hidden; border: 2px solid var(--gold); padding: 3px; background: var(--navy); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.person-name { font-family: var(--font-head); font-style: italic; font-size: 1.9rem; line-height: 1.1; margin: 0; }
.person-full { font-weight: 600; font-size: .92rem; margin: .25rem 0; color: #fff; }
.person-parents { font-size: .78rem; color: var(--muted); margin: 0; }
@media (min-width: 768px) {
  .person-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .person-photo { width: 190px; }
  .person-name { font-size: 2.4rem; }
}
.amp-badge { display: grid; place-items: center; width: 44px; height: 44px; margin: -.5rem auto; border-radius: 50%; font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: #1c1606; background: var(--gold-grad); position: relative; z-index: 3; }
@media (min-width: 768px) { .amp-badge { display: none; } }

/* 4 · Acara & countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 420px; margin: 0 auto; }
.cd-box { padding: .7rem .2rem; border-radius: 14px; text-align: center; }
.cd-num { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-label { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.event-grid { display: grid; gap: .8rem; max-width: 820px; margin: 0 auto; }
@media (min-width: 640px) { .event-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; } }
.event-card { padding: 1.1rem 1.1rem 1.2rem; text-align: left; }
.event-card h3 { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; margin: 0 0 .4rem; color: var(--gold-light); }
.event-card ul { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .84rem; }
.event-card li { display: flex; gap: .5rem; padding: .12rem 0; }
.event-card li i { color: var(--gold); }

/* 5 · Galeri */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; max-width: 760px; margin: 0 auto; }
.g-item { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--emerald); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-item::after { content: "\002B"; position: absolute; inset: auto .4rem .4rem auto; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; color: #1c1606; background: var(--gold-grad); opacity: 0; transform: scale(.6); transition: .4s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.12); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 768px) { .gallery { gap: .8rem; } .g-item:nth-child(1), .g-item:nth-child(5) { aspect-ratio: auto; grid-row: span 2; } }

.lightbox { position: fixed; inset: 0; z-index: 1070; display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem; background: rgba(11, 18, 34, .95); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; border: 1px solid var(--line); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 78, 59, .5); color: var(--gold-light); font-size: 1.15rem; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); } .lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-size: .75rem; letter-spacing: .25em; color: var(--muted); }

/* 6 · Amplop: carousel geser di HP, grid di desktop */
.gift-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: none; }
.gift-track::-webkit-scrollbar { display: none; }
.gift-track > * { scroll-snap-align: center; }
@media (min-width: 900px) { .gift-track { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.bank-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem;
  min-height: 190px; padding: 1.3rem; border-radius: 18px; color: #fff; text-align: left;
  border: 1px solid rgba(212, 175, 55, .55); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9);
}
.bank-card::after { content: ""; position: absolute; inset: -60%; background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, .16) 50%, transparent 56%); animation: shine 6s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 55% { transform: translateX(-50%); } 100% { transform: translateX(50%); } }
.bank-bca { background: radial-gradient(circle at 85% 10%, rgba(212, 175, 55, .35), transparent 45%), linear-gradient(135deg, #0b6b51, #064e3b 55%, #022c22); }
.bank-mandiri { background: radial-gradient(circle at 85% 10%, rgba(212, 175, 55, .3), transparent 45%), linear-gradient(135deg, #1e293b, #0f172a 60%, #020617); }
.bank-addr { background: linear-gradient(135deg, rgba(212, 175, 55, .22), rgba(6, 78, 59, .5)); }
.chip { width: 2.5rem; height: 1.8rem; border-radius: .35rem; background: linear-gradient(135deg, #f7e7a6, #b8912d); }
.bank-name { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 1.4rem; color: var(--gold-light); }
.bank-no { font-family: var(--font-head); font-size: clamp(1.25rem, 6vw, 1.5rem); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.bank-holder { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.btn-copy { position: relative; z-index: 1; }
.swipe-note { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .swipe-note { display: none; } }

/* 7 · RSVP */
.rsvp-card { max-width: 560px; margin: 0 auto; padding: 1.1rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 50rem; background: rgba(15, 23, 42, .5); border: 1px solid var(--line); margin-bottom: 1rem; }
.tab { border: 0; border-radius: 50rem; padding: .55rem; font-size: .78rem; font-weight: 600; color: var(--muted); background: transparent; transition: .3s; }
.tab[aria-selected="true"] { color: #1c1606; background: var(--gold-grad); }
.form-label { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .3rem; }
.form-control, .form-select { background-color: rgba(15, 23, 42, .55); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: .6rem .85rem; font-size: .9rem; }
.form-control::placeholder { color: rgba(167, 184, 177, .6); }
.form-control:focus, .form-select:focus { background-color: rgba(15, 23, 42, .7); color: #fff; border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(212, 175, 55, .2); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23d4af37' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); }
.form-select option { background: var(--navy); }
.attend { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.attend input { position: absolute; opacity: 0; pointer-events: none; }
.attend label { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .2rem; font-size: .74rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .3s; }
.attend label i { color: var(--gold); font-size: 1.05rem; }
.attend input:checked + label { border-color: var(--gold); background: rgba(212, 175, 55, .14); color: #fff; }
.attend input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .6rem; }
.stats div { text-align: center; padding: .5rem .2rem; border-radius: 12px; background: rgba(212, 175, 55, .08); border: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; }
.stats small { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feed { max-height: calc(var(--slide-h) * .42); overflow-y: auto; padding-right: .3rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.wish { display: flex; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid rgba(212, 175, 55, .15); text-align: left; }
.wish:last-child { border-bottom: 0; }
.wish.is-new { animation: wishIn .8s var(--ease); }
@keyframes wishIn { from { opacity: 0; transform: translateY(-12px); } }
.wish-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; font-weight: 700; color: #1c1606; background: var(--gold-grad); }
.wish-name { font-weight: 600; font-size: .88rem; color: #fff; }
.wish-badge { font-size: .6rem; padding: .08rem .5rem; border-radius: 50rem; border: 1px solid var(--line); color: var(--gold-light); white-space: nowrap; }
.wish-msg { margin: .2rem 0; font-size: .84rem; white-space: pre-line; word-break: break-word; }
.wish-time { font-size: .7rem; color: var(--muted); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 8 · Penutup */
.closing-title { font-family: var(--font-head); font-style: italic; font-size: clamp(2.8rem, 13vw, 4.5rem); line-height: 1.05; margin: .3rem 0; }
.closing-families { font-size: .86rem; line-height: 1.8; }
.closing-families strong { color: #fff; font-weight: 600; }

/* ======================================================================
   7. NAVIGASI TITIK, TOMBOL MUSIK (PIRINGAN HITAM), TOAST
   ====================================================================== */
.dots { position: fixed; right: .7rem; top: 50%; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; transform: translateY(-50%); opacity: 0; transition: opacity .8s; }
.dots.is-visible { opacity: 1; }
.dots a { position: relative; display: block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; transition: .35s var(--ease); }
.dots a.active { height: 26px; border-radius: 50rem; background: var(--gold); }
.dots a span { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light); opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (hover: hover) { .dots a:hover span { opacity: 1; } }

.vinyl {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 1040; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0; padding: 0;
  background:
    radial-gradient(circle, var(--gold) 0 18%, #1c1606 19% 21%, transparent 22%),
    repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2px 4px);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .6), 0 10px 25px -6px rgba(0, 0, 0, .8);
  opacity: 0; transform: scale(.5); pointer-events: none; transition: opacity .5s, transform .5s var(--ease);
}
.vinyl::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); }
.vinyl i { position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; color: #1c1606; z-index: 1; }
.vinyl.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.vinyl.is-playing { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-x { position: fixed; left: 50%; bottom: 5.2rem; z-index: 1080; display: flex; align-items: center; gap: .5rem; max-width: calc(100vw - 2rem); padding: .65rem 1.15rem; font-size: .85rem; border-radius: 50rem; background: rgba(6, 78, 59, .95); color: #fff; border: 1px solid var(--line); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: .4s var(--ease); }
.toast-x.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast-x i { color: var(--gold); }

/* Layar pendek (HP kecil / landscape): padatkan isi agar muat 1 layar */
@media (max-height: 700px) {
  .slide-inner { padding-top: 3rem; padding-bottom: 4rem; }
  .latin, .welcome { display: none; }
  .person-photo { width: 78px; }
  .person-name { font-size: 1.6rem; }
  .bank-card { min-height: 170px; gap: 1rem; }
  .title { font-size: 1.7rem; }
  .cd-box { padding: .45rem .2rem; }
  .cd-num { font-size: 1.45rem; }
  .event-card { padding: .75rem .9rem .85rem; }
  .event-card h3 { font-size: 1.25rem; margin-bottom: .15rem; }
  .event-card ul { font-size: .78rem; margin-bottom: .45rem; }
  .attend label { padding: .4rem .2rem; }
  #rsvpMsg { height: 4.2rem; }
  .rsvp-card .mb-2 { margin-bottom: .4rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================================================================
   8. KELAS UTILITAS (dipindah dari atribut style statis)
   ====================================================================== */
.svg-defs { position: absolute; }
.cover-date { letter-spacing: .2em; color: var(--gold-light); }
.text-sm-88 { font-size: .88rem; }
.quote-wrap { max-width: 640px; margin: 0 auto; }
.closing-wrap { max-width: 560px; margin: 0 auto; }
.closing-names { font-size: clamp(2rem, 9vw, 3rem); }
.credit { font-size: .7rem; letter-spacing: .12em; color: var(--muted); }
.gift-intro { max-width: 480px; font-size: .86rem; }
.gift-icon { color: var(--gold-light); }
.gift-address { font-size: .92rem; }
.live-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* Latar foto dekoratif bawaan tema untuk slide Amplop (bukan data mempelai) */
.bg-gift { --img: url('https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?auto=format&fit=crop&w=1600&q=70'); }

/* Posisi lapisan parallax per slide */
.ly-home-1 { width: 220px; height: 220px; top: 8%; left: -60px; }
.ly-home-2 { width: 260px; height: 260px; bottom: 4%; right: -80px; }
.ly-home-3 { top: 22%; right: 18%; }
.ly-home-4 { bottom: 28%; left: 14%; width: 10px; height: 10px; }
.ly-quote-1 { width: 340px; height: 420px; left: 50%; top: 50%; margin: -210px 0 0 -170px; }
.ly-quote-2 { top: 6%; left: -24px; }
.ly-quote-3 { bottom: 6%; right: -24px; transform: scale(-1); }
.ly-quote-4 { width: 160px; height: 160px; bottom: 12%; left: 8%; }
.ly-couple-1 { width: 300px; height: 300px; top: -60px; left: -90px; }
.ly-couple-2 { width: 200px; height: 200px; bottom: -40px; right: -50px; }
.ly-couple-3 { top: 16%; right: 12%; }
.ly-event-1 { width: 180px; height: 180px; top: 10%; right: -40px; }
.ly-event-2 { bottom: 4%; left: -30px; }
.ly-gallery-1 { width: 240px; height: 240px; top: -50px; right: -70px; }
.ly-gallery-2 { width: 220px; height: 220px; bottom: -40px; left: -60px; }
.ly-gift-1 { width: 200px; height: 200px; top: 6%; left: -50px; }
.ly-gift-2 { bottom: 20%; right: 10%; }
.ly-rsvp-1 { width: 280px; height: 280px; top: -70px; right: -80px; }
.ly-rsvp-2 { width: 180px; height: 180px; bottom: -40px; left: -40px; }
.ly-closing-1 { width: 260px; height: 260px; top: -60px; left: -70px; }
.ly-closing-2 { width: 240px; height: 240px; bottom: -50px; right: -60px; }
.ly-closing-3 { top: 30%; left: 12%; }
