:root {
  --primary: #2B2825;
  --secondary: #C7A46A;
  --bg: #FAF8F2;
  --surface: #FFFFFF;
  --accent: #C7A46A;
  --accent-ink: #7A5C2E;
  --accent-ink-hero: #F4DFB4;
  --accent-ink-band: #F4DFB4;
  --accent-ink-chip: #F4DFB4;
  --accent-ink-modal: #F4DFB4;
  --text: #1E1C1A;
  --muted: #65605A;
  --border: rgba(199, 164, 106, 0.36);
  --surface-tint: rgba(199, 164, 106, 0.12);
  --shadow-card: 0 12px 26px rgba(15, 18, 22, 0.08);
  --font-heading: 'Cormorant Garamond', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Great Vibes', 'Cormorant Garamond', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans SC', cursive;
  --radius-card: 24px;
  --hero-text: #FAF8F2;
  --hero-bg: linear-gradient(170deg, #1E1C1A 0%, var(--primary) 54%, #141210 100%);
  --hero-scrim: linear-gradient(180deg, rgba(16, 16, 18, 0.08) 0%, rgba(16, 16, 18, 0.25) 34%, rgba(16, 16, 18, 0.72) 56%, rgba(16, 16, 18, 0.94) 76%, var(--primary) 100%);
  --hero-title: #F4DFB4;
  --hero-kicker: #E8CFA0;
  --hero-pill-bg: rgba(18, 20, 22, 0.56);
  --hero-pill-fg: #FAF8F2;
  --badge-bg: rgba(16, 18, 22, 0.78);
  --badge-fg: #FAF8F2;
  --band-feature-bg: linear-gradient(165deg, var(--surface) 0%, var(--bg) 100%);
  --band-feature-alt-bg: linear-gradient(175deg, var(--bg) 0%, var(--surface) 100%);
  --band-feature-fg: var(--text);
  --band-feature-title: var(--primary);
  --band-feature-muted: var(--muted);
  --band-feature-border: var(--border);
  --monogram-bg: linear-gradient(145deg, var(--primary), #1E1E22);
  --monogram-fg: #FAF8F2;
  --connector-bg: var(--surface);
  --map-chip-bg: rgba(16, 18, 22, 0.88);
  --map-chip-fg: #FAF8F2;
  --quote-bg: linear-gradient(160deg, var(--surface), var(--surface-tint));
  --quote-fg: var(--text);
  --btn-bg: linear-gradient(135deg, #D9B777, #B7904E);
  --btn-fg: #15181C;
  --btn-brand-bg: var(--primary);
  --btn-brand-fg: #FAF8F2;
  --btn-outline-fg: var(--primary);
  --btn-outline-border: var(--border);
  --btn-outline-light-fg: #FAF8F2;
  --btn-outline-light-border: rgba(232, 207, 160, 0.72);
  --confirm-bg: rgba(199, 164, 106, 0.16);
  --confirm-border: rgba(199, 164, 106, 0.45);
  --confirm-fg: var(--text);
  --field-bg: rgba(255, 255, 255, 0.96);
  --field-fg: #181A1C;
  --field-border: var(--border);
  --field-placeholder: rgba(24, 26, 28, 0.52);
  --dock-bg: rgba(22, 24, 28, 0.94);
  --dock-fg: #FAF8F2;
  --dock-border: rgba(199, 164, 106, 0.56);
  --dock-active-bg: var(--accent);
  --dock-active-fg: #16181A;
  --music-bg: rgba(22, 24, 28, 0.9);
  --music-fg: #FAF8F2;
  --music-border: rgba(199, 164, 106, 0.72);
  --eticket-header-bg: linear-gradient(155deg, var(--primary), #181A1E);
  --eticket-header-fg: #FAF8F2;
  --modal-bg: #16181C;
  --modal-fg: #FAF8F2;
  --modal-border: rgba(199, 164, 106, 0.52);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overflow-wrap: anywhere;
}

body.theme-garden_luxury {
  background-image:
    radial-gradient(circle at 12% 8%, rgba(18, 61, 53, 0.06), transparent 38%),
    radial-gradient(circle at 88% 90%, rgba(199, 164, 106, 0.08), transparent 42%);
}

body.theme-royal_nusantara,
body.theme-traditional_nusantara {
  background-image: radial-gradient(circle at 50% 0%, rgba(90, 29, 38, 0.06), transparent 45%);
}

body.theme-modern_luxury,
body.theme-midnight_royale,
body.theme-celestial_azure {
  background-image: radial-gradient(circle at 50% 10%, rgba(212, 175, 106, 0.08), transparent 48%);
}

.hidden {
  display: none !important;
}

.sr-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.page-shell {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow-x: clip;
}

.page-shell.cover-is-open {
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .page-shell {
    max-width: 680px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

.loading-shell {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.loading-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  animation: pulseSoft 1.8s ease-in-out infinite;
}

.loading-caption {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.2px;
}

.ui-svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ui-svg-xs {
  width: 12px;
  height: 12px;
}

.ui-svg-divider {
  width: 13px;
  height: 13px;
  opacity: 0.9;
}

/* Browser-Only Firebase Web Showcase Bar */
.web-showcase-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(11, 20, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 106, 0.38);
  color: #FAF8F2;
  padding: 10px 14px;
}

.showcase-bar-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.showcase-brand .ui-svg-icon {
  color: #E8CFA0;
  width: 18px;
  height: 18px;
}

.showcase-brand strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #F4DFB4;
  line-height: 1.2;
}

.showcase-brand span {
  display: block;
  font-size: 10.5px;
  color: rgba(250, 248, 242, 0.72);
}

.showcase-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.showcase-lang-select {
  border: 1px solid rgba(232, 207, 160, 0.38);
  background: rgba(14, 28, 23, 0.92);
  color: #F4DFB4;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 128px;
}

.showcase-lang-select option {
  background: #10251F;
  color: #FAF8F2;
}

.showcase-tune-btn {
  border: 1px solid rgba(232, 207, 160, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #F4DFB4;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.showcase-mode-btn {
  border: 1px solid rgba(232, 207, 160, 0.65);
  background: linear-gradient(135deg, #D9B777, #B7904E);
  color: #14221D;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.showcase-custom-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 106, 0.28);
}

@media (min-width: 560px) {
  .showcase-custom-panel {
    grid-template-columns: 1fr 1.25fr;
  }
}

.showcase-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 207, 160, 0.35);
  background: rgba(10, 18, 15, 0.72);
  color: #FAF8F2;
  font-family: var(--font-body);
  font-size: 11.5px;
}

.showcase-input::placeholder {
  color: rgba(250, 248, 242, 0.55);
}

.showcase-mini-go {
  border: 1px solid rgba(232, 207, 160, 0.5);
  background: rgba(212, 175, 106, 0.2);
  color: #F4DFB4;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.showcase-scroll-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.showcase-scroll-row::-webkit-scrollbar {
  display: none;
}

.showcase-cat-btn,
.showcase-tpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(250, 248, 242, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 248, 242, 0.86);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.showcase-cat-btn.active {
  background: rgba(212, 175, 106, 0.24);
  border-color: #E8CFA0;
  color: #F4DFB4;
}

.showcase-tpl-btn.active {
  background: #FAF8F2;
  color: #162924;
  border-color: #E8CFA0;
}

.showcase-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid #C7A46A;
  flex-shrink: 0;
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes heroHintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* Reveal Transitions & Reduced Motion */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.anim-fade .reveal-on-scroll {
  transform: none;
}

.anim-instant *,
.anim-instant .reveal-on-scroll {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ================= LUXURY PHOTOGRAPHY HERO COVER ================= */

.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 58px 14px 28px;
  border-radius: 0 0 36px 36px;
  background: var(--hero-bg);
  color: var(--hero-text);
  box-shadow: 0 22px 44px rgba(10, 14, 18, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hero-wrapper.cover-closed {
  min-height: 94vh;
  border-radius: 0 0 40px 40px;
}

.hero-wrapper.cover-opened {
  min-height: 490px;
}

.hero-demo-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--accent);
  color: var(--badge-fg);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

.hero-photo-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  padding: 48px 14px 0;
}

.hero-arch-photo {
  width: 100%;
  max-width: 440px;
  height: clamp(240px, 56%, 410px);
  border-radius: 210px 210px 28px 28px;
  overflow: hidden;
  border: 1.5px solid var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-arch-photo.ratio-4-3 {
  border-radius: 110px 110px 24px 24px;
  height: clamp(200px, 46%, 320px);
}

.hero-arch-photo.ratio-1-1 {
  border-radius: 170px 170px 24px 24px;
  height: clamp(220px, 52%, 360px);
}

.hero-arch-photo.ratio-9-16 {
  border-radius: 180px 180px 26px 26px;
  height: clamp(260px, 60%, 440px);
}

.hero-arch-photo.ratio-16-9 {
  border-radius: 44px 44px 20px 20px;
  height: clamp(176px, 40%, 260px);
}

.hero-arch-photo.ratio-original {
  border-radius: 36px 36px 20px 20px;
  height: auto;
  max-height: 440px;
}

.hero-arch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hero-arch-photo.ratio-original img {
  height: auto;
  max-height: 440px;
  object-fit: contain;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
  pointer-events: none;
}

.hero-floral-corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.botanical-corner {
  position: absolute;
  width: 132px;
  height: 132px;
  opacity: 0.92;
}

.botanical-corner.bc-tl {
  top: -8px;
  left: -8px;
  transform: rotate(90deg);
}

.botanical-corner.bc-br {
  bottom: -10px;
  right: -10px;
}

.hero-ornament-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.32;
}

.hero-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 22px 16px 20px;
  text-align: center;
  border: 1.3px solid rgba(199, 164, 106, 0.72);
  border-radius: 190px 190px 26px 26px;
}

.hero-frame-photo {
  border-color: rgba(199, 164, 106, 0.62);
  padding-top: 12px;
}

.hero-photo-spacer {
  height: clamp(168px, 28vh, 250px);
}

.hero-wrapper.cover-opened .hero-photo-spacer {
  height: clamp(148px, 22vh, 200px);
}

/* Template Hero Overrides */
body.theme-royal_nusantara .hero-wrapper,
body.theme-traditional_nusantara .hero-wrapper {
  background: radial-gradient(circle at top, #6E222E 0%, #46131B 68%, #280B10 100%);
}
body.theme-royal_nusantara .hero-scrim,
body.theme-traditional_nusantara .hero-scrim {
  background: linear-gradient(180deg, rgba(40, 11, 16, 0.14) 0%, rgba(70, 19, 27, 0.55) 48%, #360E14 78%);
}
body.theme-royal_nusantara .hero-frame,
body.theme-traditional_nusantara .hero-frame {
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px rgba(209, 169, 84, 0.28);
  border-radius: 24px;
}

body.theme-vintage_romance .hero-wrapper,
body.theme-classic_gold .hero-wrapper,
body.theme-terracotta_muse .hero-wrapper {
  background: linear-gradient(180deg, #F5EADE 0%, #FAF3EA 100%);
  color: var(--text);
}
body.theme-vintage_romance .hero-scrim,
body.theme-classic_gold .hero-scrim,
body.theme-terracotta_muse .hero-scrim {
  background: linear-gradient(180deg, rgba(250, 243, 234, 0.08) 0%, rgba(250, 243, 234, 0.45) 48%, #FAF3EA 78%);
}
body.theme-vintage_romance .hero-frame,
body.theme-classic_gold .hero-frame,
body.theme-terracotta_muse .hero-frame {
  border: 1.5px solid var(--primary);
  box-shadow: inset 0 0 0 4px rgba(184, 147, 101, 0.3);
  border-radius: 20px;
}

body.theme-botanical_serenity .hero-wrapper,
body.theme-romantic_floral .hero-wrapper {
  background: linear-gradient(175deg, #EDF3EC 0%, #FFFFFF 100%);
  color: var(--text);
}
body.theme-botanical_serenity .hero-scrim,
body.theme-romantic_floral .hero-scrim {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(245, 247, 242, 0.55) 48%, #F5F7F2 78%);
}

body.theme-modern_luxury .hero-wrapper,
body.theme-midnight_royale .hero-wrapper,
body.theme-celestial_azure .hero-wrapper {
  background: linear-gradient(170deg, #06100D 0%, var(--bg) 55%, var(--surface) 100%);
}
body.theme-modern_luxury .hero-scrim,
body.theme-midnight_royale .hero-scrim,
body.theme-celestial_azure .hero-scrim {
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.14) 0%, rgba(11, 12, 16, 0.52) 48%, var(--bg) 78%);
}
body.theme-modern_luxury .hero-frame,
body.theme-midnight_royale .hero-frame,
body.theme-celestial_azure .hero-frame {
  border-radius: 24px;
  border-color: rgba(212, 175, 106, 0.62);
}

body.theme-minimalist_white .hero-wrapper {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F3EF 100%);
  color: var(--text);
}
body.theme-minimalist_white .hero-scrim {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.55) 48%, #FFFFFF 78%);
}
body.theme-minimalist_white .hero-frame {
  border-radius: 12px;
  border: 1px solid rgba(34, 40, 38, 0.22);
}

.crest-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--hero-kicker);
  font-weight: 600;
  margin-bottom: 4px;
}

body.theme-vintage_romance .crest-kicker,
body.theme-classic_gold .crest-kicker,
body.theme-terracotta_muse .crest-kicker,
body.theme-botanical_serenity .crest-kicker,
body.theme-romantic_floral .crest-kicker,
body.theme-minimalist_white .crest-kicker {
  color: var(--primary);
}

.hero-monogram-stage {
  margin: 10px auto 12px;
}

.monogram-svg {
  width: 126px;
  height: 126px;
  display: block;
  margin: 0 auto;
}

.couple-script-title {
  margin: 2px 0 10px;
  font-family: var(--font-script);
  font-size: clamp(40px, 11vw, 54px);
  line-height: 1.08;
  font-weight: 400;
  color: var(--hero-title);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

body.theme-minimalist_white .couple-script-title,
body.theme-royal_nusantara .couple-script-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 8.5vw, 44px);
  font-weight: 700;
}

body.theme-vintage_romance .couple-script-title,
body.theme-classic_gold .couple-script-title,
body.theme-terracotta_muse .couple-script-title,
body.theme-botanical_serenity .couple-script-title,
body.theme-romantic_floral .couple-script-title,
body.theme-minimalist_white .couple-script-title {
  color: var(--primary);
  text-shadow: none;
}

.script-amp {
  color: var(--accent-ink-hero);
}

.editorial-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 4px 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(34, 40, 38, 0.18);
  font-size: 9.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.nusantara-crown-crest {
  display: flex;
  justify-content: center;
  color: var(--accent-ink-hero);
  margin: 0 auto 6px;
}

.wax-seal-crest {
  display: flex;
  justify-content: center;
  margin: 4px auto 6px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.hero-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--hero-pill-bg);
  color: var(--hero-pill-fg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

body.theme-vintage_romance .hero-date-pill,
body.theme-classic_gold .hero-date-pill,
body.theme-terracotta_muse .hero-date-pill,
body.theme-botanical_serenity .hero-date-pill,
body.theme-romantic_floral .hero-date-pill,
body.theme-minimalist_white .hero-date-pill {
  background: var(--surface-tint);
  color: var(--primary);
}

.rings-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent-ink-hero);
  margin: 6px auto 12px;
}

.rings-line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.wax-seal-pill {
  position: relative;
  margin: 6px auto 10px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #9E4A50, #6B2A30 75%);
  border: 2px solid #E8CFA0;
  color: #FAF3EA;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.hero-glass-pass {
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(212, 175, 106, 0.56) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.guest-greeting-box {
  margin: 4px auto 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(199, 164, 106, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-vintage_romance .guest-greeting-box,
body.theme-classic_gold .guest-greeting-box,
body.theme-botanical_serenity .guest-greeting-box,
body.theme-romantic_floral .guest-greeting-box,
body.theme-terracotta_muse .guest-greeting-box,
body.theme-minimalist_white .guest-greeting-box {
  background: rgba(0, 0, 0, 0.04);
}

.guest-kicker {
  font-size: 11.5px;
  opacity: 0.88;
  margin: 0 0 2px;
}

.guest-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

.guest-subnote {
  font-size: 11.5px;
  font-style: italic;
  opacity: 0.84;
  margin: 5px 0 0;
}

.hero-scroll-hint,
.hero-opened-chevron {
  margin-top: 8px;
  font-size: 18px;
  color: var(--accent-ink-hero);
  animation: heroHintBounce 2s ease-in-out infinite;
}

/* ================= BUTTONS ================= */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary .ui-svg-icon,
.btn-outline .ui-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary span,
.btn-outline span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary:hover,
.btn-outline:hover {
  opacity: 0.92;
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.dock-btn:focus-visible,
.music-fab:focus-visible,
.modal-close:focus-visible,
.modal-nav-btn:focus-visible,
.rsvp-toggle-btn:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-outline:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.btn-primary:active,
.btn-outline:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary-brand {
  background: var(--btn-brand-bg);
  color: var(--btn-brand-fg);
}

.btn-outline {
  background: transparent;
  color: var(--btn-outline-fg);
  border: 1.4px solid var(--btn-outline-border);
}

.btn-outline-light {
  color: var(--btn-outline-light-fg);
  border-color: var(--btn-outline-light-border);
}

.btn-open-cover {
  margin-top: 16px;
  width: 100%;
  max-width: 268px;
}

/* ================= EDITORIAL ALTERNATING BANDS ================= */

.sections-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-band {
  position: relative;
  padding: 32px 18px;
  scroll-margin-top: 12px;
}

.band-ivory {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.band-emerald {
  background: var(--band-feature-bg);
  color: var(--band-feature-fg);
  border-top: 1px solid var(--band-feature-border);
  border-bottom: 1px solid var(--band-feature-border);
}

.band-emerald-alt {
  background: var(--band-feature-alt-bg);
  color: var(--band-feature-fg);
  border-top: 1px solid var(--band-feature-border);
  border-bottom: 1px solid var(--band-feature-border);
}

.band-closing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-tint) 100%);
  color: var(--text);
  text-align: center;
}

/* Template Band Overrides */
body.theme-royal_nusantara .band-emerald,
body.theme-traditional_nusantara .band-emerald,
body.theme-royal_nusantara .band-emerald-alt,
body.theme-traditional_nusantara .band-emerald-alt {
  background: linear-gradient(165deg, #5A1D26 0%, #370E14 100%);
  color: #FAF8F2;
}

body.theme-vintage_romance .band-emerald,
body.theme-classic_gold .band-emerald,
body.theme-terracotta_muse .band-emerald,
body.theme-vintage_romance .band-emerald-alt,
body.theme-classic_gold .band-emerald-alt,
body.theme-terracotta_muse .band-emerald-alt {
  background: linear-gradient(165deg, var(--surface) 0%, rgba(184, 147, 101, 0.16) 100%);
  color: var(--text);
}

body.theme-vintage_romance .band-emerald .btn-outline-light,
body.theme-classic_gold .band-emerald .btn-outline-light,
body.theme-terracotta_muse .band-emerald .btn-outline-light,
body.theme-botanical_serenity .band-emerald .btn-outline-light,
body.theme-romantic_floral .band-emerald .btn-outline-light,
body.theme-minimalist_white .band-emerald .btn-outline-light {
  color: var(--primary);
  border-color: var(--border);
}

body.theme-botanical_serenity .band-emerald,
body.theme-romantic_floral .band-emerald,
body.theme-botanical_serenity .band-emerald-alt,
body.theme-romantic_floral .band-emerald-alt {
  background: linear-gradient(165deg, #EDF3EC 0%, #F7FAF6 100%);
  color: var(--text);
}

body.theme-minimalist_white .band-emerald,
body.theme-minimalist_white .band-emerald-alt {
  background: #F6F6F4;
  color: var(--text);
}

body.theme-modern_luxury .band-ivory,
body.theme-midnight_royale .band-ivory,
body.theme-celestial_azure .band-ivory,
body.theme-modern_luxury .band-closing,
body.theme-midnight_royale .band-closing,
body.theme-celestial_azure .band-closing {
  background: var(--bg);
  color: var(--text);
}

body.theme-modern_luxury .band-emerald,
body.theme-midnight_royale .band-emerald,
body.theme-celestial_azure .band-emerald,
body.theme-modern_luxury .band-emerald-alt,
body.theme-midnight_royale .band-emerald-alt,
body.theme-celestial_azure .band-emerald-alt {
  background: linear-gradient(165deg, var(--surface) 0%, var(--bg) 100%);
  color: var(--text);
}

.section-kicker {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 4px;
}

.band-emerald .section-kicker,
.band-emerald-alt .section-kicker {
  color: var(--accent-ink-band);
}

.section-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.15;
  color: var(--primary);
  text-align: center;
}

.band-emerald .section-title,
.band-emerald-alt .section-title {
  color: var(--band-feature-title);
}

.section-subtitle {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.band-emerald .section-subtitle,
.band-emerald-alt .section-subtitle {
  color: var(--band-feature-muted);
}

.ornament-divider {
  display: flex;
  justify-content: center;
  margin: 8px auto 14px;
  color: var(--accent-ink);
}

.band-emerald .ornament-divider,
.band-emerald-alt .ornament-divider {
  color: var(--accent-ink-band);
}

.bismillah-block {
  text-align: center;
  padding: 4px 8px 14px;
  margin-bottom: 6px;
}

.bismillah-script {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 21px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}

body.is-dark-theme .bismillah-script,
body.theme-modern_luxury .bismillah-script,
body.theme-midnight_royale .bismillah-script,
body.theme-celestial_azure .bismillah-script {
  color: var(--accent-ink);
}

/* ================= MEMPELAI PORTRAITS ================= */

.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  text-align: center;
  margin-top: 12px;
}

@media (min-width: 520px) {
  .couple-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 10px;
  }
}

.person-editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
}

.portrait-arch-wrap {
  position: relative;
  width: 146px;
  margin-bottom: 10px;
}

.portrait-arch {
  width: 146px;
  aspect-ratio: 3 / 4;
  border-radius: 82px 82px 18px 18px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-card);
  background: var(--surface-tint);
}

.portrait-arch.portrait-ratio-1-1 {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
}

.portrait-arch.portrait-ratio-4-3 {
  width: 164px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

.portrait-arch.portrait-ratio-9-16 {
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 72px 72px 18px 18px;
}

.portrait-arch.portrait-ratio-16-9 {
  width: 176px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
}

.portrait-arch.portrait-ratio-original {
  width: 164px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.portrait-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.portrait-arch.portrait-ratio-original img {
  object-fit: contain;
}

.portrait-sprig {
  position: absolute;
  bottom: -6px;
  width: 44px;
  height: 66px;
  pointer-events: none;
}

.portrait-sprig-l {
  left: -18px;
}

.portrait-sprig-r {
  right: -18px;
}

.person-monogram-arch {
  width: 112px;
  height: 136px;
  border-radius: 64px 64px 16px 16px;
  background: var(--monogram-bg);
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px rgba(199, 164, 106, 0.24), 0 10px 20px rgba(0, 0, 0, 0.12);
  color: var(--monogram-fg);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.person-role-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(199, 164, 106, 0.28), rgba(199, 164, 106, 0.12));
  border: 1px solid rgba(199, 164, 106, 0.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

body.is-dark-theme .person-role-pill,
body.theme-modern_luxury .person-role-pill,
body.theme-midnight_royale .person-role-pill,
body.theme-celestial_azure .person-role-pill {
  color: var(--accent-ink);
}

.person-name {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
}

.person-parents {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 240px;
}

body.is-dark-theme .person-parents,
body.theme-modern_luxury .person-parents,
body.theme-midnight_royale .person-parents,
body.theme-celestial_azure .person-parents {
  color: var(--muted);
}

.ampersand-mark {
  font-family: var(--font-script);
  font-size: 46px;
  color: var(--accent-ink);
  line-height: 1;
  align-self: center;
}

/* ================= COUNTDOWN ================= */

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-tile {
  padding: 14px 4px;
  border-radius: 36px 36px 14px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.2px solid rgba(199, 164, 106, 0.62);
  text-align: center;
}

.band-ivory .countdown-tile,
body.theme-vintage_romance .countdown-tile,
body.theme-classic_gold .countdown-tile,
body.theme-terracotta_muse .countdown-tile,
body.theme-botanical_serenity .countdown-tile,
body.theme-romantic_floral .countdown-tile,
body.theme-minimalist_white .countdown-tile {
  background: rgba(199, 164, 106, 0.12);
}

.countdown-num {
  display: block;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-size: clamp(22px, 6vw, 31px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--band-feature-title);
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.88;
}

.countdown-reached-badge {
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--band-feature-title);
  background: var(--surface-tint);
  border: 1px solid var(--border);
}

/* ================= EVENTS ================= */

.event-split-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-card-editorial {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1.2px solid rgba(199, 164, 106, 0.56);
  background: rgba(255, 255, 255, 0.05);
}

body.theme-vintage_romance .event-card-editorial,
body.theme-classic_gold .event-card-editorial,
body.theme-terracotta_muse .event-card-editorial,
body.theme-botanical_serenity .event-card-editorial,
body.theme-romantic_floral .event-card-editorial,
body.theme-minimalist_white .event-card-editorial {
  background: var(--surface);
}

.event-art-col {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink-band);
}

.event-art-svg {
  width: 50px;
  height: 50px;
}

.event-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.event-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--band-feature-title);
  margin-bottom: 4px;
}

.event-time,
.event-detail,
.event-venue,
.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13.5px;
  margin: 4px 0;
  opacity: 0.92;
  line-height: 1.45;
}

.event-meta-row .ui-svg-icon {
  margin-top: 2px;
  color: var(--accent-ink-band);
}

.event-heart-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -4px 0;
  color: var(--accent-ink-band);
}

.event-heart-connector span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--connector-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ================= VENUE MAP ================= */

.venue-map-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.2px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  margin-bottom: 12px;
}

.venue-map-visual > svg.venue-map-svg {
  width: 100%;
  height: 152px;
  display: block;
}

.venue-map-chip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  background: var(--map-chip-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--map-chip-fg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.venue-map-chip .ui-svg-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-ink-chip);
}

.venue-map-chip strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.venue-address-line {
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 2px;
  opacity: 0.92;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.btn-row > * {
  flex: 1 1 136px;
}

.btn-row-calendar {
  flex-wrap: wrap;
  align-items: center;
}

.btn-row-calendar > * {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 12.5px;
}

.map-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.btn-map-main {
  width: 100%;
  min-height: 44px;
  padding: 9px 16px;
  font-size: 13px;
}

.map-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.map-actions-pair > * {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 12.5px;
}

@media (max-width: 300px) {
  .map-actions-pair {
    grid-template-columns: 1fr;
  }
}

/* ================= STORY & QUOTE ================= */

.polaroid-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px auto 18px;
  padding: 4px 0;
}

.polaroid-card {
  width: 94px;
  aspect-ratio: 4 / 5;
  background: #FFFFFF;
  padding: 5px 5px 14px;
  border-radius: 8px;
  border: 1px solid rgba(199, 164, 106, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.polaroid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.polaroid-tilt-0 { transform: rotate(-4deg); }
.polaroid-tilt-1 { transform: translateY(-4px); z-index: 2; }
.polaroid-tilt-2 { transform: rotate(4deg); }

.story-paragraph {
  margin: 0 0 16px;
  font-size: 14px;
  text-align: center;
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 16px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.timeline-item {
  position: relative;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 2.5px solid var(--bg);
}

.timeline-year {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.timeline-title {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.timeline-desc {
  font-size: 13px;
  opacity: 0.85;
}

.quote-feature-box {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--quote-bg);
  color: var(--quote-fg);
  border: 1px solid var(--border);
  text-align: center;
}

.quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 0.8;
  color: var(--accent-ink);
}

.quote-block {
  font-family: var(--font-heading);
  font-style: italic;
  margin: 6px 0;
  font-size: 17px;
  line-height: 1.5;
}

.quote-author {
  margin: 0;
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 600;
}

/* ================= SMART RESPONSIVE GALLERY ENGINE ================= */

.gallery-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-editorial-grid.gallery-layout-1 {
  grid-template-columns: 1fr;
}

.gallery-editorial-grid.gallery-layout-2,
.gallery-editorial-grid.gallery-layout-3,
.gallery-editorial-grid.gallery-layout-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-editorial-grid.gallery-layout-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-editorial-grid.gallery-layout-balanced,
.gallery-editorial-grid.gallery-layout-many {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 560px) {
  .gallery-editorial-grid.gallery-layout-balanced.gallery-count-6,
  .gallery-editorial-grid.gallery-layout-balanced.gallery-count-7,
  .gallery-editorial-grid.gallery-layout-balanced.gallery-count-9,
  .gallery-editorial-grid.gallery-layout-many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-editorial-grid.gallery-layout-balanced.gallery-count-8 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1.4px solid var(--border);
  cursor: pointer;
  padding: 0;
  background: var(--surface-tint);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease;
}

.gallery-layout-1 .gallery-thumb {
  aspect-ratio: 16 / 10;
  max-height: 440px;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-1-1 {
  aspect-ratio: 1 / 1;
  max-height: 480px;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-3-4 {
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-9-16 {
  aspect-ratio: 9 / 16;
  max-height: 560px;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.gallery-layout-1 .gallery-thumb.gallery-ratio-original {
  aspect-ratio: 4 / 3;
  max-height: 520px;
}

.gallery-thumb.gallery-ratio-original img {
  object-fit: contain;
}

.gallery-layout-2 .gallery-thumb {
  aspect-ratio: 4 / 5;
}

.gallery-layout-3 .gallery-thumb-lead {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-layout-4 .gallery-thumb {
  aspect-ratio: 1 / 1;
}

.gallery-layout-5 .gallery-thumb:nth-child(-n+2) {
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}

.gallery-layout-5 .gallery-thumb:nth-child(n+3) {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.gallery-thumb-lead-full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

@media (min-width: 560px) {
  .gallery-count-9 .gallery-thumb-lead-full {
    grid-column: span 1;
    aspect-ratio: 4 / 5;
  }
  .gallery-count-8 .gallery-thumb:nth-child(-n+2) {
    grid-column: span 3;
    aspect-ratio: 4 / 3;
  }
  .gallery-count-8 .gallery-thumb:nth-child(n+3) {
    grid-column: span 2;
    aspect-ratio: 4 / 5;
  }
}

.gallery-thumb-pair-top {
  grid-column: span 1;
  aspect-ratio: 4 / 5;
}

@media (min-width: 560px) {
  .gallery-layout-many.gallery-rem-2 .gallery-thumb:nth-child(-n+2) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
  .gallery-layout-many.gallery-rem-2 .gallery-thumb:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

.gallery-thumb:hover {
  transform: scale(1.015);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption-chip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 7px;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0) 0%, rgba(8, 10, 14, 0.78) 100%);
  color: #FAF8F2;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ================= GIFTS ================= */

.gift-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 15px;
  border-radius: 18px;
  border: 1.2px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-tint) 100%);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.gift-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.16), transparent 70%);
  pointer-events: none;
}

.gift-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gift-chip-svg {
  display: block;
  flex-shrink: 0;
}

.gift-bank-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-tint);
}

body.is-dark-theme .gift-bank-badge,
body.theme-modern_luxury .gift-bank-badge,
body.theme-midnight_royale .gift-bank-badge,
body.theme-celestial_azure .gift-bank-badge {
  color: var(--accent-ink);
}

.gift-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.gift-meta {
  flex: 1 1 190px;
  min-width: 0;
  max-width: 100%;
}

.gift-bank {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent-ink);
}

.gift-num-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gift-num-scroll::-webkit-scrollbar {
  display: none;
}

.gift-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: clamp(15px, 4.3vw, 20px);
  font-weight: 700;
  letter-spacing: 0.75px;
  white-space: nowrap;
  margin: 0 0 3px;
}

.gift-num.gift-num-long {
  font-size: clamp(13px, 3.6vw, 17px);
  letter-spacing: 0.35px;
}

.gift-holder {
  font-size: 12.5px;
  opacity: 0.85;
}

@media (max-width: 390px) {
  .gift-card-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .gift-card-bottom .copy-acc-btn {
    width: 100%;
  }
}

.copy-acc-btn.is-copied,
.copy-addr-btn.is-copied {
  background: var(--btn-brand-bg);
  color: var(--btn-brand-fg);
  border-color: var(--primary);
}

.gift-addr-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--accent-ink);
  margin-bottom: 4px;
}

.gift-address-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  margin-top: 8px;
}

.gift-address-card .event-tag {
  color: var(--primary);
  font-size: 15px;
}

body.is-dark-theme .gift-address-card .event-tag {
  color: var(--accent-ink);
}

.qris-box {
  text-align: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: var(--surface);
}

.qris-box img {
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ================= RSVP & WISHES ================= */

.rsvp-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.rsvp-stat-pill {
  padding: 10px 6px;
  border-radius: 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
}

.rsvp-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

body.is-dark-theme .rsvp-stat-num,
body.theme-modern_luxury .rsvp-stat-num,
body.theme-midnight_royale .rsvp-stat-num,
body.theme-celestial_azure .rsvp-stat-num {
  color: var(--accent-ink);
}

.rsvp-stat-label {
  font-size: 11px;
  opacity: 0.82;
}

.rsvp-toggle-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.rsvp-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.rsvp-toggle-btn.active {
  background: var(--btn-brand-bg);
  color: var(--btn-brand-fg);
  border-color: var(--primary);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px 2px;
}

.rsvp-confirmation-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--confirm-bg);
  border: 1px solid var(--confirm-border);
  color: var(--confirm-fg);
  font-size: 12.5px;
  font-weight: 600;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.2px solid var(--field-border);
  background: var(--field-bg);
  color: var(--field-fg);
  font-family: var(--font-body);
  font-size: 14px;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--field-placeholder);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.wish-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--btn-brand-bg);
  color: var(--btn-brand-fg);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wish-body {
  flex: 1;
  min-width: 0;
}

.wish-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.wish-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(199, 164, 106, 0.25);
  white-space: nowrap;
}

.wish-text {
  font-size: 13.5px;
}

/* ================= CLOSING & CREST ================= */

.closing-script-title {
  margin: 0 0 8px;
  font-family: var(--font-script);
  font-size: 40px;
  font-weight: 400;
  color: var(--primary);
}

body.is-dark-theme .closing-script-title,
body.theme-modern_luxury .closing-script-title,
body.theme-midnight_royale .closing-script-title,
body.theme-celestial_azure .closing-script-title {
  color: var(--accent-ink);
}

.closing-crest {
  margin: 18px auto 6px;
  color: var(--accent-ink);
}

.footer-brand {
  text-align: center;
  padding: 6px 8px;
  font-size: 12px;
  opacity: 0.78;
}

/* ================= BOTTOM DOCK & NON-OVERLAPPING MUSIC FAB ================= */

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 42;
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100vw - 20px);
  overflow-x: auto;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--dock-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dock-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  scrollbar-width: none;
}

.bottom-dock::-webkit-scrollbar {
  display: none;
}

.dock-btn {
  border: none;
  background: transparent;
  color: var(--dock-fg);
  padding: 8px 11px;
  min-height: 42px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.92;
}

.dock-btn:hover,
.dock-btn.active {
  background: var(--dock-active-bg);
  color: var(--dock-active-fg);
  opacity: 1;
}

.music-fab {
  position: fixed;
  right: 12px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 43;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.2px solid var(--music-border);
  background: var(--music-bg);
  backdrop-filter: blur(8px);
  color: var(--music-fg);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

body.has-showcase-bar .music-fab:not(.docked-top) {
  top: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.music-fab.docked-top {
  top: auto;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  right: 12px;
}

.music-disc-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 175, 106, 0.28), rgba(0, 0, 0, 0.35));
  border: 1px solid var(--music-border);
}

.music-fab.playing .music-disc-ring {
  animation: spinVinyl 6s linear infinite;
}

.music-eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  margin-left: 2px;
}

.music-fab.playing .music-eq-bars {
  display: inline-flex;
}

.music-eq-bars i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  animation: eqBounce 0.85s ease-in-out infinite alternate;
}

.music-eq-bars i:nth-child(2) {
  animation-delay: 0.22s;
  height: 10px;
}

.music-eq-bars i:nth-child(3) {
  animation-delay: 0.44s;
  height: 7px;
}

/* ================= FULLSCREEN LIGHTBOX MODAL ================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: var(--modal-bg);
  color: var(--modal-fg);
  border: 1px solid var(--modal-border);
  border-radius: 20px;
  padding: 12px;
  text-align: center;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-counter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink-modal);
  padding-left: 6px;
}

.modal-media-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.modal-card img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  transition: transform 0.14s ease-out;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--modal-border);
  background: rgba(14, 16, 20, 0.8);
  color: #FAF8F2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-nav-prev { left: 6px; }
.modal-nav-next { right: 6px; }

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--modal-border);
  background: rgba(0, 0, 0, 0.48);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

.modal-caption {
  margin: 10px 4px 2px;
  font-size: 13px;
  color: rgba(250, 248, 242, 0.9);
}

/* ================= TOAST ================= */

.toast-banner {
  position: fixed;
  left: 50%;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #181A1E;
  color: #FAF8F2;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* ================= TEMPLATE ARCHETYPE VISUAL IDENTITIES ================= */

/* 1A. Royal Nusantara (Keraton Maroon Velvet & Kawung Gold Crest) */
body.theme-royal_nusantara .hero-arch-photo,
body.theme-traditional_nusantara .hero-arch-photo {
  border-radius: 36px 36px 12px 12px;
  border: 2px solid #D1A954;
  box-shadow: 0 0 0 5px rgba(209, 169, 84, 0.22), 0 18px 36px rgba(0, 0, 0, 0.42);
}

/* 1B. Traditional Nusantara (Joglo Sogan Crown & Stepped Diamond Geometry) */
body.theme-traditional_nusantara .hero-arch-photo {
  border-radius: 18px 18px 6px 6px;
  border: 2.2px solid #C7A46A;
  box-shadow: 0 0 0 6px rgba(94, 33, 41, 0.28), 0 18px 36px rgba(0, 0, 0, 0.42);
}

body.theme-royal_nusantara .portrait-arch {
  border-radius: 28px 28px 10px 10px;
  border: 2px solid #D1A954;
  box-shadow: 0 0 0 4px rgba(90, 29, 38, 0.14), 0 12px 24px rgba(40, 11, 16, 0.22);
}

body.theme-traditional_nusantara .portrait-arch {
  border-radius: 14px;
  padding: 4px;
  background: linear-gradient(145deg, #5E2129, #3D1218);
  border: 2px solid #C7A46A;
  box-shadow: 0 12px 24px rgba(40, 11, 16, 0.24);
}

.portrait-keraton-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 10px;
  border-radius: 999px;
  background: #5A1D26;
  border: 1.4px solid #D1A954;
  color: #F4DFB4;
  font-size: 11px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.theme-royal_nusantara .countdown-tile,
body.theme-traditional_nusantara .countdown-tile {
  border-radius: 10px;
  border: 1.5px solid rgba(209, 169, 84, 0.72);
  box-shadow: inset 0 0 0 3px rgba(209, 169, 84, 0.16);
}

body.theme-royal_nusantara .bottom-dock,
body.theme-traditional_nusantara .bottom-dock {
  background: rgba(74, 21, 29, 0.95);
  border-color: rgba(209, 169, 84, 0.65);
}

body.theme-royal_nusantara .music-fab,
body.theme-traditional_nusantara .music-fab {
  background: rgba(74, 21, 29, 0.92);
  border-color: rgba(209, 169, 84, 0.78);
}

/* 2A. Vintage Romance (Letterpress Love Letter, Polaroid Keepsake & Wax Seal) */
body.theme-vintage_romance .hero-arch-photo,
body.theme-classic_gold .hero-arch-photo,
body.theme-terracotta_muse .hero-arch-photo {
  border-radius: 18px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 34px rgba(52, 34, 32, 0.22);
}

body.theme-classic_gold .hero-arch-photo {
  border-radius: 120px 120px 12px 12px;
  border: 2px solid #B5893F;
  box-shadow: 0 0 0 5px rgba(181, 137, 63, 0.18), 0 16px 34px rgba(45, 36, 23, 0.2);
}

body.theme-terracotta_muse .hero-arch-photo {
  border-radius: 999px 999px 26px 26px;
  border: 2.5px solid #D28765;
  box-shadow: 0 18px 34px rgba(166, 75, 50, 0.22);
}

body.theme-vintage_romance .portrait-arch {
  border-radius: 12px;
  padding: 6px;
  background: #FFFBF6;
  border: 1.2px dashed #7B464A;
  box-shadow: 0 10px 22px rgba(52, 34, 32, 0.16);
}

body.theme-classic_gold .portrait-arch {
  border-radius: 999px 999px 18px 18px;
  padding: 5px;
  background: #FFFCF6;
  border: 1.6px solid #B5893F;
  box-shadow: 0 0 0 3px rgba(181, 137, 63, 0.16), 0 10px 22px rgba(45, 36, 23, 0.14);
}

body.theme-terracotta_muse .portrait-arch {
  border-radius: 999px 999px 999px 999px;
  aspect-ratio: 1 / 1;
  padding: 4px;
  background: #FFFBF6;
  border: 2px solid #A64B32;
  box-shadow: 0 12px 24px rgba(166, 75, 50, 0.16);
}

body.theme-vintage_romance .portrait-arch img,
body.theme-classic_gold .portrait-arch img {
  border-radius: 10px;
}

body.theme-terracotta_muse .portrait-arch img {
  border-radius: 999px;
}

body.theme-vintage_romance .countdown-tile {
  border-radius: 14px;
  border: 1px dashed var(--accent);
  background: var(--surface);
}

body.theme-classic_gold .countdown-tile {
  border-radius: 4px;
  border: 1.5px solid #B5893F;
  box-shadow: inset 0 0 0 3px rgba(181, 137, 63, 0.15);
  background: #FFFCF6;
}

body.theme-terracotta_muse .countdown-tile {
  border-radius: 999px 999px 20px 20px;
  border: 1.3px solid rgba(166, 75, 50, 0.55);
  background: #FFFBF6;
}

body.theme-vintage_romance .gallery-thumb,
body.theme-classic_gold .gallery-thumb,
body.theme-terracotta_muse .gallery-thumb {
  border-radius: 8px;
  padding: 4px;
  background: var(--surface);
}

body.theme-terracotta_muse .gallery-thumb {
  border-radius: 22px;
}

body.theme-vintage_romance .gallery-thumb img,
body.theme-classic_gold .gallery-thumb img {
  border-radius: 5px;
}

body.theme-terracotta_muse .gallery-thumb img {
  border-radius: 18px;
}

body.theme-vintage_romance .bottom-dock,
body.theme-classic_gold .bottom-dock {
  background: rgba(94, 52, 55, 0.94);
  border-color: rgba(232, 207, 160, 0.6);
}

body.theme-classic_gold .bottom-dock {
  background: rgba(105, 74, 28, 0.94);
}

body.theme-terracotta_muse .bottom-dock {
  background: rgba(140, 62, 41, 0.94);
  border-color: rgba(210, 135, 101, 0.7);
}

/* 3. Nocturnal Gala & Celestial (Modern Luxury vs Midnight Royale Art-Deco vs Celestial Halo) */
body.theme-modern_luxury .hero-arch-photo {
  border-radius: 24px;
  border: 1.5px solid var(--accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56);
}

body.theme-midnight_royale .hero-arch-photo {
  border-radius: 8px;
  border: 1.8px solid #DFC38A;
  box-shadow: 0 0 0 5px rgba(223, 195, 138, 0.14), 0 22px 44px rgba(0, 0, 0, 0.62);
}

body.theme-celestial_azure .hero-arch-photo {
  border-radius: 220px 220px 220px 220px;
  border: 1.6px solid #B4C6E0;
  box-shadow: 0 0 28px rgba(180, 198, 224, 0.22), 0 20px 40px rgba(0, 0, 0, 0.45);
}

body.theme-modern_luxury .portrait-arch {
  border-radius: 20px;
  border: 1.5px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.44);
}

body.theme-midnight_royale .portrait-arch {
  border-radius: 6px;
  border: 1.6px solid #DFC38A;
  background: rgba(22, 24, 33, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.52);
}

body.theme-celestial_azure .portrait-arch {
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  border: 1.8px solid #C8D3E3;
  box-shadow: 0 0 24px rgba(180, 198, 224, 0.24), 0 14px 28px rgba(0, 0, 0, 0.36);
}

.portrait-corner-brackets {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  border-radius: 22px;
  background:
    linear-gradient(to right, var(--accent) 2px, transparent 2px) 0 0 / 16px 16px no-repeat,
    linear-gradient(to bottom, var(--accent) 2px, transparent 2px) 0 0 / 16px 16px no-repeat,
    linear-gradient(to left, var(--accent) 2px, transparent 2px) 100% 0 / 16px 16px no-repeat,
    linear-gradient(to bottom, var(--accent) 2px, transparent 2px) 100% 0 / 16px 16px no-repeat,
    linear-gradient(to right, var(--accent) 2px, transparent 2px) 0 100% / 16px 16px no-repeat,
    linear-gradient(to top, var(--accent) 2px, transparent 2px) 0 100% / 16px 16px no-repeat,
    linear-gradient(to left, var(--accent) 2px, transparent 2px) 100% 100% / 16px 16px no-repeat,
    linear-gradient(to top, var(--accent) 2px, transparent 2px) 100% 100% / 16px 16px no-repeat;
}

body.theme-modern_luxury .countdown-tile,
body.theme-midnight_royale .countdown-tile,
body.theme-celestial_azure .countdown-tile {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 106, 0.45);
}

body.theme-midnight_royale .countdown-tile {
  border-radius: 6px;
}

body.theme-celestial_azure .countdown-tile {
  border-radius: 999px;
  border-color: rgba(180, 198, 224, 0.55);
}

body.theme-modern_luxury .countdown-num,
body.theme-midnight_royale .countdown-num,
body.theme-celestial_azure .countdown-num {
  color: var(--band-feature-title);
}

body.theme-modern_luxury .event-card-editorial,
body.theme-midnight_royale .event-card-editorial,
body.theme-celestial_azure .event-card-editorial,
body.theme-modern_luxury .gift-card,
body.theme-midnight_royale .gift-card,
body.theme-celestial_azure .gift-card,
body.theme-modern_luxury .wish-item,
body.theme-midnight_royale .wish-item,
body.theme-celestial_azure .wish-item,
body.theme-modern_luxury .timeline-item,
body.theme-midnight_royale .timeline-item,
body.theme-celestial_azure .timeline-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(212, 175, 106, 0.05));
  backdrop-filter: blur(8px);
  border-color: rgba(212, 175, 106, 0.38);
}

body.is-dark-theme .rsvp-confirmation-note,
body.theme-modern_luxury .rsvp-confirmation-note,
body.theme-midnight_royale .rsvp-confirmation-note,
body.theme-celestial_azure .rsvp-confirmation-note {
  background: rgba(212, 175, 106, 0.16);
  border-color: rgba(212, 175, 106, 0.52);
  color: #F8F5EE;
}

body.is-dark-theme .event-heart-connector span,
body.theme-modern_luxury .event-heart-connector span,
body.theme-midnight_royale .event-heart-connector span,
body.theme-celestial_azure .event-heart-connector span {
  background: var(--surface);
  color: var(--accent-ink-band);
}

body.theme-modern_luxury .bottom-dock,
body.theme-midnight_royale .bottom-dock,
body.theme-celestial_azure .bottom-dock {
  background: rgba(14, 20, 28, 0.92);
  border-color: rgba(212, 175, 106, 0.56);
}

body.is-dark-theme .field-input,
body.is-dark-theme .field-select,
body.is-dark-theme .field-textarea,
body.theme-modern_luxury .field-input,
body.theme-modern_luxury .field-select,
body.theme-modern_luxury .field-textarea,
body.theme-midnight_royale .field-input,
body.theme-midnight_royale .field-select,
body.theme-midnight_royale .field-textarea,
body.theme-celestial_azure .field-input,
body.theme-celestial_azure .field-select,
body.theme-celestial_azure .field-textarea {
  background: rgba(255, 255, 255, 0.09);
  color: #F8F5EE;
  border-color: rgba(212, 175, 106, 0.42);
}

body.is-dark-theme .field-input::placeholder,
body.is-dark-theme .field-textarea::placeholder,
body.theme-modern_luxury .field-input::placeholder,
body.theme-midnight_royale .field-input::placeholder,
body.theme-celestial_azure .field-input::placeholder,
body.theme-modern_luxury .field-textarea::placeholder,
body.theme-midnight_royale .field-textarea::placeholder,
body.theme-celestial_azure .field-textarea::placeholder {
  color: rgba(248, 245, 238, 0.62);
}

/* 4. Minimalist White Editorial (Kinfolk / Swiss Architectural) */
body.theme-minimalist_white .hero-arch-photo {
  border-radius: 4px;
  border: 1px solid rgba(34, 40, 38, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

body.theme-minimalist_white .portrait-arch {
  border-radius: 4px;
  border: 1px solid rgba(34, 40, 38, 0.35);
  box-shadow: none;
}

body.theme-minimalist_white .person-monogram-arch {
  border-radius: 4px;
  background: #222826;
  color: #FFFFFF;
}

body.theme-minimalist_white .countdown-tile {
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(34, 40, 38, 0.16);
}

body.theme-minimalist_white .event-card-editorial,
body.theme-minimalist_white .gallery-thumb,
body.theme-minimalist_white .gift-card,
body.theme-minimalist_white .wish-item,
body.theme-minimalist_white .rsvp-stat-pill {
  border-radius: 4px;
  box-shadow: none;
  border-color: rgba(34, 40, 38, 0.16);
}

body.theme-minimalist_white .bottom-dock {
  background: rgba(28, 32, 30, 0.94);
  border-color: rgba(140, 122, 91, 0.6);
}

body.theme-minimalist_white .music-fab {
  background: #222826;
  border-color: rgba(140, 122, 91, 0.65);
}

/* 5. Botanical Serenity vs Romantic Floral vs Elegant Emerald */
body.theme-romantic_floral .portrait-arch {
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  padding: 5px;
  background: #FFFFFF;
  border: 1.5px solid #B87B82;
  box-shadow: 0 0 0 5px rgba(184, 123, 130, 0.14), 0 12px 24px rgba(46, 39, 41, 0.1);
}

body.theme-romantic_floral .portrait-arch img {
  border-radius: 999px;
}

body.theme-romantic_floral .countdown-tile {
  border-radius: 26px;
  border-color: rgba(184, 123, 130, 0.45);
}

body.theme-botanical_serenity .portrait-arch {
  border-radius: 82px 18px 82px 18px;
  border: 1.6px solid #3E5648;
}

body.theme-elegant_emerald .hero-arch-photo {
  border-radius: 28px 28px 180px 180px;
  border: 1.6px solid #C7A46A;
}

/* Additional Archetype Parity: Date Pills, Connectors, Quote Feature Boxes, Gift Cards & Narrow Screens */
body.theme-royal_nusantara .hero-date-pill,
body.theme-traditional_nusantara .hero-date-pill {
  background: rgba(70, 19, 27, 0.78);
  border-color: rgba(209, 169, 84, 0.85);
  color: #FAF8F2;
}

body.is-dark-theme .hero-date-pill,
body.theme-modern_luxury .hero-date-pill,
body.theme-midnight_royale .hero-date-pill,
body.theme-celestial_azure .hero-date-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 106, 0.68);
  color: #F8F5EE;
}

body.theme-royal_nusantara .event-heart-connector span,
body.theme-traditional_nusantara .event-heart-connector span {
  background: #46131B;
  border-color: rgba(209, 169, 84, 0.8);
}

body.is-dark-theme .quote-feature-box,
body.theme-modern_luxury .quote-feature-box,
body.theme-midnight_royale .quote-feature-box,
body.theme-celestial_azure .quote-feature-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(8px);
  color: #F8F5EE;
  border-color: rgba(212, 175, 106, 0.45);
}

body.theme-vintage_romance .quote-feature-box,
body.theme-classic_gold .quote-feature-box,
body.theme-terracotta_muse .quote-feature-box {
  background: linear-gradient(160deg, var(--surface), rgba(184, 147, 101, 0.14));
  color: var(--text);
  border-color: var(--accent);
}

body.theme-botanical_serenity .quote-feature-box,
body.theme-romantic_floral .quote-feature-box {
  background: linear-gradient(160deg, #EDF3EC, var(--surface));
  color: var(--text);
  border-color: var(--accent);
}

body.is-dark-theme .gift-address-card,
body.is-dark-theme .qris-box,
body.theme-modern_luxury .gift-address-card,
body.theme-midnight_royale .gift-address-card,
body.theme-celestial_azure .gift-address-card,
body.theme-modern_luxury .qris-box,
body.theme-midnight_royale .qris-box,
body.theme-celestial_azure .qris-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 106, 0.42);
  color: #F8F5EE;
}

body.theme-modern_luxury .gift-address-card .event-tag,
body.theme-midnight_royale .gift-address-card .event-tag,
body.theme-celestial_azure .gift-address-card .event-tag {
  color: var(--accent-ink);
}

@media (max-width: 380px) {
  .hero-wrapper {
    padding-top: 56px;
  }
  .music-fab {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .music-fab.docked-top {
    top: auto;
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    right: 8px;
  }
  .dock-btn {
    padding: 6px 8px;
    font-size: 10.5px;
  }
}

/* ================= LUXURY MOTION, AMBIENT ATMOSPHERE & EDITORIAL POLISH ================= */

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes eqBounce {
  from { transform: scaleY(0.45); opacity: 0.65; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes ambientDrift {
  0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.28; }
  50% { transform: translateY(-14px) translateX(6px) rotate(12deg); opacity: 0.72; }
}

@keyframes starTwinkle {
  0%, 100% { transform: scale(0.85); opacity: 0.24; }
  50% { transform: scale(1.22); opacity: 0.9; }
}

@keyframes coverRevealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sections-stack.cover-reveal-enter {
  animation: coverRevealUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-wrapper.is-opening {
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform: scale(0.985);
}

.ambient-hero-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  color: var(--accent-ink-hero);
}

.ambient-particle.kind-petal {
  animation: ambientDrift 5.8s ease-in-out infinite;
}

.ambient-particle.kind-star {
  animation: starTwinkle 3.8s ease-in-out infinite;
}

.ambient-particle.kind-spark {
  animation: starTwinkle 4.8s ease-in-out infinite;
}

/* Nusantara & Heirloom Double-Framed Luxury Cards */
body.theme-royal_nusantara .event-card-editorial,
body.theme-traditional_nusantara .event-card-editorial,
body.theme-classic_gold .event-card-editorial {
  box-shadow: inset 0 0 0 3px rgba(209, 169, 84, 0.14), 0 10px 24px rgba(0, 0, 0, 0.14);
}

body.theme-vintage_romance .timeline-item,
body.theme-vintage_romance .wish-item,
body.theme-classic_gold .timeline-item,
body.theme-classic_gold .wish-item {
  border-style: dashed;
}

body.theme-minimalist_white .section-kicker,
body.theme-minimalist_white .section-title,
body.theme-minimalist_white .section-subtitle {
  text-align: left;
}

body.theme-minimalist_white .ornament-divider {
  justify-content: flex-start;
  margin-left: 0;
}

/* Guestbook Toolbar, Filters & Timestamps */
.wishes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.wishes-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wish-filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.wish-filter-chip.active {
  background: var(--primary);
  color: #FAF8F2;
  border-color: var(--primary);
}

body.is-dark-theme .wish-filter-chip.active,
body.theme-modern_luxury .wish-filter-chip.active,
body.theme-midnight_royale .wish-filter-chip.active,
body.theme-celestial_azure .wish-filter-chip.active {
  background: var(--dock-active-bg);
  color: var(--dock-active-fg);
  border-color: var(--dock-active-bg);
}

.wish-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

body.is-dark-theme .wish-refresh-btn,
body.theme-modern_luxury .wish-refresh-btn,
body.theme-midnight_royale .wish-refresh-btn,
body.theme-celestial_azure .wish-refresh-btn {
  color: var(--accent-ink);
}

.wish-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-time {
  font-size: 10.5px;
  color: var(--muted);
}

/* Slug Fallback Editorial Card */
.fallback-card {
  width: 100%;
  max-width: 440px;
  padding: 26px 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1.4px solid var(--border);
  box-shadow: 0 18px 36px rgba(18, 61, 53, 0.1);
}

.fallback-slug-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.fallback-slug-form .field-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
}

/* Showcase Typography & Copy Demo Controls */
.showcase-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.showcase-font-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(244, 223, 180, 0.9);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* RSVP Wish Suggestions & Character Count */
.rsvp-wish-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rsvp-preset-chip {
  border: 1px solid var(--border);
  background: rgba(199, 164, 106, 0.12);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.rsvp-preset-chip:active {
  transform: scale(0.97);
}

body.is-dark-theme .rsvp-preset-chip,
body.theme-modern_luxury .rsvp-preset-chip,
body.theme-midnight_royale .rsvp-preset-chip,
body.theme-celestial_azure .rsvp-preset-chip {
  color: var(--accent-ink);
  background: rgba(212, 175, 106, 0.14);
}

.rsvp-char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: -4px 2px 0;
}

/* VIP Guest Pass / E-Ticket Modal & Trigger */
.guest-epass-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(199, 164, 106, 0.65);
  background: rgba(199, 164, 106, 0.16);
  color: inherit;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.eticket-modal-card {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--accent);
  padding: 18px;
  max-width: 400px;
}

.eticket-shell {
  border-radius: 18px;
  border: 1.2px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  text-align: center;
}

.eticket-header {
  padding: 16px 14px 12px;
  background: var(--eticket-header-bg);
  color: var(--eticket-header-fg);
  border-bottom: 1.5px dashed rgba(232, 207, 160, 0.55);
}

.eticket-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8CFA0;
}

.eticket-couple {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.eticket-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eticket-qr-frame {
  padding: 10px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.2px solid var(--border);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.eticket-qr-frame svg {
  display: block;
}

.eticket-guest-name {
  margin: 2px 0 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

body.is-dark-theme .eticket-guest-name,
body.theme-modern_luxury .eticket-guest-name,
body.theme-midnight_royale .eticket-guest-name,
body.theme-celestial_azure .eticket-guest-name {
  color: var(--accent-ink);
}

.eticket-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.eticket-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(199, 164, 106, 0.18);
  border: 1px solid rgba(199, 164, 106, 0.52);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--primary);
}

body.is-dark-theme .eticket-code-badge,
body.theme-modern_luxury .eticket-code-badge,
body.theme-midnight_royale .eticket-code-badge,
body.theme-celestial_azure .eticket-code-badge {
  color: var(--accent-ink);
}

/* Nocturnal Foil Sheen on Gift Cards */
body.theme-modern_luxury .gift-card::before,
body.theme-midnight_royale .gift-card::before,
body.theme-celestial_azure .gift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(232, 207, 160, 0.11) 48%, transparent 72%);
  pointer-events: none;
}

/* Nusantara Corner Ornament Accent on Quote Box */
body.theme-royal_nusantara .quote-feature-box,
body.theme-traditional_nusantara .quote-feature-box {
  box-shadow: inset 0 0 0 4px rgba(209, 169, 84, 0.2), 0 12px 26px rgba(40, 11, 16, 0.2);
}

/* Luxury Reading Progress Hairline */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #F3DFB4);
  z-index: 95;
  pointer-events: none;
  transition: width 0.12s linear;
  box-shadow: 0 0 8px rgba(199, 164, 106, 0.45);
}

/* E-Ticket Perforated Notches & Actions */
.eticket-header {
  position: relative;
}

.eticket-header::before,
.eticket-header::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.2px solid var(--border);
  z-index: 2;
}

.eticket-header::before {
  left: -10px;
}

.eticket-header::after {
  right: -10px;
}

.eticket-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.eticket-action-btn {
  padding: 7px 12px;
  font-size: 11.5px;
}

.eticket-action-primary {
  flex: 1 1 100%;
  padding: 9px 14px;
  font-size: 12px;
}

/* Bottom Dock Back-to-Top Pill */
.dock-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 207, 160, 0.45);
  background: rgba(232, 207, 160, 0.16);
  color: #E8CFA0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Subtle Attending Highlight in Guestbook */
.wish-item.is-attending-wish {
  border-left: 3px solid var(--accent);
}

/* Fallback Quick Template Launch Strip */
.fallback-quick-label {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.fallback-quick-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fallback-tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ================= PHASE 4 TEMPLATES (T14 - T23) ================= */

/* T14 Royal Emerald & T16 Midnight Gold (Dark Editorial Luxury) */
body.theme-t14_royal_emerald .hero-arch-photo,
body.theme-t16_midnight_gold .hero-arch-photo {
  border-radius: 22px;
  border: 1.8px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 175, 106, 0.16), 0 22px 44px rgba(0, 0, 0, 0.56);
}

body.theme-t14_royal_emerald .portrait-arch,
body.theme-t16_midnight_gold .portrait-arch {
  border-radius: 18px;
  border: 1.6px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
}

body.theme-t14_royal_emerald .countdown-tile,
body.theme-t16_midnight_gold .countdown-tile,
body.theme-t20_royal_maroon .countdown-tile,
body.theme-t22_javanese_heritage .countdown-tile {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 106, 0.5);
}

body.theme-t14_royal_emerald .countdown-num,
body.theme-t16_midnight_gold .countdown-num,
body.theme-t20_royal_maroon .countdown-num,
body.theme-t22_javanese_heritage .countdown-num {
  color: var(--band-feature-title);
}

body.theme-t14_royal_emerald .event-card-editorial,
body.theme-t14_royal_emerald .gift-card,
body.theme-t14_royal_emerald .wish-item,
body.theme-t14_royal_emerald .timeline-item,
body.theme-t16_midnight_gold .event-card-editorial,
body.theme-t16_midnight_gold .gift-card,
body.theme-t16_midnight_gold .wish-item,
body.theme-t16_midnight_gold .timeline-item,
body.theme-t20_royal_maroon .event-card-editorial,
body.theme-t20_royal_maroon .gift-card,
body.theme-t20_royal_maroon .wish-item,
body.theme-t20_royal_maroon .timeline-item,
body.theme-t22_javanese_heritage .event-card-editorial,
body.theme-t22_javanese_heritage .gift-card,
body.theme-t22_javanese_heritage .wish-item,
body.theme-t22_javanese_heritage .timeline-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(212, 175, 106, 0.05));
  border-color: rgba(212, 175, 106, 0.42);
}

body.theme-t14_royal_emerald .rsvp-confirmation-note,
body.theme-t16_midnight_gold .rsvp-confirmation-note,
body.theme-t20_royal_maroon .rsvp-confirmation-note,
body.theme-t22_javanese_heritage .rsvp-confirmation-note {
  background: rgba(212, 175, 106, 0.16);
  border-color: rgba(212, 175, 106, 0.52);
  color: #FAF6ED;
}

body.theme-t14_royal_emerald .quote-feature-box,
body.theme-t16_midnight_gold .quote-feature-box,
body.theme-t20_royal_maroon .quote-feature-box,
body.theme-t22_javanese_heritage .quote-feature-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #FAF6ED;
  border-color: rgba(212, 175, 106, 0.48);
}

body.theme-t14_royal_emerald .field-input,
body.theme-t14_royal_emerald .field-select,
body.theme-t14_royal_emerald .field-textarea,
body.theme-t16_midnight_gold .field-input,
body.theme-t16_midnight_gold .field-select,
body.theme-t16_midnight_gold .field-textarea,
body.theme-t20_royal_maroon .field-input,
body.theme-t20_royal_maroon .field-select,
body.theme-t20_royal_maroon .field-textarea,
body.theme-t22_javanese_heritage .field-input,
body.theme-t22_javanese_heritage .field-select,
body.theme-t22_javanese_heritage .field-textarea {
  background: rgba(255, 255, 255, 0.09);
  color: #FAF6ED;
  border-color: rgba(212, 175, 106, 0.44);
}

/* T15 Ivory Romance & T23 Champagne Sunset */
body.theme-t15_ivory_romance .hero-arch-photo,
body.theme-t23_champagne_sunset .hero-arch-photo {
  border-radius: 18px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 34px rgba(54, 33, 26, 0.2);
}

body.theme-t15_ivory_romance .portrait-arch,
body.theme-t23_champagne_sunset .portrait-arch {
  border-radius: 14px;
  padding: 5px;
  background: var(--surface);
  border: 1.5px solid var(--accent);
}

body.theme-t23_champagne_sunset .bottom-dock {
  background: rgba(128, 63, 44, 0.94);
  border-color: rgba(214, 167, 110, 0.72);
}

/* T17 Sakura Blossom & T19 Rustic Garden */
body.theme-t17_sakura_blossom .portrait-arch {
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  padding: 5px;
  background: #FFFFFF;
  border: 1.8px solid #D98C9B;
  box-shadow: 0 0 0 5px rgba(217, 140, 155, 0.16);
}

body.theme-t17_sakura_blossom .portrait-arch img {
  border-radius: 999px;
}

body.theme-t17_sakura_blossom .bottom-dock {
  background: rgba(125, 55, 70, 0.94);
  border-color: rgba(217, 140, 155, 0.7);
}

body.theme-t19_rustic_garden .portrait-arch {
  border-radius: 82px 18px 82px 18px;
  border: 1.6px solid #4E6249;
}

/* T18 Modern Minimal Luxe & T21 Ocean Serenity */
body.theme-t18_modern_minimal_luxe .hero-arch-photo,
body.theme-t18_modern_minimal_luxe .portrait-arch,
body.theme-t18_modern_minimal_luxe .countdown-tile,
body.theme-t18_modern_minimal_luxe .event-card-editorial,
body.theme-t18_modern_minimal_luxe .gift-card {
  border-radius: 4px;
  box-shadow: none;
  border-color: rgba(30, 32, 34, 0.2);
}

body.theme-t18_modern_minimal_luxe .bottom-dock {
  background: rgba(30, 32, 34, 0.95);
  border-color: rgba(168, 139, 90, 0.65);
}

body.theme-t21_ocean_serenity .hero-arch-photo {
  border-radius: 120px 120px 18px 18px;
  border: 1.8px solid #6BA3BE;
}

body.theme-t21_ocean_serenity .portrait-arch {
  border-radius: 76px 20px 76px 20px;
  border: 1.6px solid #1D4F73;
}

body.theme-t21_ocean_serenity .bottom-dock {
  background: rgba(27, 68, 99, 0.94);
  border-color: rgba(107, 163, 190, 0.72);
}

/* T20 Royal Maroon & T22 Javanese Heritage */
body.theme-t20_royal_maroon .hero-arch-photo,
body.theme-t22_javanese_heritage .hero-arch-photo {
  border-radius: 30px 30px 10px 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 168, 83, 0.22), 0 18px 36px rgba(0, 0, 0, 0.45);
}

body.theme-t20_royal_maroon .portrait-arch,
body.theme-t22_javanese_heritage .portrait-arch {
  border-radius: 24px 24px 8px 8px;
  border: 2px solid var(--accent);
}

body.theme-t20_royal_maroon .bottom-dock {
  background: rgba(61, 14, 24, 0.95);
  border-color: rgba(224, 186, 115, 0.68);
}

body.theme-t22_javanese_heritage .bottom-dock {
  background: rgba(40, 25, 16, 0.95);
  border-color: rgba(212, 168, 83, 0.7);
}

/* T24-T30 Traditional Indonesian Regional Templates (Jawa, Sunda, Betawi, Batak, Minang, Bugis, Bali) */
body.theme-trad_jawa_mataram .hero-wrapper,
body.theme-trad_sunda_siger .hero-wrapper,
body.theme-trad_betawi_kembang .hero-wrapper {
  color: var(--text);
}

body.theme-trad_jawa_mataram .hero-wrapper {
  background: linear-gradient(180deg, #F6EBD5 0%, #F9F2E4 100%);
}
body.theme-trad_jawa_mataram .hero-scrim {
  background: linear-gradient(180deg, rgba(249, 242, 228, 0.08) 0%, rgba(249, 242, 228, 0.48) 50%, #F9F2E4 80%);
}
body.theme-trad_jawa_mataram .band-emerald,
body.theme-trad_jawa_mataram .band-emerald-alt {
  background: linear-gradient(165deg, #3B2012 0%, #211109 100%);
}
body.theme-trad_jawa_mataram .bottom-dock,
body.theme-trad_jawa_mataram .music-fab {
  background: rgba(40, 25, 16, 0.95);
  border-color: rgba(200, 155, 60, 0.72);
}

body.theme-trad_sunda_siger .hero-wrapper {
  background: linear-gradient(180deg, #E7F0EA 0%, #FAF7EE 100%);
}
body.theme-trad_sunda_siger .hero-scrim {
  background: linear-gradient(180deg, rgba(250, 247, 238, 0.08) 0%, rgba(250, 247, 238, 0.48) 50%, #FAF7EE 80%);
}
body.theme-trad_sunda_siger .hero-arch-photo {
  border-radius: 132px 132px 20px 20px;
  border: 1.6px solid #C9A24D;
}
body.theme-trad_sunda_siger .band-emerald,
body.theme-trad_sunda_siger .band-emerald-alt {
  background: linear-gradient(165deg, #194737 0%, #103125 100%);
}
body.theme-trad_sunda_siger .portrait-keraton-crown {
  background: #1C4E3D;
  border-color: #C9A24D;
}
body.theme-trad_sunda_siger .bottom-dock,
body.theme-trad_sunda_siger .music-fab {
  background: rgba(22, 61, 47, 0.94);
  border-color: rgba(201, 162, 77, 0.72);
}

body.theme-trad_betawi_kembang .hero-wrapper {
  background: linear-gradient(180deg, #FBEBD6 0%, #FDF6EA 100%);
}
body.theme-trad_betawi_kembang .hero-scrim {
  background: linear-gradient(180deg, rgba(253, 246, 234, 0.08) 0%, rgba(253, 246, 234, 0.48) 50%, #FDF6EA 80%);
}
body.theme-trad_betawi_kembang .band-emerald,
body.theme-trad_betawi_kembang .band-emerald-alt {
  background: linear-gradient(165deg, #841928 0%, #530E18 100%);
}
body.theme-trad_betawi_kembang .portrait-keraton-crown {
  background: #8F1D2C;
  border-color: #D99B26;
}
body.theme-trad_betawi_kembang .bottom-dock,
body.theme-trad_betawi_kembang .music-fab {
  background: rgba(122, 23, 37, 0.95);
  border-color: rgba(217, 155, 38, 0.78);
}

body.theme-trad_batak_ulos .hero-wrapper {
  background: linear-gradient(180deg, #100E10 0%, #161416 60%, #281719 100%);
}
body.theme-trad_batak_ulos .hero-scrim {
  background: linear-gradient(180deg, rgba(16, 14, 16, 0.14) 0%, rgba(22, 20, 22, 0.56) 50%, #161416 80%);
}
body.theme-trad_batak_ulos .band-emerald,
body.theme-trad_batak_ulos .band-emerald-alt {
  background: linear-gradient(165deg, #231719 0%, #140D0E 100%);
}
body.theme-trad_batak_ulos .portrait-keraton-crown {
  background: #261B1D;
  border-color: #E0B866;
}
body.theme-trad_batak_ulos .bottom-dock,
body.theme-trad_batak_ulos .music-fab {
  background: rgba(31, 22, 23, 0.95);
  border-color: rgba(224, 184, 102, 0.72);
}

body.theme-trad_minang_suntiang .hero-wrapper {
  background: linear-gradient(180deg, #13070A 0%, #1A0B0F 60%, #33111B 100%);
}
body.theme-trad_minang_suntiang .hero-scrim {
  background: linear-gradient(180deg, rgba(19, 7, 10, 0.14) 0%, rgba(26, 11, 15, 0.56) 50%, #1A0B0F 80%);
}
body.theme-trad_minang_suntiang .band-emerald,
body.theme-trad_minang_suntiang .band-emerald-alt {
  background: linear-gradient(165deg, #3A101C 0%, #1E080E 100%);
}
body.theme-trad_minang_suntiang .portrait-keraton-crown {
  background: #2D1119;
  border-color: #E4BD62;
}
body.theme-trad_minang_suntiang .bottom-dock,
body.theme-trad_minang_suntiang .music-fab {
  background: rgba(45, 17, 25, 0.95);
  border-color: rgba(228, 189, 98, 0.76);
}

body.theme-trad_bugis_lontara .hero-wrapper {
  background: linear-gradient(180deg, #0C1528 0%, #121E36 60%, #1E3259 100%);
}
body.theme-trad_bugis_lontara .hero-scrim {
  background: linear-gradient(180deg, rgba(12, 21, 40, 0.14) 0%, rgba(18, 30, 54, 0.56) 50%, #121E36 80%);
}
body.theme-trad_bugis_lontara .band-emerald,
body.theme-trad_bugis_lontara .band-emerald-alt {
  background: linear-gradient(165deg, #1B2E52 0%, #0F1B32 100%);
}
body.theme-trad_bugis_lontara .portrait-keraton-crown {
  background: #1B2C4D;
  border-color: #DEB45A;
}
body.theme-trad_bugis_lontara .bottom-dock,
body.theme-trad_bugis_lontara .music-fab {
  background: rgba(21, 37, 68, 0.95);
  border-color: rgba(222, 180, 90, 0.76);
}

body.theme-trad_bali_payasagung .hero-wrapper {
  background: linear-gradient(180deg, #150F0D 0%, #1D1513 60%, #33211C 100%);
}
body.theme-trad_bali_payasagung .hero-scrim {
  background: linear-gradient(180deg, rgba(21, 15, 13, 0.14) 0%, rgba(29, 21, 19, 0.56) 50%, #1D1513 80%);
}
body.theme-trad_bali_payasagung .band-emerald,
body.theme-trad_bali_payasagung .band-emerald-alt {
  background: linear-gradient(165deg, #33211A 0%, #1D130F 100%);
}
body.theme-trad_bali_payasagung .portrait-keraton-crown {
  background: #2D201C;
  border-color: #D8A844;
}
body.theme-trad_bali_payasagung .bottom-dock,
body.theme-trad_bali_payasagung .music-fab {
  background: rgba(43, 28, 23, 0.95);
  border-color: rgba(216, 168, 68, 0.76);
}

body.theme-trad_jawa_mataram .hero-arch-photo,
body.theme-trad_betawi_kembang .hero-arch-photo,
body.theme-trad_batak_ulos .hero-arch-photo,
body.theme-trad_minang_suntiang .hero-arch-photo,
body.theme-trad_bugis_lontara .hero-arch-photo,
body.theme-trad_bali_payasagung .hero-arch-photo {
  border-radius: 30px 30px 10px 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(212, 168, 83, 0.2), 0 18px 36px rgba(0, 0, 0, 0.36);
}

body.theme-trad_jawa_mataram .portrait-arch,
body.theme-trad_betawi_kembang .portrait-arch,
body.theme-trad_batak_ulos .portrait-arch,
body.theme-trad_minang_suntiang .portrait-arch,
body.theme-trad_bugis_lontara .portrait-arch,
body.theme-trad_bali_payasagung .portrait-arch {
  border-radius: 24px 24px 8px 8px;
  border: 2px solid var(--accent);
}

body.theme-trad_batak_ulos .countdown-tile,
body.theme-trad_minang_suntiang .countdown-tile,
body.theme-trad_bugis_lontara .countdown-tile,
body.theme-trad_bali_payasagung .countdown-tile {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(224, 184, 102, 0.5);
}

body.theme-trad_batak_ulos .countdown-num,
body.theme-trad_minang_suntiang .countdown-num,
body.theme-trad_bugis_lontara .countdown-num,
body.theme-trad_bali_payasagung .countdown-num {
  color: var(--band-feature-title);
}

body.theme-trad_batak_ulos .event-card-editorial,
body.theme-trad_batak_ulos .gift-card,
body.theme-trad_batak_ulos .wish-item,
body.theme-trad_batak_ulos .timeline-item,
body.theme-trad_minang_suntiang .event-card-editorial,
body.theme-trad_minang_suntiang .gift-card,
body.theme-trad_minang_suntiang .wish-item,
body.theme-trad_minang_suntiang .timeline-item,
body.theme-trad_bugis_lontara .event-card-editorial,
body.theme-trad_bugis_lontara .gift-card,
body.theme-trad_bugis_lontara .wish-item,
body.theme-trad_bugis_lontara .timeline-item,
body.theme-trad_bali_payasagung .event-card-editorial,
body.theme-trad_bali_payasagung .gift-card,
body.theme-trad_bali_payasagung .wish-item,
body.theme-trad_bali_payasagung .timeline-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(224, 184, 102, 0.06));
  border-color: rgba(224, 184, 102, 0.45);
}

body.theme-trad_batak_ulos .quote-feature-box,
body.theme-trad_minang_suntiang .quote-feature-box,
body.theme-trad_bugis_lontara .quote-feature-box,
body.theme-trad_bali_payasagung .quote-feature-box {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #FAF6ED;
  border-color: rgba(224, 184, 102, 0.5);
}

body.theme-trad_batak_ulos .rsvp-confirmation-note,
body.theme-trad_minang_suntiang .rsvp-confirmation-note,
body.theme-trad_bugis_lontara .rsvp-confirmation-note,
body.theme-trad_bali_payasagung .rsvp-confirmation-note {
  background: rgba(224, 184, 102, 0.16);
  border-color: rgba(224, 184, 102, 0.52);
  color: #FAF6ED;
}

body.theme-trad_batak_ulos .field-input,
body.theme-trad_batak_ulos .field-select,
body.theme-trad_batak_ulos .field-textarea,
body.theme-trad_minang_suntiang .field-input,
body.theme-trad_minang_suntiang .field-select,
body.theme-trad_minang_suntiang .field-textarea,
body.theme-trad_bugis_lontara .field-input,
body.theme-trad_bugis_lontara .field-select,
body.theme-trad_bugis_lontara .field-textarea,
body.theme-trad_bali_payasagung .field-input,
body.theme-trad_bali_payasagung .field-select,
body.theme-trad_bali_payasagung .field-textarea {
  background: rgba(255, 255, 255, 0.09);
  color: #FAF6ED;
  border-color: rgba(224, 184, 102, 0.44);
}

/* ================= GLOBAL RTL (ARABIC) LAYOUT SUPPORT ================= */
[dir="rtl"] .event-card-body,
[dir="rtl"] .gallery-caption-chip {
  text-align: right;
}

[dir="rtl"] .timeline-list {
  border-left: none;
  border-right: 2px solid var(--accent);
  padding-left: 0;
  padding-right: 18px;
}

[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -25px;
}

[dir="rtl"] .wish-item.is-attending-wish {
  border-left: 1px solid var(--border);
  border-right: 3px solid var(--accent);
}

[dir="rtl"] .modal-counter {
  padding-left: 0;
  padding-right: 6px;
}

[dir="rtl"] .music-fab {
  right: auto;
  left: 12px;
}

[dir="rtl"] .music-fab.docked-top {
  right: auto;
  left: 12px;
}

[dir="rtl"] body.theme-minimalist_white .section-kicker,
[dir="rtl"] body.theme-minimalist_white .section-title,
[dir="rtl"] body.theme-minimalist_white .section-subtitle {
  text-align: right;
}

[dir="rtl"] body.theme-minimalist_white .ornament-divider {
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .reading-progress-bar {
  left: auto;
  right: 0;
}
