@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,900;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --paper: #ece6d8;
  --paper-dark: #e2dac8;
  --ink: #241f19;
  --ink-soft: #4a4238;
  --rule: #b8ab8f;
  --rule-dark: #241f19;
  --gold: #8a6d3b;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background: #d8d0bc;
  font-family: 'EB Garamond', serif;
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  justify-content: center;
  padding: 0; /* Full tanpa celah atas dan bawah */
  margin: 0;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

/* ============================================================
   COVER (FULL SCREEN OVERLAY PADA MOBILE & DESKTOP)
============================================================ */
.cover-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #d8d0bc;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
}

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

.cover {
  width: 100%;
  max-width: 480px;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255, 255, 255, 0.35), transparent 55%),
    var(--paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 26px 30px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--ink-soft);
  text-transform: uppercase;
  z-index: 2;
}

.motif-top svg {
  width: 130px;
  height: auto;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1;
  opacity: 0.85;
  margin: 14px 0 4px;
  z-index: 2;
}

.we {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
  z-index: 2;
}

.names {
  z-index: 2;
  margin: 6px 0;
}

.names .first {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1.05;
  display: block;
}

.names .amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  display: block;
  margin: 6px 0;
  color: var(--ink-soft);
}

.rule {
  width: 60px;
  height: 1px;
  background: var(--ink);
  margin: 12px 0;
  z-index: 2;
}

.details {
  z-index: 2;
}

.details .date {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.details .place {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

.bottom-motif svg {
  width: 90px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1;
  opacity: 0.7;
  z-index: 2;
}

.cover-guest-wrap {
  z-index: 2;
  margin-top: 4px;
}

.footer-tag {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--ink-soft);
  text-transform: uppercase;
  z-index: 2;
}

.guest-name-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 10px;
}

.btn-open-envelope {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 24px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s;
}

.btn-open-envelope:hover {
  opacity: 0.9;
}

/* ============================================================
   PAGE UNDANGAN (FULL ATAS & BAWAH TANPA GAP)
============================================================ */
.page {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at top left, rgba(0, 0, 0, 0.03), transparent 60%),
    var(--paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 74px; /* Ruang agar konten tidak tertutup fixed bottom nav */
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(
    circle at 20% 30%,
    rgba(0, 0, 0, 0.015) 0,
    rgba(0, 0, 0, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

header {
  padding: 22px 24px 16px;
  text-align: center;
  border-bottom: 3px double var(--rule-dark);
}

.masthead {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.85rem, 5.8vw, 2.35rem);
  letter-spacing: clamp(0.3px, 0.4vw, 1px);
  margin: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.tagline {
  margin-top: 8px;
  font-size: clamp(0.6rem, 2vw, 0.72rem);
  letter-spacing: clamp(1.5px, 0.6vw, 3px);
  color: var(--ink-soft);
  white-space: nowrap;
}

.meta-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 24px;
  font-size: 0.68rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--rule);
}

.meta-strip .right {
  text-align: right;
}

.hero-wrap {
  padding: 18px 24px 0;
}

.hero {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    linear-gradient(180deg, rgba(36, 31, 25, 0.08), rgba(36, 31, 25, 0.35)),
    repeating-linear-gradient(135deg, #b7ac93 0 2px, #a89c80 2px 4px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.fade-out {
  opacity: 0;
  transform: scale(0.99);
  z-index: 1;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%);
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.hero-motif {
  width: 68%;
  opacity: 0.55;
}

.hero-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: #f2ede0;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.names-main {
  text-align: center;
  padding: 22px 20px 6px;
}

.names-main h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.65rem, 6.6vw, 2.6rem);
  margin: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.names-main .amp {
  font-style: italic;
  font-weight: 500;
  padding: 0 6px;
}

.names-main .sub {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 4px;
  color: var(--ink-soft);
}

.rule-thin {
  height: 1px;
  background: var(--rule);
  margin: 16px 24px;
}

/* TANGGAL PERNIKAHAN DI ATAS HITUNGAN MUNDUR */
.wedding-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  margin: 20px 0 6px;
}

.wedding-date-line {
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: var(--rule-dark);
  opacity: 0.5;
}

.wedding-date-val {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  letter-spacing: clamp(1px, 0.3vw, 2px);
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.wedding-date-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.wedding-time-val {
  font-family: 'EB Garamond', serif;
  font-size: clamp(0.72rem, 2.6vw, 0.88rem);
  letter-spacing: clamp(0.5px, 0.2vw, 1.5px);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* COUNTDOWN BAR (HITUNGAN MUNDUR VINTAGE) */
.countdown-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  margin: 10px 0 22px;
  background: rgba(255, 255, 255, 0.22);
}

.countdown-cell {
  padding: 12px 4px;
  text-align: center;
  border-right: 1px solid var(--rule);
}

.countdown-cell:last-child {
  border-right: none;
}

.countdown-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
}

.countdown-lbl {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
}

.countdown-done {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 14px 10px;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.3);
}

/* KARTU PROFIL MEMPELAI */
.couple-block {
  margin: 36px 20px;
  border: 1px solid var(--rule-dark);
}

.couple-tag {
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  margin: -1px 0 0 -1px;
}

.couple-inner {
  display: flex;
  gap: 14px;
  padding: 14px 16px 18px;
  align-items: center;
}

.couple-inner.reverse {
  flex-direction: row-reverse;
  text-align: right;
}

.portrait {
  flex: 0 0 96px;
  width: 96px;
  height: 120px;
  background: repeating-linear-gradient(135deg, #b7ac93 0 2px, #a89c80 2px 4px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait span {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: rgba(36, 31, 25, 0.55);
}

.couple-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.couple-text p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.divider-inline {
  width: 36px;
  height: 1px;
  background: var(--rule-dark);
  margin: 6px 0;
}

.couple-inner.reverse .divider-inline {
  margin-left: auto;
}

/* LOKASI DENAH & GOOGLE MAPS IFRAME */
.lokasi-block {
  margin: 36px 20px;
  border: 1px solid var(--rule-dark);
  padding: 16px 18px 18px;
}

.lokasi-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 2px 0 2px;
}

.lokasi-block .desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.4;
}

.map-frame-wrap {
  width: 100%;
  height: 220px;
  border: 1px solid var(--rule);
  margin: 10px 0 12px;
  overflow: hidden;
  position: relative;
}

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

.btn-map-link {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  border: none;
  padding: 11px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
}

/* REKAM SUARA (VOICE NOTE) */
.voice-block {
  margin: 36px 20px;
  border: 1px solid var(--rule-dark);
  padding: 16px 18px 18px;
}

.voice-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 2px 0 2px;
}

.voice-block .desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.play-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.waveform {
  flex: 1;
  height: 22px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 2px, transparent 2px 5px);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.waveform-bar-ref {
  flex: 1;
  background: var(--ink);
  min-height: 3px;
  height: 3px;
  border-radius: 1px;
  transition: height 0.1s ease;
}

.time {
  font-size: 0.68rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.record-btn {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 11px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.voice-note {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}

/* Konfirmasi Pengiriman Suara */
.voice-confirm-box {
  margin-top: 14px;
  border-top: 1px dashed var(--rule);
  padding-top: 12px;
}

.voice-confirm-label {
  font-size: 0.72rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.voice-input-sender {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'EB Garamond', serif;
  font-size: 0.88rem;
  padding: 8px 10px;
  margin-bottom: 8px;
  color: var(--ink);
  outline: none;
}

.voice-confirm-actions {
  display: flex;
  gap: 8px;
}

.btn-submit-voice {
  flex: 1;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-cancel-voice {
  padding: 10px 16px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  cursor: pointer;
  text-transform: uppercase;
}

/* WISHES (EXACT REFERENSI) */
.wishes {
  margin: 36px 20px 16px;
}

.wishes .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.wishes .head h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 0;
}

.wishes .head a {
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
}

.wish-form-simple {
  border: 1px solid var(--rule);
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.wish-form-simple input,
.wish-form-simple textarea,
.wish-form-simple select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  padding: 8px 10px;
  margin-bottom: 8px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}

.rsvp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 2px;
}

.rsvp-form-row label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
  font-weight: 600;
}

.wish-form-simple button {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 9px;
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.wish {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rule);
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--paper);
}

.wish-body {
  flex: 1;
}

.wish-body .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 4px;
}

.wish-body .name {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rsvp-badge {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  vertical-align: middle;
}
.rsvp-hadir {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.35);
}
.rsvp-tidak {
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.3);
}
.rsvp-ragu {
  background: rgba(138, 109, 59, 0.12);
  color: #8a6d3b;
  border: 1px solid rgba(138, 109, 59, 0.35);
}

.wish-body .date {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.wish-body p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.wish-audio-player {
  margin-top: 6px;
  width: 100%;
  height: 32px;
}

/* KADO / TANDA KASIH (SERAGAM DENGAN VOICE-BLOCK) */
.kado-block {
  margin: 36px 20px;
  border: 1px solid var(--rule-dark);
  padding: 16px 18px 18px;
}

.kado-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin: 2px 0 2px;
}

.kado-block .desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.rekening-box {
  border: 1px solid var(--rule);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.25);
}

.rekening-detail {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.rekening-detail .bank-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.rekening-detail .bank-num {
  font-family: monospace;
  letter-spacing: 1px;
}

.rekening-detail .bank-holder {
  font-size: 0.72rem;
  color: var(--ink-soft);
  word-break: break-word;
}

.btn-salin {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 6px 0;
  font-family: 'EB Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  width: 78px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

.btn-salin:hover {
  opacity: 0.85;
}

/* TAB NAV KADO & QRIS */
.kado-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-kado-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 8px 10px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-kado-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.kado-tab-pane {
  display: none;
}

.kado-tab-pane.active {
  display: block;
}

/* QRIS CARD */
.qris-card {
  text-align: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--rule);
}

.qris-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 10px;
}

.qris-img-wrap img {
  max-width: 270px;
  width: 90%;
  height: auto;
  border: 1px solid var(--rule-dark);
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.qris-empty-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 24px 10px;
  font-style: italic;
}

.qris-caption {
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 320px;
}

.btn-qris-action {
  display: inline-block;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  padding: 7px 16px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.btn-qris-action:hover {
  opacity: 0.88;
}

/* BOTTOM NAVIGATION (EXACT REFERENSI - FLUSH AT BOTTOM) */
nav.bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px double var(--rule-dark);
  padding: 10px 8px 12px;
  z-index: 998;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
}

nav.bottom .item {
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

nav.bottom .item .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  font-size: 1.05rem;
  margin-bottom: 3px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

nav.bottom .item .ic svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

nav.bottom .item.active {
  color: var(--ink);
  font-weight: 600;
}

nav.bottom .item.active .ic {
  color: var(--ink);
}

nav.bottom .item.active .ic svg {
  stroke: var(--ink);
  stroke-width: 2.1;
  transform: scale(1.08);
}

.footer-note {
  text-align: center;
  padding: 4px 20px 22px;
  font-size: 0.68rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
}

.floating-music {
  position: fixed;
  bottom: 70px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid var(--rule);
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.floating-music svg {
  display: block;
  width: 16px;
  height: 16px;
  stroke: var(--paper);
  transition: transform 0.2s ease;
}

.floating-music.playing {
  box-shadow: 0 0 0 3px rgba(138, 109, 59, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-music.playing svg {
  animation: music-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes music-pulse {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; }
}

.ucapan-page-wrap ~ .floating-music {
  bottom: 24px;
  right: 18px;
}

/* TOAST */
.toast-msg {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 10000;
  max-width: 86vw;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  pointer-events: none;
  border-radius: 2px;
}

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

/* ============================================================
   ANIMASI ENTRANCE PER SECTION (SMOOTH SCROLL REVEAL)
============================================================ */
.section-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.section-anim.in-view {
  opacity: 1;
  transform: translateY(0);
}

.see-all-wrap {
  text-align: center;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}

.btn-see-all-bottom {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--rule-dark);
  color: var(--ink);
  padding: 8px 18px;
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-see-all-bottom:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   MODAL: LIHAT SEMUA UCAPAN (PUBLIK)
============================================================ */
.modal-wishes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-wishes-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-wishes-card {
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  background: var(--paper);
  border: 2px solid var(--rule-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 16px;
  position: relative;
  box-sizing: border-box;
}

.modal-wishes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px double var(--rule-dark);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.modal-wishes-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  padding: 2px 8px;
}

.modal-wishes-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

/* ============================================================
   HERO ZOOM LIGHTBOX (STORY / FULLSCREEN VIEW)
============================================================ */
.hero-zoom-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-zoom-modal.active {
  display: flex;
  animation: modal-fade-in 0.25s ease forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 8, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-zoom-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 92vw;
  max-height: 92vh;
  max-height: 92dvh;
}

.hero-zoom-toolbar {
  display: flex;
  gap: 10px;
  z-index: 10;
  flex-shrink: 0;
}

.btn-hero-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(36, 31, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f2ede0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.btn-hero-action:hover, .btn-hero-action:active {
  background: #241f19;
  border-color: #f2ede0;
  transform: scale(1.08);
}

.hero-zoom-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0806;
  max-width: 90vw;
  max-height: 78vh;
  max-height: 78dvh;
  overflow: hidden;
}

.hero-zoom-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  object-fit: contain;
  animation: hero-zoom-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE MOBILE (KHUSUS TAMPILAN HP AGAR 1 LINE RAPI)
============================================================ */
@media (max-width: 480px) {
  header {
    padding: 20px 14px 14px;
  }
  .masthead {
    font-size: clamp(1.68rem, 7.5vw, 2.25rem);
    letter-spacing: clamp(0.2px, 0.25vw, 0.6px);
    white-space: nowrap;
  }
  .tagline {
    font-size: clamp(0.54rem, 2.3vw, 0.68rem);
    letter-spacing: clamp(1.2px, 0.4vw, 2px);
    white-space: nowrap;
  }
  .names-main {
    padding: 18px 12px 6px;
  }
  .names-main h1 {
    font-size: clamp(1.72rem, 7.8vw, 2.5rem);
    letter-spacing: 0.4px;
    white-space: nowrap;
  }

  /* Teks lokasi di dalam foto hero diperkecil proporsional */
  .hero-caption {
    font-size: 0.52rem;
    letter-spacing: 1.2px;
    bottom: 8px;
    padding: 0 8px;
    opacity: 0.85;
  }

  /* Tanggal & timer hitung mundur (waktu) dikecilkan sedikit */
  .wedding-date-bar {
    margin: 16px 0 4px;
    padding: 0 16px;
  }
  .wedding-date-val {
    font-size: clamp(0.72rem, 2.7vw, 0.84rem);
    letter-spacing: 1.2px;
  }
  .countdown-bar {
    margin: 8px 0 18px;
  }
  .countdown-cell {
    padding: 8px 2px;
  }
  .countdown-val {
    font-size: clamp(1.2rem, 4.6vw, 1.38rem);
  }
  .countdown-lbl {
    font-size: 0.52rem;
    letter-spacing: 1.2px;
    margin-top: 2px;
  }
}


