/* ========== CSS VARIABLES & GENERAL RESET ========== */
:root {
  --terracotta: #8C2D2D;
  --terracotta-dark: #6D2121;
  --terracotta-light: #A43B3B;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #AA7C11;
  --beige-bg: #FDFBF7;
  --text-dark: #331A1A;
  --text-light: #FDFBF7;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(140, 45, 45, 0.1);
  --shadow-md: 0 8px 24px rgba(140, 45, 45, 0.15);
  --shadow-lg: 0 16px 40px rgba(140, 45, 45, 0.25);
  --font-cursive: 'Beau Rivage', 'Rochester', 'Great Vibes', cursive;
  --font-serif: 'Newsreader', 'Cormorant Garamond', serif;
  --font-heading: 'El Messiri', 'Playfair Display', serif;
  --font-sans: 'Nunito Sans', 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--beige-bg);
  background-image: url('https://undanganpedia.id/wp-content/uploads/2025/01/PPT-MINANG-vc-scaled.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== REUSABLE UTILITIES ========== */
.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-medium {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.font-cursive { font-family: var(--font-cursive); }
.font-serif { font-family: var(--font-serif); }
.hidden { display: none !important; }

/* Ornament Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.ornament-divider::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.ornament-divider.light {
  color: var(--gold-light);
}
.ornament-divider.light::before {
  background: linear-gradient(to right, transparent, var(--gold-light));
}
.ornament-divider.light::after {
  background: linear-gradient(to left, transparent, var(--gold-light));
}

/* Animations classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.animate-fade-in {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== CLOSED COVER PAGE ========== */
.cover-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.77, 0, 0.175, 1), transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.cover-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://undanganpedia.id/wp-content/uploads/2025/01/Minang-fgfgssx.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 10s ease-out;
}

.cover-page:not(.hide) .cover-bg {
  transform: scale(1.05);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(51, 10, 10, 0.6) 0%, rgba(140, 45, 45, 0.7) 100%);
  z-index: 2;
}

.cover-minang-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
}

.cover-minang-banner img {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
  opacity: 0.85;
}

.cover-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 500px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-dear-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.cover-title-names {
  font-family: var(--font-cursive);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  line-height: 1.1;
  text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cover-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.cover-guest-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.2rem 2rem;
  width: 100%;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-md);
  transform: translateY(10px);
  opacity: 0;
  animation: slideUp 0.8s ease 0.4s forwards;
}

.cover-guest-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cover-guest-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-light);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.open-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  border: none;
  padding: 0.9rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  animation: pulseButton 2s infinite;
}

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

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

@keyframes slideUp {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 4px 25px rgba(212, 175, 55, 0.7); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); }
}

/* ========== MAIN CONTENT & MUSIC PLAYER ========== */
.main-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.music-player {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  z-index: 999;
}

.music-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.music-btn:hover {
  transform: scale(1.1);
  background: var(--terracotta-light);
}

.music-icon {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.music-icon span {
  width: 2.5px;
  background: var(--white);
  border-radius: 1px;
  animation: barEqualizer 1s ease-in-out infinite alternate;
}

.music-icon span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.music-icon span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.music-icon span:nth-child(3) { height: 10px; animation-delay: 0.5s; }
.music-icon span:nth-child(4) { height: 16px; animation-delay: 0.2s; }

.music-icon.paused span {
  animation-play-state: paused;
  height: 8px !important;
}

@keyframes barEqualizer {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

/* ========== BOTTOM NAV CAPSULE ========== */
.bottom-nav {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  background: rgba(140, 45, 45, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 0.4rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-lg);
  width: max-content;
  max-width: 95vw;
}

.nav-item {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  width: 52px;
  transition: all 0.3s ease;
}

.nav-item i {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.nav-item span {
  font-size: 0.65rem;
  font-family: var(--font-sans);
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-light);
}

.nav-item.active i {
  transform: translateY(-2px);
  color: var(--gold);
}

/* ========== SECTIONS STYLE ========== */
.section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.section-bg-ornament {
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0.9;
}

.section-bg-ornament img {
  max-height: 50px;
  width: 90%;
  max-width: 450px;
  object-fit: contain;
}

.top-ornament { margin-bottom: 2rem; }
.bottom-ornament { margin-top: 2rem; transform: rotate(180deg); }

/* ========== SECTION 1: HOME ========== */
.home-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
}

.home-container {
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1.5px solid rgba(140, 45, 45, 0.15);
  box-shadow: var(--shadow-md);
  margin: 1.5rem;
}

.home-wedding-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.home-names {
  font-family: var(--font-cursive);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  color: var(--terracotta-dark);
  line-height: 1.2;
}

.home-date {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: 0.5rem;
}

.verse-box {
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.verse-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.verse-ref {
  font-weight: 600;
  color: var(--terracotta);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ========== INTRO BOX ========== */
.intro-verse-section {
  background-color: var(--terracotta);
  color: var(--white);
  padding: 3.5rem 0;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.15), inset 0 -10px 30px rgba(0,0,0,0.15);
}

.intro-greeting {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.intro-p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ========== SECTION 2: MEMPELAI ========== */
.mempelai-section {
  background: transparent;
}

.couple-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin: 3rem 0;
}

.couple-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 2.5rem 1.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(140, 45, 45, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-photo-frame {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  padding: 4px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  position: relative;
}

.couple-photo-frame::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--terracotta);
  opacity: 0.6;
}

.couple-photo-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.couple-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.couple-card:hover .couple-img {
  transform: scale(1.08);
}

.couple-name {
  font-family: var(--font-cursive);
  font-size: 2.3rem;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.couple-parent-label {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  font-family: var(--font-serif);
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-instagram:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: translateY(-2px);
}

.couple-ampersand {
  font-size: 3.5rem;
  color: var(--gold-dark);
  line-height: 1;
}

.intro-footer-box {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--terracotta-dark);
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
  background-color: var(--terracotta);
  color: var(--white);
  padding: 4.5rem 0;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.1), inset 0 -10px 30px rgba(0,0,0,0.1);
}

.countdown-label {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.countdown-wedding-date {
  font-family: var(--font-cursive);
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  min-width: 70px;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.countdown-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-light);
}

.countdown-txt {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  margin-top: 0.2rem;
}

.countdown-sep {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--gold-light);
  transform: translateY(-8px);
}

.countdown-done {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-top: 1rem;
  font-family: var(--font-heading);
}

/* ========== SECTION 3: EVENTS ========== */
.event-section {
  background: transparent;
}

.event-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 3rem;
}

.event-cards-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.event-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  padding: 2.8rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(140, 45, 45, 0.12);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-card-icon {
  font-size: 2.4rem;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.event-card-title {
  font-family: var(--font-cursive);
  font-size: 2.5rem;
  color: var(--terracotta-dark);
  line-height: 1.1;
}

.event-card-day {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-top: 0.5rem;
}

.event-card-date {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1.2;
}

.event-card-time {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.event-card-venue-label {
  font-size: 0.8rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-card-venue {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin-bottom: 0.5rem;
}

.event-card-address {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  min-height: 60px;
}

.btn-event-map {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  color: var(--white);
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(140, 45, 45, 0.3);
  transition: all 0.3s;
}

.btn-event-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(140, 45, 45, 0.45);
}

/* ========== SECTION 4: GALLERY ========== */
.gallery-section {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: inset 0 15px 30px rgba(0,0,0,0.15), inset 0 -15px 30px rgba(0,0,0,0.15);
}

.gallery-title {
  font-family: var(--font-cursive);
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.1;
}

.gallery-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.swiper-gallery-wrap {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.mainGallerySwiper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.mainGallerySwiper .swiper-slide {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--terracotta-dark);
}

.mainGallerySwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next, .swiper-button-prev {
  color: var(--white) !important;
  transform: scale(0.7);
}

.swiper-pagination-bullet-active {
  background: var(--gold) !important;
}

/* ========== SECTION 5: GIFT REGISTRY ========== */
.gift-section {
  background: transparent;
}

.gift-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 0.2rem;
}

.gift-title {
  font-family: var(--font-cursive);
  font-size: 3.2rem;
  color: var(--terracotta-dark);
  line-height: 1;
}

.gift-desc {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 2rem;
  color: var(--text-dark);
}

.gift-trigger-btn {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s;
}

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

.gift-details-box {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  transition: all 0.5s ease;
}

.gift-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(140, 45, 45, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.6rem;
}

.bank-logo-text {
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--terracotta);
}

.bank-icon {
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.account-number {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dark);
}

.account-holder {
  font-size: 0.85rem;
  color: #666;
}

.address-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dark);
  font-weight: 500;
}

.btn-copy {
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s;
}

.btn-copy:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn-gift-hide {
  background: #eee;
  color: #555;
  border: none;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s;
}

.btn-gift-hide:hover {
  background: #ddd;
  color: #333;
}

/* ========== SECTION 6: WISHES & RSVP ========== */
.wishes-section {
  background: var(--terracotta);
  color: var(--white);
}

.wishes-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.wishes-title {
  font-family: var(--font-cursive);
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1;
}

.wishes-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.wishes-form-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dark);
  max-width: 500px;
  width: 100%;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: #FDFDFD;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--terracotta);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C2D2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}

.btn-submit-wish {
  width: 100%;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(140, 45, 45, 0.2);
  transition: all 0.3s;
}

.btn-submit-wish:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(140, 45, 45, 0.4);
}

/* Stats */
.wishes-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

/* Wishes Dynamic List */
.wishes-list-container {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(5px);
}

.wishes-list-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.wishes-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.4rem;
}

/* Custom Scrollbar for dynamic wishes list */
.wishes-list::-webkit-scrollbar {
  width: 5px;
}
.wishes-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.wish-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  text-align: left;
  transform: translateY(15px);
  opacity: 0;
  animation: wishFade 0.6s ease forwards;
}

@keyframes wishFade {
  to { transform: translateY(0); opacity: 1; }
}

.wish-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.wish-item-name {
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--terracotta-dark);
  font-size: 0.92rem;
}

.wish-item-attend {
  font-size: 0.72rem;
  background-color: rgba(140, 45, 45, 0.08);
  color: var(--terracotta);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
}

.wish-item-msg {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444;
  word-break: break-word;
}

.wish-item-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.4rem;
  text-align: right;
}

.wishes-empty-msg {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-size: 0.9rem;
}

/* ========== SECTION 7: FOOTER & CLOSING ========== */
.footer-section {
  position: relative;
  background-color: var(--terracotta-dark);
  color: var(--white);
  padding: 6rem 0 7rem;
}

.footer-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--terracotta) 0%, rgba(51, 10, 10, 0.9) 100%);
}

.footer-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.footer-couple-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  padding: 4px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.footer-couple-photo-border {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.footer-couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-thanks {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-style: italic;
}

.footer-closing {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.footer-names {
  font-size: 3rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.footer-credits {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  margin-top: 1.5rem;
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(51, 10, 10, 0.95);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 0.7rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ========== RESPONSIVE SCREEN ADJUSTMENTS ========== */
@media (min-width: 768px) {
  .couple-layout {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .couple-card {
    max-width: 280px;
  }

  .event-cards-grid {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
  }

  .event-card {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .gift-details-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}