/* ==========================================================================
   LUXURY KHMER WEDDING E-INVITATION — FULL-SCREEN RESPONSIVE STYLESHEET
   ========================================================================== */

:root {
  --parchment-light: #fdf6f0;
  --parchment-mid: #f7e8df;
  --parchment-rose: #f2dcd4;
  --parchment-deep: #e8c8be;
  --gold-light: #fff3b0;
  --gold-mid: #d4af37;
  --gold-rich: #b8860b;
  --gold-dark: #7a5306;
  --crimson-royal: #681823;
  --crimson-soft: #8c2d3b;
  --text-dark: #3b2314;
  --text-muted: #6e4f3a;
  --shadow-gold: 0 10px 30px rgba(184, 134, 11, 0.25);
  --shadow-soft: 0 10px 36px rgba(59, 35, 20, 0.12);
  --font-kh-title: 'Moul', serif;
  --font-kh-sub: 'Moulpali', serif;
  --font-kh-body: 'Kantumruy Pro', 'Battambang', sans-serif;
  --font-en-title: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --font-en-body: 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment-mid) 45%, var(--parchment-rose) 100%);
  color: var(--text-dark);
  font-family: var(--font-kh-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.lang-en {
  font-family: var(--font-en-body);
}

/* Full-Screen App Shell */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--parchment-light) 0%, var(--parchment-mid) 45%, var(--parchment-rose) 100%);
  overflow: hidden;
}

/* Floating Hearts & Sparkle Canvas (Full Screen) */
#hearts-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 35;
}

.motion-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid #d4af37;
  border-radius: 50%;
  background: #543823;
  color: #fff3b0;
  font: 700 18px sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px #3b231433;
}
.motion-toggle:focus-visible { outline: 3px solid #925367; outline-offset: 3px; }
.motion-toggle:disabled { opacity: .65; cursor: default; }

/* ==========================================================================
   FLOATING HUD CONTROLS (Full-Width Top & Bottom Bars)
   ========================================================================== */
.top-hud {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 60;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(45, 38, 28, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.8);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #e6d7be;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, #f9e498 0%, #d4af37 55%, #aa7c11 100%);
  color: #2b1704;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Bottom Floating Controls */
.bottom-hud {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 60;
  pointer-events: none;
}

.bottom-hud > * {
  pointer-events: auto;
}

.back-cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(75, 45, 32, 0.85);
  backdrop-filter: blur(8px);
  color: #fff8eb;
  border: 1.5px solid rgba(255, 243, 176, 0.65);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-family: var(--font-kh-body);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.back-cover-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-cover-btn:hover {
  background: rgba(122, 83, 6, 0.95);
}

/* ==========================================================================
   STAGE 1: FULL-SCREEN COVER SCREEN
   ========================================================================== */
.cover-screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #e7d8e8 0%, #f5e6e8 28%, #f8efe6 50%, #6d7f46 78%, #4e602c 100%);
  overflow: hidden;
  z-index: 30;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cover-screen.hidden {
  display: none;
}

/* Dreamy Pastel Clouds */
.sky-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  fill: rgba(255, 250, 248, 0.75);
  filter: blur(1px);
}

.cloud-1 {
  top: 5%;
  left: -4%;
  width: 42%;
  max-width: 480px;
  animation: floatCloud 22s ease-in-out infinite alternate;
}

.cloud-2 {
  top: 10%;
  right: -4%;
  width: 46%;
  max-width: 520px;
  animation: floatCloud 26s ease-in-out infinite alternate-reverse;
}

@keyframes floatCloud {
  0% { transform: translateX(0px); }
  100% { transform: translateX(32px); }
}

/* Angkor Wat Temple Silhouette Backdrop */
.angkor-backdrop {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  max-height: 42vh;
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
}

/* Couple photography, framed below the invitation text. */
.cover-photo-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45%;
  z-index: 3;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at center, #73864b 0%, #485928 100%);
}

.cover-photo-wrap picture {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cover-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(180deg, #f6ebe5 0%, rgba(246, 235, 229, 0.7) 45%, rgba(246, 235, 229, 0) 100%);
  z-index: 4;
  pointer-events: none;
}

.cover-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 26%;
  background: linear-gradient(0deg, rgba(24, 32, 11, 0.82) 0%, rgba(24, 32, 11, 0) 100%);
  z-index: 4;
  pointer-events: none;
}

.cover-couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
  animation: subtleZoom 16s ease-in-out infinite alternate;
}

@media (min-width: 900px) {
  .cover-couple-img {
    max-width: 960px;
    object-fit: cover;
    object-position: center 28%;
  }
}

@keyframes subtleZoom {
  0% { transform: scale(1.01); }
  100% { transform: scale(1.06); }
}

/* Cover Header Typography (3D Gold Embossed Khmer Calligraphy) */
.cover-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 72px 24px 16px;
  width: 100%;
  max-width: 900px;
}

.cover-ceremony-title {
  font-family: var(--font-kh-title);
  font-size: clamp(18px, 2.5vw, 26px);
  color: #5c4028;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 8px rgba(92, 64, 40, 0.15);
  margin-bottom: 10px;
}

body.lang-en .cover-ceremony-title {
  font-family: var(--font-en-title);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.cover-couple-names {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 6px 24px;
  margin: 4px 0 12px;
}

.gold-3d-text {
  font-family: var(--font-kh-title);
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.8;
  padding: .25em .12em;
  margin-block: -.2em;
  overflow: visible;
  background: linear-gradient(180deg, #fff9d2 0%, #f7d774 30%, #d49b27 62%, #8f5b05 85%, #f5d36b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #6e4503)
          drop-shadow(0 4px 0 #4a2d01)
          drop-shadow(0 8px 14px rgba(59, 35, 20, 0.38));
  display: block;
}

body.lang-en .gold-3d-text {
  font-family: var(--font-en-title);
  font-size: clamp(20px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.6;
}

.couple-name-groom {
  display: block;
  transform: translateX(-32px);
}

.couple-name-amp {
  display: inline-block;
  font-size: clamp(24px, 3.5vw, 34px);
  margin: -6px 0;
}

.couple-name-bride {
  display: block;
  transform: translateX(32px);
}

.cover-invite-ribbon {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 22px;
  font-family: var(--font-kh-sub);
  font-size: clamp(14px, 1.8vw, 17px);
  color: #4a2e16;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(59, 35, 20, 0.14);
}

.guest-badge-card {
  margin: 14px auto 0;
  max-width: 560px;
  background: rgba(255, 252, 245, 0.92);
  border: 1.5px solid #d4af37;
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: 0 6px 20px rgba(59, 35, 20, 0.18);
}

.guest-badge-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.guest-badge-name {
  font-family: var(--font-kh-sub);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
  color: var(--crimson-royal);
}

/* Cover Footer & Open Invitation Button */
.cover-footer {
  position: relative;
  z-index: 10;
  padding: 20px 20px 42px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.open-invite-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  border-radius: 999px;
  border: 2px solid #fff6cc;
  background: linear-gradient(180deg, #fce8a6 0%, #dfad36 50%, #b37c0e 100%);
  color: #381f03;
  font-family: var(--font-kh-sub);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 #784f04, 0 12px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulseGoldBtn 2.4s infinite;
}

.open-invite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #784f04, 0 16px 32px rgba(0, 0, 0, 0.5);
}

.open-invite-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #784f04, 0 6px 14px rgba(0, 0, 0, 0.4);
}

@keyframes pulseGoldBtn {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.09); }
}

/* ==========================================================================
   STAGE 2: 3D GOLDEN GATE OPENING ANIMATION OVERLAY (Full Screen)
   ========================================================================== */
.gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 55;
  pointer-events: none;
  perspective: 1600px;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gate-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gate-door {
  width: 50%;
  height: 100%;
  background: linear-gradient(160deg, #4b151d 0%, #2c0b10 60%, #1a0609 100%);
  border: 2px solid #d4af37;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.35);
  transition: transform 1.45s cubic-bezier(0.65, 0, 0.25, 1);
}

.gate-left {
  transform-origin: left center;
  justify-content: flex-end;
  border-right: 3px solid #f9e498;
}

.gate-right {
  transform-origin: right center;
  justify-content: flex-start;
  border-left: 3px solid #f9e498;
}

.gate-overlay.opening .gate-left {
  transform: rotateY(-108deg);
}

.gate-overlay.opening .gate-right {
  transform: rotateY(108deg);
}

.gate-filigree {
  position: absolute;
  inset: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
}

.gate-medallion {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0%, #d4af37 55%, #8a5a05 100%);
  border: 3px solid #fff9d6;
  box-shadow: 0 0 30px rgba(255, 223, 100, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-kh-title);
  font-size: 26px;
  color: #4b151d;
  z-index: 5;
}

.gate-left .gate-medallion {
  transform: translateX(55px);
}

.gate-right .gate-medallion {
  transform: translateX(-55px);
}

.gate-light-burst {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 248, 210, 0.95) 0%, rgba(255, 220, 120, 0.35) 45%, transparent 75%);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.gate-overlay.opening .gate-light-burst {
  opacity: 1;
}

/* ==========================================================================
   STAGE 3: MAIN SCROLLABLE INVITATION CONTENT (Full Screen Width)
   ========================================================================== */
.invitation-main {
  display: none;
  position: relative;
  width: 100%;
  padding: 50px 0 90px;
  /* Keep photos and payment codes above the decorative hearts. */
  z-index: 40;
  animation: fadeInMain 0.9s ease forwards;
}

.invitation-main.visible {
  display: block;
}

@keyframes fadeInMain {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-section {
  position: relative;
  width: 100%;
  max-width: 1080px;
  padding: 24px clamp(16px, 4vw, 48px);
  margin: 0 auto;
}

.scroll-frame {
  position: relative;
  width: 100%;
  background: rgba(255, 251, 247, 0.82);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 44px);
  box-shadow: var(--shadow-soft), inset 0 0 32px rgba(242, 220, 212, 0.55);
}

.scroll-frame::before,
.scroll-frame::after {
  content: '❈ ═══════════ ❁ ═══════════ ❈';
  display: block;
  text-align: center;
  color: var(--gold-rich);
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.78;
}

.scroll-frame::before {
  margin-bottom: 22px;
}

.scroll-frame::after {
  margin-top: 22px;
}

.section-header-kh {
  font-family: var(--font-kh-title);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(180deg, #b8860b 0%, #7a5306 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8));
}

body.lang-en .section-header-kh {
  font-family: var(--font-en-title);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Parents Grid */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1.8;
}

.parent-col {
  text-align: center;
}

.parent-label {
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.parent-name {
  font-family: var(--font-kh-sub);
  font-weight: 700;
  color: var(--text-dark);
}

/* Formal Honorific Text */
.honorific-heading {
  font-family: var(--font-kh-sub);
  font-size: clamp(16px, 2.2vw, 20px);
  text-align: center;
  color: var(--crimson-royal);
  margin-bottom: 12px;
}

.invitation-paragraph {
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 2;
  text-align: center;
  color: var(--text-dark);
  max-width: 780px;
  margin: 0 auto 24px;
}

body.lang-en .invitation-paragraph {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

/* Couple Names Showcase Row */
.couple-showcase-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 22px auto 28px;
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(255, 245, 225, 0.85) 0%, rgba(247, 232, 223, 0.85) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
  border-radius: 18px;
}

.couple-box {
  text-align: center;
}

.couple-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.couple-full-name {
  font-family: var(--font-kh-title);
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--crimson-royal);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.lang-en .couple-full-name {
  font-family: var(--font-en-title);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
}

.couple-union-emblem {
  text-align: center;
  font-family: var(--font-kh-sub);
  font-size: 14px;
  color: var(--gold-dark);
}

.couple-union-emblem span {
  display: block;
  font-size: 26px;
}

/* Countdown Timer Boxes */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 640px;
  margin: 26px auto 24px;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.14);
}

.countdown-num {
  font-family: var(--font-kh-sub);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--crimson-royal);
  line-height: 1.2;
}

.countdown-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Action Buttons (Gold Pill Style) */
.calendar-date-icon {
  display: inline-flex;
  flex: 0 0 25px;
  flex-direction: column;
  width: 25px;
  border-radius: 3px;
  overflow: hidden;
  background: #fffdf9;
  color: #361d02;
  font-family: Arial, sans-serif;
  text-align: center;
  box-shadow: 0 1px 3px #361d0233;
}
.calendar-date-icon span { background: #925367; color: white; font-size: 7px; line-height: 10px; }
.calendar-date-icon strong { font-size: 16px; line-height: 20px; }

.gold-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid #fff3b0;
  background: linear-gradient(180deg, #f9e295 0%, #d4a428 55%, #a17008 100%);
  color: #361d02;
  font-family: var(--font-kh-sub);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(161, 112, 8, 0.35);
  transition: all 0.22s ease;
}

.gold-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(161, 112, 8, 0.5);
}

.center-action {
  text-align: center;
  margin: 16px 0;
}

/* Golden Monogram Seal (ស ល - វិច្ឆិកា ២០២៦) */
.monogram-seal {
  text-align: center;
  margin: 28px auto 8px;
}

.monogram-letters {
  font-family: var(--font-kh-title);
  font-size: clamp(48px, 6vw, 64px);
  line-height: 1.2;
  background: linear-gradient(180deg, #fff5be 0%, #e4b644 45%, #8f5c05 85%, #f5d36b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #593802) drop-shadow(0 6px 12px rgba(90, 56, 2, 0.3));
}

.monogram-date {
  font-family: var(--font-kh-sub);
  font-size: 15px;
  color: var(--gold-dark);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* ==========================================================================
   SECTION 2: LOCATION QR & GOOGLE MAPS
   ========================================================================== */
.qr-card-wrap {
  text-align: center;
  margin: 16px auto;
}

.qr-title {
  font-family: var(--font-kh-sub);
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.qr-frame {
  display: inline-block;
  padding: 14px;
  background: #ffffff;
  border: 2px solid var(--gold-mid);
  border-radius: 18px;
  box-shadow: var(--shadow-gold);
  margin-bottom: 16px;
}

.qr-frame img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.payment-qr-frame { width: min(100%, 420px); }
.payment-qr-frame img { width: 100%; height: auto; border-radius: 0; }

/* ==========================================================================
   SECTION 3: 2-DAY WEDDING CEREMONY TIMELINE (Responsive 2-Col on Wide Screens)
   ========================================================================== */
.day-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.day-tab-btn {
  border: 1px solid var(--gold-mid);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-kh-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day-tab-btn.active {
  background: linear-gradient(135deg, #f9e295 0%, #d4a428 100%);
  color: #2e1802;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
}

.schedule-days-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 820px) {
  .schedule-days-container.both-visible {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.schedule-day-block {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 18px;
}

.schedule-day-header {
  font-family: var(--font-kh-sub);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--crimson-royal);
  text-align: center;
  padding: 10px 14px;
  background: rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  margin-bottom: 16px;
}

.timeline-list {
  position: relative;
  padding-left: 8px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 31px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold-mid), rgba(212, 175, 55, 0.25));
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.timeline-item:hover {
  background: rgba(255, 245, 225, 0.75);
}

.timeline-icon {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7d6 0%, #e4be52 100%);
  border: 1.5px solid #b8860b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(184, 134, 11, 0.22);
}

.timeline-content {
  flex: 1;
}

.timeline-time {
  font-family: var(--font-kh-sub);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold-dark);
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 4: PRE-WEDDING PHOTO GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 18px rgba(59, 35, 20, 0.16);
  cursor: pointer;
  background: #e9d6cc;
  aspect-ratio: 2 / 3;
}

.gallery-item.landscape {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.gallery-item { padding: 0; width: 100%; display: block; }
.gallery-item:focus-visible { outline: 3px solid var(--crimson-royal); outline-offset: 4px; }

@media (max-width: 767px) {
  .gallery-item:nth-child(5) { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gallery-item { grid-column: span 2; }
  .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 3; }
  .gallery-item.landscape { grid-column: 1 / -1; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.gallery-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(30, 18, 12, 0.72);
  color: #fff3b0;
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  pointer-events: none;
}

/* Lightbox Overlay */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 243, 176, 0.5);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  width: 90%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(212, 175, 55, 0.75);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 243, 176, 0.6);
  background: rgba(35, 22, 14, 0.8);
  color: #fff3b0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: -12px; }
.lightbox-next { right: -12px; }

.lightbox-counter {
  margin-top: 14px;
  color: #f3e2c7;
  font-size: 14px;
  letter-spacing: 1.5px;
}

/* ==========================================================================
   SECTION 5: KHQR GIFT, THANK YOU & APOLOGY NOTES, HOST CONTACTS
   ========================================================================== */
.bank-pill-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.bank-copy-btn {
  border: 1px solid rgba(212, 175, 55, 0.75);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-kh-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bank-copy-btn:hover {
  background: #fff6d1;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}

@media (min-width: 768px) {
  .notes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.note-block {
  padding: 20px 18px;
  background: rgba(255, 248, 242, 0.88);
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  text-align: center;
}

.note-heading {
  font-family: var(--font-kh-sub);
  font-size: 16px;
  font-weight: 700;
  color: var(--crimson-royal);
  margin-bottom: 10px;
}

.note-text {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 600px;
  margin: 16px auto 12px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  background: #fff9e6;
}

.contact-card span {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

/* ==========================================================================
   SECTION 6: INTERACTIVE GUESTBOOK / WISHES WALL
   ========================================================================== */
.wishes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 820px) {
  .wishes-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.wishes-form {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 18px;
  padding: 20px;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(184, 134, 11, 0.45);
  background: #fffdf9;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
}

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

.quick-wishes-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wish-chip {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #fff7e0;
  color: #5c3b09;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.wish-chip:hover {
  background: #f7e09e;
}

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

.wish-card {
  background: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--gold-mid);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 3px 10px rgba(59, 35, 20, 0.08);
}

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

.wish-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--crimson-royal);
}

.wish-badge {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-dark);
}

.wish-message {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dark);
}

.wish-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   MODAL: IN-APP GOOGLE MAPS DRAWER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
}

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

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fdf6f0;
  border: 2px solid var(--gold-mid);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

.modal-title {
  font-family: var(--font-kh-sub);
  font-size: 17px;
  font-weight: 700;
  color: var(--crimson-royal);
}

.modal-close-btn {
  border: none;
  background: rgba(184, 134, 11, 0.15);
  color: var(--text-dark);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.map-iframe-wrap {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--gold-mid);
  margin-bottom: 14px;
  background: #e9e2d8;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.coords-box {
  background: #fffdf9;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(43, 24, 6, 0.94);
  color: #fff3b0;
  border: 1px solid #d4af37;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

/* Keep the full couple names readable on phones. */
@media (max-width: 600px) {
  .cover-couple-names { padding-inline: 4px; }
  .couple-name-groom, .couple-name-bride { transform: none; }
  .couple-showcase-row { grid-template-columns: minmax(0, 1fr); }
}
