/* ================= RESET & VARIABLES (LIGHT CREAM THEME) ================= */
:root {
  --bg-outer: #d8d7cd; /* Warna latar belakang paling luar */
  --bg-container: #f5f4f0; /* Warna dasar halaman undangan */
  --bg-card: #ffffff; /* Warna latar card / kotak */
  --accent-gold: #c5a059; /* Warna aksen emas mewah */
  --accent-gold-dark: #8c6d28; /* Warna emas tua untuk teks/judul */
  --text-dark: #2c2c2c; /* Warna teks utama */
  --text-muted: #666666; /* Warna teks sekunder */
  --font-heading: "Cinzel", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-outer);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body.locked {
  overflow: hidden;
}

/* ================= CONTAINER UTAMA MOBILE ================= */
.main-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-container);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  position: relative;
  padding: 40px 20px;
  overflow-x: hidden;
}

/* ================= COVER SCREEN ================= */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: url("../assets/images/foto-awal.webp") center/cover no-repeat;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.2s ease;
}

/* Menyelaraskan kelas .hide dan .is-open agar tidak konflik saat meluncur ke atas */
.cover-screen.hide,
.cover-screen.is-open {
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
}

/* Gradient Overlay */
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: clamp(30px, 8vh, 50px) clamp(15px, 4vw, 20px) clamp(20px, 6vh, 40px);
  box-sizing: border-box;
}

.cover-top {
  margin-top: clamp(5px, 2vh, 10px);
}

.sub-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #e2e8f0;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.couple-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  color: #ffffff;
  letter-spacing: clamp(1px, 1vw, 2px);
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: bold;
}

.cover-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 3vh, 15px);
}

.guest-info {
  margin-bottom: 5px;
}

.guest-label {
  font-size: clamp(0.65rem, 3vw, 0.75rem);
  color: #cbd5e1;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.guest-name {
  font-family: sans-serif;
  color: #ffffff;
  font-size: clamp(1.1rem, 6vw, 1.4rem);
  margin: 4px 0;
  word-break: break-word;
  padding: 0 10px;
}

.guest-note {
  font-size: clamp(0.6rem, 2.5vw, 0.65rem);
  color: #94a3b8;
  font-style: italic;
  max-width: clamp(260px, 80vw, 320px);
  margin: 0 auto;
}

/* Tombol Buka Undangan */
.btn-open {
  background: rgba(225, 220, 210, 0.9);
  color: #262626;
  border: none;
  padding: clamp(8px, 2vh, 10px) clamp(20px, 6vw, 28px);
  font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s,
    background 0.2s;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-open:hover {
  background: rgba(245, 240, 230, 1);
}

.btn-open:active {
  transform: scale(0.95);
}

/* ================= MUSIC BUTTON ================= */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--accent-gold);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.music-btn.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

/* ================= HERO BANNER ================= */
.hero-banner {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -40px;
  margin-bottom: 30px;

  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: background-image 1s ease-in-out;
}

/* Efek gelap transparan di atas foto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px 0 20px;
}

.hero-sub-title {
  font-family: "Pinyon Script", cursive;
  font-style: italic;
  font-size: 2rem;
  color: #f3f4f6;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero-main-title {
  font-family: var(--font-heading);
  /* Ukuran terkecil 1.4rem, ukuran dinamis 6% lebar layar, ukuran maksimal 1.8rem */
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  color: #ffffff;
  /* Jarak antar huruf mengecil sedikit di layar sempit agar teks tidak turun ke baris baru secara canggung */
  letter-spacing: clamp(1px, 1vw, 2px);
  line-height: 1.3;
  margin-bottom: 12px;
  font-weight: bold;
}

.hero-date {
  font-size: 0.8rem;
  color: #e5e7eb;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ================= HERO SECTION (KUTIPAN & PEMBUKA) ================= */
.hero-section {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 5vw, 30px);
  text-align: center;
  background: transparent;
  color: #333;
}

.quote-text {
  font-style: italic;
  /* Rentang ukuran: minimal 0.75rem, dinamis 3.5% lebar layar, maksimal 0.9rem */
  font-size: clamp(0.75rem, 3.5vw, 0.9rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 0 10px;
}

.quote-source {
  font-weight: bold;
  font-style: italic;
  font-size: clamp(0.85rem, 4vw, 1rem);
  margin-bottom: clamp(30px, 8vw, 50px);
}

.greeting-title {
  font-family: var(--font-heading, serif);
  /* Judul akan mengecil hingga 1.3rem di HP sempit, maksimal 1.8rem */
  font-size: clamp(1.3rem, 6vw, 1.8rem);
  /* Jarak antar huruf dikurangi di layar kecil agar tidak memakan ruang */
  letter-spacing: clamp(1px, 1vw, 2px);
  color: var(--accent-gold-dark);
  margin-bottom: 25px;
  text-transform: uppercase;
  padding: 0 10px;
  word-wrap: break-word;
}

.opening-text {
  font-style: italic;
  font-size: clamp(0.85rem, 4vw, 1rem);
  line-height: 1.6;
  max-width: 95%;
  width: clamp(280px, 90%, 600px);
  margin: 0 auto;
}

/* ================= COUPLE SECTION (FOTO & NAMA MEMPELAI) ================= */
.couple-section {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  display: flex;
  flex-direction: column;
  background-color: #000;
}

.profile-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.groom-card .profile-info {
  text-align: left;
}
.bride-card .profile-info {
  text-align: right;
}

/* Pembungkus luar slider */
.slider-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Track bergeser ke kiri/kanan */
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

/* Masing-masing halaman (slide) */
.slide-item {
  position: relative;
  min-width: 100%;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: clamp(15px, 5vw, 25px);
}

/* GAMBAR & OVERLAY TIAP SLIDE */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

/* Konten Informasi Teks */
.profile-info {
  position: relative;
  z-index: 3;
  color: #ffffff;
  padding: 0 clamp(15px, 5vw, 25px) clamp(30px, 8vw, 50px)
    clamp(15px, 5vw, 25px);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* Badge penanda (Pribadi/Ayah/Ibu) */
.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  padding: clamp(4px, 1.5vw, 6px) clamp(10px, 3vw, 14px);
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* Tombol Geser (Kiri/Kanan) */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: clamp(35px, 10vw, 45px);
  height: clamp(35px, 10vw, 45px);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.slide-btn:hover {
  background: rgba(213, 194, 132, 0.9);
  border-color: transparent;
}

.slide-btn.prev {
  left: clamp(10px, 3vw, 20px);
}

.slide-btn.next {
  right: clamp(10px, 3vw, 20px);
}

.profile-info h3 {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  margin-bottom: clamp(12px, 4vw, 18px);
  letter-spacing: 1px;
}

.profile-info p {
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  line-height: 1.6;
  margin-bottom: 5px;
}

.ortu-info .ortu-title {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 4px;
}

.ortu-info .ortu-names {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2px 0;
}

.profile-info strong {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  font-weight: 600;
}

.address {
  margin-top: clamp(10px, 3vw, 15px);
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
}

/* ================= SECTIONS & CONTENT ================= */
.section-title {
  font-family: "Pinyon Script", cursive, serif;
  color: var(--accent-gold-dark);
  text-align: center;
  margin-bottom: clamp(5px, 2vw, 10px);
  font-size: clamp(1.6rem, 8vw, 2.2rem);
}

.profile-img-frame img {
  width: clamp(120px, 30vw, 150px);
  height: clamp(150px, 40vw, 190px);
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--accent-gold);
  margin-bottom: clamp(10px, 3vw, 15px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.divider {
  font-family: var(--font-heading);
  /* Ukuran ornamen pembatas disesuaikan mengikuti lebar layar */
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--accent-gold);
  /* Jarak atas-bawah pembatas akan menyempit di layar HP kecil */
  margin: clamp(15px, 4vw, 25px) 0;
}

/* ================= EVENT & COUNTDOWN ================= */
.event-section {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 5vw, 20px);
  --bg-container: #f5f4f0;
  text-align: center;
  color: #333;
}

.event-photo img {
  width: clamp(180px, 60vw, 280px);
  height: auto;
  object-fit: cover;
  border-radius: 150px 150px 10px 10px;
  margin-bottom: clamp(15px, 5vw, 25px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.event-intro {
  font-size: clamp(0.85rem, 4vw, 0.95rem);
  line-height: 1.6;
  max-width: 95%;
  width: clamp(280px, 90%, 500px);
  margin: 0 auto clamp(20px, 6vw, 30px) auto;
  color: #2c2c2c;
  word-wrap: break-word;
}

.event-title {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.3rem, 6vw, 1.6rem);
  margin-bottom: clamp(15px, 5vw, 20px);
}

/* Layout Tabel Detail Acara */
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  width: 100%;
  max-width: clamp(280px, 95%, 460px);
  margin: 0 auto clamp(30px, 8vw, 40px) auto;
  border: 1px solid #555;
  background-color: transparent;
  box-sizing: border-box;
}

.grid-item {
  padding: clamp(10px, 3vw, 15px) clamp(5px, 2vw, 10px);
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  word-break: break-word;
  text-align: center;
}

.day-header {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  font-size: clamp(1rem, 4.5vw, 1.2rem);
  letter-spacing: 1px;
}

.time-detail {
  font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  line-height: 1.4;
  font-weight: bold;
}

.date-detail {
  font-weight: bold;
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  line-height: 1.2;
}

.date-number {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  line-height: 1;
  margin: 5px 0;
}

.location-detail {
  font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  line-height: 1.5;
}

/* Bagian Maps */
.map-container {
  margin: clamp(20px, 6vw, 30px) auto 0 auto;
  width: 100%;
  max-width: clamp(280px, 95%, 360px);
}

.map-container iframe {
  width: 100%;
  height: clamp(200px, 50vw, 250px);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn-map {
  display: inline-block;
  background: transparent;
  color: var(--accent-gold-dark);
  border: 1px solid var(--accent-gold);
  padding: clamp(8px, 2vw, 12px) clamp(30px, 8vw, 50px);
  border-radius: 5px;
  text-decoration: none;
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  margin-top: 1.2rem;
  transition: background 0.3s;
}

.btn-map:hover {
  background-color: #c5a059;
  color: #ffffff;
}

/* ================= COUNTDOWN TIMER ================= */
.timer-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(5px, 2vw, 12px);
  margin: clamp(20px, 6vw, 30px) auto 0 auto;
  width: 100%;
  max-width: clamp(280px, 95%, 360px);
  padding: 0 clamp(5px, 2vw, 10px);
  box-sizing: border-box;
}

.timer-item {
  flex: 1;
  min-width: clamp(55px, 15vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.timer-item:hover {
  transform: translateY(-3px);
}

.timer-item span {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.2rem, 6vw, 1.6rem);
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: clamp(4px, 1vw, 6px);
}

.timer-item small {
  font-size: clamp(0.55rem, 2.5vw, 0.65rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 1vw, 1.5px);
  color: #6b7280;
  font-weight: 600;
}

/* ================= CSS GALERI FOTO ================= */
.gallery-section {
  padding: clamp(30px, 6vw, 50px) clamp(10px, 4vw, 20px);
  background-color: #f6f5f0;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.gallery-title {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(1.6rem, 8vw, 2.2rem);
  color: #1a1a1a;
  margin-bottom: clamp(15px, 5vw, 25px);
  font-weight: 400;
}

.gallery-grid {
  display: grid;
  /* Format 2 kolom rasio foto 3:4 di layar HP */
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(6px, 2vw, 15px);
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: clamp(4px, 1.5vw, 8px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ================= LIGHTBOX (POP-UP) ================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.95);
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  color: #fff;
  font-family: sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.lightbox-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-controls button:hover {
  color: #ccc;
}

.lightbox-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-btn.prev {
  left: 20px;
}
.nav-btn.next {
  right: 20px;
}

@media (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .nav-btn.prev {
    left: 10px;
  }
  .nav-btn.next {
    right: 10px;
  }
}

/* ================= CSS KADO DIGITAL ================= */
.gift-section {
  margin-top: clamp(30px, 8vw, 50px);
  display: flex;
  justify-content: center;
  background-color: transparent;
  padding: 0 clamp(15px, 4vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.gift-card-container {
  background-color: #ffffff;
  border-radius: clamp(15px, 4vw, 20px);
  padding: clamp(25px, 6vw, 35px) clamp(15px, 5vw, 25px);
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid #e8e3d3;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.gift-title {
  font-family: "Pinyon Script", cursive, serif;
  font-size: clamp(2.2rem, 10vw, 3rem);
  color: var(--accent-gold-dark);
  margin-bottom: clamp(5px, 2vw, 8px);
}

.gift-desc {
  font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  color: #666666;
  line-height: 1.5;
  margin-bottom: clamp(20px, 6vw, 30px);
  padding: 0 clamp(5px, 2vw, 10px);
}

.bank-item {
  margin-bottom: clamp(15px, 5vw, 20px);
}

.bank-name {
  font-size: clamp(1.1rem, 5vw, 1.3rem);
  font-weight: 700;
  color: #927b2b;
  letter-spacing: clamp(1px, 1vw, 1.5px);
  margin-bottom: clamp(4px, 1.5vw, 6px);
}

.bank-logo {
  max-width: clamp(90px, 25vw, 120px);
  height: auto;
  margin: 0 auto clamp(6px, 2vw, 8px) auto;
  display: block;
}

.account-holder {
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-number {
  font-size: clamp(1.1rem, 5vw, 1.25rem);
  font-weight: 700;
  color: #111111;
  letter-spacing: 1px;
  margin-bottom: clamp(10px, 3vw, 12px);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #cbb779;
  color: #ffffff;
  border: none;
  padding: clamp(6px, 2vw, 8px) clamp(18px, 5vw, 22px);
  border-radius: 25px;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(203, 183, 121, 0.3);
}

.btn-copy:hover {
  background-color: #927b2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(146, 123, 43, 0.4);
}

.gift-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2dac5, transparent);
  margin: clamp(15px, 5vw, 25px) auto;
  width: clamp(75%, 85%, 90%);
}

/* ================= BUKU TAMU================= */
.guestbook-section {
  margin-top: clamp(30px, 8vw, 50px);
  padding: 0 clamp(15px, 4vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.guestbook-desc {
  font-size: clamp(0.85rem, 4vw, 0.95rem);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: clamp(15px, 5vw, 25px);
  font-weight: bold;
}

.guestbook-card {
  background: #ffffff;
  border: 1px solid #f1e6ba;
  border-radius: 16px;
  padding: clamp(15px, 5vw, 24px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.rsvp-form {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: clamp(15px, 4vw, 20px);
  border-radius: 12px;
  margin-bottom: clamp(20px, 6vw, 30px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.guestbook-card .rsvp-form,
.guestbook-card .comments-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-group {
  margin-bottom: clamp(12px, 3vw, 15px);
  text-align: left;
}

.form-group label {
  display: block;
  font-size: clamp(0.75rem, 3.5vw, 0.85rem);
  color: var(--accent-gold-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: clamp(8px, 2.5vw, 12px);
  border-radius: 8px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background-color: #faf9f5;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  background-color: #ffffff;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), #dfbc71);
  color: #fff;
  border: none;
  padding: clamp(10px, 3vw, 14px);
  border-radius: 25px;
  font-weight: 600;
  font-size: clamp(0.85rem, 4vw, 0.95rem);
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 5px;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  box-sizing: border-box;
}

.btn-submit:active {
  transform: scale(0.98);
}

.guestbook-divider {
  border: 0;
  border-top: 1px solid #f0e7d0;
  margin: clamp(15px, 5vw, 24px) 0;
}

/* ================= LIST UCAPAN ================= */
.comments-container {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 12px;
  padding: clamp(12px, 4vw, 18px);
  box-sizing: border-box;
}

.comments-title {
  font-size: clamp(0.85rem, 4vw, 1rem);
  color: var(--accent-gold-dark);
  margin-bottom: clamp(10px, 3vw, 15px);
  font-family: var(--font-heading);
}

.comments-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.5vw, 12px);
  padding-right: 5px;
}

.comments-list::-webkit-scrollbar {
  width: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.comment-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.2);
  padding: clamp(10px, 3vw, 14px);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}

.comment-author {
  font-weight: 600;
  font-size: clamp(0.8rem, 3.5vw, 0.9rem);
  color: var(--accent-gold-dark);
  word-break: break-word;
}

.badge-status {
  font-size: clamp(0.6rem, 2.5vw, 0.65rem);
  padding: 3px clamp(6px, 2vw, 8px);
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-hadir {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid #10b981;
}

.badge-tidak-hadir {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid #ef4444;
}

.comment-text {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: clamp(0.8rem, 3.5vw, 0.88rem);
  color: #444444;
  line-height: 1.5;
  margin-top: 5px;
  margin-left: clamp(2.6rem, 12vw, 3.3rem);
}

.comment-time {
  font-size: clamp(0.6rem, 2.5vw, 0.7rem);
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.comment-avatar {
  width: clamp(34px, 9vw, 42px);
  height: clamp(34px, 9vw, 42px);
  min-width: clamp(34px, 9vw, 42px);
  border-radius: 50%;
  overflow: hidden;
  background-color: #bd9b27;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= FOOTER ================= */
.footer-wrapper {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: clamp(40px, 8vw, 60px) clamp(15px, 4vw, 20px) clamp(30px, 6vw, 40px);
  text-align: center;
  box-sizing: border-box;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -40px !important;
  margin-top: clamp(50px, 10vw, 80px);
  display: block;
  border-top: 1px solid #2a2a2a;
}

.closing-greeting {
  margin-bottom: clamp(25px, 6vw, 40px);
}

.shanti-text {
  font-family: "Playfair Display", serif;
  color: #d5c284;
  font-size: clamp(1rem, 4vw, 1.4rem);
  margin-bottom: 10px;
  letter-spacing: clamp(1px, 1.5vw, 2px);
}

.closing-greeting p {
  color: #cccccc;
  font-size: clamp(0.85rem, 3.5vw, 0.95rem);
  font-style: italic;
}

.footer-photo {
  margin: 0 auto clamp(25px, 6vw, 40px);
  width: clamp(160px, 45vw, 220px);
  height: clamp(200px, 60vw, 280px);
  border-radius: 50% 50% 0 0 / 110px 110px 0 0;
  overflow: hidden;
  border: 3px solid #333333;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  background-color: #2a2a2a;
}

.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-footer {
  max-width: 600px;
  margin: 0 auto;
  padding-top: clamp(20px, 5vw, 30px);
  border-top: 1px solid #333333;
}

.footer-socials h4 {
  color: #bbbbbb;
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 15px);
  margin-bottom: clamp(30px, 6vw, 40px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(35px, 9vw, 45px);
  height: clamp(35px, 9vw, 45px);
  background-color: #2a2a2a;
  color: #d5c284;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-size: clamp(1rem, 4vw, 1.2rem);
}

.social-icons a:hover {
  background-color: #d5c284;
  color: #1a1a1a;
  transform: translateY(-5px);
}

.footer-logos p {
  font-size: clamp(0.75rem, 3vw, 0.8rem);
  color: #999999;
  margin-bottom: 15px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 40px);
  margin-top: 15px;
  margin-bottom: clamp(25px, 6vw, 40px);
  flex-wrap: wrap;
}

.vendor-logo {
  height: clamp(65px, 11vw, 95px);
  max-width: 350px;
  object-fit: contain;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.vendor-logo:hover {
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: clamp(0.7rem, 3vw, 0.8rem);
  color: #888888;
  line-height: 1.6;
}

.footer-copyright strong {
  color: #d5c284;
}

/* ================= ANIMASI CUSTOM ================= */
.pulse-anim {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
