/* ==========================================================================
   THE WEDDING OF BESARI & FADLILATA
   LUXURY GOLD & IVORY DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Surface & Background */
  --bg-page: #f6ede3;
  --bg-surface: #fdfbf7;
  --bg-surface-dim: #f7efe4;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-glass: rgba(253, 251, 247, 0.92);
  --bg-badge: #faf5ed;

  /* Gold & Metallic Accents */
  --gold-light: #ebd093;
  --gold-primary: #b88a3e;
  --gold-dark: #8c5c21;
  --gold-deep: #633e10;
  --gold-grad: linear-gradient(135deg, #f0d59b 0%, #b88a3e 50%, #8c5c21 100%);
  --gold-grad-soft: linear-gradient(135deg, #fdf9f0 0%, #f4e7cc 100%);
  --gold-grad-btn: linear-gradient(135deg, #b08237 0%, #7d521d 100%);
  --gold-border: rgba(184, 138, 62, 0.32);
  --gold-border-subtle: rgba(184, 138, 62, 0.18);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.35);

  /* Typography Colors */
  --ink-primary: #332115;
  --ink-secondary: #5f4838;
  --ink-muted: #8c7362;
  --ink-light: #b59f90;

  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', 'Playfair Display', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(99, 62, 16, 0.06);
  --shadow-md: 0 10px 28px rgba(99, 62, 16, 0.09);
  --shadow-lg: 0 20px 48px rgba(99, 62, 16, 0.14);
  --shadow-phone: 0 25px 80px rgba(58, 38, 20, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.6);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Max phone frame width */
  --phone-width: 430px;
}

/* ==================== BASE RESETS ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-secondary);
  background:
    radial-gradient(circle at 10% 20%, rgba(229, 195, 120, 0.3), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(184, 138, 62, 0.25), transparent 40%),
    linear-gradient(135deg, #eee1cf 0%, #faf3e8 50%, #e8d7c2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==================== DESKTOP PHONE WRAPPER ==================== */
.mobile-frame {
  position: relative;
  width: 100%;
  max-width: var(--phone-width);
  min-height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 480px) {
  body {
    padding: 24px 0 60px;
  }
  .mobile-frame {
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.9);
  }
}

/* ==================== 1. COVER / HERO OVERLAY ==================== */
.cover-overlay {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--phone-width);
  height: 100svh;
  background:
    radial-gradient(circle at 50% 15%, rgba(240, 213, 155, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(184, 138, 62, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #fefaf4 0%, #f7efe4 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 20px 24px;
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

@media (min-width: 480px) {
  .cover-overlay {
    border-radius: 40px;
  }
}

.cover-overlay.is-opened {
  transform: translate(-50%, -105%);
  opacity: 0;
  pointer-events: none;
}

/* Lantern Decor */
.lantern-decor {
  position: absolute;
  top: -10px;
  width: 68px;
  z-index: 10;
  transform-origin: top center;
  animation: lanternSway 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 18px rgba(184, 138, 62, 0.4));
  pointer-events: none;
}
.lantern-left {
  left: 12px;
}
.lantern-right {
  right: 12px;
  animation-delay: -2.5s;
}

@keyframes lanternSway {
  0% { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

/* Floral Corner Decor */
.floral-corner {
  position: absolute;
  width: 150px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
.floral-corner--top-left {
  top: -20px;
  left: -20px;
  transform: rotate(-15deg);
}
.floral-corner--top-right {
  top: -20px;
  right: -20px;
  transform: scaleX(-1) rotate(-15deg);
}

.cover-inner {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.cover-eyebrow {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  letter-spacing: 6px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-top: 10px;
  text-transform: uppercase;
}

/* Monogram Logo */
.monogram-box {
  width: 92px;
  height: 92px;
  margin: 6px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.monogram-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(184, 138, 62, 0.35));
}

.cover-names {
  font-family: var(--font-script);
  font-size: 2.7rem;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(184, 138, 62, 0.2);
  margin-top: -2px;
}

.cover-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 10px;
}
.date-dash {
  width: 32px;
  height: 1px;
  background: var(--gold-grad);
}
.date-text {
  font-family: var(--font-cinzel);
  font-size: 0.76rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--gold-dark);
}

/* 3D Couple Illustration Box */
.cover-couple-wrapper {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 auto;
}
.couple-glow-aura {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 208, 147, 0.5) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}
.couple-cover-img {
  position: relative;
  z-index: 2;
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(78, 48, 18, 0.2));
}


/* Recipient Card */
.recipient-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  box-shadow: var(--shadow-sm);
  margin: 6px 0 10px;
  max-width: 90%;
}
.recipient-label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  margin-bottom: 2px;
}
.recipient-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.recipient-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 12px;
  background: rgba(184, 138, 62, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 600;
}
.recipient-session-pill i {
  color: var(--gold-primary);
  font-size: 0.78rem;
}

.event-session-badge {
  display: inline-block;
  background: var(--gold-grad-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Button Open Invitation */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-grad-btn);
  color: #ffffff;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(140, 92, 33, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.btn-open-invitation:hover,
.btn-open-invitation:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(140, 92, 33, 0.45);
}
.btn-open-invitation:active {
  transform: translateY(1px) scale(0.98);
}
.btn-open-invitation::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(25deg);
  animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  30%, 100% { transform: translateX(100%) rotate(25deg); }
}

.scroll-hint {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}
.bounce-arrow {
  animation: arrowBounce 1.8s infinite ease-in-out;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==================== FLOATING MUSIC & DOCK ==================== */
.music-toggle-btn {
  position: fixed;
  bottom: 78px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-md);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 480px) {
  .music-toggle-btn {
    left: calc(50% + 430px / 2 - 58px);
    right: auto;
    bottom: 84px;
  }
}

.music-toggle-btn.is-playing .disc-icon {
  animation: spin 5s linear infinite;
  color: var(--gold-primary);
}
.disc-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-icon {
  position: absolute;
  font-size: 0.65rem;
  opacity: 0;
  color: var(--gold-primary);
  pointer-events: none;
}
.music-toggle-btn.is-playing .note-1 {
  animation: floatNote 2.4s infinite ease-out;
}
.music-toggle-btn.is-playing .note-2 {
  animation: floatNote 2.4s infinite ease-out 1.2s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes floatNote {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  50% { opacity: 0.9; }
  100% { transform: translate(-16px, -24px) scale(1.2); opacity: 0; }
}

/* Floating Bottom Dock Navigation */
.bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 395px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 6px 4px;
  box-shadow: 0 10px 30px rgba(78, 48, 18, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 480px) {
  .bottom-dock {
    bottom: 20px;
    width: min(calc(100% - 32px), 395px);
  }
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 0.6rem;
  font-weight: 500;
  gap: 2px;
  padding: 4px 1px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dock-item span {
  display: block;
  font-size: 0.58rem;
  line-height: 1.15;
  letter-spacing: -0.2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-item i {
  font-size: 0.95rem;
}

.dock-item.is-active,
.dock-item:hover {
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.dock-item.is-active i {
  color: var(--gold-primary);
}

@media (max-width: 380px) {
  .bottom-dock {
    width: calc(100% - 12px);
    padding: 5px 2px;
    bottom: 8px;
  }
  .dock-item {
    padding: 3px 0;
  }
  .dock-item span {
    font-size: 0.52rem;
    letter-spacing: -0.3px;
  }
  .dock-item i {
    font-size: 0.88rem;
  }
  .music-toggle-btn {
    bottom: 68px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* ==================== INVITATION CONTENT PANELS ==================== */
.invitation-body {
  width: 100%;
  position: relative;
  padding-bottom: 0;
}

.panel {
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 24px 16px 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 10%, rgba(240, 213, 155, 0.22), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(184, 138, 62, 0.14), transparent 45%),
    var(--bg-surface);
}

.panel::-webkit-scrollbar {
  display: none;
}

/* Subtle Golden Border Frame for Every Panel */
.panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 1;
}

.panel-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-wishes .panel-inner {
  margin: 0 auto;
  padding-top: 6px;
}

/* ==================== PER-PAGE KEYFRAME ENTRANCE ANIMATIONS ==================== */
/* Initial state: all animatable elements in panels start hidden */
.panel .panel-inner > * {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* When a panel is active (.is-active-page), run keyframe animations with staggered timing */
.panel.is-active-page .panel-inner > * {
  animation: animPanelFadeInUp 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Header & Tags: Slide down */
.panel.is-active-page .section-tag,
.panel.is-active-page .arabic-heading,
.panel.is-active-page .outro-eyebrow {
  animation-name: animPanelFadeInDown;
  animation-duration: 1s;
  animation-delay: 0.12s;
}

/* Main Titles */
.panel.is-active-page .section-title,
.panel.is-active-page .outro-monogram-img {
  animation-name: animPanelFadeInDown;
  animation-duration: 1.05s;
  animation-delay: 0.25s;
}

/* Emblems, Dividers, Quotes, Intros */
.panel.is-active-page .gold-ring-emblem,
.panel.is-active-page .ornament-divider,
.panel.is-active-page .events-intro-text,
.panel.is-active-page .holy-quote,
.panel.is-active-page .gift-intro-text,
.panel.is-active-page .wishes-subtext,
.panel.is-active-page .greeting-paragraph {
  animation-name: animPanelZoomIn;
  animation-duration: 1.05s;
  animation-delay: 0.38s;
}

/* Hero Cards / Avatars / 1st Cards */
.panel.is-active-page .avatar-wreath-container,
.panel.is-active-page .ornate-names-section,
.panel.is-active-page .event-card:nth-of-type(1),
.panel.is-active-page .countdown-grid,
.panel.is-active-page .venue-info-card,
.panel.is-active-page .bank-card:nth-of-type(1),
.panel.is-active-page .wishes-form,
.panel.is-active-page .outro-couple-names {
  animation-name: animPanelZoomIn;
  animation-duration: 1.1s;
  animation-delay: 0.5s;
}

/* Names, 2nd Cards, Scenery, Maps, Feed */
.panel.is-active-page .person-full-name,
.panel.is-active-page .person-nickname,
.panel.is-active-page .event-card:nth-of-type(2),
.panel.is-active-page .scenery-card,
.panel.is-active-page .map-card-wrapper,
.panel.is-active-page .bank-card:nth-of-type(2),
.panel.is-active-page .wishes-feed-wrapper,
.panel.is-active-page .outro-date {
  animation-name: animPanelFadeInUp;
  animation-duration: 1.05s;
  animation-delay: 0.65s;
}

/* Details, Parents, Addresses, Buttons, Badges */
.panel.is-active-page .parent-info,
.panel.is-active-page .address-box,
.panel.is-active-page .event-highlight-badge,
.panel.is-active-page .btn-maps-action,
.panel.is-active-page .social-link-btn,
.panel.is-active-page .outro-quote,
.panel.is-active-page .heart-divider,
.panel.is-active-page .closing-gratitude,
.panel.is-active-page .panel-bottom-floral {
  animation-name: animPanelFadeInUp;
  animation-duration: 1.05s;
  animation-delay: 0.8s;
}

/* Keyframes */
@keyframes animPanelFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes animPanelZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Section Header Badges & Rings */
.section-tag {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.gold-ring-emblem {
  margin: 6px auto 14px;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(184, 138, 62, 0.25));
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0 16px;
}
.ornament-line {
  width: 45px;
  height: 1px;
  background: var(--gold-grad);
}
.gold-diamond {
  font-size: 0.45rem;
  color: var(--gold-primary);
}

.panel-bottom-floral {
  width: 100%;
  max-width: 260px;
  margin: 20px auto 0;
  opacity: 0.85;
  pointer-events: none;
}

/* ==================== PANEL 1: OPENING ==================== */
.arabic-heading {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.greeting-paragraph {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 6px 0 20px;
  padding: 0 8px;
}

.ornate-names-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 24px;
}
.leaf-branch {
  color: var(--gold-primary);
  font-size: 1.4rem;
  opacity: 0.6;
}
.leaf-left {
  transform: rotate(-35deg);
}
.leaf-right {
  transform: scaleX(-1) rotate(-35deg);
}
.names-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.name-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--gold-deep);
  line-height: 1;
}
.ampersand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin: -4px 0;
}

/* Event Highlight 3-Column Badge */
.event-highlight-badge {
  background: var(--bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 340px;
}
.badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.badge-day,
.badge-time {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 1px;
}
.badge-divider-v {
  width: 1px;
  height: 38px;
  background: var(--gold-border);
  margin: 0 8px;
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1;
}
.badge-month {
  font-family: var(--font-cinzel);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 2px;
  margin-top: 2px;
}
.badge-year {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ==================== PANEL 2 & 3: MEMPELAI PRIA & WANITA ==================== */
.avatar-wreath-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 10px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-circle {
  position: relative;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #faf5ed;
  box-shadow: 0 10px 28px rgba(140, 92, 33, 0.18);
  z-index: 2;
}
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.avatar-double-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 89, 0.85);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 5.5px rgba(184, 138, 62, 0.65),
    0 8px 24px rgba(140, 92, 33, 0.15);
  pointer-events: none;
  z-index: 3;
}
.avatar-branch-overlay {
  position: absolute;
  width: 185px;
  height: 185px;
  bottom: -6px;
  right: -6px;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 6px 14px rgba(140, 92, 33, 0.25));
  transition: transform 0.4s ease;
}
.avatar-wreath-container:hover .avatar-branch-overlay {
  transform: scale(1.03) rotate(2deg);
}

.person-full-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.person-nickname {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.parent-info {
  margin-bottom: 14px;
}
.parent-title {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.parent-names {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink-primary);
  font-weight: 600;
  line-height: 1.4;
}

.address-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card-glass);
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin: 6px auto 14px;
  max-width: 320px;
  text-align: left;
}
.address-icon {
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-top: 2px;
}
.address-content strong {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.address-content p {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.social-link-btn:hover {
  background: var(--gold-grad-soft);
  color: var(--gold-deep);
  transform: translateY(-2px);
}

/* ==================== PANEL 4: RANGKAIAN ACARA ==================== */
.events-intro-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  padding: 0 8px;
}

.event-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 340px;
  margin-bottom: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}
.event-card:hover {
  transform: translateY(-2px);
}

.event-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}
.event-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-grad-soft);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.event-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}
.detail-ico {
  color: var(--gold-primary);
  font-size: 0.88rem;
  margin-top: 2px;
  width: 14px;
  text-align: center;
}
.detail-row strong {
  display: block;
  color: var(--ink-primary);
  font-size: 0.8rem;
}
.detail-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: var(--gold-grad-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.btn-calendar:hover {
  background: var(--gold-grad-btn);
  color: #ffffff;
  border-color: transparent;
}

/* ==================== PANEL 5: COUNTDOWN & SCENERY ==================== */
.holy-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  padding: 0 10px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 12px;
}
.timer-box {
  background: var(--bg-card-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 8px 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timer-num {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}
.timer-unit {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 1px;
  margin-top: 3px;
  text-transform: uppercase;
}

.scenery-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.scenery-img {
  width: 100%;
  height: 230px;
  max-height: 28vh;
  object-fit: cover;
  object-position: center 42%;
}

/* ==================== PANEL 6: LOKASI ACARA ==================== */
.venue-info-card {
  margin-bottom: 10px;
}
.venue-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink-primary);
}
.venue-address {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.map-card-wrapper {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  padding: 8px;
}

.custom-map-graphic {
  position: relative;
  width: 100%;
  height: 155px;
  max-height: 22vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #dcd3c5;
}
.map-streets-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-marker-anchor {
  position: absolute;
  top: 48%;
  left: 55%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-pin-icon {
  font-size: 1.75rem;
  color: #dc2626;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
}
.map-pulse {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.4);
  animation: pulse 1.8s infinite;
  z-index: 1;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.map-pin-label {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dc2626;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.68rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  white-space: nowrap;
}
.map-pin-label strong {
  color: #b91c1c;
  display: block;
}

.btn-maps-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--gold-grad-btn);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(140, 92, 33, 0.28);
  transition: all 0.25s ease;
}
.btn-maps-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(140, 92, 33, 0.38);
}

/* ==================== PANEL 7: AMPLOP DIGITAL / HADIAH ==================== */
.gift-intro-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  padding: 0 8px;
}

.bank-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 340px;
  margin-bottom: 10px;
  text-align: left;
}
.bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bank-name {
  font-family: var(--font-cinzel);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
}
.bank-chip {
  color: var(--gold-primary);
  font-size: 1.2rem;
}
.bank-acc-number {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.bank-holder {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.btn-copy-acc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-copy-acc:hover {
  background: var(--gold-grad-soft);
}

/* ==================== PANEL 8: UCAPAN & DOA (RSVP) ==================== */
.panel-wishes .section-tag {
  font-size: 0.68rem;
  letter-spacing: 3px;
  margin-bottom: 2px;
}
.panel-wishes .section-title {
  font-size: 1.45rem;
  margin-bottom: 2px;
}
.panel-wishes .gold-ring-emblem {
  margin: 2px auto 6px;
  width: 44px;
}
.wishes-subtext {
  font-size: 0.76rem;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.wishes-form {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 340px;
  text-align: left;
  margin-bottom: 8px;
}
.form-group {
  margin-bottom: 5px;
}
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon i {
  position: absolute;
  left: 10px;
  color: var(--gold-primary);
  font-size: 0.78rem;
  pointer-events: none;
}
.input-with-icon--textarea i {
  top: 8px;
}
.form-input {
  width: 100%;
  height: 30px;
  padding: 4px 10px 4px 28px;
  background: #ffffff;
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(184, 138, 62, 0.15);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23B88A3E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.form-textarea {
  resize: none;
  height: 38px;
  min-height: 38px;
  padding-top: 6px;
}

.btn-send-wish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 14px;
  background: var(--gold-grad-btn);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(140, 92, 33, 0.25);
  transition: all 0.25s ease;
  margin-top: 2px;
}
.btn-send-wish:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(140, 92, 33, 0.35);
}

/* Turnstile Human Verification Container */
.turnstile-wrapper {
  margin: 6px 0 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  width: 100%;
}
.hp-input {
  display: none !important;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Empty Wishes State */
.empty-wishes-state {
  text-align: center;
  padding: 12px 14px;
  background: var(--bg-card-glass);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 4px 0;
}
.empty-wishes-state i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
  display: block;
}

/* Wishes Feed List */
.wishes-feed-wrapper {
  width: 100%;
  max-width: 340px;
  text-align: left;
  margin-bottom: 0;
}
.wishes-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0 4px;
}
.feed-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}
.wish-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--gold-border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.wish-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.wish-sender-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink-primary);
}
.wish-status-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}
.badge-hadir {
  background: #e6f4ea;
  color: #137333;
}
.badge-ragu {
  background: #fef7e0;
  color: #b06000;
}
.badge-tidak {
  background: #fce8e6;
  color: #c5221f;
}
.wish-msg-text {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  line-height: 1.3;
}
.wish-time {
  display: block;
  font-size: 0.58rem;
  color: var(--ink-light);
  margin-top: 2px;
}

.heart-divider {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin: 12px auto;
  opacity: 0.7;
}

.closing-gratitude {
  margin-top: 10px;
  padding: 0 10px;
}
.gratitude-title {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--gold-deep);
  margin-bottom: 2px;
}
.gratitude-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}
.wassalam-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-dark);
}

/* ==================== PANEL 9: CLOSING COVER (OUTRO) ==================== */
.panel-outro {
  background:
    radial-gradient(circle at 50% 20%, rgba(240, 213, 155, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, #fefaf4 0%, #f7efe4 100%);
}
.outro-eyebrow {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  letter-spacing: 6px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.monogram-box--outro {
  width: 100px;
  height: 100px;
  margin: 10px auto 14px;
}
.outro-names {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1.15;
  margin-bottom: 6px;
}
.closing-prayer-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 320px;
  margin: 18px auto 16px;
}

/* ==================== TOAST ALERT POPUP ==================== */
.toast-popup {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(44, 27, 18, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.toast-popup.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-ico {
  color: var(--gold-light);
  font-size: 1rem;
}

/* ==================== FALLING PETALS CANVAS ==================== */
.petals-canvas-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}
.falling-petal {
  position: absolute;
  top: -20px;
  background: radial-gradient(circle, #fce8dc 20%, #ebd0c0 90%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.8;
  pointer-events: none;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: translateY(105vh) rotate(420deg) scale(1.1);
    opacity: 0;
  }
}
