/* =========================================================
   UNDANGAN DIGITAL KHITANAN & RASULAN - STYLESHEET
   Keluarga Bpk. Muhammad Ahsin Rohman & Ibu Husnul Khotimah
   Tema: Islamic Emerald Green & Champagne Gold Luxury
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-deep: #0b261b;
  --primary: #123d2c;
  --primary-light: #1b533c;
  --accent-gold: #d4af37;
  --accent-gold-light: #f7e7a9;
  --accent-gold-dark: #a17c1b;
  --bg-cream: #faf7f0;
  --bg-cream-card: #ffffff;
  --text-main: #1f2d27;
  --text-muted: #5e6d66;
  --border-gold: rgba(212, 175, 55, 0.35);
  --shadow-soft: 0 10px 30px rgba(11, 38, 27, 0.08);
  --shadow-card: 0 15px 35px rgba(18, 61, 44, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #071912;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, #174d38 0%, #071912 75%);
}

/* Master Layout Container (Centered for smartphone feel even on desktop) */
.app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-cream);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
  padding-bottom: 90px; /* space for bottom nav */
}

/* Background Arabesque Pattern */
.bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/islamic-pattern.svg');
  background-repeat: repeat;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

.content-layer {
  position: relative;
  z-index: 2;
}

/* =========================================================
   COVER / HERO MODAL (AMPELOP PEMBUKA)
   ========================================================= */
.cover-gate {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 35%, #194b37 0%, #0d2c1f 55%, #05160e 100%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 35px 22px 45px;
  text-align: center;
  color: #fff;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s ease;
  overflow-y: auto;
}

.cover-trio-group {
  margin: 15px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.cover-sub-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-sub-circle img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.cover-sub-circle .sub-label {
  margin-top: 5px;
  font-size: 0.7rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.cover-main-dome {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-main-dome .dome-frame {
  width: 135px;
  height: 185px;
  border-radius: 70px 70px 16px 16px;
  padding: 4px;
  background: linear-gradient(145deg, #f7e7a9, #d4af37, #8e6812);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
  overflow: hidden;
  animation: pulseGlow 4s infinite ease-in-out;
}

.cover-main-dome .dome-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 66px 66px 12px 12px;
  display: block;
}

.cover-main-dome .main-label {
  margin-top: 5px;
  font-size: 0.72rem;
  color: #0b261b;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  padding: 3px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Feature photo card inside the page */
.photo-feature-card {
  margin: 0 auto 30px;
  text-align: center;
}

.photo-frame-gold {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  border-radius: 120px 120px 24px 24px;
  padding: 6px;
  background: linear-gradient(135deg, #f7e7a9, #d4af37, #9a741e);
  box-shadow: 0 12px 35px rgba(18, 61, 44, 0.18);
  overflow: hidden;
}

.photo-frame-gold img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 114px 114px 20px 20px;
  display: block;
}

.photo-caption-badge {
  position: absolute;
  bottom: 16px;
  left: 10px;
  right: 10px;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  background: rgba(11, 38, 27, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  animation: badgeFloating 3.5s ease-in-out infinite;
}

@keyframes badgeFloating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 360px) {
  .photo-caption-badge {
    font-size: 0.74rem;
    padding: 6px 12px;
  }
}


.cover-guest-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 24px;
}

.cover-guest-box .guest-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.cover-guest-box .guest-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-open-invitation {
  background: linear-gradient(135deg, #d4af37 0%, #aa7a1e 100%);
  color: #0b261b;
  border: none;
  padding: 14px 34px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-open-invitation:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.55);
}

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

/* =========================================================
   FLOATING AUDIO & NAVIGATION
   ========================================================= */
.audio-floating-btn {
  position: fixed;
  bottom: 85px;
  right: calc(50% - 225px);
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 38, 27, 0.9);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

@media (max-width: 480px) {
  .audio-floating-btn {
    right: 18px;
  }
}

.audio-floating-btn.spinning {
  animation: spinRecord 4s linear infinite;
}

.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: rgba(11, 38, 27, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 850;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-item.active,
.nav-item:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* =========================================================
   COMMON SECTION STYLES
   ========================================================= */
section {
  padding: 60px 22px 30px;
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto 26px;
  max-width: 210px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  flex: 1;
}

.section-divider-icon {
  color: var(--accent-gold);
  font-size: 13px;
}

.section-subtitle {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-subtitle::before,
.section-subtitle::after {
  content: "♦";
  font-size: 0.55rem;
  color: var(--accent-gold);
  opacity: 0.75;
}

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.bismillah-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.bismillah-img {
  width: 82%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
}

.glass-card {
  background: var(--bg-cream-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.card-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #9a741e 100%);
  color: #0b261b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 28px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  z-index: 5;
  white-space: nowrap;
  animation: ribbonCenterFloat 3.5s ease-in-out infinite;
}

@keyframes ribbonCenterFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}


/* =========================================================
   HERO / HEADER SECTION
   ========================================================= */
.hero-section {
  text-align: center;
  padding-top: 50px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(18, 61, 44, 0.08) 0%, transparent 100%);
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-main-title {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.35;
}

.hero-tagline {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 10px;
}

/* =========================================================
   COUNTDOWN TIMER
   ========================================================= */
.countdown-box {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.countdown-unit {
  background: linear-gradient(145deg, #ffffff, #f7f3e8);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  min-width: 68px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(18, 61, 44, 0.06);
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.btn-calendar-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 22px;
  background: rgba(18, 61, 44, 0.08);
  border: 1px solid rgba(18, 61, 44, 0.2);
  color: var(--primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-calendar-add:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =========================================================
   PROFIL ANAK & KELUARGA
   ========================================================= */
.khitan-card {
  text-align: center;
  margin-bottom: 25px;
  border: 2px solid var(--accent-gold);
  background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
  padding-top: 36px;
  position: relative;
}

.khitan-photo-frame {
  width: 190px;
  height: 255px;
  margin: 0 auto 18px;
  border-radius: 95px 95px 20px 20px;
  padding: 5px;
  background: linear-gradient(135deg, #f7e7a9, #d4af37, #9a741e);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

.khitan-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 90px 90px 16px 16px;
  display: block;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  border: 3px solid var(--accent-gold);
}

.child-role-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #0b261b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.child-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.child-nickname {
  font-size: 0.85rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.child-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Grid for Rasulan Children */
.rasulan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rasulan-card {
  text-align: center;
  padding: 20px 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-soft);
}

.rasulan-avatar {
  width: 85px;
  height: 85px;
  margin: 0 auto 12px;
}

.rasulan-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rasulan-role {
  font-size: 0.65rem;
  background: rgba(18, 61, 44, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
}

.rasulan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.rasulan-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Family Box */
.family-box {
  margin-top: 30px;
  text-align: center;
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(18, 61, 44, 0.05), rgba(212, 175, 55, 0.1));
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent-gold);
}

.family-label {
  font-size: 0.8rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.family-parents {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-top: 6px;
}

/* Silsilah Orang Tua */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 480px) {
  .parents-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.parent-card {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 12px rgba(11, 38, 27, 0.05);
  text-align: center;
}

.parent-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.parent-card-origin {
  font-size: 0.78rem;
  color: var(--accent-gold-dark);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Pemangku Hajat Box */
.pemangku-box {
  margin-top: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #faf6eb 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(11, 38, 27, 0.08);
  position: relative;
  overflow: hidden;
}

.pemangku-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.pemangku-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 16px;
  background: rgba(18, 61, 44, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pemangku-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .pemangku-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pemangku-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.pemangku-kinship {
  margin-bottom: 6px;
}

.kinship-pill {
  display: inline-block;
  background: linear-gradient(135deg, rgba(18, 61, 44, 0.09), rgba(212, 175, 55, 0.2));
  color: var(--primary-deep);
  border: 1px solid rgba(212, 175, 55, 0.55);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pemangku-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.pemangku-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #123d2c;
  margin-top: 3px;
}

.pemangku-loc {
  font-size: 0.74rem;
  color: #8fa099;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

/* Turut Mengundang Section */
.turut-mengundang-box {
  margin-top: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg);
  padding: 26px 16px 24px;
  box-shadow: 0 12px 32px rgba(11, 38, 27, 0.08);
  position: relative;
}

.turut-header {
  text-align: center;
  margin-bottom: 20px;
}

.turut-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(18, 61, 44, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.turut-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.turut-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}

.turut-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 520px) {
  .turut-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.turut-item {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 2px 8px rgba(11, 38, 27, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.turut-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 16px rgba(11, 38, 27, 0.08);
}

.turut-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #0b261b;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.turut-content {
  flex: 1;
  min-width: 0;
}

.turut-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-deep);
  line-height: 1.35;
}

.turut-sub {
  font-size: 0.76rem;
  color: #637a70;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.turut-pill {
  background: rgba(18, 61, 44, 0.07);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
}

.turut-loc {
  color: #8fa099;
  font-size: 0.72rem;
}


/* =========================================================
   RANGKAIAN ACARA (SCHEDULE & LOCATION)
   ========================================================= */
.schedule-card {
  margin-bottom: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.schedule-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.schedule-badge {
  font-size: 0.7rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
}

.schedule-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent-gold);
  margin-top: 2px;
}

.ent-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 61, 44, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.ent-pill i {
  color: var(--accent-gold-dark);
}

/* =========================================================
   KARTU HIBURAN KHUSUS (CNN ENTERTAINMENT & AUDIO)
   ========================================================= */
.entertainment-card {
  margin: 24px 0 20px;
  background: linear-gradient(145deg, #0d3b2b 0%, #123d2c 55%, #08261b 100%);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: 0 12px 30px rgba(11, 38, 27, 0.28), 0 0 16px rgba(212, 175, 55, 0.18);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.entertainment-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.entertainment-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #f7e7a9, var(--accent-gold), #9a741e);
  color: #0b261b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.entertainment-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.entertainment-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.entertainment-item-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.entertainment-item-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.ent-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0.1));
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.ent-text-meta {
  flex: 1;
}

.ent-sub {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-bottom: 2px;
}

.ent-headline {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.venue-box {
  margin-top: 25px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.maps-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 18px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-gold);
}

.maps-container iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(18, 61, 44, 0.25);
  transition: var(--transition);
}

.btn-maps:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* =========================================================
   RSVP (KONFIRMASI KEHADIRAN VIA WHATSAPP)
   ========================================================= */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #d8e2dc;
  background: #fafaf8;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-pill {
  position: relative;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.pill-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid #d8e2dc;
  border-radius: var(--radius-sm);
  background: #fafaf8;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.radio-pill input:checked + .pill-box {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.btn-whatsapp-submit {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  margin-top: 10px;
}

.btn-whatsapp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

/* =========================================================
   BUKU DOA & UCAPAN (GUESTBOOK)
   ========================================================= */
.wishes-container {
  margin-top: 25px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

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

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

.wish-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

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

.wish-sender-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sender-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #0b261b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.wish-sender-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-deep);
}

.wish-time {
  font-size: 0.68rem;
  color: #8fa099;
}

.wish-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.btn-wish-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-wish-submit:hover {
  background: var(--primary-light);
}

/* =========================================================
   TANDA KASIH / DANA & AMPLOP DIGITAL
   ========================================================= */
.gift-card {
  background: linear-gradient(145deg, #ffffff, #fdfbf7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
}

.gift-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-dark);
}

.gift-provider {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.gift-number-box {
  background: #f4efe4;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gift-number {
  font-family: 'Cinzel', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary-deep);
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--accent-gold-dark);
}

.gift-holder {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER SECTION
   ========================================================= */
.footer-section {
  text-align: center;
  padding: 40px 20px 40px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-closing-text {
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.6;
}

.footer-family {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast-msg {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(11, 38, 27, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1100;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

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

.cover-gate.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-header {
  margin-top: 10px;
}

.cover-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.cover-title {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.cover-title span {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--accent-gold-light);
  font-size: 1.4rem;
  font-weight: 600;
}

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */
@keyframes spinRecord {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.65);
    transform: scale(1.03);
  }
}

/* =========================================================
   HADITS KHITAN & DOA UNTUK ANAK
   ========================================================= */
.hadits-section {
  padding-top: 45px;
  padding-bottom: 25px;
}

.hadits-card {
  background: linear-gradient(145deg, #ffffff 0%, #fcf9f2 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-lg);
  padding: 30px 22px 24px;
  box-shadow: 0 14px 34px rgba(18, 61, 44, 0.09);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  text-align: center;
}

.hadits-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.hadits-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 18px;
  background: rgba(18, 61, 44, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hadits-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  line-height: 2.15;
  color: var(--primary-deep);
  direction: rtl;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hadits-trans {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 12px;
  padding: 0 4px;
}

.hadits-source {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold-dark);
  letter-spacing: 0.5px;
  background: rgba(212, 175, 55, 0.12);
  padding: 4px 15px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.hadits-hikmah {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 15px;
  border-top: 1px dashed rgba(212, 175, 55, 0.4);
  padding-top: 14px;
}

/* DOA CARD (ISLAMIC EMERALD & GOLD) */
.doa-card {
  background: radial-gradient(circle at 50% 15%, #1b533c 0%, #0e3022 60%, #071a12 100%);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 32px 22px 26px;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.doa-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/islamic-pattern.svg');
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
}

.doa-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  font-size: 1.25rem;
  margin-bottom: 14px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  position: relative;
  z-index: 2;
}

.doa-card .doa-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.doa-card .doa-subtitle {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.doa-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.38rem;
  line-height: 2.2;
  color: var(--accent-gold-light);
  direction: rtl;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}

.doa-meaning {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 14px;
  padding: 0 4px;
  position: relative;
  z-index: 2;
}

.doa-kids-names {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.doa-kids-names strong {
  color: var(--accent-gold-light);
}

.doa-amen {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   ANIMASI TEKS & ELEMEN HIDUP BERGERAK (DYNAMIC LIVING MOTION)
   ========================================================= */

/* 1. Shimmer Emas Berkilau Mengalir pada Huruf & Kaligrafi */
@keyframes goldShimmerFlow {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.living-gold-text {
  background: linear-gradient(90deg, #aa7a1e 0%, #d4af37 20%, #fffbe6 45%, #d4af37 70%, #8b6214 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmerFlow 5s linear infinite;
  display: inline-block;
}

.living-arabic-glow {
  background: linear-gradient(90deg, #d4af37 0%, #fff3b0 30%, #ffffff 50%, #fff3b0 70%, #d4af37 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmerFlow 6s linear infinite;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  display: inline-block;
  width: 100%;
}

.living-arabic-dark {
  background: linear-gradient(90deg, #0b261b 0%, #1a593d 25%, #d4af37 50%, #1a593d 75%, #0b261b 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmerFlow 5.5s linear infinite;
  display: inline-block;
  width: 100%;
}

/* 2. Animasi Melayang Halus (Gentle Float) */
@keyframes gentleFloating {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.float-motion {
  animation: gentleFloating 3.5s ease-in-out infinite;
  display: inline-block;
}

.float-motion-delay {
  animation: gentleFloating 4s ease-in-out 1.5s infinite;
  display: inline-block;
}

/* 3. Bintang & Bulan Berpendar Hidup */
@keyframes starTwinkleGlow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
    opacity: 0.85;
  }
  50% {
    transform: scale(1.25) rotate(12deg);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.9));
    opacity: 1;
  }
}

.section-divider-icon {
  animation: starTwinkleGlow 3s ease-in-out infinite;
  display: inline-block;
}

/* 4. Tagline Nafas Bernyawa (Breathing Word Motion) */
@keyframes taglinePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.02);
    opacity: 1;
    color: var(--accent-gold-dark);
  }
}

.hero-tagline {
  animation: taglinePulse 4s ease-in-out infinite;
}

/* 5. Heartbeat Denyut Halus pada Countdown & Tombol */
@keyframes softHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.countdown-unit {
  animation: softHeartbeat 3s ease-in-out infinite;
}

.countdown-unit:nth-child(2) { animation-delay: 0.4s; }
.countdown-unit:nth-child(3) { animation-delay: 0.8s; }
.countdown-unit:nth-child(4) { animation-delay: 1.2s; }

/* 6. Scroll Slide-In System (Muncul Mengalir Halus Saat Di-Scroll) */
.anim-slide-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Status Ketika Sudah Masuk Viewport */
.anim-slide-up.revealed,
.anim-slide-left.revealed,
.anim-slide-right.revealed,
.anim-scale-in.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger Delay untuk Anak Elemen Bertingkat */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.42s; }
.delay-5 { transition-delay: 0.52s; }

/* 7. Animated Running Text Banner (Running Marquee Bar) */
.running-text-bar {
  background: linear-gradient(90deg, rgba(18, 61, 44, 0.95), rgba(11, 38, 27, 0.95));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin: 25px 0 10px;
}

.running-text-track {
  display: inline-flex;
  gap: 30px;
  animation: marqueeScroll 24s linear infinite;
}

.running-text-track:hover {
  animation-play-state: paused;
}

.running-text-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.running-text-item i {
  color: var(--accent-gold);
  font-size: 0.75rem;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================================================
   TYPEWRITER TYPING EFFECT (GAYA TULISAN MENGETIK DINAMIS)
   ========================================================= */
.typewriter-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 38px;
  margin: 6px auto 14px;
  padding: 4px 12px;
  background: rgba(18, 61, 44, 0.04);
  border-radius: var(--radius-full);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  max-width: 94%;
}

.typewriter-quote {
  color: var(--accent-gold-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.hero-typewriter-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.3px;
  margin: 0 4px;
  display: inline-block;
  white-space: normal;
  text-align: center;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-gold);
  margin-left: 2px;
  vertical-align: middle;
  animation: blinkCaret 0.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.8);
}

@keyframes blinkCaret {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* =========================================================
   TIPOGRAFI PRESISI & OPTICAL BALANCE (HIGH PRECISION TEXT)
   ========================================================= */
body, button, input, select, textarea {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Presisi Judul & Subjudul */
.hero-main-title {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  letter-spacing: 1.5px;
  line-height: 1.35;
  text-wrap: balance;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  letter-spacing: 0.4px;
  line-height: 1.32;
  text-wrap: balance;
  margin-bottom: 6px;
}

.section-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Presisi Kaligrafi Arab */
.hadits-arabic, 
.doa-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-feature-settings: "cv01" 1, "cv02" 1;
  direction: rtl;
  text-align: center;
  line-height: 2.25;
  word-spacing: 1.5px;
  padding: 0 8px;
}

/* Presisi Terjemahan Hadits & Doa */
.hadits-trans {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  line-height: 1.72;
  text-align: center;
  text-wrap: balance;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.hadits-hikmah {
  font-size: 0.82rem;
  line-height: 1.68;
  text-wrap: balance;
  text-align: center;
}

.doa-meaning {
  font-size: 0.86rem;
  line-height: 1.72;
  text-align: center;
  text-wrap: balance;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Presisi Nama & Profil Anak */
.child-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  letter-spacing: 0.3px;
  line-height: 1.35;
  text-wrap: balance;
}

.child-desc,
.rasulan-desc {
  font-size: 0.84rem;
  line-height: 1.7;
  text-wrap: balance;
  text-align: center;
}

.family-parents {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

/* =========================================================
   SISTEM BUKU DIGITAL PER-HALAMAN (BOOK FLIP EXPERIENCE)
   ========================================================= */
.book-container {
  position: relative;
  width: 100%;
  perspective: 2000px;
  min-height: calc(100vh - 120px);
}

.book-page {
  display: none;
  opacity: 0;
  width: 100%;
  transform-origin: left center;
  box-sizing: border-box;
  position: relative;
  /* Shading lipatan buku fisik di sisi kiri (Inner spine shadow) */
  box-shadow: inset 18px 0 25px -12px rgba(11, 38, 27, 0.12), inset -10px 0 20px -12px rgba(0, 0, 0, 0.04);
}

.book-page.active {
  display: block;
  opacity: 1;
  transform: rotateY(0deg) translateX(0);
}

/* Animasi Buka Halaman Maju (Next Page Turn) */
.book-page.turn-next {
  display: block;
  animation: pageTurnForward 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Animasi Buka Halaman Mundur (Prev Page Turn) */
.book-page.turn-prev {
  display: block;
  animation: pageTurnBackward 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pageTurnForward {
  0% {
    opacity: 0;
    transform: rotateY(45deg) translateX(60px);
    filter: brightness(0.92);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0);
    filter: brightness(1);
  }
}

@keyframes pageTurnBackward {
  0% {
    opacity: 0;
    transform: rotateY(-45deg) translateX(-60px);
    filter: brightness(0.92);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) translateX(0);
    filter: brightness(1);
  }
}

/* Sticky Top Book Toolbar */
.book-toolbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 15px rgba(11, 38, 27, 0.05);
}

.book-page-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(18, 61, 44, 0.06);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.book-nav-btn {
  background: rgba(18, 61, 44, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--primary-deep);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.book-nav-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--accent-gold-light);
  transform: translateY(-1px);
}

.book-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Call to Action: Tombol Buka Halaman Berikutnya di Bawah Setiap Halaman */
.book-page-footer {
  text-align: center;
  padding: 28px 16px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-flip-next {
  background: linear-gradient(135deg, #184e38 0%, #0d2b1f 100%);
  color: var(--accent-gold-light);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-full);
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 38, 27, 0.25);
  transition: var(--transition);
  text-decoration: none;
}

.btn-flip-next:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(11, 38, 27, 0.4);
  background: linear-gradient(135deg, #21664a 0%, #123d2c 100%);
}

.btn-flip-next i {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.btn-flip-prev {
  background: rgba(18, 61, 44, 0.08);
  color: var(--primary-deep);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-flip-prev:hover {
  background: var(--primary);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 38, 27, 0.15);
}

.btn-flip-prev i {
  color: var(--accent-gold-dark);
  font-size: 0.9rem;
}

/* Nav Item as Button Reset */
button.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Efek Buka Sampul Seperti Buku Fisik */
.cover-gate {
  transform-origin: left center;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

.cover-gate.opened {
  transform: rotateY(-95deg) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.85s ease;
}





