/* ==========================================================================
   RESTI & DEZAN — WEDDING INVITATION TEMPLATE
   Palette: Emerald Forest, Sage Green, Champagne & Radiant Gold
   ========================================================================== */

:root {
  --bg-dark: #0a1c15;
  --bg-emerald: #0d241b;
  --bg-card: rgba(18, 44, 34, 0.88);
  --bg-card-glass: rgba(14, 38, 29, 0.75);
  --bg-card-light: #153a2c;
  --border-gold: rgba(212, 175, 55, 0.38);
  --border-gold-bright: #d4af37;
  --border-soft: rgba(255, 255, 255, 0.08);

  --gold-100: #faf3de;
  --gold-200: #f5e4b3;
  --gold-300: #e6c875;
  --gold-400: #d4af37;
  --gold-500: #b58d24;
  --gold-600: #7e5f15;
  --gold-gradient: linear-gradient(135deg, #faebd7 0%, #e6ca65 30%, #d4af37 60%, #8c6a1b 100%);
  --gold-gradient-soft: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.03) 100%);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);

  --text-primary: #fcfbf9;
  --text-secondary: #cde0d5;
  --text-muted: #8faaa0;
  --sage-accent: #6f9d80;

  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-script: 'Playball', 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Amiri', serif;

  --max-w: 480px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #06120e;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(26, 68, 52, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(18, 48, 36, 0.35) 0%, transparent 50%),
    linear-gradient(180deg, #07140f 0%, #0a1f17 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Locked scroll state when cover is open */
body.locked {
  overflow: hidden;
  height: 100vh;
}

/* Main Container: Mobile Frame */
.container {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-emerald);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(10, 35, 25, 0.6);
  overflow-x: hidden;
  padding-bottom: 90px;
}

/* Petals / Floating Leaf Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* --------------------------------------------------------------------------
   COVER / SAMPUL DEPAN (FULLSCREEN MODAL)
   -------------------------------------------------------------------------- */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100vh;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 40px 24px 44px;
  background: 
    linear-gradient(180deg, rgba(10, 28, 21, 0.72) 0%, rgba(13, 36, 27, 0.85) 45%, rgba(7, 20, 15, 0.95) 100%),
    url('../images/cover.jpg') center/cover no-repeat;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  overflow: hidden;
}

.cover-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-frame-border {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.cover-frame-border::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
}

.cover-top {
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(13, 36, 27, 0.75);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-top: 18px;
  margin-bottom: 8px;
}

.cover-names {
  font-family: var(--font-script);
  font-size: 52px;
  font-weight: normal;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7), 0 0 25px rgba(212, 175, 55, 0.3);
}

.cover-names .amp {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--gold-300);
  margin: 0 4px;
}

.cover-date-pill {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-200);
  margin-top: 8px;
}

.cover-middle {
  position: relative;
  z-index: 2;
  width: 100%;
}

.photo-arch {
  width: 140px;
  height: 180px;
  margin: 0 auto;
  border-radius: 90px 90px 16px 16px;
  padding: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--gold-glow);
  position: relative;
}

.photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 86px 86px 12px 12px;
  display: block;
}

.cover-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
}

.guest-card {
  background: rgba(10, 26, 19, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.guest-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.guest-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  margin: 4px 0 2px;
  word-break: break-word;
  line-height: 1.35;
}

.guest-note {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #122a1f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulseButton 2.4s infinite;
}

.btn-open:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.6);
}

.btn-open svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 12px 35px rgba(212, 175, 55, 0.7); }
}

/* --------------------------------------------------------------------------
   AUDIO PLAYER: FLOATING SPINNING DISC
   -------------------------------------------------------------------------- */
.music-toggle {
  position: fixed;
  bottom: 84px;
  right: 18px;
  z-index: 800;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a4c3d 20%, #0d241b 90%);
  border: 2px solid var(--border-gold-bright);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-toggle:active {
  transform: scale(0.92);
}

.music-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #1a382c 0, #1a382c 2px, #0e241c 3px, #0e241c 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.music-disc::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

.music-toggle.playing .music-disc {
  animation: spinDisc 4s linear infinite;
}

.music-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  fill: #ffffff;
  pointer-events: none;
  opacity: 0.9;
}

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

/* --------------------------------------------------------------------------
   BOTTOM NAVIGATION BAR
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  height: 60px;
  background: rgba(10, 26, 19, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  z-index: 790;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.bottom-nav.hidden {
  transform: translate(-50%, 100px);
  opacity: 0;
  pointer-events: none;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  flex: 1;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--gold-300);
}

.nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--gold-300);
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

/* --------------------------------------------------------------------------
   GLOBAL SECTION STYLES & ORNAMENTS
   -------------------------------------------------------------------------- */
.section {
  padding: 56px 20px;
  position: relative;
  text-align: center;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title.script {
  font-family: var(--font-script);
  font-size: 44px;
  font-weight: normal;
  color: var(--gold-200);
  margin-bottom: 8px;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 28px;
  color: var(--gold-400);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  height: 1px;
  width: 45px;
  background: linear-gradient(90deg, transparent, var(--gold-400));
}

.ornament-divider::after {
  background: linear-gradient(90deg, var(--gold-400), transparent);
}

.ornament-divider span {
  font-size: 13px;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   HERO / BERANDA
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 60px;
  padding-bottom: 50px;
}

.bismillah-text {
  font-family: var(--font-arabic);
  font-size: 24px;
  color: var(--gold-300);
  margin-bottom: 22px;
  line-height: 1.6;
}

.hero-arch-wrap {
  position: relative;
  width: 210px;
  height: 270px;
  margin: 0 auto 30px;
}

.hero-arch-border {
  position: absolute;
  inset: -6px;
  border-radius: 120px 120px 20px 20px;
  border: 1px dashed var(--border-gold-bright);
  animation: rotateBorder 30s linear infinite;
  pointer-events: none;
}

.hero-arch {
  width: 100%;
  height: 100%;
  border-radius: 110px 110px 16px 16px;
  padding: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), var(--gold-glow);
}

.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 106px 106px 12px 12px;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: 56px;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.3);
}

.hero-date-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold-200);
  margin: 10px 0 24px;
  padding: 4px 16px;
  border-bottom: 1px solid var(--border-gold);
}

.hero-invitation-text {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Countdown Grid */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 340px;
  margin: 0 auto 24px;
}

.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-200);
  line-height: 1.1;
  display: block;
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Button Secondary */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  background: rgba(18, 44, 34, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-calendar:hover {
  background: var(--gold-gradient);
  color: #122a1f;
  border-color: transparent;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   AYAT SUCI SECTION
   -------------------------------------------------------------------------- */
.ayat-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  position: relative;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.ayat-arabic {
  font-family: var(--font-arabic);
  font-size: 21px;
  line-height: 2.1;
  color: var(--gold-200);
  direction: rtl;
  margin-bottom: 20px;
}

.ayat-translation {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 14px;
}

.ayat-source {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold-400);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   MEMPELAI (BRIDE & GROOM)
   -------------------------------------------------------------------------- */
.couple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  backdrop-filter: blur(10px);
}

.couple-photo-arch {
  width: 140px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 80px 80px 14px 14px;
  padding: 3px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), var(--gold-glow);
}

.couple-photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 77px 77px 11px 11px;
  display: block;
}

.couple-nickname {
  font-family: var(--font-script);
  font-size: 42px;
  color: #ffffff;
  line-height: 1.2;
}

.couple-fullname {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-200);
  margin: 4px 0 12px;
  letter-spacing: 0.05em;
}

.couple-parents {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.couple-parents strong {
  color: #ffffff;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-ig:hover {
  background: var(--gold-gradient);
  color: #122a1f;
  border-color: transparent;
}

.couple-separator {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--gold-300);
  margin: 10px 0 20px;
}

/* --------------------------------------------------------------------------
   ACARA & SAVE THE DATE
   -------------------------------------------------------------------------- */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}

.event-type-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  padding: 3px 14px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 12px;
}

.event-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.event-datetime {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.event-day-box {
  text-align: right;
  flex: 1;
}

.event-day-box .day-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-300);
  font-weight: 600;
  display: block;
}

.event-day-box .month-year {
  font-size: 12px;
  color: var(--text-secondary);
}

.event-date-large {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold-200);
  line-height: 1;
  padding: 0 10px;
}

.event-time-box {
  text-align: left;
  flex: 1;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.event-time-box strong {
  color: #ffffff;
  font-size: 14px;
  display: block;
}

.event-venue {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.event-venue strong {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

/* Event Buttons */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 250px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #122a1f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.55);
}

/* Map Embed Wrapper */
.map-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-top: 24px;
  height: 220px;
  box-shadow: var(--shadow-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   LIVE STREAMING SECTION
   -------------------------------------------------------------------------- */
.streaming-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-lg);
}

.streaming-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--gold-300);
}

.streaming-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   LOVE STORY / KISAH CINTA
   -------------------------------------------------------------------------- */
.story-banner {
  width: 100%;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.story-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 28, 21, 0.85) 100%);
}

.timeline {
  position: relative;
  padding-left: 28px;
  text-align: left;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-400), rgba(212, 175, 55, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-emerald);
  border: 2px solid var(--border-gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   OUR GALLERY (GALERI FOTO)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  background: var(--bg-card);
}

.gallery-item.span-2 {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-200);
  fill: none;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 10, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-btn {
  position: absolute;
  background: rgba(10, 26, 19, 0.8);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2010;
}

.lightbox-btn:hover {
  background: var(--gold-gradient);
  color: #122a1f;
}

.lightbox-close { top: 20px; right: 20px; font-size: 24px; }
.lightbox-prev { left: 16px; font-size: 20px; }
.lightbox-next { right: 16px; font-size: 20px; }

/* --------------------------------------------------------------------------
   AMPLOP DIGITAL / WEDDING GIFT
   -------------------------------------------------------------------------- */
.gift-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}

.bank-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.bank-logo-text {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #005697; /* BCA blue */
}

.bank-logo-text.mandiri {
  color: #003366; /* Mandiri blue */
}

.account-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin: 6px 0;
}

.account-holder {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-copy:hover {
  background: var(--gold-gradient);
  color: #122a1f;
  border-color: transparent;
}

.btn-copy.copied {
  background: #2a7248;
  color: #ffffff;
  border-color: #38a169;
}

/* --------------------------------------------------------------------------
   RSVP & UCAPAN / DOA RESTU
   -------------------------------------------------------------------------- */
.rsvp-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-200);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 16, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Pill selector for attendance */
.presence-pills {
  display: flex;
  gap: 8px;
}

.pill-option {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: rgba(8, 22, 16, 0.85);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pill-option.selected.hadir {
  background: rgba(46, 125, 50, 0.35);
  border-color: #4caf50;
  color: #81c784;
}

.pill-option.selected.ragu {
  background: rgba(245, 127, 23, 0.35);
  border-color: #fbc02d;
  color: #fff59d;
}

.pill-option.selected.tidak {
  background: rgba(198, 40, 40, 0.35);
  border-color: #e57373;
  color: #ef9a9a;
}

/* Wishes Stream */
.wishes-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.wishes-container::-webkit-scrollbar {
  width: 4px;
}

.wishes-container::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}

.wish-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.wish-sender-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wish-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #122a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.wish-sender {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

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

.badge-status {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.badge-status.hadir { background: rgba(76, 175, 80, 0.2); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.4); }
.badge-status.ragu { background: rgba(251, 192, 45, 0.2); color: #fff59d; border: 1px solid rgba(251, 192, 45, 0.4); }
.badge-status.tidak { background: rgba(229, 115, 115, 0.2); color: #ef9a9a; border: 1px solid rgba(229, 115, 115, 0.4); }

.wish-body {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   PENUTUP & FOOTER
   -------------------------------------------------------------------------- */
.closing-arch {
  width: 170px;
  height: 230px;
  margin: 0 auto 26px;
  border-radius: 95px 95px 16px 16px;
  padding: 4px;
  background: var(--gold-gradient);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), var(--gold-glow);
}

.closing-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 91px 91px 12px 12px;
  display: block;
}

.closing-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 380px;
  margin: 0 auto 22px;
}

.closing-names {
  font-family: var(--font-script);
  font-size: 46px;
  color: #ffffff;
  line-height: 1.15;
}

.closing-families {
  font-size: 11.5px;
  color: var(--gold-200);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--gold-300);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 38, 29, 0.95);
  border: 1px solid var(--border-gold-bright);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* --------------------------------------------------------------------------
   ANIMATIONS & SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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