/* ==========================================================================
   Wedding Invitation Frontend — Ridwan & Rofi
   Isolated in /frontend (Video Entrance/Transition + Cream Parchment Storybook)
   ========================================================================== */

@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-normal.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --night-bg: #050c17;
  --navy-btn: #162a45;
  --navy-btn-hover: #1f395c;
  --gold-light: #f5e4c0;
  --gold-accent: #9e7b36;
  --gold-border: rgba(158, 123, 54, 0.42);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --parchment-bg: #f6f0e2;
  --parchment-card: #fbf8f0;
  --parchment-input: #fffdf8;
  --ink-dark: #221c15;
  --ink-body: #463d31;
  --ink-muted: #6e6250;
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  background-color: var(--night-bg);
  color: var(--ink-dark);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

body:not(.invitation-unlocked) {
  height: 100dvh;
  overflow: hidden;
  user-select: none;
}

body.invitation-unlocked {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background-color: #1c150e;
}

/* ==========================================================================
   Panel 1: Loading Screen
   ========================================================================== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #0b1f3a 0%, #050c17 75%);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-moon {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  filter: invert(85%) sepia(23%) saturate(565%) hue-rotate(346deg) brightness(96%)
    drop-shadow(0 0 18px rgba(230, 201, 149, 0.5));
  animation: moon-breathe 2.4s ease-in-out infinite;
}

.loader-title {
  margin: 0 0 8px;
  font: italic 500 clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem)/1.25 var(--serif);
  color: var(--gold-light);
}

.loader-subtitle {
  margin: 0 0 18px;
  font: 400 0.95rem/1.4 var(--serif);
  color: #cbbba0;
  letter-spacing: 0.06em;
}

.loader-track {
  width: min(220px, 70vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(217, 187, 131, 0.22);
  overflow: hidden;
}

.loader-bar {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #9e7b36, #f5e4c0, #d4af37);
  box-shadow: 0 0 12px rgba(245, 228, 192, 0.8);
  transition: width 0.25s ease-out;
}

.loader-percent {
  margin-top: 10px;
  font: 500 0.88rem/1 var(--serif);
  letter-spacing: 0.12em;
  color: #d9bb83;
}

/* ==========================================================================
   Panel 2 & 3: Full-Viewport Video Stage
   ========================================================================== */
.video-stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100dvh;
  background-color: var(--night-bg);
  overflow: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.video-stage.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.stage-video.is-active {
  opacity: 1;
  z-index: 2;
}

/* ==========================================================================
   Entrance UI Overlay ("Buka Undangan" Button)
   ========================================================================== */
.entrance-ui {
  position: fixed;
  top: 54.5dvh;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.entrance-ui.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(-50% + 14px));
  pointer-events: none;
}

.btn-open-invitation {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 40px;
  border-radius: 999px;
  border: 1.5px solid rgba(217, 187, 131, 0.85);
  background: rgba(7, 22, 43, 0.84);
  box-shadow:
    0 0 28px var(--gold-glow),
    inset 0 0 0 3px rgba(215, 184, 126, 0.12);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font: 500 clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem)/1 var(--serif);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.btn-open-invitation:hover {
  transform: translateY(-2px);
  border-color: #f7e6c4;
  background: rgba(14, 36, 68, 0.92);
  box-shadow:
    0 0 36px rgba(212, 175, 55, 0.55),
    inset 0 0 0 3px rgba(215, 184, 126, 0.22);
}

.btn-open-invitation:focus-visible {
  outline: 2px solid #f7e6c4;
  outline-offset: 4px;
}

.btn-open-invitation .btn-icon {
  width: 22px;
  height: 22px;
  filter: invert(85%) sepia(23%) saturate(565%) hue-rotate(346deg) brightness(96%);
}

@media (max-width: 768px), (orientation: portrait) {
  .btn-open-invitation {
    gap: 10px;
    padding: 9px 22px;
    font-size: 0.98rem;
  }

  .btn-open-invitation .btn-icon {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   Panel 4: Cream Parchment Storybook Content
   ========================================================================== */
.parchment-main {
  position: relative;
  z-index: 20;
  min-height: 100dvh;
  width: 100%;
  opacity: 0;
  transition: opacity 0.85s ease;
  background:
    radial-gradient(circle at 50% 20%, #faf5ea 0%, #f4ecda 65%, #e9dec6 100%);
}

.parchment-main.is-active {
  opacity: 1;
}

.parchment-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 20%, #faf5ea 0%, #f4ecda 65%, #e9dec6 100%);
  color: var(--ink-dark);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
  opacity: 0;
}

.parchment-main.is-active .parchment-sheet {
  opacity: 1;
  animation: parchment-bloom 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes parchment-bloom {
  from {
    opacity: 0;
    transform: scale(0.92);
    clip-path: circle(8% at 50% 48%);
  }
  to {
    opacity: 1;
    transform: scale(1);
    clip-path: circle(150% at 50% 48%);
  }
}

.sheet-inner-frame {
  position: relative;
  border: 1.25px solid rgba(158, 123, 54, 0.55);
  padding: 26px 20px 36px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.55) 0%, rgba(246, 239, 224, 0.35) 100%);
  opacity: 0;
}

.parchment-main.is-active .sheet-inner-frame {
  opacity: 1;
  animation: inner-frame-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards;
}

@keyframes inner-frame-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-inner-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(158, 123, 54, 0.28);
  pointer-events: none;
}

.corner-ornament {
  position: absolute;
  font-size: 13px;
  line-height: 1;
  color: var(--gold-accent);
  pointer-events: none;
}

.corner-ornament.tl { top: 8px; left: 9px; }
.corner-ornament.tr { top: 8px; right: 9px; }
.corner-ornament.bl { bottom: 8px; left: 9px; }
.corner-ornament.br { bottom: 8px; right: 9px; }

.sheet-section {
  position: relative;
  padding: 28px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(158, 123, 54, 0.22);
}

.sheet-section:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

/* Section Typography & Dividers */
.top-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(210px, 70%);
  margin: 0 auto 20px;
  color: var(--gold-accent);
}

.top-divider::before,
.top-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

.section-title {
  margin: 0 0 6px;
  font: 600 clamp(1.7rem, 1.35rem + 1.4vw, 2.2rem)/1.15 var(--serif);
  color: var(--ink-dark);
}

.subtitle-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(240px, 78%);
  margin: 4px auto 18px;
}

.subtitle-divider::before,
.subtitle-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(158, 123, 54, 0.6), transparent);
}

.subtitle-divider span {
  font: italic 600 1.02rem/1.2 var(--serif);
  color: var(--gold-accent);
}

.section-copy {
  margin: 0 auto;
  font: 400 0.88rem/1.65 var(--serif);
  color: var(--ink-body);
  max-width: 44ch;
}

/* Save The Date & Countdown */
.hero-section {
  padding-top: 12px;
  padding-bottom: 34px;
}

.hero-kicker {
  margin: 0 0 6px;
  font: italic 500 1.25rem/1.3 var(--serif);
  color: var(--ink-body);
}

.hero-names {
  margin: 6px 0 10px;
  font: italic 600 clamp(2.35rem, 1.8rem + 2.4vw, 3.15rem)/1.08 var(--serif);
  color: var(--ink-dark);
  outline: none;
}

.hero-names span {
  font-weight: 400;
  color: var(--gold-accent);
}

.hero-date {
  margin: 0 0 22px;
  font: 500 1.02rem/1.4 var(--serif);
  color: var(--ink-body);
  letter-spacing: 0.03em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 0 auto;
}

.countdown-card {
  position: relative;
  padding: 13px 6px 10px;
  background: var(--parchment-card);
  border: 1px solid rgba(158, 123, 54, 0.45);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px var(--parchment-card),
    inset 0 0 0 4px rgba(158, 123, 54, 0.16),
    0 4px 12px rgba(58, 50, 38, 0.06);
}

.countdown-card strong {
  display: block;
  font: 600 clamp(1.55rem, 1.2rem + 1.2vw, 1.95rem)/1 var(--serif);
  color: var(--ink-dark);
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown-card span {
  display: block;
  margin-top: 6px;
  font: 500 0.78rem/1.2 var(--serif);
  color: var(--ink-muted);
}

/* Our Prayer */
.prayer-quote {
  margin: 0 auto 14px;
  font: italic 500 0.98rem/1.68 var(--serif);
  color: var(--ink-body);
  max-width: 44ch;
}

.verse-source {
  margin: 0;
  font: 600 0.85rem/1.4 var(--serif);
  color: var(--ink-dark);
}

/* Couple Profiles */
.arabic-bismillah {
  margin: 0 0 10px;
  font: 1.65rem/1.7 'Traditional Arabic', var(--serif);
  color: var(--ink-dark);
}

.salam-heading {
  margin: 0 0 10px;
  font: italic 600 1.1rem/1.35 var(--serif);
  color: var(--ink-dark);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 22px;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-frame {
  width: 100%;
  max-width: 146px;
  padding: 3px;
  margin-bottom: 12px;
  border: 1.5px solid rgba(158, 123, 54, 0.75);
  background: var(--parchment-card);
  box-shadow: 0 8px 20px rgba(34, 28, 21, 0.12);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.person-role {
  margin: 0 0 6px;
  font: italic 600 0.78rem/1.2 var(--serif);
  color: var(--gold-accent);
}

.person-name {
  margin: 0 0 8px;
  font: 600 1.32rem/1.15 var(--serif);
  color: var(--ink-dark);
}

.person-parents {
  margin: 0;
  font: 400 0.78rem/1.45 var(--serif);
  color: var(--ink-body);
}

.couple-ampersand {
  font: italic 500 1.9rem/1 var(--serif);
  color: var(--gold-accent);
  align-self: center;
  padding-top: 12px;
}

/* Our Journey */
.journey-quote {
  margin: 0 auto 10px;
  font: italic 500 0.96rem/1.62 var(--serif);
  color: var(--ink-body);
  max-width: 42ch;
}

.quote-author {
  margin: 0 0 24px;
  font: 600 0.76rem/1.2 var(--serif);
  letter-spacing: 0.14em;
  color: var(--gold-accent);
}

.timeline-track {
  position: relative;
  text-align: left;
  margin: 0 auto;
  padding-left: 8px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: -22px;
  left: 19px;
  width: 1px;
  background: rgba(158, 123, 54, 0.42);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-bullet {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--parchment-card);
  border: 1.25px solid rgba(158, 123, 54, 0.72);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(158, 123, 54, 0.14);
}

.timeline-bullet img {
  width: 18px;
  height: 18px;
  filter: invert(45%) sepia(36%) saturate(620%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.timeline-heading {
  margin: 0 0 2px;
  font: 600 1.22rem/1.2 var(--serif);
  color: var(--ink-dark);
}

.timeline-sub {
  margin: 0 0 6px;
  font: italic 600 0.88rem/1.3 var(--serif);
  color: var(--gold-accent);
}

.timeline-text {
  margin: 0;
  font: 400 0.84rem/1.55 var(--serif);
  color: var(--ink-body);
}

/* Event Details */
.event-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(158, 123, 54, 0.2);
  font: 600 1.08rem/1.3 var(--serif);
  color: var(--ink-dark);
}

.event-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: invert(45%) sepia(36%) saturate(620%) hue-rotate(4deg) brightness(88%) contrast(90%);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  padding: 0 6px;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-kicker {
  margin: 0;
  font: italic 600 0.84rem/1.2 var(--serif);
  color: var(--gold-accent);
}

.event-item h3 {
  margin: 2px 0 4px;
  font: 600 1.22rem/1.2 var(--serif);
  color: var(--ink-dark);
}

.event-time,
.event-address {
  margin: 0;
  font: 400 0.86rem/1.5 var(--serif);
  color: var(--ink-body);
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 4px;
  font: 600 0.85rem/1.2 var(--serif);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-action:hover {
  transform: translateY(-1.5px);
}

.btn-action:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-action img {
  width: 15px;
  height: 15px;
  transition: filter 0.25s ease;
}

.btn-navy {
  background: var(--navy-btn);
  border: 1px solid var(--navy-btn);
  color: #f7f1e3;
}

.btn-navy:hover {
  background: #f3ead4;
  border-color: var(--gold-accent);
  color: var(--ink-dark);
  box-shadow: 0 6px 14px rgba(158, 123, 54, 0.16);
}

.btn-navy img {
  filter: invert(95%) sepia(15%) saturate(300%) hue-rotate(330deg) brightness(102%);
}

.btn-navy:hover img {
  filter: invert(25%) sepia(20%) saturate(450%) hue-rotate(5deg) brightness(92%);
}

.btn-outline {
  background: var(--parchment-card);
  border: 1px solid rgba(158, 123, 54, 0.65);
  color: var(--ink-dark);
}

.btn-outline:hover {
  background: #f3ead4;
  border-color: var(--gold-accent);
  box-shadow: 0 6px 14px rgba(158, 123, 54, 0.16);
}

.btn-outline img {
  filter: invert(25%) sepia(20%) saturate(450%) hue-rotate(5deg) brightness(92%);
}

/* RSVP Form */
.rsvp-form {
  text-align: left;
  margin-top: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font: 600 0.88rem/1.3 var(--serif);
  color: var(--ink-dark);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid rgba(158, 123, 54, 0.48);
  background: var(--parchment-input);
  color: var(--ink-dark);
  font: 400 0.92rem/1.4 var(--serif);
}

.form-control::placeholder {
  font-style: italic;
  color: #9c8e78;
}

.form-control:focus-visible {
  outline: 2px solid var(--navy-btn);
  outline-offset: 1px;
}

.attendance-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 0;
}

.radio-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 0.88rem/1.2 var(--serif);
  color: var(--ink-dark);
  cursor: pointer;
}

.radio-choice input[type="radio"] {
  accent-color: var(--navy-btn);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.btn-submit-navy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 5px;
  border: 1px solid var(--navy-btn);
  background: var(--navy-btn);
  color: #f7f1e3;
  font: 600 0.96rem/1.2 var(--serif);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit-navy:hover {
  background: #f3ead4;
  border-color: var(--gold-accent);
  color: var(--ink-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(158, 123, 54, 0.16);
}

.btn-submit-navy:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-submit-navy img {
  width: 16px;
  height: 16px;
  filter: invert(95%) sepia(15%) saturate(300%) hue-rotate(330deg) brightness(102%);
  transition: filter 0.25s ease;
}

.btn-submit-navy:hover img {
  filter: invert(25%) sepia(20%) saturate(450%) hue-rotate(5deg) brightness(92%);
}

/* Wishes Feed & Pagination */
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  text-align: left;
}

.wish-card {
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--parchment-card);
  border: 1px solid rgba(158, 123, 54, 0.35);
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-author {
  font: 700 0.9rem/1.3 var(--serif);
  color: var(--ink-dark);
}

.wish-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(158, 123, 54, 0.45);
  background: #f4ecda;
  font: 600 0.72rem/1.3 var(--sans);
  color: var(--gold-accent);
}

.wish-message {
  margin: 0;
  font: 400 0.85rem/1.55 var(--serif);
  color: var(--ink-body);
  white-space: pre-line;
}

.wishes-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(158, 123, 54, 0.45);
  background: var(--parchment-card);
  color: var(--ink-dark);
  font: 600 0.8rem/1 var(--serif);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #f3ead4;
  border-color: var(--gold-accent);
}

.page-btn.active {
  background: var(--navy-btn);
  border-color: var(--navy-btn);
  color: #f7f1e3;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.preview-note {
  margin: 10px 0 0;
  font: italic 400 0.78rem/1.4 var(--serif);
  color: var(--ink-muted);
}

/* Wedding Gift */
.gift-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.gift-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 5px;
  background: var(--parchment-card);
  border: 1px solid rgba(158, 123, 54, 0.45);
  text-align: left;
}

.bank-name {
  font: 700 0.72rem/1.3 var(--sans);
  letter-spacing: 0.05em;
  color: var(--ink-dark);
}

.bank-number {
  margin: 2px 0;
  font: 700 1.05rem/1.2 var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-dark);
}

.bank-holder {
  font: 400 0.8rem/1.3 var(--serif);
  color: var(--ink-muted);
}

.btn-copy,
.btn-download-qris {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(158, 123, 54, 0.65);
  background: #f4ecda;
  color: var(--ink-dark);
  font: 600 0.78rem/1.2 var(--serif);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.btn-copy:hover,
.btn-download-qris:hover {
  background: #ede0c4;
  border-color: var(--gold-accent);
  color: #221c15;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158, 123, 54, 0.18);
}

.btn-copy:active,
.btn-download-qris:active {
  transform: translateY(0);
  box-shadow: none;
}

.qris-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 18px 16px;
}

.qris-thumb {
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(158, 123, 54, 0.35);
  border-radius: 8px;
}

.qris-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-download-qris {
  margin-top: 2px;
  padding: 8px 18px;
}

/* Closing Section */
.closing-quote {
  margin: 0 auto 18px;
  font: italic 500 0.98rem/1.65 var(--serif);
  color: var(--ink-body);
  max-width: 40ch;
}

.closing-names {
  margin: 0 0 10px;
  font: italic 600 2.05rem/1.15 var(--serif);
  color: var(--ink-dark);
}

.closing-dance-stage {
  display: flex;
  justify-content: center;
  margin: -12px auto 0;
  pointer-events: none;
}

.closing-dance-video {
  width: min(172px, 100%);
  height: auto;
  display: block;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ==========================================================================
   Moon Tide Music Toggle Button (Floating Bottom-Right)
   ========================================================================== */
.music-toggle {
  position: fixed;
  z-index: 42;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: max(48px, calc(var(--music-icon-size, 54px) + 20px));
  height: max(48px, calc(var(--music-icon-size, 54px) + 20px));
  padding: 10px;
  margin: 0;
  color: #edf8ff;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}

body.invitation-unlocked .music-toggle {
  color: #9e7b36;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.music-toggle::after {
  content: '';
  position: absolute;
  inset: -5px;
  pointer-events: none;
  border: 1px solid #9ad8ff55;
  border-radius: 50%;
  opacity: 0;
}

body.invitation-unlocked .music-toggle::after {
  border-color: rgba(158, 123, 54, 0.55);
}

.music-toggle:focus {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .music-toggle:focus-visible {
    outline: 2px solid #bfe8ff;
    outline-offset: 5px;
  }
}

.music-symbol {
  width: var(--music-icon-size, 54px);
  height: var(--music-icon-size, 54px);
  filter: drop-shadow(0 0 4px #87ceff88);
}

body.invitation-unlocked .music-symbol {
  filter: drop-shadow(0 0 4px rgba(158, 123, 54, 0.35));
}

.music-state-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: clamp(16px, calc(var(--music-icon-size, 54px) * 0.4), 24px);
  height: clamp(16px, calc(var(--music-icon-size, 54px) * 0.4), 24px);
  padding: 2px;
  color: #092039;
  background: #d6f0ff;
  border: 1px solid #f0faff;
  border-radius: 50%;
  box-shadow: 0 0 8px #9ad8ff66;
}

body.invitation-unlocked .music-state-icon {
  color: #9e7b36;
  background: #fbf8f0;
  border-color: #9e7b36;
  box-shadow: 0 2px 8px rgba(158, 123, 54, 0.25);
}

.music-state-icon svg {
  width: 100%;
  height: 100%;
}

.music-state-pause,
.is-playing .music-state-play {
  display: none;
}

.is-playing .music-state-pause {
  display: inline;
}

.music-toggle.is-playing::after {
  animation: music-halo 3s ease-out infinite;
}

.is-playing .music-symbol {
  animation: music-float 3s ease-in-out infinite;
}

@keyframes moon-breathe {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.94); }
}

@keyframes music-halo {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes music-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-moon,
  .music-toggle.is-playing::after,
  .is-playing .music-symbol {
    animation: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
