* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121814;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Cinzel', serif;
  color: #3f4e43;
}

.card-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 880px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* --- LATAR BELAKANG SAGE GREEN FLORAL (SEPERTI CONTOH GAMBAR) --- */
.background-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gunakan imej watercolor sage green & bunga rose champagne */
  background: url('https://i.pinimg.com/736x/35/6a/96/356a96bba3aa2d53cf416c35c22de766.jpg') center/cover no-repeat;
  z-index: 1;
}

.petal-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.petal {
  position: absolute;
  background: linear-gradient(135deg, #e2d3c3, #cfbaa8);
  border-radius: 12px 0 12px 0;
  opacity: 0.6;
  pointer-events: none;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(105vh) rotate(360deg); opacity: 0.1; }
}

/* --- COVER OVERLAY --- */
.cover-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-half {
  position: absolute;
  width: 100%;
  height: 50%;
  background: rgba(245, 247, 245, 0.92);
  backdrop-filter: blur(8px);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
}

.cover-half.top { top: 0; border-bottom: 1px solid #b8c4b9; }
.cover-half.bottom { bottom: 0; border-top: 1px solid #b8c4b9; }

.cover-wrapper.open .cover-half.top { transform: translateY(-100%); }
.cover-wrapper.open .cover-half.bottom { transform: translateY(100%); }

.circle-badge {
  position: relative;
  width: 210px;
  height: 210px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #9caf9f;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  text-align: center;
  padding: 15px;
  z-index: 3;
  transition: transform 0.6s ease, opacity 0.5s ease;
}

.cover-wrapper.open .circle-badge {
  transform: scale(0.4);
  opacity: 0;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #9caf9f;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 0; }
}

.walimatulurus-sub {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #58685a;
  margin-bottom: 4px;
}

.couple-names-short {
  font-family: 'Alex Brush', cursive;
  font-size: 2rem;
  color: #2f3b31;
}

.and-symbol {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
}

.open-btn {
  margin-top: 10px;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: #718373;
  border-top: 1px solid #d0dad1;
  padding-top: 4px;
}

/* --- KANDUNGAN UTAMA --- */
.main-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
}

.fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

.header-title {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: #3b483d;
  margin-bottom: 25px;
  font-weight: 500;
}

.bride-groom-names {
  font-family: 'Alex Brush', cursive;
  font-size: 4rem;
  color: #2b362c;
  line-height: 1.1;
  margin-bottom: 35px;
  font-weight: 400;
}

.ampersand {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #3b483d;
}

.event-details {
  margin-top: 10px;
}

.day-text {
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: #3b483d;
  font-weight: 600;
  margin-bottom: 8px;
}

.date-text {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #2b362c;
  font-weight: 600;
  margin-bottom: 25px;
}

.location-text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #3b483d;
  font-weight: 600;
}

/* --- MENU NAVIGASI BAWAH (IKON VECTOR CLEAN) --- */
.bottom-nav {
  position: relative;
  z-index: 5;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 10px 5px 12px 5px;
  border-top: 1px solid #e5ebe6;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.bottom-nav.show { transform: translateY(0); }

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #4a584c;
  width: 19%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  stroke: #4a584c;
}

.nav-label {
  font-size: 0.58rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* =========================================================
   POPUP MODALS - paste at the bottom of style.css
   ========================================================= */

.nav-item.active .nav-label,
.nav-item.active { color: #2b362c; font-weight: 500; }
.nav-item.active .nav-icon { stroke: #2b362c; }

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  background: rgba(24, 32, 26, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  position: relative;
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fbfcfb;
  border-radius: 24px 24px 0 0;
  padding: 14px 22px 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  font-family: 'Montserrat', sans-serif;
  color: #3f4e43;
}

.modal-overlay.show .modal-sheet { transform: translateY(0); }

.modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d0dad1;
  margin: 0 auto 14px;
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #eef2ee;
  font-size: 1.6rem;
  line-height: 1;
  color: #2b362c;
  cursor: pointer;
}

.modal-close:hover { background: #dfe7e0; }

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 3px;
  text-align: center;
  color: #2b362c;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.modal-intro {
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  color: #58685a;
  margin-bottom: 18px;
}

/* ---------- Cards & text ---------- */
.info-card,
.wish-list li {
  background: #fff;
  border: 1px solid #dfe7e0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: center;
}

.wish-list { list-style: none; }
.wish-list li { text-align: left; }

.info-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #718373;
  margin-bottom: 6px;
}

.info-main {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b362c;
}

.info-sub {
  font-size: 0.74rem;
  color: #718373;
  margin-top: 3px;
}

.info-sub.center { text-align: center; margin: 12px 0 14px; }

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: #4a584c;
  color: #fff;
  border: 1px solid #4a584c;
}

.btn-primary:hover { background: #2f3b31; }

.btn-outline {
  background: transparent;
  color: #4a584c;
  border: 1px solid #9caf9f;
  margin-top: 10px;
}

.btn-outline:hover,
.btn-outline.done { background: #eef2ee; color: #2b362c; }

form .btn-primary { width: 100%; margin-top: 6px; }

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-row > * { flex: 1; }

/* ---------- RSVP form ---------- */
.field { display: block; margin-bottom: 14px; }

.field > span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #58685a;
  margin-bottom: 6px;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #2b362c;
  background: #fff;
  border: 1px solid #cfd9d0;
  border-radius: 10px;
  padding: 11px 12px;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #9caf9f;
  outline-offset: 1px;
}

.choice-row { display: flex; gap: 10px; }

.choice {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice b {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 11px 8px;
  border: 1px solid #cfd9d0;
  border-radius: 10px;
  background: #fff;
}

.choice input:checked + b {
  background: #4a584c;
  border-color: #4a584c;
  color: #fff;
}

.choice input:focus-visible + b { outline: 2px solid #9caf9f; outline-offset: 2px; }

.form-error {
  font-size: 0.74rem;
  color: #a2473d;
  margin-bottom: 8px;
}

/* ---------- Location ---------- */
.modal-body > .info-main { text-align: center; margin-bottom: 12px; }

.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dfe7e0;
  margin-bottom: 14px;
  height: 220px;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Calendar ---------- */
.calendar {
  background: #fff;
  border: 1px solid #dfe7e0;
  border-radius: 14px;
  padding: 14px;
}

.cal-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-align: center;
  color: #2b362c;
  margin-bottom: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-head {
  font-size: 0.62rem;
  color: #718373;
  padding-bottom: 4px;
}

.cal-cell {
  font-size: 0.8rem;
  line-height: 32px;
  height: 32px;
  border-radius: 50%;
}

.cal-cell.event {
  background: #4a584c;
  color: #fff;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-sheet { transition: none; }
}

/* Stop the card from ever being scrolled out of place */
.card-container { overflow: clip; }

/* RSVP thank-you panel + disabled button */
.rsvp-done { text-align: center; padding: 18px 0 8px; }
.rsvp-done[hidden], .rsvp-form[hidden] { display: none; }
.rsvp-done-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: #2b362c;
  margin-bottom: 10px;
}
.btn-primary:disabled { opacity: 0.6; cursor: default; }

/* RSVP counts */
.rsvp-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.rsvp-stats .stat {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe7e0;
  border-radius: 14px;
  padding: 10px 8px;
}
.rsvp-stats .stat b {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #2b362c;
  line-height: 1.2;
}
.rsvp-stats .stat span {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #718373;
}

/* ---- Popup sits above the bottom menu (menu stays visible) ---- */
.modal-overlay { bottom: var(--nav-h, 62px); }
.nav-item.active .nav-label { font-weight: 600; }

/* ---- RSVP buttons: Hantar + Batal side by side ---- */
.rsvp-actions { display: flex; gap: 10px; margin-top: 6px; }
.rsvp-actions .btn-primary,
.rsvp-actions .btn-outline { flex: 1; width: auto; margin-top: 0; }

/* ---- Contact list ---- */
.contact-list { list-style: none; }
.contact-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
  border-bottom: 1px solid #e5ebe6;
}
.contact-list li:last-child { border-bottom: none; }
.contact-name { font-size: 0.95rem; color: #2b362c; }
.contact-icons { display: flex; gap: 18px; }
.contact-icons a { color: #4a584c; display: inline-flex; padding: 6px; }
.contact-icons svg { width: 22px; height: 22px; }

/* =========================================================
   FULL SCROLLING PAGE (matches the KahwinNow-style video)
   ========================================================= */
.background-scene {
  /* put your watercolor background at images/background.jpg */
  background: url('images/background.jpg') center/cover no-repeat,
              linear-gradient(180deg, #f6f9fd 0%, #e3ecf7 100%);
}

.main-content {
  flex: 1;
  min-height: 0;
  height: auto;
  margin-bottom: 0;
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  scroll-behavior: smooth;
  color: #3a4252;
  font-family: 'Cormorant Garamond', serif;
}

.sec { padding: 44px 28px; text-align: center; }
.sec-cover {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sec-last { padding-bottom: 70px; }

.header-title, .day-text, .date-text, .location-text { color: #2d3748; }
.bride-groom-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 3.6rem;
}
.ampersand { font-style: normal; font-size: 2.2rem; }

.small-caps {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.names-caps {
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 18px 0;
  color: #2d3748;
}
.body-text { font-size: 1.05rem; line-height: 1.6; margin: 8px 0; }
.gold-label { color: #b8862f; font-weight: 600; font-size: 1.05rem; margin-top: 22px; }
.detail { font-size: 1.05rem; line-height: 1.5; margin-top: 4px; }
.program { margin: 8px auto 0; font-size: 1.05rem; text-align: left; border-spacing: 12px 3px; }
.program td:first-child { font-weight: 600; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8862f, transparent);
  margin: 6px auto 26px;
  max-width: 280px;
}
.sec-title { font-family: 'Cinzel', serif; font-weight: 500; font-size: 1.25rem; letter-spacing: 3px; margin-bottom: 20px; color: #2d3748; }

.countdown { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-bottom: 26px; }
.countdown div { text-align: center; }
.countdown small { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.countdown b {
  display: block;
  min-width: 46px;
  padding: 8px 6px;
  background: #1f2430;
  color: #fff;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}
.countdown em { font-style: normal; font-size: 1.5rem; padding-bottom: 8px; }

.gallery { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #dfe7f1; }
.slides { position: absolute; inset: 0; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.slides img.on { opacity: 1; }
.g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.8); color: #2d3748; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.g-arrow.left { left: 8px; } .g-arrow.right { right: 8px; }

.dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #c3cbd6; }
.dots i.on { background: #2d3748; }

.wish-slide { min-height: 110px; padding: 0 6px; }
.wish-text { font-style: italic; font-size: 1.1rem; line-height: 1.6; }
.wish-name { margin-top: 8px; font-size: 0.95rem; }
.btn-pill {
  margin-top: 6px; padding: 8px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid #2d3748; background: #fff; color: #2d3748;
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 600;
}

.doa-box {
  border: 1px solid #d9b7bd; border-radius: 4px; background: rgba(255,255,255,0.7);
  padding: 26px 20px; font-size: 1.05rem; line-height: 1.7;
}
.hashtag { margin-top: 30px; font-family: 'Cinzel', serif; font-size: 1.2rem; letter-spacing: 2px; }

/* music pill */
.music {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 6; max-width: 86%; display: none; align-items: center; gap: 8px;
  padding: 6px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  font-family: 'Montserrat', sans-serif; font-size: 0.62rem; color: #2d3748;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.music.show { display: flex; }
.music-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 3px; height: 4px; background: #5b3fc4; border-radius: 1px; }
.music.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.music.playing .eq i:nth-child(2) { animation-delay: 0.2s; }
.music.playing .eq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 12px; } }

/* nav active colour (purple like the video) */
.nav-item.active, .nav-item.active .nav-label { color: #5b3fc4; }
.nav-item.active .nav-icon { stroke: #5b3fc4; }

.cal-date { text-align: center; font-size: 0.95rem; margin-bottom: 12px; }

/* =========================================================
   FULL-SCREEN COVER + CONTINUOUS PAGE
   ========================================================= */
.background-scene {
  /* plain white with a soft blue wash, like the second page in the video */
  background: radial-gradient(ellipse at 15% 0%, #e2ecf8 0%, rgba(226, 236, 248, 0) 55%), #ffffff;
}

/* cover = one full screen, with the floral artwork zooming in when opened */
.sec-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100%;
  justify-content: space-around;
  padding: 60px 20px 80px;
}
.cover-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
/* the picture is always there; this only adds the zoom-in when the cover opens */
.main-content.opened .cover-bg { animation: coverZoom 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes coverZoom {
  from { opacity: 0; transform: scale(1.18); }
  to   { opacity: 1; transform: scale(1); }
}

/* hide the scrollbar (the page still scrolls) */
.main-content { scrollbar-width: none; -ms-overflow-style: none; }
.main-content::-webkit-scrollbar { display: none; }

.fade-item {
  filter: blur(4px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.25, 1, 0.5, 1), filter 1.1s ease;
}
.fade-item.show { filter: none; }

/* small-caps look from the video */
.header-title, .day-text, .date-text, .location-text,
.names-caps, .gold-label, .sec-title {
  font-family: 'Cormorant SC', serif;
  text-transform: none;
  font-weight: 600;
}
.header-title { font-size: 1.25rem; letter-spacing: 1px; margin-bottom: 0; }
.day-text { font-size: 1.7rem; letter-spacing: 1px; margin-bottom: 6px; }
.date-text { font-size: 1.5rem; letter-spacing: 1px; margin-bottom: 0; }
.location-text { font-size: 1.2rem; letter-spacing: 1px; }
.event-details { display: flex; flex-direction: column; gap: 4px; }
.bride-groom-names { margin-bottom: 0; }

.small-caps, .body-text, .detail, .program {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
}
.small-caps { font-size: 0.95rem; }
.body-text { font-size: 0.95rem; }
.detail { font-size: 0.95rem; }
.names-caps { font-size: 1.5rem; letter-spacing: 0.5px; }
.gold-label { font-size: 1.2rem; }

/* every text block slides up + sharpens as it enters the screen */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-item { opacity: 1; transform: none; filter: none; transition: none; }
  .main-content.opened .cover-bg { animation: none; }
}

/* =========================================================
   MUSIC PILL (grey pill at the top, like the video)
   ========================================================= */
.music {
  top: 10px;
  width: 88%;
  max-width: 360px;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(232, 234, 239, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  color: #111;
  box-shadow: none;
}
.music .eq { height: 14px; }
.music .eq i { width: 4px; height: 4px; border-radius: 50%; background: #6b46e5; }
.music.playing .eq i { border-radius: 2px; }
.music.paused { opacity: 0.8; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

/* =========================================================
   LAYOUT + FONTS COPIED FROM THE VIDEO
   (cover = one full screen, the rest = one continuous page)
   ========================================================= */
.sec {
  flex-shrink: 0;        /* stops the sections being squashed on top of each other */
  min-height: 0;
  display: block;
  padding: 20px 28px;
  text-align: center;
}
.sec-cover {
  min-height: var(--page-h, 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 76px 20px;
}
.sec-cover + .sec { padding-top: 110px; }   /* space under the music pill */
.sec-last { padding-bottom: 90px; }
.sec .doa-box, .sec .wish-slide, .sec .gallery { width: 100%; }

/* gold line above "Menanti Hari" and "Guestbook" */
.main-content > .sec:nth-of-type(4)::before,
.main-content > .sec:nth-of-type(5)::before {
  content: '';
  display: block;
  height: 1px;
  max-width: 260px;
  margin: 0 auto 34px;
  background: linear-gradient(90deg, transparent, #b8862f, transparent);
}

/* headings: Cinzel (lower-case letters show as small caps) */
.header-title, .day-text, .date-text, .location-text,
.names-caps, .sec-title, .hashtag {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.5px;
  color: #2f3033;
}
.header-title { font-size: 1.05rem; }
.day-text { font-size: 1.4rem; }
.date-text { font-size: 1.25rem; }
.location-text { font-size: 0.9rem; line-height: 1.5; }
.names-caps { font-size: 1.3rem; font-weight: 600; line-height: 1.5; margin: 38px 0; }
.names-caps:last-child { margin-bottom: 0; }
.sec-title { font-size: 1.25rem; letter-spacing: 2px; }

/* body text + labels: Josefin Sans */
.small-caps, .body-text, .detail, .program {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: #3d3d3f;
}
.small-caps { font-size: 1rem; letter-spacing: 1px; line-height: 1.5; }
.body-text { font-size: 1rem; line-height: 1.55; margin: 0; letter-spacing: 0.3px; }
.detail { font-size: 1.05rem; line-height: 1.5; margin-top: 6px; }
.gold-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #b8862f;
  margin-top: 36px;
}
.sec .gold-label:first-child { margin-top: 0; }

/* =========================================================
   MUSIC PILL: hidden on the cover, appears when you scroll,
   then sticks to the top of the screen (like the video)
   ========================================================= */
.music {
  position: sticky;
  top: 10px;
  left: auto;
  transform: none;
  align-self: center;
  flex-shrink: 0;
  margin: 0;
  z-index: 6;
}
.music.show { display: flex; animation: pillIn 0.7s ease both; }
@keyframes pillIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.music + .sec { padding-top: 60px; }

/* =========================================================
   COLOUR THEME: cream + sage green + gold (matches the new cover)
   Change the colours here, they apply to the whole page
   ========================================================= */
:root {
  --bg: #fffaf6;          /* main page colour (cream) */
  --bg-wash: #e9ead8;     /* soft green tint at the corners */
  --gold: #b8965a;        /* labels and lines */
  --accent: #4f6444;      /* dark green: menu, buttons, countdown */
}

.background-scene {
  background:
    radial-gradient(ellipse at 12% 0%, var(--bg-wash) 0%, rgba(233, 234, 216, 0) 55%),
    radial-gradient(ellipse at 95% 100%, var(--bg-wash) 0%, rgba(233, 234, 216, 0) 50%),
    var(--bg);
}

.gold-label { color: var(--gold); }
.main-content > .sec:nth-of-type(4)::before,
.main-content > .sec:nth-of-type(5)::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.countdown b { background: var(--accent); }
.gallery { background: #eceadb; }
.doa-box { border-color: #d8c9a0; background: rgba(255, 255, 255, 0.55); }

/* menu + music pill: green instead of purple */
.nav-item.active, .nav-item.active .nav-label { color: var(--accent); }
.nav-item.active .nav-icon { stroke: var(--accent); }
.music .eq i { background: var(--accent); }
.music { background: rgba(240, 238, 228, 0.94); }

/* =========================================================
   MUSIC PILL a little lower + MONEY GIFT popup
   ========================================================= */
.music { top: 32px; }

/* popups that need more room (Money Gift) grow with their content */
.modal-sheet.tall { height: auto; min-height: 50%; max-height: 90%; }

.gift-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  text-align: center;
  color: #4a5560;
  margin: 14px 0 6px;
}
.gift-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #f1f3f4;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: #2f3033;
}
.gift-copy { cursor: pointer; }
.gift-copy svg { width: 18px; height: 18px; }
.gift-copied { text-align: center; font-size: 0.75rem; color: var(--accent, #4f6444); margin-top: 6px; }
.gift-copied[hidden] { display: none; }

.gift-qr {
  width: 78%;
  max-width: 260px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 8px;
  background: #f1f3f4;
}
.gift-qr img { display: block; width: 100%; height: auto; background: #fff; }
.gift-missing { font-size: 0.75rem; line-height: 1.5; color: #718373; text-align: center; padding: 40px 8px; background: #fff; }

.gift-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 18px auto 0;
  padding: 9px 22px;
  font-weight: 600;
}
.gift-save svg { width: 16px; height: 16px; }

/* =========================================================
   ALL POPUPS = SAME HEIGHT (same as Money Gift)
   Change 88% to make every popup taller or shorter
   ========================================================= */
.modal-sheet,
.modal-sheet.tall {
  height: 88%;
  min-height: 0;
  max-height: none;
}

/* =========================================================
   FLORAL FRAME AROUND THE DOA (picture set in config.js)
   ========================================================= */
.doa-box.framed {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 516 / 417;
  padding: 22% 12% 14%;
  border: none;
  background-color: transparent;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #3d3d3f;
}
.doa-box.framed p { margin: 0; }

/* =========================================================
   SPACING: Guestbook -> Ucapan button -> doa frame -> hashtag
   ========================================================= */
.btn-pill { margin-top: 14px; }
.sec .doa-box, .doa-box.framed { margin-top: 56px; }
.sec .hashtag, .hashtag { margin-top: 44px; }

/* =========================================================
   CLICKABLE DOTS (gallery + guestbook)
   ========================================================= */
.dots i { position: relative; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.dots i::after { content: ''; position: absolute; inset: -9px; }   /* bigger tap area for fingers */
.dots i:hover { transform: scale(1.25); }
.dots i:focus-visible { outline: 2px solid var(--accent, #4f6444); outline-offset: 3px; }
.dots i.on { background: var(--accent, #4f6444); }

.wish-slide.swap > * { animation: wishIn 0.6s ease both; }   /* on the texts inside, so it does not clash with the scroll fade-in */
@keyframes wishIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }