/* ============ RESET & VARIABEL ============ */
:root {
  --plum: #241418;
  --plum-2: #2c1a1f;
  --plum-card: #38232a;
  --plum-card-2: #412a32;
  --cream: #f6efe4;
  --cream-2: #efe4d4;
  --rose: #cba1a8;
  --rose-soft: #b98d94;
  --mauve: #9c7c85;
  --beige: #d6c3ad;
  --brown: #3a2420;
  --brown-soft: #5a423c;
  --line-dark: rgba(203, 161, 168, 0.28);
  --line-cream: rgba(90, 66, 60, 0.25);
  --serif: 'Cormorant Garamond', serif;
  --script: 'Great Vibes', cursive;
  --sans: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--sans);
  background: #0d0608;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============ PHONE FRAME ============ */
.phone-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--plum);
}

@media (min-width: 520px) {
  body {
    background:
      radial-gradient(circle at 50% 25%, #2a1a1e 0%, #0a0507 65%),
      #0a0507;
  }
  .phone-frame {
    width: 390px;
    height: min(844px, 96vh);
    border-radius: 46px;
    border: 9px solid #171013;
    box-shadow:
      0 0 0 2px #2c1f23,
      0 40px 90px rgba(0,0,0,.75),
      0 0 120px rgba(203,161,168,.08);
  }
}

/* ============ APP / SCROLL ============ */
.app {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app::-webkit-scrollbar { display: none; }

/* ============ PAGE ============ */
.page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 26px 100px;
  overflow: hidden;
}

.page-dark {
  background:
    radial-gradient(circle at 20% 15%, #341f26 0%, transparent 55%),
    radial-gradient(circle at 85% 90%, #2e1a20 0%, transparent 55%),
    linear-gradient(160deg, #241418 0%, #2a181d 55%, #1f1114 100%);
  color: #f3e9df;
}

.page-cream {
  background:
    radial-gradient(circle at 15% 10%, #fbf6ec 0%, transparent 60%),
    radial-gradient(circle at 90% 95%, #f3e8d7 0%, transparent 60%),
    linear-gradient(160deg, #f7f0e5 0%, #f1e7d7 100%);
  color: var(--brown);
}

.page-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.page-inner.top { justify-content: flex-start; }
.page.visible .page-inner { opacity: 1; transform: translateY(0); }

/* ============ ORNAMEN ============ */
.orn {
  position: absolute;
  width: 200px;
  height: 200px;
  color: var(--rose);
  opacity: .55;
  pointer-events: none;
  z-index: 1;
}
.orn.sm { width: 160px; height: 160px; opacity: .4; }
.orn-tr { top: -34px; right: -34px; }
.orn-bl { bottom: -34px; left: -34px; transform: rotate(180deg); }
.page-cream .orn { color: var(--mauve); opacity: .35; }
.page-cream .orn.sm { opacity: .28; }

/* ============ TIPOGRAFI ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--rose);
  opacity: .85;
  margin-bottom: 18px;
}
.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 54px;
  line-height: 1;
  letter-spacing: .5px;
  color: #f6ece1;
}
.script-inline {
  font-family: var(--script);
  font-size: 30px;
  color: var(--rose);
  margin: 6px 0;
  line-height: 1;
}
.script {
  font-family: var(--script);
  font-size: 40px;
  color: var(--brown-soft);
  line-height: 1.1;
  margin: 12px 0;
}
.script.light { color: var(--rose); }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(243, 233, 223, .82);
  margin: 26px 0 30px;
}
.quote-small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--brown-soft);
  margin: 6px 0 4px;
}
.quote-small.center { text-align: center; margin: 18px 0 6px; }
.quote-src { font-family: var(--serif); font-size: 12.5px; color: var(--mauve); margin-top: 6px; letter-spacing: .5px; }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 5px;
  color: var(--brown);
  margin-bottom: 22px;
  position: relative;
  display: inline-block;
  padding: 0 8px;
}
.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.section-title::before { left: -30px; }
.section-title::after { right: -30px; }
.section-title.light { color: var(--rose); }

.salam {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--brown);
  margin-bottom: 22px;
}

.body-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.85;
  color: var(--brown-soft);
  letter-spacing: .2px;
}
.body-text.light { color: rgba(243, 233, 223, .8); }
.body-text.center { text-align: center; margin: 8px 0 26px; }

.small-note {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
  color: var(--mauve);
  letter-spacing: .3px;
  margin-top: 14px;
}
.small-note.light { color: rgba(203, 161, 168, .75); }

.subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--rose-soft);
  margin: -14px 0 4px;
  text-transform: uppercase;
}

/* ============ DIVIDER ============ */
.divider {
  width: 90px;
  height: 16px;
  color: var(--mauve);
  margin: 20px auto;
  opacity: .75;
}
.divider.light { color: var(--rose); opacity: .6; }

/* ============ MONOGRAM ============ */
.monogram {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.monogram .m-line {
  width: 1px;
  height: 22px;
  background: currentColor;
  transform: rotate(18deg);
  opacity: .55;
}
.monogram.lg { font-size: 30px; margin-bottom: 24px; }

/* ============ BUTTON ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all .35s ease;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--rose);
}
.btn-outline:hover { background: rgba(203, 161, 168, .1); border-color: var(--rose); }
.btn .arrow { transition: transform .35s ease; font-size: 14px; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid {
  background: var(--brown);
  color: var(--cream);
  border: 1px solid var(--brown);
  width: 100%;
}
.btn-solid:hover { background: #4a2f2a; }

/* ============ SCROLL HINT ============ */
.scroll-hint {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--rose);
  opacity: .55;
  animation: bounce 2s ease-in-out infinite;
  z-index: 3;
}
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50%      { transform: translate(-50%, 6px); opacity: .9; }
}

/* ============ MEMPELAI ============ */
.couple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  margin: 6px 0 16px;
}
.person { display: flex; flex-direction: column; align-items: center; }
.initial {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--brown);
  margin-bottom: 12px;
  background: rgba(255,255,255,.35);
}
.person-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--brown);
  margin-bottom: 6px;
}
.person-role {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 6px;
}
.person-parent {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  color: var(--brown-soft);
}
.v-line {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--line-cream), transparent);
  align-self: center;
  margin-top: 10px;
}

/* ============ ICON BADGE ============ */
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  margin-bottom: 18px;
  background: rgba(203, 161, 168, .06);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.cream {
  border-color: var(--line-cream);
  color: var(--brown);
  background: rgba(58, 36, 32, .06);
}

/* ============ CARD ACARA ============ */
.cards { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.card {
  background: linear-gradient(155deg, var(--plum-card) 0%, var(--plum-card-2) 100%);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  padding: 20px 18px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: #f4e9dd;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 1px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(243, 233, 223, .88);
  padding: 5px 0;
}
.card-row svg { width: 15px; height: 15px; color: var(--rose); flex: 0 0 15px; }
.card-loc {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.card-loc strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--rose);
  letter-spacing: .5px;
}
.card-loc span { font-family: var(--sans); font-size: 11.5px; color: rgba(243, 233, 223, .7); }

/* ============ LOKASI ============ */
.place-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: #f4e9dd;
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.place-addr {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(243, 233, 223, .72);
  margin-bottom: 22px;
}
.map {
  position: relative;
  width: 100%;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.map svg { width: 100%; height: 100%; display: block; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  width: 34px; height: 34px;
  color: var(--rose);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.map-pin svg { width: 100%; height: 100%; }
.map-label {
  position: absolute;
  top: calc(50% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(36, 20, 24, .92);
  color: #f4e9dd;
  font-family: var(--sans);
  font-size: 10.5px;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: .3px;
  white-space: nowrap;
  border: 1px solid var(--line-dark);
}
.pin-ico { width: 15px; height: 15px; }

/* ============ UCAPAN ============ */
.wish-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 26px;
}
.wish-form input,
.wish-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--brown);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line-cream);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .3s, background .3s;
  resize: none;
}
.wish-form input::placeholder,
.wish-form textarea::placeholder { color: var(--mauve); opacity: .7; }
.wish-form input:focus,
.wish-form textarea:focus {
  border-color: var(--brown-soft);
  background: rgba(255,255,255,.8);
}
.wish-form textarea { min-height: 90px; }

.wish-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.wish-card {
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--line-cream);
  border-radius: 14px;
  padding: 13px 15px;
  text-align: left;
  animation: fadeUp .5s ease both;
}
.wish-card .w-name {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 4px;
}
.wish-card .w-text {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--brown-soft);
  word-break: break-word;
}
.wish-card .w-time {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .5px;
  color: var(--mauve);
  margin-top: 6px;
  opacity: .8;
}
.wish-empty {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--mauve);
  text-align: center;
  padding: 12px 0;
  font-style: italic;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ PENUTUP ============ */
.closing-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 2px;
  color: #f4e9dd;
  margin: 6px 0 14px;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px 8px;
  background: linear-gradient(to top, rgba(20, 11, 14, .98), rgba(28, 16, 20, .92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(203, 161, 168, .18);
  z-index: 40;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: rgba(203, 161, 168, .55);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .5px;
  cursor: pointer;
  padding: 8px 0 4px;
  position: relative;
  transition: color .3s ease;
}
.nav-item svg { width: 20px; height: 20px; transition: transform .3s ease; }
.nav-item.active { color: var(--rose); }
.nav-item.active svg { transform: translateY(-1px); }
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(203, 161, 168, .8);
}

/* ============ MORE PANEL ============ */
.more-panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, #341f26 0%, transparent 55%),
    radial-gradient(circle at 85% 95%, #2e1a20 0%, transparent 55%),
    linear-gradient(165deg, #251419 0%, #2c1a1f 60%, #1e1013 100%);
  color: #f3e9df;
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.4, 0, .2, 1);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 52px 26px 34px;
}
.more-panel.open { transform: translateY(0); }

.more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.more-brand { display: flex; align-items: center; gap: 14px; }
.monogram-sm {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.monogram-sm i { font-style: normal; opacity: .6; transform: rotate(18deg); display: inline-block; }
.more-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .5px;
  color: rgba(243, 233, 223, .85);
}
.more-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--rose);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s;
}
.more-close svg { width: 15px; height: 15px; }
.more-close:hover { background: rgba(203, 161, 168, .1); }

.more-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
}
.more-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(243, 233, 223, .88);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .5px;
  cursor: pointer;
  text-align: left;
  transition: all .3s ease;
}
.more-item svg { width: 20px; height: 20px; color: var(--rose); flex: 0 0 20px; }
.more-item:hover,
.more-item:active {
  background: rgba(203, 161, 168, .08);
  border-color: var(--line-dark);
  transform: translateX(2px);
}

.more-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 24px;
  color: rgba(203, 161, 168, .75);
}
.more-footer svg { width: 44px; height: 30px; opacity: .6; }
.more-footer p {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  letter-spacing: .3px;
  color: rgba(203, 161, 168, .65);
}

/* ============ RESPONSIVE KECIL ============ */
@media (max-width: 359px) {
  .name { font-size: 46px; }
  .page { padding: 50px 20px 96px; }
  .script { font-size: 34px; }
}

/* Desktop fallback scroll hint adjustment */
@media (min-width: 520px) {
  .scroll-hint { bottom: 88px; }
}