/* =========================================================
   UNDANGAN DIGITAL — STYLE 2025 (NIGHT MODE ONLY)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-1: #05070d;
  --bg-2: #0a0e18;
  --bg-3: #0f1420;
  --gold-1: #f9d423;
  --gold-2: #ffb75e;
  --gold-soft: rgba(249, 212, 35, .15);
  --gold-glow: rgba(249, 212, 35, .4);
  --purple-1: #7c3aed;
  --purple-2: #a78bfa;
  --blue-1: #3b82f6;
  --cyan-1: #22d3ee;
  --text: #f4f4f4;
  --text-muted: #a8a8b3;
  --card-bg: rgba(15, 20, 32, .65);
  --card-border: rgba(249, 212, 35, .18);
  --card-border-hover: rgba(249, 212, 35, .5);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .6);
  --tr: .35s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.undangan-page {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg-1);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ============ AURORA NIGHT BACKGROUND ============ */
body.undangan-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 80%, rgba(59, 130, 246, .18), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(249, 212, 35, .10), transparent 65%),
    radial-gradient(circle at 70% 15%, rgba(34, 211, 238, .12), transparent 45%);
  z-index: -2;
  pointer-events: none;
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { transform: scale(1) rotate(0deg); opacity: .85; }
  50%  { transform: scale(1.12) rotate(2deg); opacity: 1; }
  100% { transform: scale(1.18) rotate(-2deg); opacity: .9; }
}

/* ============ STARS LAYER ============ */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.stars-1, .stars-2, .stars-3 {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 80% 15%, #f9d423, transparent),
    radial-gradient(1px 1px at 35% 85%, #fff, transparent),
    radial-gradient(2px 2px at 90% 50%, #a78bfa, transparent),
    radial-gradient(1px 1px at 10% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 75% 90%, #22d3ee, transparent);
  background-size: 200% 200%;
  opacity: .7;
}
.stars-1 { animation: twinkle 4s ease-in-out infinite alternate; }
.stars-2 { animation: twinkle 6s ease-in-out infinite alternate-reverse; opacity: .5; }
.stars-3 { animation: twinkle 8s ease-in-out infinite alternate; opacity: .35; }

@keyframes twinkle {
  0%   { opacity: .25; transform: translateY(0); }
  100% { opacity: .9;  transform: translateY(-8px); }
}

/* ============ SLIDE ============ */
.slide {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px 72px;
  position: relative;
}

.content-wrapper { width: 100%; max-width: 760px; }

/* ============ SOUND TOGGLE (FLOATING) ============ */
.sound-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 20, 32, .75);
  border: 1px solid var(--gold-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-1);
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  box-shadow: 0 0 0 0 var(--gold-glow);
}

.sound-toggle:hover {
  transform: scale(1.08);
  background: rgba(249, 212, 35, .15);
  box-shadow: 0 0 24px var(--gold-glow);
}

.sound-toggle.playing {
  animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow), 0 0 20px var(--gold-glow); }
  50%      { box-shadow: 0 0 0 8px transparent, 0 0 30px var(--gold-glow); }
}

.sound-icon {
  display: inline-block;
  transition: transform .3s ease;
}
.sound-toggle.playing .sound-icon {
  animation: soundBounce .8s ease-in-out infinite alternate;
}
@keyframes soundBounce {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}

.sound-ripple {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-1);
  opacity: 0;
  pointer-events: none;
}
.sound-toggle.playing .sound-ripple {
  animation: ripple 2s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============ GLASS CARD ============ */
.glass-card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 44px 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow),
              inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cardEnter .9s cubic-bezier(.2, .8, .2, 1);
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.glass-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--gold-soft), transparent 30%);
  animation: shimmer 10s linear infinite;
  pointer-events: none;
}
@keyframes shimmer {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-1), transparent 40%, transparent 60%, var(--gold-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
}

.ornament-top {
  font-size: 22px;
  color: var(--gold-1);
  margin-bottom: 8px;
  letter-spacing: .3em;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 20px var(--gold-glow);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.kepada { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
.nama-tamu {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 8vw, 46px);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 4px 0 2px;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.alamat-tamu { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.salam {
  font-weight: 600;
  font-size: 14px;
  color: var(--gold-1);
  margin: 18px 0 10px;
}
.text { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.couple-names .name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(26px, 6vw, 38px);
  color: var(--gold-1);
  text-shadow: 0 0 24px var(--gold-glow);
}
.couple-names .amp {
  font-size: 22px;
  color: var(--gold-1);
  font-weight: 300;
  opacity: .7;
}

/* ============ EVENT INFO ============ */
.event-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  transition: var(--tr);
}
.info-item:hover {
  border-color: var(--gold-1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249, 212, 35, .1);
}
.info-item .icon { font-size: 20px; }
.info-text { display: flex; flex-direction: column; }
.info-text .label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.info-text .value { font-size: 13px; font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; line-height: 1.4; }

/* ============ BUTTON ============ */
.aksi { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.btn, .btn-hadir, .btn-tidak, .btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.btn-hadir {
  background: linear-gradient(135deg, #14b866, #0a9a52);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 184, 102, .35);
}
.btn-hadir:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 184, 102, .55);
}
.btn-tidak {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-tidak:hover:not(:disabled) { border-color: #ef4444; color: #ef4444; }
.btn:disabled, .btn-hadir:disabled, .btn-tidak:disabled { opacity: .6; cursor: not-allowed; }

.btn-map {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a1a1a;
  font-weight: 700;
  width: 100%;
  box-shadow: 0 8px 24px rgba(249, 212, 35, .3);
}
.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 212, 35, .5);
}

.thanks {
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gold-1);
  animation: popIn .5s ease;
}
@keyframes popIn {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: var(--tr);
}
.scroll-indicator:hover { color: var(--gold-1); }
.arrow-down {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(4px, 4px); }
}

.nav-back {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-back:hover { color: var(--gold-1); }

/* ============ SECTION TITLE ============ */
.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 7vw, 42px);
  text-align: center;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 24px var(--gold-glow));
}
.section-subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .1em;
  margin-bottom: 24px;
}

/* ============ MEMPELAI ============ */
.mempelai-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  margin-bottom: 16px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.mempelai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}
.mempelai-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 40px rgba(249, 212, 35, .15);
}
.mempelai-card:hover::before { opacity: 1; }

.avatar-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--gold-soft);
  border: 2px solid var(--gold-1);
  box-shadow: 0 0 24px var(--gold-glow);
  animation: avatarGlow 3s ease-in-out infinite alternate;
}
@keyframes avatarGlow {
  from { box-shadow: 0 0 20px rgba(249, 212, 35, .3); }
  to   { box-shadow: 0 0 36px rgba(249, 212, 35, .6); }
}

.nama-mempelai {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--gold-1);
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--gold-glow);
}
.orang-tua { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.amp-gold {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 44px;
  color: var(--gold-1);
  margin: 6px 0 16px;
  text-shadow: 0 0 30px var(--gold-glow);
}

/* ============ AYAT ============ */
.ayat-box {
  background: linear-gradient(135deg, rgba(249, 212, 35, .08), rgba(124, 58, 237, .08));
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold-1);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}
.ayat-text { font-size: 13px; font-style: italic; color: var(--text-muted); line-height: 1.8; margin-bottom: 10px; }
.ayat-surah { font-size: 12px; font-weight: 600; color: var(--gold-1); text-align: right; }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--card-border);
  transition: transform .5s cubic-bezier(.2,.8,.2,1),
              box-shadow .5s ease,
              border-color .35s ease;
  opacity: 0;
  transform: translateY(40px) scale(.92) rotate(-2deg);
  animation: galleryIn .9s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.15s + 0.2s);
  will-change: transform, opacity;
}

@keyframes galleryIn {
  0%   { opacity: 0; transform: translateY(40px) scale(.92) rotate(-2deg); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02) rotate(1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
  will-change: transform;
}

.gallery-item:hover {
  border-color: var(--gold-1);
  box-shadow: 0 16px 40px var(--gold-glow), 0 0 0 1px var(--gold-1) inset;
  z-index: 2;
  transform: translateY(-4px);
}
.gallery-item:hover img {
  transform: scale(1.15) rotate(1deg);
  filter: brightness(1.1) saturate(1.15);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.zoom-hint {
  font-size: 20px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.6) rotate(-20deg);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover .zoom-hint {
  transform: scale(1) rotate(0);
}

.gallery-item:active { transform: scale(.97); }

/* ============ INFO BOX ============ */
.info-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  text-align: center;
  transition: var(--tr);
}
.info-box:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 12px 40px rgba(249, 212, 35, .12);
}

.box-title {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 18px;
  font-weight: 700;
}
.box-desc { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.qr-container {
  position: relative;
  display: inline-block;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(249, 212, 35, .25);
}
.qr-image { display: block; width: 180px; height: 180px; }
.qr-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(249, 212, 35, .5);
  animation: float 3s ease-in-out infinite;
}

/* ============ REKENING ============ */
.rekening-list { display: flex; flex-direction: column; gap: 12px; }
.rekening-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  transition: var(--tr);
}
.rekening-item:hover {
  border-color: var(--gold-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 212, 35, .15);
}

.rekening-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.bank-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-1);
  text-transform: uppercase;
}
.bank-number {
  font-family: 'Courier New', monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
}
.bank-owner { font-size: 11px; color: var(--text-muted); }

.btn-copy-mini {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--tr);
  font-family: inherit;
}
.btn-copy-mini:hover { border-color: var(--gold-1); color: var(--gold-1); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.active { display: flex; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed.dragging { cursor: grabbing; }

.lb-stage img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .8), 0 0 60px rgba(249, 212, 35, .2);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}
.lb-stage img.no-transition { transition: none; }

.lb-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  gap: 12px;
  pointer-events: none;
}
.lb-toolbar > * { pointer-events: auto; }

.lb-counter {
  background: rgba(15, 20, 32, .75);
  backdrop-filter: blur(8px);
  color: var(--gold-1);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-1);
  letter-spacing: .06em;
  font-weight: 600;
}

.lb-actions { display: flex; gap: 8px; }

.lb-btn, .lb-nav {
  background: rgba(15, 20, 32, .75);
  border: 1px solid var(--gold-1);
  color: var(--gold-1);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  font-family: inherit;
}
.lb-btn:hover, .lb-nav:hover {
  background: var(--gold-1);
  color: #1a1a1a;
  transform: scale(1.08);
  box-shadow: 0 0 20px var(--gold-glow);
}
.lb-btn:active, .lb-nav:active { transform: scale(.94); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-zoom-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 20, 32, .85);
  backdrop-filter: blur(8px);
  color: var(--gold-1);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-1);
  z-index: 3;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity .3s ease;
  letter-spacing: .05em;
}
.lb-zoom-indicator.show { opacity: 1; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 20, 32, .95);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .1);
  animation: toastIn .35s ease;
}
.toast.success { border-color: #14b866; }
.toast.error   { border-color: #ef4444; }
@keyframes toastIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============ INVALID ============ */
.invalid-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: #ef4444;
}


/* ============ DOA & UCAPAN ============ */
.doa-form-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.doa-form-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  opacity: .7;
}

.doa-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.doa-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px var(--gold-glow);
  flex-shrink: 0;
}

.doa-form-title {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}
.doa-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.doa-nama-user {
  font-size: 15px;
  color: var(--gold-1);
  font-weight: 600;
  word-break: break-word;
}

.doa-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doa-textarea {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 14px;
  resize: vertical;
  min-height: 100px;
  max-height: 260px;
  transition: var(--tr);
  line-height: 1.6;
}
.doa-textarea:focus {
  outline: none;
  border-color: var(--gold-1);
  background: rgba(249, 212, 35, .05);
  box-shadow: 0 0 0 3px rgba(249, 212, 35, .1);
}
.doa-textarea::placeholder { color: var(--text-muted); opacity: .7; }

.doa-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.doa-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.doa-counter.warning { color: #f59e0b; }
.doa-counter.danger  { color: #ef4444; }

.btn-doa {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 22px;
  font-size: 13px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: var(--tr);
  box-shadow: 0 8px 24px rgba(249, 212, 35, .3);
}
.btn-doa:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 212, 35, .5);
}
.btn-doa:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* List doa */
.doa-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.doa-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-1);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.doa-total {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(249, 212, 35, .1);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
}

.doa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-1) transparent;
}
.doa-list::-webkit-scrollbar { width: 6px; }
.doa-list::-webkit-scrollbar-track { background: transparent; }
.doa-list::-webkit-scrollbar-thumb {
  background: var(--gold-1);
  border-radius: 3px;
  opacity: .5;
}

.doa-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  position: relative;
  transition: var(--tr);
  animation: doaIn .5s cubic-bezier(.2,.8,.2,1);
}
.doa-item:hover {
  border-color: var(--gold-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 212, 35, .1);
}
.doa-item.is-new {
  animation: doaNew 1s ease;
  border-color: var(--gold-1);
  box-shadow: 0 0 24px rgba(249, 212, 35, .3);
}

@keyframes doaIn {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes doaNew {
  0%   { box-shadow: 0 0 0 0 rgba(249, 212, 35, .6); }
  100% { box-shadow: 0 0 0 12px rgba(249, 212, 35, 0); }
}

.doa-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.doa-item-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), rgba(249, 212, 35, .05));
  border: 1px solid var(--gold-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.doa-item-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}
.doa-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-1);
  word-break: break-word;
}
.doa-item-time {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .05em;
}
.doa-item-pesan {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
}

.doa-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.doa-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 10px;
  opacity: .6;
  animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 600px) {
  .doa-form-box { padding: 18px 16px; }
  .doa-form-footer { flex-direction: column; align-items: stretch; }
  .btn-doa { width: 100%; justify-content: center; }
  .doa-counter { text-align: right; order: 2; }
  .doa-list { max-height: 440px; }
}


/* ============ PAGINATION DOA ============ */
.doa-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}

.doa-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
  line-height: 1;
}

.doa-page-btn:hover:not(:disabled) {
  background: var(--gold-1);
  color: #1a1a1a;
  border-color: var(--gold-1);
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--gold-glow);
}

.doa-page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.doa-page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.doa-page-num {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.doa-page-num:hover {
  border-color: var(--gold-1);
  color: var(--gold-1);
}

.doa-page-num.active {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #1a1a1a;
  border-color: var(--gold-1);
  box-shadow: 0 0 16px var(--gold-glow);
  font-weight: 700;
}

.doa-page-dots {
  min-width: 24px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .doa-page-btn { width: 34px; height: 34px; font-size: 16px; }
  .doa-page-num { min-width: 30px; height: 30px; font-size: 11px; }
}



/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .glass-card { padding: 34px 20px; }
  .event-info { grid-template-columns: 1fr; }
  .couple-names { gap: 8px; }
  .slide { padding: 32px 14px 56px; }
  .gallery-grid { gap: 8px; }
  .qr-image { width: 150px; height: 150px; }
  .lb-nav { width: 38px; height: 38px; font-size: 22px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-btn { width: 38px; height: 38px; font-size: 16px; }
  .lb-toolbar { top: 10px; left: 10px; right: 10px; }
  .lb-zoom-indicator { bottom: 12px; font-size: 11px; }
  .sound-toggle { width: 42px; height: 42px; font-size: 18px; top: 12px; left: 12px; }
}

@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .gallery-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}