/* =================================================================
   THE WEDDING OF LISA & DEDDY - LUXURY CHINESE WEDDING THEME
   Fully Responsive (Mobile-First to 4K Ultra Wide)
   ================================================================= */

:root {
  --primary-red: #8f1725;
  --dark-red: #3e050b;
  --bright-red: #b01b2e;
  --gold-primary: #d4af37;
  --gold-light: #f5e4ab;
  --gold-dark: #aa8624;
  --gold-champagne: #faedd0;
  
  /* Luxury Midnight Black Theme (Reference Concept) */
  --bg-dark: #0c0b0b;
  --bg-surface: #141212;
  --bg-card: #191717;
  --bg-card-hover: #221f1f;
  --bg-cream: #0c0b0b;
  --card-bg: #191717;
  
  --text-main: #f5eee8;
  --text-muted: #b8aba6;
  --text-dim: #857b77;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-chinese: 'Noto Serif SC', serif;
  
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 15px 45px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
  --border-gold: 1px solid rgba(212, 175, 55, 0.35);
  --border-gold-strong: 1.5px solid rgba(212, 175, 55, 0.7);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 15% 40%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(rgba(255, 235, 175, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  color: var(--text-main);
}

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.lightbox-open {
  overflow: hidden;
}

/* ================= ROSE CORNER FLORAL ACCENTS ================= */
.rose-corner {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  width: clamp(110px, 26vw, 210px);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9));
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.4s ease;
}

/* Swapped and mirrored correctly so flowers face inward to the content */
.rose-corner.corner-tl {
  top: 0;
  left: 0;
  transform: scaleX(-1);
}

.rose-corner.corner-tr {
  top: 0;
  right: 0;
  transform: none;
}

.rose-corner.corner-bl {
  bottom: 0;
  left: 0;
  transform: scaleX(-1);
}

.rose-corner.corner-br {
  bottom: 0;
  right: 0;
  transform: none;
}

/* ================= GLITTER & GOLD DUST PARTICLES ================= */
.glitter-dust-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.glitter-star {
  position: absolute;
  color: var(--gold-light);
  font-size: clamp(0.75rem, 2vw, 1.15rem);
  opacity: 0;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.85), 0 0 16px rgba(255, 240, 180, 0.6);
  animation: sparkleDrift 6.5s infinite ease-in-out;
  user-select: none;
}

.glitter-star.s1 { top: 12%; left: 14%; animation-delay: 0s; font-size: 1.2rem; }
.glitter-star.s2 { top: 20%; right: 16%; animation-delay: 1.3s; font-size: 0.8rem; }
.glitter-star.s3 { top: 36%; left: 8%; animation-delay: 2.5s; font-size: 1rem; }
.glitter-star.s4 { top: 46%; right: 10%; animation-delay: 3.8s; font-size: 0.75rem; }
.glitter-star.s5 { top: 60%; left: 18%; animation-delay: 1.9s; font-size: 1.15rem; }
.glitter-star.s6 { top: 70%; right: 20%; animation-delay: 4.4s; font-size: 0.85rem; }
.glitter-star.s7 { top: 80%; left: 10%; animation-delay: 0.9s; font-size: 1rem; }
.glitter-star.s8 { top: 88%; right: 14%; animation-delay: 3s; font-size: 0.8rem; }
.glitter-star.s9 { top: 16%; left: 78%; animation-delay: 3.4s; font-size: 0.95rem; }
.glitter-star.s10 { top: 30%; left: 48%; animation-delay: 5s; font-size: 0.7rem; }
.glitter-star.s11 { top: 66%; left: 72%; animation-delay: 1.6s; font-size: 1.05rem; }
.glitter-star.s12 { top: 84%; left: 42%; animation-delay: 5.2s; font-size: 0.8rem; }

@keyframes sparkleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translateY(-16px) scale(1.15) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-32px) scale(0.6) rotate(90deg);
  }
}

/* ================= SVG UI ICONS ================= */
.ui-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: -0.2em;
}

.ui-icon.inline {
  margin-right: 6px;
}

.spin {
  animation: spin 5s linear infinite;
}

.paused .spin {
  animation-play-state: paused;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================= ORIENTAL CORNERS & BADGES ================= */
.oriental-corner {
  position: absolute;
  width: clamp(35px, 8vw, 55px);
  height: clamp(35px, 8vw, 55px);
  border-color: var(--gold-primary);
  opacity: 0.7;
  pointer-events: none;
}
.oriental-corner.top-left {
  top: 15px;
  left: 15px;
  border-top: 3px solid var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
}
.oriental-corner.top-right {
  top: 15px;
  right: 15px;
  border-top: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
}
.oriental-corner.bottom-left {
  bottom: 15px;
  left: 15px;
  border-bottom: 3px solid var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
}
.oriental-corner.bottom-right {
  bottom: 15px;
  right: 15px;
  border-bottom: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
}

.chinese-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.chinese-symbol {
  font-family: var(--font-chinese);
  font-size: clamp(2.8rem, 10vw, 4rem);
  color: var(--gold-primary);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.chinese-symbol-small {
  display: block;
  font-family: var(--font-chinese);
  font-size: clamp(2rem, 6vw, 2.5rem);
  color: var(--gold-primary);
  margin-bottom: 8px;
}
.chinese-symbol-tiny {
  display: block;
  font-family: var(--font-chinese);
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 6px;
}
.chinese-sub {
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-top: 4px;
  font-family: var(--font-heading);
}

/* ================= COVER / HERO POPUP (AMPLOP PEMBUKA) ================= */
.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1c1717 0%, #0d0c0c 70%, #050404 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.9s ease;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.cover-overlay.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-content {
  max-width: 480px;
  width: 100%;
  animation: fadeInDown 1.1s ease;
  padding: 10px 0;
  position: relative;
  z-index: 5;
}

.wedding-intro {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.couple-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 11vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
  margin: 4px 0 2px;
}

.chinese-names {
  font-family: var(--font-chinese);
  color: var(--gold-light);
  font-size: clamp(1rem, 4vw, 1.3rem);
  letter-spacing: 6px;
  margin: 6px 0 12px;
}

.wedding-date-tag {
  font-size: clamp(0.8rem, 2.8vw, 0.9rem);
  color: #f7ded3;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.guest-card {
  background: rgba(22, 19, 19, 0.78);
  border: var(--border-gold-strong);
  border-radius: 14px;
  padding: 18px 14px;
  margin-bottom: 25px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(212, 175, 55, 0.12);
}

.guest-label {
  font-size: clamp(0.72rem, 2.4vw, 0.82rem);
  color: #d8c8c5;
}

.guest-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  color: var(--gold-light);
  margin: 8px 0;
  font-weight: 600;
  word-break: break-word;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.guest-note {
  font-size: clamp(0.62rem, 2vw, 0.72rem);
  color: #a89d9a;
}

.btn-open {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #1a1405;
  border: none;
  padding: 13px 34px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 2.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-open:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

/* ================= FLOATING AUDIO BUTTON ================= */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.audio-player.hidden {
  display: none;
}
.audio-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-red);
  color: var(--gold-light);
  border: 2px solid var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.audio-btn:hover {
  transform: scale(1.1);
}
.audio-btn .ui-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ================= CONTAINER & SECTION GENERAL ================= */
.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  padding: clamp(55px, 9vw, 85px) 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(30px, 6vw, 45px);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6.5vw, 2.7rem);
  color: var(--gold-light);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.section-subtitle {
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(18, 15, 15, 0.82) 0%, rgba(10, 9, 9, 0.94) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: clamp(60px, 8vh, 90px) 18px;
  overflow: hidden;
}

.hero-inner {
  max-width: 680px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.sub-greeting {
  font-family: var(--font-heading);
  letter-spacing: clamp(3px, 1.5vw, 6px);
  font-size: clamp(0.72rem, 2.5vw, 0.88rem);
  color: var(--gold-light);
  margin-bottom: 8px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 9.5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-names-script {
  font-family: var(--font-script) !important;
  font-size: clamp(3.2rem, 11vw, 5.2rem) !important;
  font-weight: 400 !important;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
  margin-bottom: 6px;
}

.gold-divider {
  margin: 15px 0;
  color: var(--gold-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  height: 1px;
  width: clamp(40px, 10vw, 80px);
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
  margin: 0 12px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: #f7ded3;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hero-verse {
  font-family: var(--font-chinese);
  font-size: clamp(0.85rem, 2.8vw, 1rem);
  letter-spacing: 2px;
  color: var(--gold-light);
}

/* ================= COUPLE SECTION ================= */
.couple-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
}

.couple-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 5;
}

@media (min-width: 768px) {
  .couple-grid {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
}

.couple-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 35px 22px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: var(--border-gold);
  flex: 1;
  max-width: 380px;
  width: 100%;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.couple-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-4px);
}

/* ARCH / KUBAH PHOTO FRAME (ELEGANT LUXURY CONCEPT) */
.arch-frame {
  position: relative;
  width: clamp(170px, 46vw, 215px);
  margin: 0 auto 24px;
}

.arch-inner {
  width: 100%;
  height: clamp(230px, 60vw, 285px);
  border-radius: 120px 120px 14px 14px;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  outline: 1.5px solid rgba(212, 175, 55, 0.35);
  outline-offset: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.2);
  background: #110e0e;
  position: relative;
}

.arch-inner .profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.arch-inner:hover .profile-img {
  transform: scale(1.06);
}

/* Couple Profile Images Alignment & Orientation */
/* Bride (Lisa - di sisi kiri): di-flip horizontal agar menghadap Deddy di kanan, skala 1:1 sejajar sempurna */
.bride-card .profile-img {
  transform: scaleX(-1);
  transform-origin: center center;
  object-position: center 10%;
}

.bride-card .arch-inner:hover .profile-img {
  transform: scaleX(-1) scale(1.06);
}

/* Groom (Deddy - di sisi kanan): foto asli Deddy sudah menghadap kiri ke arah Lisa, posisi natural tanpa flip */
.groom-card .profile-img {
  transform: none;
  object-position: center 10%;
}

.groom-card .arch-inner:hover .profile-img {
  transform: scale(1.06);
}

/* Khusus Resepsi (Groom/Deddy di kiri, Bride/Lisa di kanan): Deddy di-flip ke kanan, Lisa natural ke kiri */
.couple-grid.groom-first .groom-card .profile-img {
  transform: scaleX(-1);
  transform-origin: center center;
  object-position: center 10%;
}

.couple-grid.groom-first .groom-card .arch-inner:hover .profile-img {
  transform: scaleX(-1) scale(1.06);
}

.couple-grid.groom-first .bride-card .profile-img {
  transform: none;
  object-position: center 10%;
}

.couple-grid.groom-first .bride-card .arch-inner:hover .profile-img {
  transform: scale(1.06);
}

.arch-star {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.95);
  z-index: 5;
  user-select: none;
}
.arch-star-left {
  left: -15px;
}
.arch-star-right {
  right: -15px;
}

.badge-role {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1919;
  color: var(--gold-light);
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  border: 1px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  z-index: 6;
}

.person-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 1.9rem);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.person-name-script {
  font-family: var(--font-script) !important;
  font-weight: 400 !important;
  color: #fff !important;
  text-shadow: 0 2px 15px rgba(212, 175, 55, 0.45);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1.15;
}

.person-name-script .name-first {
  display: block;
  font-size: clamp(2.8rem, 8.5vw, 3.8rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 15px rgba(212, 175, 55, 0.45);
}

.person-name-script .name-rest {
  display: block;
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  line-height: 1.2;
  color: var(--gold-light);
  margin-top: 2px;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
}

.person-chinese-name {
  font-family: var(--font-chinese);
  font-size: 1rem;
  color: var(--gold-primary);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.family-tree {
  font-size: clamp(0.82rem, 2.6vw, 0.9rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.family-tree strong {
  color: #fff;
}

.couple-rings-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
  width: 100%;
}

.ring-decor-line {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.cincin-svg {
  width: clamp(65px, 18vw, 88px);
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.5));
  display: block;
  animation: floatRing 4s ease-in-out infinite;
}

@media (min-width: 768px) {
  .couple-rings-divider {
    flex-direction: column;
    width: auto;
    gap: 12px;
    margin: 0 15px;
  }
  .ring-decor-line {
    flex: none;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--gold-primary), transparent);
  }
}

@keyframes floatRing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ================= COUNTDOWN SECTION ================= */
.countdown-section {
  background: radial-gradient(circle at center, #1c1717 0%, #0c0b0b 100%);
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  color: var(--gold-light);
  margin-bottom: 4px;
}

.countdown-sub {
  font-size: clamp(0.8rem, 2.8vw, 0.95rem);
  color: #fcebe6;
  margin-bottom: 25px;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 15px);
  margin-bottom: 30px;
  width: 100%;
}

.time-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: clamp(10px, 3vw, 15px) clamp(6px, 2vw, 12px);
  flex: 1;
  max-width: 85px;
  min-width: 0;
  backdrop-filter: blur(5px);
}

.time-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.time-label {
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f7ded3;
  margin-top: 4px;
  display: block;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: clamp(0.78rem, 2.5vw, 0.86rem);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--gold-primary);
  color: var(--dark-red);
}

/* ================= EVENT DETAILS SECTION ================= */
.events-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
}

.events-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 26px;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.event-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: clamp(28px, 6vw, 38px) clamp(18px, 5vw, 28px);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: var(--border-gold-strong);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 480px;
  min-height: 480px;
}
  border-radius: 20px;
  padding: clamp(28px, 6vw, 38px) clamp(18px, 5vw, 28px);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: var(--border-gold-strong);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--gold-primary);
}

.event-badge {
  display: inline-block;
  margin: 0 auto 18px auto;
  font-size: 0.72rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #1a1405;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid var(--gold-primary);
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.event-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.event-icon .ui-icon {
  width: 1.8rem;
  height: 1.8rem;
}

.event-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 1.85rem);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.event-divider {
  width: 45px;
  height: 2px;
  background: var(--gold-primary);
  margin: 0 auto 16px;
}

.event-date, .event-time {
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.event-location-name {
  font-weight: 700;
  margin-top: 18px;
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  color: var(--gold-light);
}

.event-address {
  font-size: clamp(0.82rem, 2.6vw, 0.9rem);
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.4;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #1a1405;
  padding: 11px 26px;
  border-radius: 25px;
  text-decoration: none;
  font-size: clamp(0.8rem, 2.6vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

/* ================= GALLERY SECTION ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 2.5vw, 16px);
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
  }
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  aspect-ratio: 1/1;
  cursor: pointer;
  background: #f0eae1;
}

@media (min-width: 600px) {
  .gallery-item {
    aspect-ratio: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 5, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--gold-light);
}

.gallery-overlay .ui-icon {
  width: 2rem;
  height: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay .ui-icon {
  transform: scale(1);
}

/* ================= LIGHTBOX MODAL ================= */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 2, 4, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-box {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1100px;
  max-height: 96vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 80vh;
  max-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  background: #111;
  animation: zoomIn 0.3s ease;
}

.lightbox-img-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-btn {
  background: rgba(30, 4, 8, 0.85);
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-btn .ui-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.lightbox-btn:hover {
  background: var(--gold-primary);
  color: var(--dark-red);
  transform: scale(1.1);
}

.lightbox-btn.btn-close {
  top: 18px;
  right: 18px;
}

.lightbox-btn.btn-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.btn-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-btn.btn-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-btn.btn-next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-box {
    padding: 10px 5px;
  }
  .lightbox-img-wrapper {
    max-width: 96vw;
    max-height: 72vh;
    max-height: 72dvh;
  }
  .lightbox-btn.btn-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .lightbox-btn.btn-prev {
    left: 8px;
    width: 42px;
    height: 42px;
  }
  .lightbox-btn.btn-next {
    right: 8px;
    width: 42px;
    height: 42px;
  }
}

.lightbox-footer {
  margin-top: 12px;
  z-index: 10;
}

.lightbox-counter {
  background: rgba(30, 4, 8, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ================= GIFT / ANGPAO SECTION ================= */
.gift-grid {
  display: flex;
  justify-content: center;
}

.gift-card {
  background: linear-gradient(135deg, #262424 0%, #121111 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(22px, 5vw, 30px) clamp(18px, 5vw, 25px);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  position: relative;
}

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

.bank-name {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-light);
  text-shadow: 0 1px 8px rgba(212, 175, 55, 0.3);
}

.ui-icon.bca-emblem {
  width: 32px;
  height: 32px;
  color: var(--gold-primary);
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
}

.card-chip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #f7e6b5);
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.account-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.3rem, 5vw, 1.55rem);
  letter-spacing: 2.5px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

.account-owner {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.account-owner strong {
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.btn-copy {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 10px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-copy:hover {
  background: var(--gold-primary);
  color: var(--dark-red);
}

/* ================= RSVP & WISHES SECTION ================= */
.rsvp-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 850px) {
  .rsvp-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

.rsvp-form {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 30px) clamp(16px, 4vw, 24px);
  border: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

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

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  background: #141111;
  color: var(--text-main);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(212, 175, 55, 0.65);
  background: #181414;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  background: #1c1818;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25), 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* ================= CUSTOM LUXURY SELECT DROPDOWN (NO MOBILE OS POPUP) ================= */
.custom-select-box {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.custom-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: #141111;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-align: left;
}

.custom-select-trigger:hover,
.custom-select-box.is-open .custom-select-trigger {
  border-color: var(--gold-primary);
  background: #191515;
}

.custom-select-box.is-open .custom-select-trigger {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28), 0 6px 18px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.custom-select-trigger .selected-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.opt-clue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.opt-clue.hadir {
  background: rgba(40, 167, 69, 0.2);
  color: #72e48e;
  border: 1px solid rgba(40, 167, 69, 0.5);
}

.opt-clue.tidak {
  background: rgba(180, 170, 170, 0.15);
  color: #b5aaa8;
  border: 1px solid rgba(180, 170, 170, 0.35);
}

/* Floating Chevron Badge positioned with comfortable spacing from the border */
.select-arrow {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  margin-left: 10px;
}

.select-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated chevron rotation & glowing badge on click/focus */
.custom-select-box.is-open .select-arrow {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.18));
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
  transform: scale(1.08);
}

.custom-select-box.is-open .select-chevron {
  transform: rotate(180deg);
}

/* Custom Dropdown Menu (Renders smoothly in-page on both mobile and desktop) */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #181414;
  border: 1.5px solid var(--gold-primary);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 18px rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.25s;
  pointer-events: none;
}

.custom-select-box.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.custom-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 0.92rem;
  color: #e5dede;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.custom-select-item:last-child {
  border-bottom: none;
}

.custom-select-item:hover,
.custom-select-item:active {
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
}

.custom-select-item.selected {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-light);
  font-weight: 600;
}

/* ATTENDANCE BUTTON GROUP (2 BTN: HADIR & TIDAK HADIR) */
.attendance-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.btn-attendance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  color: #d8cece;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn-attendance:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff;
}

.btn-attendance.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-light);
  color: #fff;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.btn-attendance .btn-attendance-icon {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.btn-attendance[data-value="Hadir"] .btn-attendance-icon {
  color: #52c41a;
}

.btn-attendance[data-value="Tidak Hadir"] .btn-attendance-icon {
  color: #ff4d4f;
}

.btn-attendance.active[data-value="Hadir"] {
  border-color: #52c41a;
  background: rgba(82, 196, 26, 0.18);
  box-shadow: 0 4px 14px rgba(82, 196, 26, 0.25);
  color: #f6ffed;
}

.btn-attendance.active[data-value="Tidak Hadir"] {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.18);
  box-shadow: 0 4px 14px rgba(255, 77, 79, 0.25);
  color: #fff1f0;
}

/* Theme Red Overrides for Attendance Buttons */
body.theme-red .btn-attendance {
  background: #2b060a;
  border-color: rgba(212, 175, 55, 0.35);
}

body.theme-red .btn-attendance:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
}

body.theme-red .btn-attendance.active[data-value="Hadir"] {
  border-color: #52c41a;
  background: rgba(82, 196, 26, 0.22);
  color: #fff;
}

body.theme-red .btn-attendance.active[data-value="Tidak Hadir"] {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.22);
  color: #fff;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: #1a1405;
  border: none;
  padding: 13px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.3s;
}

.btn-submit:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
}

.form-status {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}
.form-status.success { color: #52c41a; }
.form-status.error { color: #ff4d4f; }

/* Wishes Container */
.wishes-container {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 30px) clamp(16px, 4vw, 22px);
  border: var(--border-gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.wishes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.wishes-header h4 {
  font-size: 1.05rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-refresh {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: transform 0.4s ease, color 0.3s;
}
.btn-refresh:hover {
  color: var(--gold-primary);
  transform: rotate(180deg);
}

.wishes-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

.wishes-list::-webkit-scrollbar {
  width: 4px;
}
.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.wish-card {
  background: #141111;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold-primary);
  animation: fadeIn 0.4s ease;
}

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

.wish-header-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wish-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
}

.attendance-clue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}

.attendance-clue.hadir {
  background: rgba(40, 167, 69, 0.18);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #72e48e;
}

.attendance-clue.tidak {
  background: rgba(180, 170, 170, 0.12);
  border: 1px solid rgba(180, 170, 170, 0.35);
  color: #b5aaa8;
}

.wish-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.45;
  white-space: pre-line;
}

.wish-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 5px;
  text-align: right;
}

/* ================= FOOTER ================= */
.footer-section {
  background: radial-gradient(circle at top, #1c1717 0%, #0a0909 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 9vw, 85px) 20px 45px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-section .container {
  position: relative;
  z-index: 5;
}

.footer-section .rose-corner {
  z-index: 2;
  pointer-events: none;
  transition: transform 0.3s ease, bottom 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

.footer-thanks {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer-text {
  font-size: clamp(0.82rem, 2.6vw, 0.9rem);
  color: #dcd0cd;
  max-width: 580px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.footer-regards {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 4px;
}

.footer-couple {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 9vw, 4rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.45);
  margin-bottom: 6px;
}

.family-name {
  font-size: 0.82rem;
  color: #d8c2c4;
  margin-bottom: 35px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.74rem;
  color: #c4abb0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.created-by {
  font-size: 0.76rem;
  color: #dfccd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.created-by .author-name {
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 1px;
}

.ui-icon.heart {
  color: #e63946;
  fill: #e63946;
  width: 1rem;
  height: 1rem;
  vertical-align: -0.15em;
  animation: heartbeat 1.4s infinite ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); }
  70% { transform: scale(1); }
}

/* ================= TOAST NOTIFICATION ================= */
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #242121;
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ================= ANIMATIONS & SCROLL ================= */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= MOBILE VIEWPORT OPTIMIZATIONS (PAS HEIGHT & LEBIH BESAR) ================= */
@media (max-width: 600px) {
  /* Cover Screen: fills full phone height gracefully */
  .cover-overlay {
    padding: clamp(20px, 4vh, 35px) 18px;
  }

  .cover-content {
    min-height: 88dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
  }

  .couple-title {
    font-size: clamp(3.5rem, 13.5vw, 4.8rem);
    line-height: 1.1;
    margin: 6px 0;
  }

  .chinese-badge {
    padding: 6px 16px;
    margin-bottom: 8px;
  }

  .guest-card {
    width: 100%;
    padding: 20px 16px;
    margin: 8px 0 16px;
  }

  .guest-name {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  }

  .btn-open {
    width: 100%;
    max-width: 290px;
    padding: 14px 28px;
    font-size: 0.98rem;
  }

  /* Hero Section: fills 100% of mobile viewport height */
  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(50px, 8vh, 80px) 18px;
  }

  .hero-names-script {
    font-size: clamp(3.6rem, 14vw, 5rem) !important;
    line-height: 1.12;
  }

  .hero-quote {
    font-size: 1.12rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  /* Couple Section: Arch frames bigger and more majestic on phones */
  .arch-frame {
    width: clamp(200px, 62vw, 245px);
    margin: 0 auto 26px;
  }

  .arch-inner {
    height: clamp(265px, 80vw, 320px);
  }

  .person-name-script .name-first {
    font-size: clamp(2.6rem, 9vw, 3.4rem);
  }

  .person-name-script .name-rest {
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  }

  .couple-card {
    padding: 38px 20px;
  }

  /* Event Details Cards: Clear, prominent, full-width */
  .event-card {
    padding: 32px 20px;
  }

  .event-name {
    font-size: 1.65rem;
  }

  .btn-map {
    width: 100%;
    padding: 13px 20px;
  }

  /* Countdown Numbers */
  .countdown-wrapper {
    gap: 12px;
  }

  .time-box {
    min-width: 68px;
    padding: 14px 8px;
  }

  .time-num {
    font-size: 1.85rem;
  }

  /* Footer Section on Mobile: Flowers shifted downward and non-obtrusive */
  .footer-section {
    padding-bottom: 75px;
  }

  .footer-section .rose-corner {
    width: clamp(80px, 22vw, 105px);
    bottom: -18px;
    opacity: 0.7;
  }

  .footer-section .rose-corner.corner-bl {
    left: -10px;
  }

  .footer-section .rose-corner.corner-br {
    right: -10px;
  }
}

/* ================= EXTRA SMALL PHONES (HP S LEBAR 320px - 380px) ================= */
@media (max-width: 380px) {
  /* Cover Corner Flowers */
  .cover-overlay .rose-corner {
    width: clamp(75px, 22vw, 92px);
  }

  .person-name-script .name-first {
    font-size: 2.3rem;
  }

  .person-name-script .name-rest {
    font-size: 1.45rem;
  }

  /* Gift Card on 320px */
  .card-chip-row {
    gap: 12px;
  }
  .card-chip {
    width: 38px;
    height: 28px;
  }
  .account-num {
    font-size: 1.18rem;
    letter-spacing: 1.5px;
  }

  /* Footer on 320px: Flowers moved well down and scaled so they never touch or block footer text */
  .footer-section {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 85px;
  }

  .footer-section .rose-corner {
    width: 72px;
    bottom: -24px;
    opacity: 0.55;
  }

  .footer-section .rose-corner.corner-bl {
    left: -14px;
  }

  .footer-section .rose-corner.corner-br {
    right: -14px;
  }

  .footer-couple {
    font-size: 2.6rem;
  }

  .footer-thanks {
    font-size: 1.65rem;
  }

  .family-name {
    font-size: 0.76rem;
  }

  .footer-bottom {
    font-size: 0.7rem;
    gap: 4px;
  }

  .created-by {
    font-size: 0.72rem;
  }
}

/* ================= FLOATING THEME SWITCHER (DISABLED - TEMA MERAH SAJA) ================= */
.theme-switcher-wrapper {
  display: none !important;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 18, 18, 0.9);
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.4);
  background: #2b060a;
}

.theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b51525;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 0 8px rgba(181, 21, 37, 0.85);
  transition: all 0.3s ease;
  display: inline-block;
}

@media (max-width: 600px) {
  .theme-switcher-wrapper {
    bottom: 18px;
    left: 14px;
  }
  .theme-toggle-btn {
    padding: 7px 13px;
    font-size: 0.72rem;
  }
}

/* ================= TEMA MERAH MARUN (ROYAL BURGUNDY / IMPERIAL RED & GOLD) ================= */
body.theme-red {
  --bg-dark: #220408;
  --bg-surface: #30060c;
  --bg-card: #3a080f;
  --dark-red: #4d0b14;
  background-color: #220408;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 15% 40%, rgba(185, 20, 35, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(185, 20, 35, 0.24) 0%, transparent 50%),
    radial-gradient(rgba(255, 235, 175, 0.045) 1px, transparent 1px);
}

body.theme-red .cover-overlay {
  background: radial-gradient(circle at center, #4d0a12 0%, #290408 65%, #180205 100%);
}

body.theme-red .hero-section {
  background: radial-gradient(circle at center, rgba(77, 10, 18, 0.88) 0%, rgba(36, 5, 9, 0.96) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
}

body.theme-red .couple-section,
body.theme-red .events-section,
body.theme-red .gallery-section,
body.theme-red .gift-section,
body.theme-red .rsvp-section {
  background: linear-gradient(180deg, #220408 0%, #30060c 50%, #220408 100%);
}

body.theme-red .countdown-section {
  background: radial-gradient(circle at center, #3d080e 0%, #1f0306 100%);
}

body.theme-red .couple-card,
body.theme-red .event-card,
body.theme-red .rsvp-form,
body.theme-red .wishes-container {
  background: #33070d;
  border-color: rgba(212, 175, 55, 0.45);
}

body.theme-red .guest-card {
  background: rgba(56, 10, 15, 0.84);
  border-color: rgba(212, 175, 55, 0.55);
}

body.theme-red .gift-card {
  background: linear-gradient(135deg, #480b12 0%, #290508 100%);
  border-color: rgba(212, 175, 55, 0.5);
}

body.theme-red .custom-select-trigger {
  background: #2b060a;
}

body.theme-red .custom-select-dropdown {
  background: #2f060c;
  border-color: var(--gold-primary);
}

body.theme-red .custom-select-item {
  border-bottom-color: rgba(212, 175, 55, 0.15);
}

body.theme-red .custom-select-item:hover,
body.theme-red .custom-select-item:active {
  background: rgba(212, 175, 55, 0.2);
}

body.theme-red .form-group input,
body.theme-red .form-group textarea {
  background: #2b060a;
}

body.theme-red .form-group input:focus,
body.theme-red .form-group textarea:focus,
body.theme-red .custom-select-box.is-open .custom-select-trigger {
  background: #380a0f;
  border-color: var(--gold-primary);
}

body.theme-red .wish-card {
  background: #2c060a;
  border-color: rgba(212, 175, 55, 0.28);
}

body.theme-red .footer-section {
  background: radial-gradient(circle at top, #42080f 0%, #190305 100%);
}

body.theme-red .theme-dot {
  background: #111;
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.85);
}

body.theme-red .theme-toggle-btn {
  background: rgba(54, 10, 15, 0.92);
  border-color: var(--gold-primary);
}

/* ================= TEMA EMAS & PERAK MEWAH (IMPERIAL GOLD & PLATINUM SILVER) ================= */
/* Khusus Acara Resepsi 22 November 2026: Latar Emas Mewah dengan Tipografi Perak & Aksen Kontras */
body.theme-gold {
  --bg-dark: #2a1e05;
  --bg-surface: #3a2a09;
  --bg-card: #45320c;
  --gold-bg-base: #2a1e05;
  --silver-primary: #f8fafc;
  --silver-light: #ffffff;
  --silver-muted: #cbd5e1;
  --silver-shadow: rgba(226, 232, 240, 0.35);
  background-color: #261b05;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 215, 110, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 15% 40%, rgba(218, 165, 32, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(212, 175, 55, 0.25) 0%, transparent 50%),
    radial-gradient(rgba(245, 215, 110, 0.06) 1px, transparent 1px);
  color: #f1f5f9;
}

/* Background Section & Overlay Emas */
body.theme-gold .cover-overlay {
  background: radial-gradient(circle at center, #59400e 0%, #3a2807 65%, #1c1303 100%);
}

body.theme-gold .hero-section {
  background: radial-gradient(circle at center, rgba(89, 64, 14, 0.88) 0%, rgba(38, 27, 5, 0.96) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
}

body.theme-gold .couple-section,
body.theme-gold .events-section,
body.theme-gold .gallery-section,
body.theme-gold .gift-section,
body.theme-gold .rsvp-section {
  background: linear-gradient(180deg, #261b05 0%, #3d2b09 50%, #261b05 100%);
}

body.theme-gold .countdown-section {
  background: radial-gradient(circle at center, #4d360c 0%, #1e1503 100%);
}

body.theme-gold .footer-section {
  background: radial-gradient(circle at top, #523a0d 0%, #171002 100%);
}

/* Kartu & Box dengan Latar Emas & Border Perak/Silver */
body.theme-gold .couple-card,
body.theme-gold .event-card,
body.theme-gold .rsvp-form,
body.theme-gold .wishes-container {
  background: #382708;
  border-color: rgba(226, 232, 240, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px rgba(226, 232, 240, 0.12);
}

body.theme-gold .guest-card {
  background: rgba(62, 44, 9, 0.88);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(226, 232, 240, 0.2);
}

body.theme-gold .gift-card {
  background: linear-gradient(135deg, #4d360c 0%, #291c05 100%);
  border-color: rgba(226, 232, 240, 0.55);
}

body.theme-gold .wish-card {
  background: #2b1d05;
  border-color: rgba(226, 232, 240, 0.3);
}

/* Tipografi Silver / Perak Mewah */
body.theme-gold .couple-title,
body.theme-gold .hero-names {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 35%, #cbd5e1 70%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(226, 232, 240, 0.6), 0 4px 15px rgba(0, 0, 0, 0.7);
}

body.theme-gold .person-name {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

body.theme-gold .wedding-intro,
body.theme-gold .sub-greeting,
body.theme-gold .section-subtitle,
body.theme-gold .guest-label,
body.theme-gold .hero-quote,
body.theme-gold .hero-verse,
body.theme-gold .family-tree,
body.theme-gold .footer-text,
body.theme-gold .footer-regards,
body.theme-gold .countdown-sub {
  color: #cbd5e1;
}

body.theme-gold .section-title,
body.theme-gold .event-name,
body.theme-gold .guest-name,
body.theme-gold .countdown-title,
body.theme-gold .footer-couple,
body.theme-gold .footer-thanks,
body.theme-gold .wishes-header h4 {
  color: #ffffff;
}

body.theme-gold .chinese-symbol,
body.theme-gold .chinese-symbol-small,
body.theme-gold .chinese-symbol-tiny,
body.theme-gold .chinese-badge {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(226, 232, 240, 0.7);
}

body.theme-gold .chinese-names,
body.theme-gold .person-chinese-name {
  color: #e2e8f0;
}

body.theme-gold .gold-divider {
  color: #e2e8f0;
}
body.theme-gold .gold-divider::before,
body.theme-gold .gold-divider::after {
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Tombol-tombol Perak / Silver Chrome */
body.theme-gold .btn-open,
body.theme-gold .btn-submit,
body.theme-gold .btn-map,
body.theme-gold .btn-secondary,
body.theme-gold .btn-copy {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, #cbd5e1 75%, #94a3b8 100%);
  color: #1a160d;
  box-shadow: 0 4px 18px rgba(226, 232, 240, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

body.theme-gold .btn-open:hover,
body.theme-gold .btn-submit:hover,
body.theme-gold .btn-map:hover,
body.theme-gold .btn-secondary:hover,
body.theme-gold .btn-copy:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(226, 232, 240, 0.6);
  color: #0f172a;
}

/* Badge Role & Event */
body.theme-gold .badge-role,
body.theme-gold .event-badge {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  color: #1a160d;
  box-shadow: 0 2px 10px rgba(226, 232, 240, 0.35);
  font-weight: 700;
}

/* Frame Kubah Foto Mempelai dengan Aksen Silver */
body.theme-gold .arch-inner {
  border-color: #e2e8f0;
  outline-color: rgba(226, 232, 240, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(226, 232, 240, 0.25);
}

/* Countdown Time Box */
body.theme-gold .time-box {
  background: rgba(56, 39, 8, 0.85);
  border-color: rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(226, 232, 240, 0.1);
}
body.theme-gold .time-num {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(226, 232, 240, 0.5);
}
body.theme-gold .time-label {
  color: #cbd5e1;
}

/* Form RSVP & Select */
body.theme-gold .form-group input,
body.theme-gold .form-group textarea,
body.theme-gold .custom-select-trigger {
  background: #251904;
  border-color: rgba(226, 232, 240, 0.38);
  color: #ffffff;
}

body.theme-gold .form-group input:focus,
body.theme-gold .form-group textarea:focus,
body.theme-gold .custom-select-box.is-open .custom-select-trigger {
  background: #332306;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(226, 232, 240, 0.4);
}

body.theme-gold .custom-select-dropdown {
  background: #291c05;
  border-color: rgba(226, 232, 240, 0.55);
}

body.theme-gold .custom-select-item {
  color: #e2e8f0;
  border-bottom-color: rgba(226, 232, 240, 0.15);
}

body.theme-gold .custom-select-item:hover,
body.theme-gold .custom-select-item:active {
  background: rgba(226, 232, 240, 0.18);
  color: #ffffff;
}

body.theme-gold .custom-select-item.selected {
  background: rgba(226, 232, 240, 0.25);
  color: #ffffff;
}

/* Attendance Buttons */
body.theme-gold .btn-attendance {
  background: #251904;
  border-color: rgba(226, 232, 240, 0.35);
  color: #cbd5e1;
}

body.theme-gold .btn-attendance:hover {
  background: rgba(226, 232, 240, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

body.theme-gold .btn-attendance.active[data-value="Hadir"] {
  border-color: #52c41a;
  background: rgba(82, 196, 26, 0.22);
  color: #ffffff;
}

body.theme-gold .btn-attendance.active[data-value="Tidak Hadir"] {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.22);
  color: #ffffff;
}

/* Bintang Glitter Perak / Berlian */
body.theme-gold .glitter-star {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(226, 232, 240, 0.65);
}
