/* -------------------------------------------------------------
 * Undangan Pernikahan Digital Adat Mandailing - Tampung Tawar Maroon
 * Yusuf Ripani Siregar & dr. Ratna Saidah Harahap
 * Refined Layout & Dedicated Rundown Slide System
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-maroon-deep: #2D0507;
  --color-maroon-dark: #4A080C;
  --color-maroon-main: #7B090C;
  --color-maroon-accent: #9A1317;

  --color-gold-deep: #96742B;
  --color-gold-main: #C49F4D;
  --color-gold-light: #DCC794;
  --color-gold-bright: #F7E5AF;
  --color-gold-pale: #F5EFEB;

  --color-cream: #FCFAF3;
  --font-serif-title: 'Times New Roman', serif;
  --font-serif-accent: 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: #1a0305;
  color: var(--color-gold-light);
}

/* Outer Desktop Background Wall */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(rgba(45, 5, 7, 0.5), rgba(45, 5, 7, 0.5)),
    url('../assets/Background_opening.png') center/cover no-repeat;
}

/* Mobile Frame Container */
.app-container {
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  background-color: var(--color-maroon-deep);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 10px rgba(196, 159, 77, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scroll Viewport Container with Snap Scrolling */
.sections-viewport {
  width: 100%;
  height: calc(100% - 56px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.sections-viewport::-webkit-scrollbar {
  display: none;
}

/* Individual Section Card (Exact Equal Height per Slide) */
.section-slide {
  width: 100%;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 20px;
  text-align: center;
  box-sizing: border-box;
}

/* Background Systems for Sections */
.slide-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 5, 7, 0.45), rgba(30, 4, 6, 0.75));
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 5px 0;
}

.slide-content::-webkit-scrollbar {
  display: none;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  border-top: 1px solid rgba(196, 159, 77, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  padding: 0 2px;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0 2px;
  height: 100%;
  color: #666666;
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.nav-item svg {
  width: 17px;
  height: 17px;
  margin-bottom: 2px;
  stroke: #666666;
  transition: var(--transition-smooth);
}

.nav-item.active {
  color: #A4161A;
  font-weight: 700;
}

.nav-item.active svg {
  stroke: #A4161A;
  transform: translateY(-1px);
}

/* Floating Audio Player Button */
.audio-player-btn {
  position: absolute;
  bottom: 72px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C0292B;
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.audio-player-btn.spinning svg {
  animation: spinDisk 4s linear infinite;
}

/* Cover Screen Overlay (Scoped Inside App Container) */
#cover-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background:
    radial-gradient(circle at center, rgba(45, 5, 7, 0.15) 0%, rgba(30, 3, 5, 0.55) 100%),
    url('../assets/background_depan.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 25px;
  text-align: center;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}

#cover-screen.unlocked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}

.cover-content,
.opening-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 100%;
  width: 100%;
  padding-top: 35px;
}

.cover-top-block {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-subtitle {
  font-family: var(--font-serif-title);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--color-gold-light);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cover-couples {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: #FFF3D1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  line-height: 1.1;
}

.mandailing-crest {
  width: 110px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.mandailing-crest-center {
  width: 130px;
  height: auto;
  margin: 2px auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

.cover-bottom-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.guest-salutation {
  font-family: var(--font-serif-title);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #DCC794;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.guest-name {
  font-family: var(--font-serif-accent);
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.btn-gold-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a48238 0%, #c4a150 50%, #896726 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 240, 195, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-gold-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 159, 77, 0.5);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #C49F4D 0%, #E9DBBA 50%, #96742B 100%);
  color: #2D0507;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid #FFF3D1;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(196, 159, 77, 0.4);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
}

/* Typography & Section Content Elements */
.section-title-wrap {
  text-align: center;
  /* margin-bottom: 12px; */
  width: 100%;
  position: relative;
  z-index: 5;
}

.section-tag {
  font-family: var(--font-serif-title);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--color-gold-main);
  /*text-transform: uppercase;*/
  display: block;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-serif-accent);
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFF3D1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.salam-text {
  font-family: var(--font-serif-accent);
  font-size: 1.3rem;
  color: var(--color-gold-light);
  margin-bottom: 12px;
}

.salam-paragraph {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-gold-pale);
}

/* Quote Card Specifics */
.quote-card-woven {
  background: linear-gradient(135deg, rgba(88, 70, 32, 0.85), rgba(45, 34, 14, 0.9));
  border: 2px solid var(--color-gold-main);
  border-radius: 16px;
  padding: 24px 25px;
  margin: 0px 50px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.quote-body {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.quote-source {
  font-family: var(--font-serif-title);
  font-size: 0.8rem;
  color: var(--color-gold-bright);
  letter-spacing: 2px;
  font-weight: 700;
}

/* Mempelai Section Layout (Matching Reference Design) */
.slide-overlay-mempelai {
  background: radial-gradient(circle at center, rgba(60, 5, 10, 0.25) 0%, rgba(30, 3, 5, 0.7) 100%);
}

.mempelai-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 8px 10px;
  width: 100%;
  gap: 2px;
}

.mempelai-person-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0;
}

.mempelai-script-name {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--color-gold-bright);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  line-height: 1.1;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.mempelai-fullname {
  font-family: var(--font-serif-title);
  font-size: 1.7rem;
  font-weight: 700;
  color: #FFF0C3;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
  margin-bottom: 6px;
  padding: 3px 14px;
  background: rgba(196, 159, 77, 0.15);
  border: 1px solid rgba(196, 159, 77, 0.35);
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.mempelai-parents {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: #EBD9B4;
  line-height: 1.35;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.mempelai-ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #a48238 0%, #c4a150 50%, #896726 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 240, 195, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mempelai-ig-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(196, 159, 77, 0.4);
}

.mempelai-photos-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin: 30px 0;
  width: 100%;
}

.mempelai-frame-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mempelai-frame-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
}

.mempelai-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.mempelai-photo-crop {
  position: absolute;
  top: 13.5%;
  left: 14.5%;
  width: 71%;
  height: 71%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

/* Event Cards (Fancy Redesign) */
.countdown-header-tag {
  font-family: var(--font-serif-title);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--color-gold-main);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.event-card-fancy {
  background: rgba(45, 5, 7, 0.85);
  border: 1px solid rgba(196, 159, 77, 0.4);
  border-radius: 16px;
  padding: 16px 14px;
  width: 100%;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif-accent);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  border-bottom: 1px solid rgba(196, 159, 77, 0.25);
  padding-bottom: 8px;
}

.event-card-title-row svg {
  stroke: var(--color-gold-main);
}

.event-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 2, 4, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}

.event-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a48238 0%, #c4a150 50%, #896726 100%);
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.event-detail-content {
  display: flex;
  flex-direction: column;
}

.event-detail-label {
  font-family: var(--font-serif-title);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.event-detail-val {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
}

.btn-gold-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #a48238 0%, #c4a150 50%, #896726 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 240, 195, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  margin-top: 4px;
  transition: var(--transition-smooth);
}

.btn-gold-maps:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 159, 77, 0.5);
}

/* Combined Acara & Rundown Slide Layout */
.slide-content-acara {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 16px 12px 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.acara-combined-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
  margin-top: 4px;
}

.acara-combined-scroll::-webkit-scrollbar {
  width: 4px;
}

.acara-combined-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.acara-combined-scroll::-webkit-scrollbar-thumb {
  background: var(--color-gold-main);
  border-radius: 4px;
}

.rundown-card-wrapper {
  background: rgba(45, 5, 7, 0.85);
  border: 1px solid rgba(196, 159, 77, 0.4);
  border-radius: 16px;
  padding: 16px 12px;
  width: 100%;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.rundown-card-title {
  /* position: sticky; */
  top: -16px;
  z-index: 10;
  background: rgba(45, 5, 7, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif-title);
  font-size: 0.88rem;
  letter-spacing: 2px;
  color: var(--color-gold-bright);
  border-bottom: 1px solid rgba(196, 159, 77, 0.35);
  padding: 10px 0;
  margin: -16px -12px 4px -12px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.rundown-card-title svg {
  stroke: var(--color-gold-main);
}

/* -------------------------------------------------------------
 * ELEGANT RUNDOWN ACARA SLIDE STYLING & HIGHLIGHTS
 * ------------------------------------------------------------- */
.rundown-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.rundown-tab-btn {
  background: rgba(45, 5, 7, 0.7);
  border: 1px solid rgba(196, 159, 77, 0.4);
  color: var(--color-gold-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.rundown-tab-btn.active,
.rundown-tab-btn:hover {
  background: linear-gradient(135deg, #a48238 0%, #c4a150 50%, #896726 100%);
  color: #FFFFFF;
  border-color: #FFF3D1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.rundown-card-wrapper {
  background: rgba(30, 4, 6, 0.7);
  border: 1px solid rgba(196, 159, 77, 0.35);
  border-radius: 16px;
  padding: 16px 12px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-height: none;
  overflow: visible;
}

.rundown-card-wrapper::-webkit-scrollbar {
  width: 4px;
}

.rundown-card-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-gold-main);
  border-radius: 4px;
}

.rundown-day-card {
  background: rgba(45, 5, 7, 0.85);
  border: 1px solid rgba(196, 159, 77, 0.45);
  border-radius: 14px;
  padding: 14px 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.rundown-day-card:last-child {
  margin-bottom: 0;
}

.rundown-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #C49F4D 0%, #E9DBBA 50%, #96742B 100%);
  color: #2D0507;
  font-family: var(--font-serif-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  width: 100%;
  text-align: center;
}

.rundown-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rundown-timeline-item {
  display: flex;
  align-items: center;
  background: rgba(20, 2, 4, 0.6);
  border-left: 3px solid var(--color-gold-main);
  border-radius: 6px;
  padding: 8px 10px;
  gap: 12px;
  text-align: left;
}

.rundown-time-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  background: rgba(196, 159, 77, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(196, 159, 77, 0.35);
  flex-shrink: 0;
}

.rundown-event-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #FFFFFF;
}

/* Countdown Grid */
.countdown-box {
  background: rgba(20, 3, 5, 0.85);
  border: 1px solid rgba(196, 159, 77, 0.3);
  border-radius: 14px;
  padding: 14px 10px;
  /* margin-bottom: 12px; */
  width: 100%;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.timer-card {
  background: rgba(123, 9, 12, 0.4);
  border: 1px solid rgba(196, 159, 77, 0.3);
  border-radius: 10px;
  padding: 8px 4px;
}

.timer-num {
  font-family: var(--font-serif-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold-bright);
}

.timer-label {
  font-size: 0.65rem;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

/* GALLERY GRID SYSTEM (3 Rows x 2 Columns = 6 Larger Images) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  padding: 0 2px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(196, 159, 77, 0.45);
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* -------------------------------------------------------------
 * CLOSING / TERIMA KASIH SLIDE STYLING
 * ------------------------------------------------------------- */
.terimakasih-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
}

.terimakasih-body-card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
}

.terimakasih-paragraph {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #F5EFEB;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  max-width: 90%;
}

.terimakasih-salutation {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-gold-light);
  line-height: 1.4;
}

.terimakasih-couples {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: #FFF3D1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  line-height: 1.1;
  margin-top: 4px;
}

.terimakasih-footer-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  gap: 2px;
}

.branding-made-with {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: #DCC794;
  letter-spacing: 1px;
}

.branding-logo {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 3px;
}

.heart-icon {
  color: #E63946;
  font-size: 0.9rem;
}

.branding-music {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-gold-light);
  margin-top: 6px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--color-gold-main);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(196, 159, 77, 0.5);
  border-color: var(--color-gold-bright);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
#lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

#lightbox-modal img {
  max-width: 92%;
  max-height: 80vh;
  border-radius: 10px;
  border: 2px solid var(--color-gold-main);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-gold-bright);
  font-size: 2.2rem;
  cursor: pointer;
}

/* Bank Cards */
.bank-card {
  background: linear-gradient(135deg, rgba(74, 8, 12, 0.9), rgba(30, 4, 6, 0.95));
  border: 1px solid rgba(196, 159, 77, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.bank-logo-text {
  font-family: var(--font-serif-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold-bright);
}

.account-number {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.account-name {
  font-size: 0.78rem;
  color: var(--color-gold-light);
  margin-bottom: 10px;
}

.btn-copy {
  background: rgba(196, 159, 77, 0.15);
  color: var(--color-gold-bright);
  border: 1px solid var(--color-gold-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* RSVP Form */
.rsvp-form {
  background: rgba(45, 5, 7, 0.8);
  border: 1px solid rgba(196, 159, 77, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-label {
  font-size: 0.78rem;
  color: var(--color-gold-light);
  margin-bottom: 4px;
  display: block;
}

.form-control {
  width: 100%;
  background: rgba(20, 3, 5, 0.7);
  border: 1px solid rgba(196, 159, 77, 0.3);
  border-radius: 8px;
  padding: 10px;
  color: #FFFFFF;
  font-size: 0.85rem;
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.radio-badge input {
  position: absolute;
  opacity: 0;
}

.radio-badge label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 2px;
  background: rgba(20, 3, 5, 0.6);
  border: 1px solid rgba(196, 159, 77, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-gold-light);
  cursor: pointer;
}

.radio-badge input:checked+label {
  background: var(--color-gold-main);
  color: var(--color-maroon-deep);
  font-weight: 700;
}

.guestbook-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  width: 100%;
}

.guest-card-item {
  background: rgba(20, 3, 5, 0.7);
  border: 1px solid rgba(196, 159, 77, 0.25);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.guest-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.guest-card-author {
  font-family: var(--font-serif-accent);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-gold-bright);
}

.rsvp-badge-highlight {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.badge-hadir {
  background: rgba(16, 185, 129, 0.25);
  color: #2ECC71;
  border: 1px solid rgba(46, 204, 113, 0.5);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.2);
}

.badge-halangan {
  background: rgba(239, 68, 68, 0.25);
  color: #FF6B6B;
  border: 1px solid rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

.badge-ragu {
  background: rgba(245, 158, 11, 0.25);
  color: #F5D77F;
  border: 1px solid rgba(245, 215, 127, 0.5);
  box-shadow: 0 0 8px rgba(245, 215, 127, 0.2);
}

.guest-card-body {
  font-size: 0.8rem;
  color: #FFF0C3;
  margin-bottom: 6px;
  line-height: 1.35;
  font-style: italic;
}

.guest-card-time {
  font-size: 0.68rem;
  color: var(--color-gold-light);
  opacity: 0.8;
}

/* Lightbox Modal for Gallery Photo Preview */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 92%;
  max-height: 85vh;
  border-radius: 12px;
  border: 2px solid var(--color-gold-main);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: var(--color-gold-bright);
  cursor: pointer;
  z-index: 100001;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Toast Notification */
.toast-msg {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: var(--color-gold-main);
  color: var(--color-maroon-deep);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10001;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@keyframes spinDisk {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
 * PREMIUM MOBILE RESPONSIVE DESIGN (BALANCED SPACING & READABLE FONTS)
 * ------------------------------------------------------------- */
@media screen and (max-width: 500px) {
  .app-container {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .section-slide {
    padding: 20px 14px 20px;
  }

  /* Section Titles & Badges */
  .section-tag {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
  }

  .section-heading,
  .section-title {
    font-size: 1.4rem !important;
  }

  /* Slide Cover */
  .cover-title-ornate {
    font-size: 1.35rem !important;
  }

  .cover-couple-names {
    font-size: 2.35rem !important;
    margin: 12px 0 16px !important;
  }

  .guest-box {
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
  }

  .guest-name-highlight {
    font-size: 1.2rem !important;
  }

  .btn-buka-undangan {
    font-size: 0.85rem !important;
    padding: 10px 22px !important;
  }

  /* Slide Quote */
  .opening-quote-box {
    padding: 18px 14px !important;
  }

  .opening-quote-text {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }

  .quote-surah {
    font-size: 0.78rem !important;
  }

  /* Slide Mempelai - Balanced Spacing & Prominent Text */
  .mempelai-slide-content {
    justify-content: space-evenly !important;
    padding: 12px 10px 10px !important;
    gap: 6px !important;
  }

  .mempelai-photos-row {
    gap: 10px !important;
    margin: 8px 0 !important;
  }

  /* .mempelai-frame-wrap {
    width: 145px !important;
    height: 145px !important;
  }

  .mempelai-script-name {
    font-size: 1.85rem !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  } */

  .mempelai-fullname {
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    margin-bottom: 4px !important;
  }

  /* .mempelai-parents {
    font-size: 0.82rem !important;
    margin-bottom: 4px !important;
    line-height: 1.35 !important;
  }

  .mempelai-ig-btn {
    font-size: 0.75rem !important;
    padding: 4px 12px !important;
  } */

  /* Slide Acara & Rundown */
  .slide-content-acara {
    padding: 16px 10px 10px !important;
    gap: 12px !important;
  }

  .countdown-box {
    padding: 10px 8px !important;
  }

  .timer-num {
    font-size: 1.25rem !important;
  }

  .timer-label {
    font-size: 0.68rem !important;
  }

  .event-card-fancy {
    padding: 12px 10px !important;
    gap: 8px !important;
  }

  .event-card-title-row {
    font-size: 1.05rem !important;
  }

  .event-detail-item {
    padding: 7px 10px !important;
    gap: 10px !important;
  }

  .event-detail-label {
    font-size: 0.65rem !important;
  }

  .event-detail-val {
    font-size: 0.85rem !important;
  }

  .btn-gold-maps {
    font-size: 0.8rem !important;
    padding: 9px 16px !important;
  }

  /* Rundown Card & Items */
  .rundown-card-wrapper {
    padding: 12px 10px !important;
  }

  .rundown-card-title {
    font-size: 0.88rem !important;
    padding: 8px 0 !important;
  }

  .rundown-day-badge {
    font-size: 0.74rem !important;
    padding: 5px 10px !important;
  }

  .rundown-timeline-item {
    padding: 6px 8px !important;
    gap: 8px !important;
  }

  .rundown-time-badge {
    font-size: 0.72rem !important;
    padding: 3px 6px !important;
  }

  .rundown-event-desc {
    font-size: 0.8rem !important;
  }

  /* Slide Terima Kasih */
  .terimakasih-couples {
    font-size: 2.35rem !important;
  }

  .terimakasih-paragraph {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* Bottom Navigation */
  .bottom-nav {
    height: 54px;
    padding: 0 4px;
  }

  .nav-item {
    font-size: 0.55rem;
  }

  .nav-item svg {
    width: 15px;
    height: 15px;
    margin-bottom: 2px;
  }
}

/* Short height mobile screens (e.g., iPhone SE) */
@media screen and (max-height: 670px) {
  .section-slide {
    padding: 12px 10px 40px;
  }

  .mempelai-frame-wrap {
    width: 125px !important;
    height: 125px !important;
  }

  .cover-couple-names {
    font-size: 2.0rem !important;
    margin: 6px 0 10px !important;
  }

  .terimakasih-couples {
    font-size: 2.0rem !important;
  }
}