/* ==========================================
   UNDANGAN DIGITAL ISLAMI & CERAH - STYLESHEET
   ========================================== */

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

/* --- CSS Variables & Design System --- */
:root {
  --bg-main: #FAF7F2;
  --bg-secondary: #F4EFE6;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  
  --primary: #1E5631;
  --primary-light: #2D6A4F;
  --primary-soft: #E8F5E9;
  --secondary: #52B788;
  
  --gold: #D4AF37;
  --gold-light: #F4E7BF;
  --gold-dark: #A4801B;
  --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  
  --text-dark: #2C3E50;
  --text-muted: #6B7C93;
  --text-light: #FFFFFF;
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Scheherazade New', 'Amiri', serif;

  --shadow-sm: 0 4px 14px rgba(30, 86, 49, 0.04);
  --shadow-md: 0 10px 25px rgba(30, 86, 49, 0.07);
  --shadow-lg: 0 15px 35px rgba(30, 86, 49, 0.1);
  --shadow-gold: 0 8px 20px rgba(212, 175, 55, 0.25);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-dome: 140px 140px 20px 20px;

  --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(45, 106, 79, 0.04) 0%, transparent 40%);
}

body.lock-scroll {
  overflow: hidden !important;
  height: 100vh;
}

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

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

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

.text-center { text-align: center; }

/* --- Falling Petals Canvas --- */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
}

/* --- ULTRA SMOOTH GPU-ACCELERATED SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 45px, 0) scale(0.92);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.reveal.reveal-scale { transform: translate3d(0, 35px, 0) scale(0.88); }
.reveal.reveal-left  { transform: translate3d(-45px, 25px, 0) scale(0.92); }
.reveal.reveal-right { transform: translate3d(45px, 25px, 0) scale(0.92); }

.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* --- SHIMMER GOLD TEXT EFFECT --- */
.shimmer-gold {
  background: linear-gradient(
    90deg,
    #B38728 0%,
    #FCF6BA 30%,
    #FBF5B7 50%,
    #FCF6BA 70%,
    #AA771C 100%
  );
  background-size: 200% auto;
  color: #000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
  display: inline-block;
}

@keyframes goldShimmer {
  to { background-position: 200% center; }
}

/* --- Typography & Helpers --- */
.font-serif { font-family: var(--font-serif); }
.font-arabic { font-family: var(--font-arabic); font-size: 1.8rem; line-height: 2.2; color: var(--primary); }
.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

.section-subtitle {
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

/* --- Islamic Decorative Divider --- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 28px;
}
.ornament-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-icon {
  color: var(--gold);
  font-size: 1.2rem;
}

/* --- Container & Layout --- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 70px 0;
}

/* --- Cover / Gate Opening Overlay --- */
#cover-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #FFFDF9 0%, #EBF4EC 70%, #FAF7F2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s linear;
  padding: 20px;
}

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

.cover-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  padding: 40px 24px;
  border-radius: var(--radius-dome);
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 15px 40px rgba(30, 86, 49, 0.12), 0 0 25px rgba(212, 175, 55, 0.15);
}

.cover-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.cover-names {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
  margin: 12px 0;
}

.guest-box {
  background: #FFF;
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

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

.guest-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.btn-open {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFF;
  padding: 13px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 86, 49, 0.3);
}

/* --- Floating Music Player --- */
.music-player {
  position: fixed;
  bottom: 85px;
  left: 20px;
  z-index: 1000;
  background: var(--bg-card);
  border: 2px solid var(--gold);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  color: var(--primary);
  font-size: 1.15rem;
}

.music-player.playing {
  animation: spinMusic 6s linear infinite;
  background: var(--primary);
  color: var(--gold-light);
}

@keyframes spinMusic {
  100% { transform: rotate(360deg); }
}

/* --- Floating Bottom Nav --- */
.bottom-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-light);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-width: 94%;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 18px;
  transition: var(--transition);
}

.nav-item i {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.nav-item.active, .nav-item:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* --- Falling Petals Canvas --- */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 60px 20px 40px;
  z-index: 5;
}

.hero-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-dome);
  border: 1.5px solid var(--gold-light);
  padding: 45px 28px 35px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(30, 86, 49, 0.08), 0 0 20px rgba(212, 175, 55, 0.12);
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bismillah-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
  display: block;
}

.wedding-title {
  font-size: 0.88rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  width: 100%;
}

.couple-names-hero {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.2;
  margin: 10px 0 16px;
  display: block;
  width: 100%;
  text-align: center;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #FFF;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-gold);
  margin: 0 auto 24px;
}

/* --- Countdown Timer --- */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.timer-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 72px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.timer-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.timer-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.timer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/* --- Mempelai / Bride & Groom Section --- */
.mempelai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.mempelai-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-dome);
  padding: 38px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mempelai-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.mempelai-img-wrapper {
  width: 185px;
  height: 240px;
  margin-bottom: 18px;
  border-radius: 110px 110px 20px 20px;
  overflow: hidden;
  border: 3.5px solid var(--gold);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(160deg, #f0ede6 0%, #e8e0d0 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mempelai-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.mempelai-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.mempelai-fullname {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.mempelai-parents {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Quran Verse Card --- */
.quran-card {
  background: linear-gradient(135deg, #1E5631 0%, #2D6A4F 100%);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 45px;
  box-shadow: 0 12px 30px rgba(30, 86, 49, 0.2);
  border: 1px solid var(--gold-light);
  position: relative;
  overflow: hidden;
}

.quran-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M30 30L0 0h60L30 30zM0 60l30-30 30 30H0z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.quran-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.quran-translation {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #E2E8F0;
  max-width: 720px;
  margin: 0 auto 12px;
  font-style: italic;
}

.quran-surah {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.88rem;
}

/* --- Acara / Events Section --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.event-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.event-header {
  margin-bottom: 16px;
}

.event-icon {
  width: 58px;
  height: 58px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
  border: 1px solid rgba(45, 106, 79, 0.15);
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--primary);
}

.event-details {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.event-detail-item {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--primary);
  color: #FFF;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  margin: 0 auto;
}

.btn-map:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Story Timeline --- */
.timeline {
  position: relative;
  max-width: 650px;
  margin: 32px auto 0;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--primary) 100%);
  border-radius: 3px;
}

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

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-main);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--gold);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 210px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 86, 49, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 2px solid var(--gold-light);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #FFF;
  font-size: 2.2rem;
  cursor: pointer;
}

/* --- Hadiah Digital / Amplop Online --- */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gift-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.account-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin: 10px 0 4px;
}

.account-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--gold);
  color: #FFF;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

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

/* --- RSVP & Ucapan Feed --- */
.rsvp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 24px;
}

.rsvp-form-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: #F8FAFC;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-submit:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

/* Ucapan Feed */
.ucapan-feed-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

.ucapan-list {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.ucapan-list::-webkit-scrollbar {
  width: 5px;
}
.ucapan-list::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 10px;
}

.ucapan-item {
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
}

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

.ucapan-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.ucapan-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.badge-hadir { background: #D1FAE5; color: #065F46; }
.badge-ragu { background: #FEF3C7; color: #92400E; }
.badge-tidak { background: #FEE2E2; color: #991B1B; }

.ucapan-msg {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.ucapan-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Animasi masuk ucapan baru dari Firestore */
@keyframes ucapanSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.ucapan-new {
  animation: ucapanSlideIn 0.4s ease-out;
}

/* State: loading */
.ucapan-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.ucapan-loading i { font-size: 1.3rem; }

/* State: kosong */
.ucapan-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}
.ucapan-empty i {
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 8px;
}
.ucapan-empty p { font-size: 0.88rem; margin: 0; }

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary);
  color: #FFF;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
  border: 1px solid var(--gold);
}

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

/* --- Footer --- */
footer {
  text-align: center;
  padding: 60px 20px 100px;
  background: linear-gradient(180deg, var(--bg-main) 0%, #EAE4D9 100%);
  border-top: 1px solid var(--gold-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cover-names { font-size: 2.2rem; }
  .couple-names-hero { font-size: 2.4rem; }
  .section-title { font-size: 1.7rem; }
  .section-padding { padding: 50px 0; }
  .hero-section { padding: 40px 16px; }
  .hero-card { padding: 35px 20px 28px; }
  .timer-box { min-width: 62px; padding: 10px 8px; }
  .timer-num { font-size: 1.5rem; }
}
