/* ==========================================================================
   COMPONENTS
   Cover Gate, Arch/Oval Frames, Ornaments, Countdown, Timeline, Events,
   Gallery + Lightbox, Gift Cards, RSVP, Bottom Nav, Music Player & Toast
   ========================================================================== */

/* ---------- 1. COVER GATE (AMPLOP PEMBUKA FULLSCREEN DI LAYAR HP) ---------- */
.cover-gate {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-max-width);
  height: 100dvh;
  z-index: 100;
  background:
    radial-gradient(circle at 50% 24%, #FBF7F0 0%, var(--bg-cream) 58%, var(--bg-cream-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 24px 30px;
  overflow: hidden;
  transition: transform 0.9s var(--ease-luxury), opacity 0.75s ease, visibility 0.9s ease;
}

.cover-gate.is-open {
  transform: translate(-50%, -100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Bingkai Garis Tipis di Pinggir Cover */
.cover-gate__border-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(185, 146, 88, 0.45);
  border-radius: 200px 200px 18px 18px;
  pointer-events: none;
  z-index: 1;
}

.cover-gate__border-frame::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(115, 85, 66, 0.18);
  border-radius: 196px 196px 14px 14px;
}

.cover-gate__top-ornament {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 6px;
}

.cover-gate__kicker {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-medium);
}

/* Frame Arch Utama di Cover */
.cover-arch-wrap {
  position: relative;
  z-index: 3;
  width: min(236px, 60vw);
  margin: 8px auto 6px;
}

.arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.05;
  padding: 8px;
  border-radius: var(--radius-arch-lg);
  border: 1.5px solid var(--gold-antique);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(235, 223, 206, 0.55));
  box-shadow: var(--shadow-frame);
}

.arch-frame::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 226px 226px 24px 24px;
  border: 1px dashed rgba(185, 146, 88, 0.55);
  pointer-events: none;
}

.arch-frame__inner {
  width: 100%;
  height: 100%;
  border-radius: 212px 212px 14px 14px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-cream-deep);
}

.arch-frame__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: sepia(9%) contrast(1.03) saturate(0.95);
}

/* Aksen Bunga Tengah Bawah & Bahu Kanan Atas pada Frame Arch Cover */
.arch-frame__floral-center {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 146px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(61, 40, 30, 0.2));
}

.arch-frame__floral-shoulder {
  position: absolute;
  width: 92px;
  z-index: 5;
  pointer-events: none;
  filter: sepia(8%) drop-shadow(0 5px 10px rgba(61, 40, 30, 0.16));
}

.arch-frame__floral-shoulder--right {
  top: 10px;
  right: -28px;
  transform: rotate(24deg);
}

/* Konten Teks Cover */
.cover-gate__info {
  position: relative;
  z-index: 4;
  text-align: center;
  width: 100%;
  margin-top: 14px;
}

.cover-gate__names {
  font-family: var(--font-script);
  font-size: clamp(2.45rem, 10vw, 3.05rem);
  font-weight: 400;
  color: var(--brown-espresso);
  line-height: 1.08;
  margin-bottom: 4px;
}

.cover-gate__date {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brown-medium);
  margin-bottom: 12px;
}

.cover-guest-box {
  background: rgba(252, 249, 243, 0.88);
  backdrop-filter: blur(5px);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 10px 16px;
  margin: 0 auto 14px;
  max-width: 288px;
  box-shadow: 0 6px 18px rgba(61, 40, 30, 0.07);
}

.cover-guest-box__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.cover-guest-box__name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brown-espresso);
  line-height: 1.3;
}

/* Ornamen Sudut (4 Sudut Floral Asli dari assets/theme/) */
.floral-corner {
  position: absolute;
  width: 164px;
  max-width: 44%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.94;
  filter: sepia(10%) saturate(0.94) drop-shadow(0 6px 12px rgba(61, 40, 30, 0.14));
}

.floral-corner--right {
  bottom: -14px;
  right: -18px;
  transform-origin: center bottom;
}

.floral-corner--left {
  bottom: -14px;
  left: -18px;
  transform: scaleX(-1);
  transform-origin: center bottom;
}

.floral-corner--top-right {
  top: -16px;
  right: -18px;
  transform: scaleY(-1);
  transform-origin: center;
}

.floral-corner--top-left {
  top: -16px;
  left: -18px;
  transform: scale(-1, -1);
  transform-origin: center;
}

/* Variasi Ukuran & Kelembutan Floral agar Kaya tapi Tetap Elegan */
.floral-corner--cover-top {
  width: 132px;
  opacity: 0.86;
  z-index: 2;
}

.floral-corner--cover-bottom {
  width: 184px;
  opacity: 0.96;
  z-index: 2;
}

.floral-corner--hero-top {
  width: 132px;
  opacity: 0.84;
}

.floral-corner--section-accent {
  width: 146px;
  opacity: 0.62;
}

.floral-corner--section-soft {
  width: 138px;
  opacity: 0.48;
}

.floral-corner--dark-section {
  width: 154px;
  opacity: 0.44;
  z-index: 1;
  filter: sepia(12%) brightness(0.95) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

/* Ornamen SVG Placeholder Bagian Atas (untuk ornamen atas yg belum ada di assets) */
.svg-arch-crown {
  width: 148px;
  height: 26px;
  margin: 0 auto 4px;
  color: var(--gold-antique);
  opacity: 0.85;
}

/* ---------- 2. TOMBOL KLASIK VINTAGE ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-espresso) 100%);
  color: var(--bg-cream);
  border-color: rgba(214, 185, 135, 0.45);
  box-shadow: 0 8px 20px rgba(61, 40, 30, 0.24);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #5C3F31 0%, var(--brown-dark) 100%);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown-medium);
}

.btn--outline:hover {
  background: rgba(115, 85, 66, 0.1);
}

.btn--gold {
  background: linear-gradient(135deg, #C7A064 0%, #A98147 100%);
  color: #2B1C14;
  border-color: rgba(255, 245, 228, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn--gold:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.76rem;
}

.btn--block {
  width: 100%;
}

/* ---------- 3. HERO SECTION & COUNTDOWN ---------- */
.hero-section {
  padding-top: 68px;
  padding-bottom: 58px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, #FBF7F0 0%, var(--bg-cream) 64%, var(--bg-cream-deep) 100%);
}

.hero-top-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-medium);
  margin-bottom: 8px;
}

.hero-couple-name {
  font-family: var(--font-script);
  font-size: 3.15rem;
  font-weight: 400;
  color: var(--brown-espresso);
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Frame Oval Ikonik pada Hero */
.hero-oval-stage {
  position: relative;
  width: 248px;
  margin: 0 auto 36px;
}

.oval-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.95;
  padding: 9px;
  border-radius: var(--radius-oval);
  border: 1.5px solid var(--gold-antique);
  background: linear-gradient(180deg, #FCF8F1, #EFE3D2);
  box-shadow: var(--shadow-frame);
}

.oval-frame::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: var(--radius-oval);
  border: 1px solid rgba(185, 146, 88, 0.45);
  pointer-events: none;
}

.oval-frame__inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-oval);
  overflow: hidden;
  position: relative;
  background: var(--bg-cream-deep);
}

.oval-frame__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(8%) contrast(1.03);
}

.hero-oval-stage__floral {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 156px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(61, 40, 30, 0.18));
}

.hero-oval-stage__floral-top {
  position: absolute;
  top: -12px;
  right: -24px;
  width: 102px;
  z-index: 4;
  pointer-events: none;
  transform: rotate(22deg);
  filter: sepia(8%) drop-shadow(0 5px 10px rgba(61, 40, 30, 0.16));
}

/* Strip Tanggal Editorial */
.hero-date-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 22px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  margin-bottom: 28px;
  font-family: var(--font-serif);
  color: var(--brown-espresso);
}

.hero-date-banner__side {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-medium);
}

.hero-date-banner__day {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brown-espresso);
  padding: 0 12px;
  border-left: 1px solid var(--gold-line);
  border-right: 1px solid var(--gold-line);
}

/* Countdown Mini-Arch */
.countdown-wrap {
  margin-bottom: 34px;
}

.countdown-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brown-medium);
  margin-bottom: 14px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 344px;
  margin: 0 auto;
}

.countdown-item {
  background: linear-gradient(180deg, var(--brown-dark) 0%, var(--brown-espresso) 100%);
  color: var(--bg-cream);
  border-radius: 44px 44px 12px 12px;
  padding: 14px 6px 12px;
  border: 1px solid rgba(214, 185, 135, 0.42);
  box-shadow: 0 8px 18px rgba(61, 40, 30, 0.16);
}

.countdown-item__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: #F4DFBE;
}

.countdown-item__unit {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

/* Kartu Ayat / Quote */
.quote-card {
  position: relative;
  background: var(--bg-card-translucent);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quote-card::before {
  content: '“';
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 0.5;
  color: var(--gold-antique);
  margin-bottom: 10px;
}

.quote-card__arabic {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--brown-dark);
  margin-bottom: 12px;
  direction: rtl;
}

.quote-card__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.quote-card__source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-medium);
}

/* ---------- 4. SECTION MEMPELAI (OVAL PORTRAIT + PLACEHOLDER RAPI) ---------- */
.couple-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.couple-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 170px 170px 22px 22px;
  padding: 28px 20px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.couple-portrait-wrap {
  width: 174px;
  aspect-ratio: 3 / 3.7;
  margin: 0 auto 24px;
  padding: 7px;
  border-radius: var(--radius-oval);
  border: 1.5px solid var(--gold-antique);
  background: var(--bg-cream);
  position: relative;
}

.couple-portrait-floral {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(61, 40, 30, 0.16));
}

.couple-portrait-wrap::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-oval);
  border: 1px dashed rgba(185, 146, 88, 0.5);
  pointer-events: none;
}

.couple-portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-oval);
  overflow: hidden;
  background: linear-gradient(160deg, #EFE3D2 0%, #E1D0BA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* Placeholder Foto Vintage Rapi */
.vintage-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 250, 242, 0.72), rgba(226, 209, 187, 0.85));
  color: var(--brown-medium);
  position: relative;
}

.vintage-placeholder__monogram {
  font-family: var(--font-script);
  font-size: 3.1rem;
  line-height: 1;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.vintage-placeholder__icon {
  width: 30px;
  height: 30px;
  color: var(--gold-antique);
  margin-bottom: 6px;
  opacity: 0.9;
}

.vintage-placeholder__label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1.3;
}

.vintage-placeholder__hint {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  opacity: 0.8;
}

.couple-role {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-antique);
  margin-bottom: 4px;
}

.couple-name {
  font-family: var(--font-script);
  font-size: 2.35rem;
  color: var(--brown-espresso);
  line-height: 1.15;
  margin-bottom: 4px;
}

.couple-fullname {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.couple-parents {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.couple-parents strong {
  color: var(--brown-espresso);
  font-weight: 600;
}

.couple-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-medium);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-line);
  background: var(--bg-cream-soft);
}

.couple-ampersand {
  font-family: var(--font-script);
  font-size: 3.1rem;
  color: var(--gold-antique);
  line-height: 0.8;
}

/* ---------- 5. TIMELINE KISAH CINTA ---------- */
.story-timeline {
  position: relative;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold-antique), rgba(185, 146, 88, 0.25));
}

.story-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
}

.story-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-antique);
  border: 2.5px solid var(--bg-cream);
  box-shadow: 0 0 0 1px var(--gold-antique);
}

.story-item__year {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bg-cream);
  background: var(--brown-dark);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.story-item__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-espresso);
  margin-bottom: 6px;
}

.story-item__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- 6. RANGKAIAN ACARA (KARTU ARCH) & PETA ---------- */
.events-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 14px;
}

.event-arch-card {
  position: relative;
  background: linear-gradient(180deg, #FCF8F1 0%, #F3E9DB 100%);
  color: var(--text-primary);
  border-radius: var(--radius-arch-md);
  padding: 46px 22px 26px;
  text-align: center;
  border: 1.5px solid var(--gold-antique);
  box-shadow: 0 16px 36px rgba(14, 7, 4, 0.35);
}

.event-arch-card__floral {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(20, 10, 5, 0.22));
}

.event-arch-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 162px 162px 12px 12px;
  border: 1px solid rgba(185, 146, 88, 0.42);
  pointer-events: none;
}

.event-arch-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--bg-cream-deep);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-dark);
}

.event-arch-card__icon svg {
  width: 20px;
  height: 20px;
}

.event-arch-card__title {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--brown-espresso);
  line-height: 1.15;
  margin-bottom: 14px;
}

.event-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.event-date-row__num {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brown-espresso);
}

.event-date-row__meta {
  text-align: left;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--brown-medium);
}

.event-date-row__meta strong {
  display: block;
  color: var(--brown-espresso);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.event-arch-card__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-dark);
  background: rgba(185, 146, 88, 0.16);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.event-arch-card__venue {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brown-espresso);
  margin-bottom: 6px;
}

.event-arch-card__address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.event-arch-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* Kartu Peta Google Maps */
.maps-card {
  margin-top: 24px;
  background: rgba(252, 248, 241, 0.96);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--gold-antique);
  box-shadow: 0 14px 30px rgba(14, 7, 4, 0.3);
}

.maps-card__head {
  text-align: center;
  margin-bottom: 12px;
}

.maps-card__label {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brown-espresso);
}

.maps-card__dresscode {
  font-size: 0.76rem;
  color: var(--brown-medium);
  margin-top: 2px;
}

.maps-frame-box {
  width: 100%;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--bg-cream-deep);
  margin-bottom: 14px;
}

.maps-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(10%);
}

/* ---------- 7. GALERI MOMEN & LIGHTBOX ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-frame);
}

.gallery-card--arch {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 4.6;
  border-radius: 180px 180px 18px 18px;
  padding: 7px;
  border-width: 1.5px;
  border-color: var(--gold-antique);
}

.gallery-card--arch .gallery-card__media {
  border-radius: 172px 172px 12px 12px;
}

.gallery-card--landscape {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-card__media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease-luxury);
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.04);
}

.gallery-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(45, 29, 21, 0.78) 100%);
  color: var(--bg-cream);
  font-family: var(--font-serif);
  font-size: 0.88rem;
  text-align: center;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 15, 10, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-antique);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(45, 29, 21, 0.72);
  color: var(--bg-cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  width: 100%;
  max-height: 70dvh;
  object-fit: cover;
}

.lightbox__caption {
  padding: 14px 18px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown-espresso);
}

/* ---------- 8. AMPLOP DIGITAL (GIFT) ---------- */
.gift-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bank-card {
  position: relative;
  border-radius: 18px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #4E3529 0%, #3A251B 62%, #5A3D2F 100%);
  color: var(--bg-cream);
  border: 1px solid rgba(214, 185, 135, 0.48);
  box-shadow: 0 12px 28px rgba(61, 40, 30, 0.2);
  overflow: hidden;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -45px;
  right: -35px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(214, 185, 135, 0.2);
  pointer-events: none;
}

.bank-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bank-card__chip {
  width: 36px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E2C795, #B0884E);
  border: 1px solid rgba(255, 245, 224, 0.4);
}

.bank-card__badge {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #F0D5A6;
}

.bank-card__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #FFF8EE;
  margin-bottom: 4px;
}

.bank-card__holder {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
}

.bank-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bank-card__bankname {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.75);
}

.physical-gift-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.physical-gift-card__title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brown-espresso);
  margin-bottom: 6px;
}

.physical-gift-card__recipient {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.physical-gift-card__address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ---------- 9. RSVP & BUKU TAMU ---------- */
.rsvp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.rsvp-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
}

.rsvp-stat-box__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brown-espresso);
  line-height: 1.1;
}

.rsvp-stat-box__label {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rsvp-form {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(142, 115, 96, 0.35);
  background: var(--bg-cream-soft);
  font-size: 0.86rem;
  color: var(--brown-espresso);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--gold-antique);
  box-shadow: 0 0 0 3px rgba(185, 146, 88, 0.16);
}

textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.attendance-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-option span {
  display: block;
  text-align: center;
  padding: 9px 6px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(142, 115, 96, 0.35);
  background: var(--bg-cream-soft);
  color: var(--brown-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.attendance-option input:checked + span {
  background: var(--brown-dark);
  color: var(--bg-cream);
  border-color: var(--brown-dark);
}

/* Daftar Ucapan */
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(61, 40, 30, 0.05);
}

.wish-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-card__name {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--brown-espresso);
}

.wish-card__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.wish-card__badge--hadir {
  background: rgba(78, 53, 41, 0.12);
  color: var(--brown-dark);
}

.wish-card__badge--ragu {
  background: rgba(185, 146, 88, 0.2);
  color: #7D5C2B;
}

.wish-card__badge--tidak {
  background: rgba(111, 43, 52, 0.14);
  color: var(--burgundy-soft);
}

.wish-card__msg {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.wish-card__time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ---------- 10. CLOSING & FOOTER ---------- */
.closing-section {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 124px;
  background:
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-deep) 100%);
}

.closing-message {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.closing-greeting {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 22px;
}

.closing-signoff {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.closing-names {
  font-family: var(--font-script);
  font-size: 2.9rem;
  color: var(--brown-espresso);
  line-height: 1.15;
  margin-bottom: 8px;
}

.closing-families {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
  margin-bottom: 18px;
}

.closing-hashtag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brown-medium);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-line);
  background: rgba(252, 249, 243, 0.78);
  margin-bottom: 24px;
}

.footer-credit {
  font-size: 0.68rem;
  color: var(--text-muted);
  position: relative;
  z-index: 4;
}

.closing-floral-center {
  width: 142px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(61, 40, 30, 0.14));
}

/* ---------- 11. FLOATING BOTTOM NAVIGATION & MUSIC BUTTON ---------- */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 404px;
  z-index: 60;
  background: rgba(61, 40, 30, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 185, 135, 0.35);
  border-radius: 22px;
  padding: 7px 6px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  box-shadow: var(--shadow-float);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bottom-nav.is-hidden {
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 14px;
  color: rgba(247, 239, 228, 0.68);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.bottom-nav__item svg {
  width: 17px;
  height: 17px;
}

.bottom-nav__item.is-active,
.bottom-nav__item:hover {
  color: #F4DCAC;
  background: rgba(214, 185, 135, 0.16);
}

/* Tombol Musik Melayang (Kanan Atas di dalam Phone Shell agar tidak menutupi konten bawah) */
.music-fab {
  position: fixed;
  top: 16px;
  left: calc(50% + min(199px, 46vw) - 42px);
  z-index: 65;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  background: rgba(61, 40, 30, 0.88);
  backdrop-filter: blur(6px);
  color: #F4DCAC;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.music-fab.is-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.music-fab svg {
  width: 18px;
  height: 18px;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -18px);
  z-index: 250;
  max-width: 360px;
  width: calc(100% - 36px);
  background: var(--brown-espresso);
  color: var(--bg-cream);
  border: 1px solid var(--gold-antique);
  border-radius: 14px;
  padding: 11px 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-luxury);
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
