html, body {
    max-width: 100%;
    /* Memotong paksa apapun yang meluber ke kiri/kanan halaman utama */
    overflow-x: hidden; 
    position: relative; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', serif; 
    color: #333;
    background-color: #fcfcfc;
}

body.locked { overflow: hidden; }

/* =========================================================
   KUMPULAN KEYFRAMES ANIMASI DRAMATIK BARU
   ========================================================= */

/* Efek Muncul dari Bayangan (Blur to Focus) */
@keyframes cinematicFadeUp {
    0% { opacity: 0; filter: blur(15px); transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes cinematicFadeDown {
    0% { opacity: 0; filter: blur(15px); transform: translateY(-60px) scale(1.05); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

/* Efek Meluncur dari Samping Kiri/Kanan */
@keyframes splitSlideLeft {
    0% { opacity: 0; filter: blur(10px); transform: translateX(-80px); }
    100% { opacity: 1; filter: blur(0); transform: translateX(0); }
}

@keyframes splitSlideRight {
    0% { opacity: 0; filter: blur(10px); transform: translateX(80px); }
    100% { opacity: 1; filter: blur(0); transform: translateX(0); }
}

/* Efek Buka Kertas/Kotak secara Vertikal */
@keyframes dramaticUnfold {
    0% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(30px); }
    100% { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}

/* Efek Putar Halus untuk Profil */
@keyframes rotateInSmooth {
    0% { opacity: 0; filter: blur(12px); transform: rotate(-8deg) translateY(60px) scale(0.9); }
    100% { opacity: 1; filter: blur(0); transform: rotate(0) translateY(0) scale(1); }
}

/* Efek Zoom Megah untuk Galeri & Ikon */
@keyframes zoomBlurElegant {
    0% { opacity: 0; filter: blur(20px); transform: scale(0.5); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Update untuk elemen umum (.reveal) */
@keyframes eleganReveal { 
    0% { opacity: 0; filter: blur(10px); transform: translateY(50px); } 
    100% { opacity: 1; filter: blur(0); transform: translateY(0); } 
}


/* KELAS PLACEHOLDER (Pengganti Foto) */
.placeholder-photo, .placeholder-avatar {
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
}
.placeholder-photo { width: 100%; height: 100%; border-radius: inherit; }
.placeholder-avatar { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 15px auto; }

/* HALAMAN COVER */
#cover-page {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    
    /* GANTI BARIS BACKGROUND INI: 
       Lapisan hitam dipertebal agar kontras teks putih lebih maksimal */
    background: 
        linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.3) 0%,    /* Naik jadi 0.3: Bagian atas agak diredupkan */
            rgba(0, 0, 0, 0.6) 50%,   /* Naik jadi 0.6: Bagian tengah sudah lumayan gelap */
            rgba(0, 0, 0, 0.95) 100%  /* Naik jadi 0.95: Hampir hitam pekat di area teks bawah */
        ),
        url('assets/bg_cover1.webp') center/cover;
        
    display: flex; justify-content: center; align-items: center; text-align: center;
    z-index: 9999; transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    overflow: hidden; 
}

/* =========================================================
   ANIMASI BUNGA SUDUT
   ========================================================= */
.bunga-sudut {
    position: absolute;
    width: 250px; 
    max-width: 55vw; 
    pointer-events: none; 
    z-index: 5;
    opacity: 0; 
    translate: 0px 0px; 
    rotate: 0deg;
    scale: 1;
    will-change: translate, rotate, opacity;
}

.bunga-atas-kiri { 
    top: -20px; left: -20px; width: 230px; max-width: none; transform-origin: top left; 
    animation: masukAtasKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKiri 2s ease-in-out infinite alternate;
}
.bunga-atas-kanan { 
    top: -70px; right: -40px; width: 240px; max-width: none; transform-origin: top right;
    animation: masukAtasKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKanan 2.2s ease-in-out infinite alternate; 
}
.bunga-bawah-kiri { 
    bottom: -50px; left: -75px; width: 300px; max-width: none; transform-origin: bottom left;
    animation: masukBawahKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKiri 2.5s ease-in-out infinite alternate; 
}
.bunga-bawah-kanan { 
    bottom: -50px; right: -75px; width: 300px; max-width: none; transform-origin: bottom right;
    animation: masukBawahKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKanan 2.3s ease-in-out infinite alternate; 
}
@keyframes masukAtasKiri { 0% { opacity: 0; translate: -50px -50px; } 100% { opacity: 1; translate: 0px 0px; } }
@keyframes masukAtasKanan { 0% { opacity: 0; translate: 50px -50px; } 100% { opacity: 1; translate: 0px 0px; } }
@keyframes masukBawahKiri { 0% { opacity: 0; translate: -50px 50px; } 100% { opacity: 1; translate: 0px 0px; } }
@keyframes masukBawahKanan { 0% { opacity: 0; translate: 50px 50px; } 100% { opacity: 1; translate: 0px 0px; } }
/* Bunga Kiri (Atas & Bawah): Hanya berayun memutar ke kanan (ke dalam layar) */
@keyframes ayunKiri { 
    0% { transform: rotate(0deg) scale(1); } 
    100% { transform: rotate(6deg) scale(1.03); } 
}

@keyframes ayunKanan { 
    0% { transform: rotate(0deg) scale(1); } 
    100% { transform: rotate(-6deg) scale(1.03); } 
}
/* =========================================================
   ANIMASI DEKORASI BINGKAI FULL
   ========================================================= */
.dekor-bingkai-full {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; 
    pointer-events: none; 
    z-index: 4; 
    opacity: 0; 
    animation: munculBingkaiAman 1s ease-in-out 1s forwards;
}
@keyframes munculBingkaiAman {
    0% { opacity: 0; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   ANIMASI BINGKAI MERAH TENGAH
   ========================================================= */
.bingkai-tengah {
    position: absolute;
    top: 48%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 420px; max-width: 100vw; height: auto;
    pointer-events: none; 
    z-index: 4; 
    opacity: 0;
    will-change: transform, opacity;
    animation: bingkaiMerahReveal 2s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
}
@keyframes bingkaiMerahReveal {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#cover-page.slide-up { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cover-content {
    position: relative; 
    z-index: 20; 
    width: 100%; 
    display: flex; flex-direction: column; align-items: center;
}

/* =========================================================
   ANIMASI IKON CINCIN
   ========================================================= */
.ikon-cincin {
    position: relative; 
    width: 27px; max-width: 15vw; height: auto;
    margin-bottom: 5px; 
    pointer-events: none; z-index: 6; opacity: 0;
    animation: ikonCincinReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 3s forwards;
}
@keyframes ikonCincinReveal {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================================
   BAGIAN TAMU UNDANGAN (COVER)
   ========================================================= */
#cover-page .title-small, #cover-page .nama-mempelai { color: #d4af37; }
.nama-mempelai { 
    font-family: 'Cinzel Decorative', serif; 
    font-size: 1.7rem; 
    font-weight: 700; 
    margin-bottom: 155px; 
    color: #d4af37; 
}
.simbol-dan { 
    font-size: 1.2rem; 
    font-weight: 400; 
    vertical-align: middle; 
    margin: 0 5px;
    color: #d4af37; 
}
.title-small { 
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 400; 
    font-size: 1rem; 
    margin-top: 20px; 
    margin-bottom: 10px; 
     color: #d4af37; 
}
.teks-kepada { 
    font-family: 'Cormorant Garamond', serif; 
     color: #ffffff; 
    margin-bottom: 12px; 
    font-size: 1rem;
}
 
.nama-tamu { 
    color: #d4af37; 
    margin-bottom: 5px; 
    font-size: 1rem;
    max-width: 200px; /* Membatasi lebar maksimal teks */
    margin: 0 auto;  /* Menengahkan blok teks secara horizontal */
}

#btn-buka {
    position: relative;
    background-color: #edca58;
    color: #0a0303; 
    border: 1px solid rgba(255, 227, 190, 0.4);
    
    /* Padding diperkecil drastis */
    padding: 6px 16px; 
    border-radius: 30px; 
    
    cursor: pointer;
    font-family: 'Poppins', serif; 
    font-weight: 900;
    /* Font size diperkecil lagi */
    font-size: 0.65rem; 
    letter-spacing: 0.5px; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Jarak ikon dan teks dirapatkan */
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    
    /* Mengatur ulang jarak agar tidak menabrak teks disclaimer */
    margin-top: 10px;
    margin-bottom: 20px; 
    z-index: 10;
}

/* Ukuran Ikon diperkecil */
#btn-buka svg {
    width: 12px;
    height: 12px;
}

/* Hover effect */
#btn-buka:hover {
    transform: translateY(-2px);
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(255, 227, 190, 0.3);
}

/* Efek Kilau (Shimmer) */
#btn-buka::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 15%;
    height: 200%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent
    );
    transform: rotate(30deg);
    animation: shimmerBtn 5s infinite;
}

@keyframes shimmerBtn {
    0% { left: -60%; }
    20% { left: 160%; } 
    100% { left: 160%; }
}
.disclaimer-nama { 
    font-size: 0.7rem; 
    color: #ffffff; 
    margin-top: -3px; /* Tambahkan sedikit margin atas di sini */
    font-style: italic; 
    opacity: 0.9; 
    max-width: 60%; /* Diperlebar sedikit agar teksnya tidak terlalu panjang ke bawah */
    line-height: 1.3; 
}
.tamu-section { 
    margin-top: 100px; 
    background: transparent !important; border: none !important;
    box-shadow: none !important; padding: 0 !important; width: 100%; display: flex;
    flex-direction: column; align-items: center; gap: 5px; 
}
/* =========================================================
   PENGUNCI POSISI COVER (ANTI BERGESER DI SEMUA HP)
   ========================================================= */

/* 1. Buka kotak pembungkus agar memenuhi tinggi layar HP penuh */
#cover-page .cover-content {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh;
}

/* 2. Kunci elemen atas berpatokan dari ATAS layar */
#cover-page .title-small {
    position: absolute;
    top: 8%; /* Sebelumnya 33%, sekarang naik ke 23% */
    left: 0; 
    width: 100%; 
    text-align: center;
    margin: 0;
}

#cover-page .nama-mempelai {
    position: absolute;
    top: 12%; /* Sebelumnya 38%, sekarang naik ke 28% */
    left: 0; 
    width: 100%; 
    font-size: 34px;
    text-align: center;
    margin: 0;
}

/* 3. Kunci bagian tamu berpatokan dari BAWAH layar */
#cover-page .tamu-section {
    position: absolute;
    bottom: 12%; /* Paku di jarak 12% dari dasar layar bawah */
    left: 0; 
    width: 100%;
    margin-top: 0 !important;
}

/* TOMBOL DASAR */
button, .btn-wa, .btn-lokasi {
    background-color: #5B8FB9; color: white; border: none; padding: 10px 20px; 
    border-radius: 20px; cursor: pointer; font-family: 'Poppins', serif; 
    font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px;
}

#cover-page .title-small, #cover-page .nama-mempelai, #cover-page .teks-kepada,
#cover-page .nama-tamu, #cover-page #btn-buka, #cover-page .disclaimer-nama {
    opacity: 0; transform: translateY(20px); animation: teksCoverReveal 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#cover-page .title-small { animation-delay: 0s; }
#cover-page .nama-mempelai { animation-delay: 0s; }
#cover-page .teks-kepada { animation-delay: 1s; }
#cover-page .nama-tamu { animation-delay: 1s; }
#cover-page #btn-buka { animation-delay: 1.5s; }
#cover-page .disclaimer-nama { animation-delay: 1.5s; }

@keyframes teksCoverReveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* SECTIONS UMUM */
.section {
    min-height: 100vh; padding: 60px 20px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    position: relative; overflow: hidden; 
}
.hero-bg, .bg-light, .bg-gift, .bg-rsvp, .bg-penutup, .bg-gallery, .bg-turut {
    background-size: cover; background-position: center; background-attachment: scroll !important; 
}

/* =========================================================
   HALAMAN HERO
   ========================================================= */
.hero-bg {
    /* MENGGUNAKAN GAMBAR ASSET ANDA (bg_hero1.webp) */
    background-image: 
        /* Layer Atas: Gradasi Sogan Gelap ke Hitam agar serasi dengan halaman lain */
        linear-gradient(
            to bottom, 
            rgba(26, 11, 8, 0.4) 0%,    
            rgba(26, 11, 8, 0.7) 50%,   
            rgba(10, 3, 3, 0.95) 100%  
        ),
        /* Layer Bawah: Gambar dari Assets */
        url('assets/bg_hero1.webp') !important;
        
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important; /* Penting untuk kestabilan di iOS */
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Pastikan semua konten Hero muncul di atas video */
#hero .bunga-sudut,
#hero .bingkai-tengah,
#hero .cover-content {
    z-index: 2; /* Angka lebih tinggi dari video-bg */
}

/* Khusus untuk teks agar tetap terbaca jelas di atas video */
#hero .cover-content {
    position: relative;
    z-index: 5;
}
#hero .intro-text, #hero .tanggal, #hero .cd-box p { color: #0a0303; }
#hero .cd-box span { 
    background: rgba(48, 4, 28, 0.6); color: #0a0303; border: 1px solid #0a0303;
    width: 70px; height: 70px; display: flex; justify-content: center; align-items: center; 
    border-radius: 10px; font-size: 1.8rem; font-weight: bold; 
}

.mempelai-card, .event-card, .story-card, .atm-card, .rsvp-form-box, .wish-wall-box {
    background: rgba(255, 255, 255, 0.8); padding: 30px 20px; border-radius: 15px;
    width: 100%; max-width: 400px; margin: 15px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center;
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 25px; width: 100%; padding: 0 15px; }

.nama-mempelai-vertikal {
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    font-family: 'Cinzel Decorative', serif; 
    font-size: 2.2rem; 
    font-weight: 700; 
    color: #0a0303; 
    line-height: 1.6;
}
.nama-mempelai-vertikal .simbol-dan { 
    font-size: 1.4rem; 
    margin: 8px 0; 
    font-family: 'Cinzel Decorative', serif; 
    color: #0a0303
}
#hero .title-small { 
    margin: 0; 
    margin-top: -800px;
}

#hero { padding: 0; }
#hero .cover-content { 
    max-width: 320px; 
    margin-top: -50px; /* Semakin besar angka minusnya, semakin naik ke atas */
}
#hero .title-small { 
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400; 
    font-size: 1rem;
    color: #0a0303;
    margin-top: 20px; 
    margin-bottom: 20px; 
}
#hero .intro-text { 
    font-size: 0.8rem; 
    line-height: 1.6; 
    margin: 25px auto 20px auto; 
    max-width: 600px; 
    padding: 0 25px; 
}
#hero .tanggal { font-size: 0.9rem; margin-top: 3px; margin-bottom: 5px; }

/* =========================================================
   KUSTOMISASI UKURAN BINGKAI HALAMAN HERO
   ========================================================= */
#hero .bingkai-tengah { 
    width: 500px;      /* Nilai defaultnya 420px, naikkan angka ini untuk melebarkan bingkai */
    height: 650px;     /* Nilai defaultnya 550px, naikkan angka ini agar bingkai lebih memanjang ke bawah */
    max-width: 200vw;   /* Mencegah bingkai luber/terpotong di layar HP yang kecil */
    max-height: 90vh;  
    object-fit: fill; 
    filter: opacity(0.9); 
    animation-delay: 0s; 
}

/* =========================================================
   SHAPE OVAL BERDIRI SENDIRI (REVISI ANTI MELUBER)
   ========================================================= */
.shape-oval-tengah {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* MENGGUNAKAN PIXEL AGAR BENTUKNYA TETAP KONSISTEN DI SEMUA HP */
    width: 420px;       /* Ukuran ini sengaja dibuat lebih kecil dari lebar bingkai (500px) */
    height: 570px;      /* Ukuran ini lebih kecil dari tinggi bingkai (650px) */
    
    /* Batas maksimal agar tetap aman jika dibuka di HP layar kecil */
    max-width: 82vw;    
    max-height: 75vh;   
    
    /* Warna dan efek blur */
    background: rgba(255, 248, 240, 0.7); 
    border-radius: 50%;
    filter: blur(12px); /* Blur sedikit dinaikkan agar tepiannya makin halus menyatu */
    
    /* Posisi tumpukan */
    z-index: 2; 
    pointer-events: none; 
    
    /* Disembunyikan dulu sebelum dianimasikan */
    opacity: 0;
}

/* Memanggil animasi yang sama (Fade In setelah 4 detik) saat gembok dibuka */
body:not(.locked) #hero .shape-oval-tengah { 
    animation: bingkaiMerahReveal 3s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards !important; 
}

/* =========================================================
   KUSTOMISASI POSISI & UKURAN BUNGA KHUSUS HALAMAN HERO
   ========================================================= */

/* 1. Bunga Atas Kiri */
#hero .bunga-atas-kiri {
    top: -5px;      
    left: -5px;     
    width: 210px;    
}

/* 2. Bunga Atas Kanan */
#hero .bunga-atas-kanan {
    top: -5px;      
    right: -5px;    
    width: 210px;    
}

/* 3. Bunga Bawah Kiri */
#hero .bunga-bawah-kiri {
    bottom: -30px;   
    left: -40px;     
    width: 210px;    
}

/* 4. Bunga Bawah Kanan */
#hero .bunga-bawah-kanan {
    bottom: -30px;   
    right: -40px;    
    width: 210px;    
}

/* =========================================================
   DRAMATIC CINEMATIC ENTRY - HALAMAN HERO
   ========================================================= */

/* 1. Sembunyikan elemen awal (Tahan di belakang layar) */
body.locked #hero .bunga-sudut, 
body.locked #hero .dekor-bingkai-full,
body.locked #hero .bingkai-tengah, 
body.locked #hero .ikon-cincin,
body.locked #hero .title-small, 
body.locked #hero .nama-mempelai-vertikal,
body.locked #hero .intro-text, 
body.locked #hero .tanggal { 
    animation: none !important; 
    opacity: 0 !important; 
}

/* Pastikan opacity 0 sebelum animasi dimulai */
#hero .bunga-sudut,
#hero .bingkai-tengah,
#hero .cover-content,
#hero .ikon-cincin,
#hero .title-small, 
#hero .nama-mempelai-vertikal, 
#hero .intro-text, 
#hero .tanggal {
    opacity: 0;
}

/* =========================================================
   MENGHILANGKAN ANIMASI BERAYUN BUNGA DI HALAMAN HERO
   ========================================================= */

/* Hanya menyisakan animasi masuk (reveal) dan menghapus animasi ayun */
body:not(.locked) #hero .bunga-atas-kiri { 
    animation: masukAtasKiri 2s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important; 
}

body:not(.locked) #hero .bunga-atas-kanan { 
    animation: masukAtasKanan 2s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important; 
}

/* 3. Animasi Bingkai Putih (Menunggu 4 Detik) */
body:not(.locked) #hero .bingkai-tengah { 
    animation: bingkaiMerahReveal 3s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards; 
}

/* Memunculkan wadah konten setelah 4 detik */
body:not(.locked) #hero .cover-content {
    animation: simpleFadeIn 1s ease-out 1.5s forwards;
}

body:not(.locked) #hero .title-small { 
    animation: cinematicFadeDown 2.5s cubic-bezier(0.19, 1, 0.22, 1) 1.5s forwards; 
}
body:not(.locked) #hero .nama-mempelai-vertikal { 
    animation: zoomBlurElegant 3s cubic-bezier(0.19, 1, 0.22, 1) 1.8s forwards; 
}
body:not(.locked) #hero .intro-text { 
    animation: cinematicFadeUp 2.5s cubic-bezier(0.19, 1, 0.22, 1) 2.4s forwards; 
}
body:not(.locked) #hero .tanggal { 
    animation: splitSlideRight 2.5s cubic-bezier(0.19, 1, 0.22, 1) 2.8s forwards; 
}

/* =========================================================
   EFEK FADE VIDEO BACKGROUND (CINEMATIC)
   ========================================================= */

/* Memastikan video tersembunyi (gelap) sebelum cover dibuka */
body.locked #hero .video-bg {
    opacity: 0;
}

/* Memulai animasi video HANYA setelah tombol "Buka Undangan" diklik */
body:not(.locked) #hero .video-bg {
    animation: videoCinematicFade 3s ease-in-out forwards;
}

/* Animasi: Muncul dari gelap ke terang SAMBIL Zoom Out selama 3 detik */
@keyframes videoCinematicFade {
    0% { 
        opacity: 0; 
        filter: brightness(0.2); 
        transform: scale(1.3); /* Video membesar 30% di awal */
    }
    100% { 
        opacity: 1; 
        filter: brightness(1); 
        transform: scale(1); /* Video mengecil perlahan ke ukuran normal (Zoom Out) */
    }
}

/* KEYFRAMES TETAP SAMA */
@keyframes heroFadeDown { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes heroZoomIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes heroFadeUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeRight { 0% { opacity: 0; transform: translateX(-20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes countdownZoomIn { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(0.75); } }
@keyframes zoomOutReveal { 0% { opacity: 0; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideFromLeft { 0% { opacity: 0; transform: translateX(-40px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes simpleFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* =========================================================
   STYLE HALAMAN AYAT (TEMA KLASIK ADAT JAWA)
   ========================================================= */
#ayat { 
    position: relative; 
    overflow: hidden; 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 80px 20px; 
}

.bg-ayat { 
    /* Latar Sogan Gelap */
    background-color: #1a0b08 !important;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important;
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll !important; 
}

/* 1. KOTAK PRASASTI GELAP DENGAN BINGKAI EMAS */
#ayat .cover-content { 
    background: rgba(26, 11, 8, 0.9) !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(212, 175, 55, 0.1) !important; 
    border-radius: 6px !important; 
    
    /* Padding atas dinolkan agar foto langsung menempel ke sudut atas */
    padding: 0 0 35px 0 !important; 
    
    width: 100%;
    max-width: 340px; 
    z-index: 10; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    overflow: hidden; 
    margin-top: 0; 
    position: relative;
}

/* Ornamen Siku Emas di Pojok Kotak Ayat */
#ayat .cover-content::before, 
#ayat .cover-content::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 1.5px solid #d4af37;
    pointer-events: none;
    z-index: 15;
}
#ayat .cover-content::before { top: 5px; left: 5px; border-right: none; border-bottom: none; }
#ayat .cover-content::after { bottom: 5px; right: 5px; border-left: none; border-top: none; }

/* 2. STYLE FOTO HEADER (VINTAGE & MENEMPEL KE ATAS) */
.foto-ayat-header {
    width: 100% !important; 
    margin-top: 0 !important; /* Reset margin negatif bawaan lama */
    margin-bottom: 10px !important; 
    height: 350px !important; 
    object-fit: cover; 
    border-bottom: 2px solid #d4af37 !important; /* Garis emas pemisah */
    filter: sepia(30%) contrast(1.1) brightness(0.85); /* Efek foto lawas keraton */
}

/* 3. STYLE TEKS BISMILLAH (DIBUAT BERSINAR KREM/EMAS) */
.img-bismillah { 
    width: 200px; max-width: 60%; height: auto; 
    opacity: 0.9; 
    margin-top: 5px;
    margin-bottom: 10px; 
    /* Membalikkan warna kaligrafi hitam menjadi emas/krem bercahaya */
    filter: brightness(0) invert(85%) sepia(20%) saturate(300%) hue-rotate(350deg);
}

/* 4. WARNA TEKS KREM & FONT SASTRA KLASIK */
.teks-ayat { 
    font-family: 'Cormorant Garamond', serif !important; 
    font-size: 1rem !important; 
    line-height: 1.6; 
    color: #ffe3be !important; /* Warna Krem */
    font-style: italic; 
    margin: 0; 
    padding: 0 25px !important; 
    width: 100%; 
    text-align: center; 
    font-weight: 500;
}

.sumber-ayat { 
    font-family: 'Cinzel Decorative', serif !important; 
    font-size: 1rem !important; 
    color: #d4af37 !important; /* Warna Emas */
    letter-spacing: 2px; 
    font-weight: 700; 
    margin-top: 5px; 
}


/* =========================================================
   ANIMASI AYAT: PERPADUAN ZOOM OUT & ZOOM IN (ELEGANT)
   (Dipertahankan persis sesuai revisi sebelumnya)
   ========================================================= */

@keyframes zoomOutCard {
    0% { opacity: 0; filter: blur(15px); transform: scale(1.15); } 
    100% { opacity: 1; filter: blur(0); transform: scale(1); }     
}

@keyframes zoomInSmooth {
    0% { opacity: 0; filter: blur(10px); transform: scale(0.85); } 
    100% { opacity: 1; filter: blur(0); transform: scale(1); }     
}

.cover-content.reveal-ayat:not(.active),
.cover-content.reveal-ayat:not(.active) * { 
    opacity: 0; 
    animation: none !important; 
    pointer-events: none; 
}

/* Kotak Utama Zoom Out */
.cover-content.reveal-ayat.active { 
    animation: zoomOutCard 2.2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important; 
    pointer-events: auto; 
}

/* Konten Dalam Zoom In bergantian */
.cover-content.reveal-ayat.active .foto-ayat-header { 
    animation: zoomInSmooth 2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards !important; 
}

.cover-content.reveal-ayat.active .img-bismillah { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards !important; 
}

.cover-content.reveal-ayat.active .teks-ayat { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards !important; 
}

.cover-content.reveal-ayat.active .sumber-ayat { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.2s forwards !important; 
}
/* =========================================================
   OBAT ANTI DOUBLE / KEDIP UNTUK HALAMAN AYAT
   ========================================================= */

/* 1. Kunci posisi awal elemen agar BENAR-BENAR HILANG (Ghaib) di awal */
#ayat .cover-content.reveal-ayat { opacity: 0; }
#ayat .cover-content.reveal-ayat * { opacity: 0; }

/* 2. Matikan paksa animasi liar dari kode lama yang mungkin masih tersisa */
#ayat .reveal-ayat.active, 
#ayat .reveal-ayat.active * {
    animation: none !important;
    transition: none !important;
}

/* =========================================================
   OBAT ANTI DOUBLE + ESTETIK S.E (AYAT) 
   (Letakkan di PALING BAWAH file style.css)
   ========================================================= */

/* --- 1. Style Teks Inisial Estetik S.E --- */
#ayat .cover-content .inisial-mempelai-ayat {
    font-family: 'Cinzel Decorative', serif !important; 
    font-size: 3rem !important; /* Dibuat besar agar estetik */
    color: #edca58 !important; /* Warna Emas Terang Keraton */
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.5) !important;
    margin: 10px 0 !important;
    letter-spacing: 5px !important; 
    opacity: 0; /* Penting untuk antrean animasi */
}

/* --- 2. Kunci Posisi Awal (Reset Total) --- */
#ayat .cover-content.reveal-ayat,
#ayat .cover-content.reveal-ayat * { 
    opacity: 0; 
}

/* Matikan animasi lama */
#ayat .reveal-ayat.active, 
#ayat .reveal-ayat.active * {
    animation: none !important;
    transition: none !important;
}

/* --- 3. Antrean Animasi Baru (Mulus Satu Per Satu) --- */

/* Kotak Utama muncul 3D */
#ayat .cover-content.reveal-ayat.active { 
    animation: zoomOutCard 2.2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important; 
}
/* 1. Foto Header muncul (delay 0.3s) */
#ayat .cover-content.reveal-ayat.active .foto-ayat-header { 
    animation: zoomInSmooth 2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards !important; 
}
/* 2. Inisial S.E muncul (GANTIKAN POSISI BISMILLAH, delay 0.6s) */
#ayat .cover-content.reveal-ayat.active .inisial-mempelai-ayat { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards !important; 
}
/* 3. Teks Ayat muncul (delay 0.9s) */
#ayat .cover-content.reveal-ayat.active .teks-ayat { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards !important; 
}
/* 4. Sumber Ayat muncul (delay 1.2s) */
#ayat .cover-content.reveal-ayat.active .sumber-ayat { 
    animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.2s forwards !important; 
}
/* =========================================================
   STYLE HALAMAN PROFIL (TEMA KLASIK ADAT JAWA)
   ========================================================= */
.bg-profil {
    /* Latar Sogan Gelap */
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important;
    background-size: cover; 
    background-position: center;
    background-attachment: scroll !important; 
    position: relative; 
    overflow: hidden; 
    min-height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 80px 20px;
}

/* =========================================================
   SHAPE BINGKAI PROFIL (KAPSUL GELAP & EMAS)
   Bentuk TETAP kapsul, hanya warnanya yang diubah menjadi elegan
   ========================================================= */
#profil .bingkai-tengah { 
    width: 90%; 
    max-width: 380px; 
    height: calc(100% - 120px); 
    border-radius: 999px; /* Tetap kapsul */
    
    /* Ganti warna jadi Cokelat Gelap Transparan & Garis Emas */
    background: rgba(26, 11, 8, 0.6) !important; 
    border: 2px solid #d4af37 !important; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(212, 175, 55, 0.1) !important;
    
    position: absolute;
    top: 48%; 
    left: 50%;
    pointer-events: none; 
    z-index: 4; 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
}

/* TEKS TIPOGRAFI KERATON */
.judul-profil { 
    font-family: 'Cinzel Decorative', serif; 
    color: #d4af37; /* Teks Emas */
    text-align: center; 
    margin-bottom: 20px; 
}
.judul-profil .we-are { 
    display: block; 
    font-size: 1.2rem; 
    letter-spacing: 4px; 
    margin-bottom: 5px; 
    opacity: 0.9;
}
.judul-profil .getting-married { 
    display: block; 
    font-size: 1.2rem; 
    font-weight: 700; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.teks-pengantar-profil { 
    font-family: 'Cormorant Garamond', serif !important; /* Font Sastra */
    font-size: 1rem !important; 
    color: #ffe3be !important; /* Warna Krem */
    text-align: center; 
    line-height: 1.6; 
    margin-top: -15px; 
    margin-bottom: 35px; 
    padding: 0 1px; 
    width: 85%; 
    font-style: italic;
}

.profil-susun-container { display: flex; flex-direction: column; align-items: center; width: 100%; }
.profil-item { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    color: #ffe3be; /* Warna Krem */
}

/* =========================================================
   FOTO PROFIL MEMPELAI (KAPSUL VERTIKAL)
   Bentuk TETAP, gradasi garis tepi disesuaikan jadi Emas Logam
   ========================================================= */
.foto-bulat { 
    width: 160px;  
    height: 240px; 
    border-radius: 999px; 
    object-fit: cover; 
    border: none; 
    padding: 4px; 
    
    /* Gradasi Emas Klasik */
    background: linear-gradient(135deg, #d4af37 0%, #8a631c 50%, #d4af37 100%) !important;
    
    margin-bottom: 0 !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    position: relative; 
    z-index: 2; 
    filter: sepia(20%) contrast(1.1); /* Nuansa hangat sedikit lawas */
}

.foto-wrapper {
    position: relative; 
    display: inline-block;
    margin-bottom: 20px; 
}

.nama-panggilan { 
    font-family: 'Cinzel Decorative', serif; 
    font-size: 1.6rem !important; 
    margin-bottom: 10px !important; 
    color: #d4af37 !important; /* Emas */
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.nama-lengkap { 
    font-family: 'Cormorant Garamond', serif !important; 
    font-size: 1.15rem !important; 
    font-weight: 700 !important; 
    margin-bottom: 10px !important; 
    letter-spacing: 1px; 
    color: #ffe3be !important; /* Krem */
}
.status-anak { 
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem !important; 
    margin-bottom: 15px; 
    font-style: italic; 
    line-height: 1.6; 
    color: rgba(255, 227, 190, 0.8) !important; 
}

/* =========================================================
   TOMBOL INSTAGRAM PROFIL (GAYA OUTLINE EMAS KLASIK)
   ========================================================= */
.btn-ig-profil { 
    display: inline-block; 
    color: #d4af37 !important; 
    text-decoration: none; 
    font-size: 0.75rem !important; 
    padding: 8px 24px; 
    border-radius: 20px; 
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 700 !important; 
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative; 
    z-index: 50; 
    pointer-events: auto; 
    
    background: transparent !important;
    border: 1px solid #d4af37 !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.btn-ig-profil:hover, .btn-ig-profil:active { 
    transform: translateY(-2px); 
    background: #d4af37 !important;
    color: #1a0b08 !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3) !important; 
}

.simbol-dan-profil { 
    font-family: 'Cinzel Decorative', serif; 
    font-size: 2.2rem !important; 
    color: #d4af37 !important; 
    margin: 20px 0 !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* =========================================================
   IKON BUCKET BUNGA DI HALAMAN PROFIL
   Diberi efek gelap agar menyatu dengan background Sogan
   ========================================================= */
#profil .ikon-bucket-profil {
    width: 125px; 
    height: auto;
    margin-bottom: -5px; 
    margin-top: -50px; 
    z-index: 10;
    filter: sepia(40%) brightness(0.8) contrast(1.2); /* Menyesuaikan tone */
}

/* Animasi Muncul untuk Ikon Bucket Profil */
.ikon-bucket-profil.reveal-profil.active { 
    animation: cinematicFadeDown 1.5s ease-out 0s forwards; 
    opacity: 0; 
}

#profil .profil-susun-container .profil-item:last-child {
    margin-bottom: 40px; 
}
#profil .cover-content { max-width: 340px; z-index: 10; display: flex; flex-direction: column; align-items: center; padding-top: 70px; padding-bottom: 70px; gap: 15px; }

#profil .reveal-profil { opacity: 0; pointer-events: none; }

/* FIX BUG WADAH PROFIL MENGHILANG */
#profil .profil-item.reveal-profil.active { 
    opacity: 1 !important; 
    pointer-events: auto !important; 
}

/* =========================================================
   ANIMASI PROFIL (INDEPENDENT SMART SCROLL)
   ========================================================= */
.reveal-profil:not(.active) { 
    opacity: 0 !important; 
    animation: none !important; 
    pointer-events: none; 
}
.profil-item.reveal-profil:not(.active) * { 
    opacity: 0 !important; 
    animation: none !important; 
}

/* Bunga Sudut */
.bunga-atas-kiri.reveal-profil.active { animation: masukAtasKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
.bunga-atas-kanan.reveal-profil.active { animation: masukAtasKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; }
.bunga-bawah-kiri.reveal-profil.active { animation: masukBawahKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKiri 7.5s ease-in-out infinite alternate; pointer-events: auto; }
.bunga-bawah-kanan.reveal-profil.active { animation: masukBawahKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards, ayunKanan 9s ease-in-out infinite alternate; pointer-events: auto; }

/* Header Profil */
.bingkai-tengah.reveal-profil.active { animation: bingkaiMerahReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards; pointer-events: auto; }
.judul-profil.reveal-profil.active { animation: cinematicFadeDown 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards; opacity: 0; pointer-events: auto;}
.teks-pengantar-profil.reveal-profil.active { animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards; opacity: 0; pointer-events: auto;}
.simbol-dan-profil.reveal-profil.active { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards; opacity: 0; pointer-events: auto;}

/* Animasi Elemen Mempelai */
.profil-item.reveal-profil.active img { animation: rotateInSmooth 2.2s cubic-bezier(0.19, 1, 0.22, 1) 0.1s forwards; opacity: 0; }
.profil-item.reveal-profil.active h2 { animation: splitSlideLeft 2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards; opacity: 0; }
.profil-item.reveal-profil.active h3 { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards; opacity: 0; }
.profil-item.reveal-profil.active p { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards; opacity: 0; }
.profil-item.reveal-profil.active a { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.1s forwards; opacity: 0; pointer-events: auto; }

/* Menjaga bingkai diam */
#profil .bingkai-tengah.reveal-profil,
#profil .bingkai-tengah.reveal-profil.active,
#profil .bingkai-tengah.reveal-profil:not(.active) {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* MENGATUR POSISI BUNGA PROFIL (TIDAK DIUBAH) */
#profil .bunga-atas-kiri { width: 175px; top: -2px; left: -2px; }
#profil .bunga-atas-kanan { width: 175px; top: -2px; right: -2px; }
#profil .bunga-bawah-kiri { width: 200px; bottom: -5px; left: -5px; }
#profil .bunga-bawah-kanan { width: 200px; bottom: -5px; right: -5px; }


/* =========================================================
   STYLE HALAMAN COUNTDOWN (TEMA ELEGANT ADAT JAWA)
   ========================================================= */
.bg-countdown {
    /* Latar Belakang Warna Cokelat Sogan khas Keraton/Batik */
    background-color: #1a0b08 !important; 
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15), transparent 70%),
        linear-gradient(to bottom, #1a0b08, #0a0303) !important;
    background-attachment: scroll !important; 
    padding: 0 !important; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    position: relative;
}

.slider-container { position: relative; width: 100%; height: 60vh !important; overflow: hidden; }
.slides { display: flex; width: 300%; height: 100%; animation: slideAnimasi 15s infinite; }
.slide { width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slideAnimasi { 0%, 30% { transform: translateX(0); } 33%, 63% { transform: translateX(-33.33%); } 66%, 96% { transform: translateX(-66.66%); } 100% { transform: translateX(0); } }

/* Gradasi agar foto menyatu perlahan dengan warna Sogan */
.gradient-overlay-premium {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 180px;
    background: linear-gradient(to bottom, transparent, #1a0b08);
}

.countdown-content-premium {
    flex: 1;
    padding: 20px 20px 80px 20px; 
    display: flex; flex-direction: column; align-items: center;
    z-index: 5;
    background-color: transparent; /* Dibuat transparan agar gradient Sogan terlihat */
    width: 100%;
}

.ikon-bucket-countdown {
    width: 180px; 
    max-width: 50vw; 
    height: auto;
    margin-top: 40px; 
    margin-bottom: 20px; 
    z-index: 10;
    opacity: 0; 
}

.countdown-content-premium.reveal-countdown.active .ikon-bucket-countdown { 
    animation: cinematicFadeDown 1.5s ease-out 0s forwards !important; 
}

.title-save-date-premium {
    font-family: 'Cinzel Decorative', serif;
    /* Warna Emas Keraton */
    color: #d4af37; 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Mematikan filter invert(1) putih karena kita ingin warnanya tetap Emas */
.divider-jawa {
    margin-bottom: 30px;
    filter: none !important; 
}

/* -------------------------------------------
   KOTAK WAKTU ALA UKIRAN KAYU / KERATON
   ------------------------------------------- */
.countdown-elegant { 
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 35px; 
}

.cd-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 65px; height: 75px;
    
    /* Background Cokelat Sangat Gelap (Transparan) */
    background: rgba(26, 11, 8, 0.85); 
    border: 1px solid rgba(212, 175, 55, 0.4); /* Garis emas */
    border-radius: 6px; /* Dibikin agak kotak seperti pilar kayu */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.05); 
    position: relative;
}

/* Efek Siku Emas di pojok kotak (Mirip ornamen mebel/buku kuno) */
.cd-item::before, .cd-item::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    pointer-events: none;
}
.cd-item::before { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.cd-item::after { bottom: 3px; right: 3px; border-left: none; border-top: none; }

.cd-item span {
    font-size: 1.8rem; font-family: 'Cinzel Decorative', serif; font-weight: 700;
    color: #edca58; /* Angka Emas Terang */
    line-height: 1; margin-bottom: 4px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.cd-item p {
    font-size: 0.7rem; font-weight: bold;
    color: #d4af37; /* Label Emas Gelap */
    text-transform: uppercase; letter-spacing: 2px; margin: 0;
}

.cd-separator {
    font-size: 1.5rem; color: #d4af37; font-family: 'Cinzel Decorative', serif; font-weight: bold; margin-top: -15px;
}

.teks-undangan-countdown {
    color: rgba(255, 227, 190, 0.9); /* Krem */
    font-family: 'Cormorant Garamond', serif; /* Diubah ke Serif agar lebih klasik/sastra */
    font-size: 1.1rem; 
    line-height: 1.6; 
    max-width: 325px; 
    margin-bottom: 35px; 
    text-align: center; 
    font-style: italic;
}

/* -------------------------------------------
   TOMBOL KALENDER (EMAS OUTLINE)
   ------------------------------------------- */
.btn-calendar-premium {
    background: transparent; 
    color: #d4af37;          
    border: 2px solid #d4af37; 
    padding: 12px 28px; 
    font-size: 0.9rem; 
    border-radius: 30px;
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 700; 
    letter-spacing: 1.5px; 
    text-transform: uppercase;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: all 0.3s ease; 
    box-shadow: none; 
}

.btn-calendar-premium svg,
.btn-calendar-premium svg * { 
    width: 18px; 
    height: 18px; 
    fill: none !important; 
    stroke: #d4af37 !important; 
    stroke-width: 2px !important; 
    stroke-linecap: round !important; 
    stroke-linejoin: round !important;
    transition: all 0.3s ease;
}

/* Hover ala Emas Solid */
.btn-calendar-premium:hover, 
.btn-calendar-premium:active {
    background: linear-gradient(135deg, #d4af37 0%, #b38601 100%);
    color: #1a0b08; /* Teks jadi cokelat gelap */
    border-color: transparent;
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); 
}

.btn-calendar-premium:hover svg, 
.btn-calendar-premium:active svg,
.btn-calendar-premium:hover svg *, 
.btn-calendar-premium:active svg * {
    stroke: #1a0b08 !important; /* Ikon juga jadi cokelat gelap */
}

/* ANIMASI COUNTDOWN ELEGANT */
.countdown-content-premium.reveal-countdown:not(.active) * {
    opacity: 0 !important;
    animation: none !important;
}

.countdown-content-premium.reveal-countdown.active .title-save-date-premium { animation: eleganReveal 2s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards !important; opacity: 0; }
.countdown-content-premium.reveal-countdown.active .ornament-divider { animation: eleganReveal 2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards !important; opacity: 0; }
.countdown-content-premium.reveal-countdown.active .countdown-elegant { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards !important; opacity: 0; }
.countdown-content-premium.reveal-countdown.active .teks-undangan-countdown { animation: eleganReveal 2s cubic-bezier(0.19, 1, 0.22, 1) 1s forwards !important; opacity: 0; }
.countdown-content-premium.reveal-countdown.active .btn-calendar-premium { animation: eleganReveal 2s cubic-bezier(0.19, 1, 0.22, 1) 1.3s forwards !important; opacity: 0; pointer-events: auto; }

/* =========================================================
   STYLE HALAMAN EVENT (TEMA KLASIK ADAT JAWA)
   ========================================================= */
.bg-event {
    /* Latar Sogan Gelap */
    background-color: #1a0b08 !important;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important; 
    background-attachment: scroll !important;
    min-height: 100vh; /* Dikembalikan agar punya ruang napas atas-bawah */
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    position: relative; 
    overflow: hidden; 
    padding: 80px 20px 60px 20px; 
}

.event-header {
    text-align: center;
    margin-bottom: 20px;
    z-index: 10;
    position: relative;
}

.title-event-jawa {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.event-container.rampingkan { 
    max-width: 340px; 
    margin: 0 auto; 
    padding-top: 0px; 
    padding-bottom: 0px; 
    z-index: 10; 
    position: relative;
    width: 100%;
}

/* KARTU ACARA ALA PRASASTI KERATON */
.card-event-jawa {
    background-color: #fdfcf0 !important; /* Warna Kertas Naskah Krem */
    background-image: none !important; 
    border: 3px double #d4af37 !important; /* Garis emas ganda */
    border-radius: 4px !important; /* Kotak tegas mematah */
    padding: 5px !important; 
    margin-bottom: 45px !important;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important; 
    text-align: center;
}

/* Menghilangkan margin berlebih pada kartu terakhir */
.card-event-jawa:last-child {
    margin-bottom: 0 !important;
}

/* Siku Ornamen Emas di Pojok Kartu Event */
.siku-emas {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid #d4af37;
    z-index: 5;
    pointer-events: none;
}
.siku-kiri-atas { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.siku-kanan-bawah { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.inner-jawa {
    background: transparent !important; 
    border-radius: 0 !important; 
    width: 100%;
    height: 100%;
    padding: 30px 15px 40px 15px !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* IKON BUCKET BUNGA DI HALAMAN EVENT */
.inner-jawa .ikon-bucket-event {
    width: 100px; 
    height: auto;
    margin-top: 0px; 
    margin-bottom: 20px;
    z-index: 10;
    opacity: 0;
    filter: sepia(40%) contrast(1.1) brightness(0.8); /* Efek Vintage */
}

/* TIPOGRAFI EVENT */
.inner-jawa .title-small-event { 
    font-size: 2rem; 
    color: #4a1c12; /* Cokelat Gelap Sogan */
    margin-bottom: 10px; 
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 2px;
    font-weight: bold;
}


.inner-jawa .tanggal-event { 
    font-weight: 700; 
    color: #2c1a17; 
    font-size: 1.15rem;
    font-family: 'Poppins', sans-serif;
}

.inner-jawa .waktu-event {
    font-size: 1rem;
    font-weight: bold;
    color: #8a631c; /* Emas agak gelap */
    margin-top: 5px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.inner-jawa .teks-penghubung { 
    color: #4a1c12; 
    font-size: 0.95rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 8px;
}

.inner-jawa .alamat-event {
    color: #2c1a17; 
    font-size: 1rem; 
    line-height: 1.5;
    margin-bottom: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* TOMBOL MAPS JAWA (Gaya Stempel Persegi) */
.btn-lokasi-premium-jawa {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 10px 30px;
    font-size: 0.85rem;
    border-radius: 0px; /* Kotak tegas bersudut patah */
    font-family: 'Poppins', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-lokasi-premium-jawa:hover { 
    background: #4a1c12; /* Cokelat Gelap saat di-hover */
    border-color: #4a1c12;
    color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   ANIMASI EVENT SCROLL (SATU KOMANDO DARI KARTU INDUK)
   ========================================================= */
.card-event-jawa.reveal:not(.active),
.card-event-jawa.reveal:not(.active) * { 
    opacity: 0 !important; 
    animation: none !important; 
    pointer-events: none;
}

/* Animasi Muncul Kartu Utama */
.card-event-jawa.reveal.active { 
    opacity: 0; 
    animation: cinematicFadeUp 2.2s cubic-bezier(0.19, 1, 0.22, 1) 0.1s forwards !important; 
    pointer-events: auto;
}

/* Animasi Isi Kartu (Berurutan dengan Mulus) */
.card-event-jawa.reveal.active .ikon-bucket-event { animation: cinematicFadeDown 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards !important; }
.card-event-jawa.reveal.active .title-small-event { animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards !important; }
.card-event-jawa.reveal.active .event-divider-jawa { animation: zoomInSmooth 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards !important; }
.card-event-jawa.reveal.active .tanggal-event { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards !important; }
.card-event-jawa.reveal.active .waktu-event { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.1s forwards !important; }
.card-event-jawa.reveal.active .teks-penghubung { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.3s forwards !important; }
.card-event-jawa.reveal.active .alamat-event { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.5s forwards !important; }
.card-event-jawa.reveal.active .btn-lokasi-premium-jawa { animation: cinematicFadeUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) 1.7s forwards !important; }


/* =========================================================
   STYLE HALAMAN OUR STORY (TEMA KLASIK ADAT JAWA) - FIX LAYOUT
   ========================================================= */
.bg-story {
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important; 
    background-size: cover; 
    background-position: center;
    background-attachment: scroll !important; 
    position: relative; 
    overflow: hidden; 
    min-height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 60px 20px;
}

.overlay-story { display: none; }

.story-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-story {
    font-family: 'Cinzel Decorative', serif; 
    color: #d4af37; /* Emas Keraton */
    font-size: 2.2rem; 
    margin-bottom: 5px; 
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

/* --- KUNCI PERBAIKAN LAYOUT SLIDER --- */
.story-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; /* Mencegah kartu lain bocor ke samping */
    padding: 30px 0 50px 0;
}

.story-slider {
    display: flex;
    flex-wrap: nowrap; /* Memaksa kartu berjajar ke samping, bukan numpuk */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.story-slide {
    min-width: 100%; /* Memaksa setiap kartu memakan lebar penuh layar HP */
    flex: 0 0 100%;
    padding: 0 15px;
    box-sizing: border-box;
}
/* ------------------------------------- */

/* KARTU CERITA ALA PRASASTI KUNO */
.story-card {
    background: #fdfcf0; 
    border: 3px double #d4af37; 
    border-radius: 4px; 
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
}

/* Ornamen Siku Emas di Kartu Story */
.story-card::before {
    content: "◈";
    position: absolute;
    top: 5px;
    left: 5px;
    color: #d4af37;
    font-size: 14px;
    z-index: 10;
}

.story-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px !important; /* Disesuaikan agar teks di bawahnya lega */
    border-bottom: 2px solid #d4af37;
    overflow: hidden;
}

.story-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    filter: sepia(30%) contrast(1.1); 
    transition: transform 1.5s ease;
}

.story-card:hover .story-img-wrapper img {
    transform: scale(1.05);
}

/* Lencana Tanggal Ala Stempel Keraton */
.story-date-badge {
    position: absolute;
    /* Posisikan persis di garis bawah gambar (tinggi gambar 280px) */
    top: 280px; 
    left: 50%;
    /* translate(-50%, -50%) akan membuat lencana benar-benar berada di tengah garis */
    transform: translate(-50%, -50%); 
    background: #4a1c12; 
    color: #d4af37; 
    padding: 6px 20px;
    border: 1px solid #d4af37;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Poppins', serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 99; /* Tingkatkan z-index untuk memastikan ada di layer teratas */
    white-space: nowrap;
    letter-spacing: 1px;
}

.story-content {
    padding: 35px 20px 25px 20px;
    background: #fdfcf0;
}

.story-phase {
    font-family: 'Cinzel Decorative', serif;
    color: #4a1c12; 
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.story-text {
    font-family: 'Cormorant Garamond', serif;
    color: #2c1a17; 
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    font-weight: 600;
}

/* Navigasi Panah Klasik */
.story-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(26, 11, 8, 0.8);
    border: 1.5px solid #d4af37;
    color: #d4af37; 
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease;
}
.story-nav:hover { background: #d4af37; color: #1a0b08; }
.story-nav.prev { left: 5px; }
.story-nav.next { right: 5px; }

/* Indikator Titik (Dots) */
.story-dots {
    display: flex; gap: 8px; justify-content: center; margin-top: 5px;
}
.story-dots .dot {
    width: 8px; height: 8px;
    background: rgba(212, 175, 55, 0.3); 
    border: 1px solid #d4af37;
    border-radius: 50%; cursor: pointer;
    transition: all 0.3s ease;
}
.story-dots .dot.active {
    background: #d4af37; 
    width: 12px; height: 12px;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Animasi Muncul Khusus Story */
#story.active .story-card {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards;
}

/* =========================================================
   STYLE HALAMAN GALLERY (TEMA KLASIK ADAT JAWA)
   ========================================================= */
.bg-gallery {
    /* Latar Belakang Sogan Gelap */
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1), transparent 80%) !important;
    background-size: cover;
    background-position: center;
    background-attachment: scroll !important; 
    position: relative;
    padding: 80px 15px;
    min-height: 100vh;
}

.gallery-container {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.title-gallery {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37; /* Emas Keraton */
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* Jarak dilonggarkan sedikit agar bingkai emas tidak tabrakan */
    margin-top: 30px;
}

/* BINGKAI FOTO ALA LUKISAN KERATON */
.gallery-item {
    width: 100%;
    aspect-ratio: 3 / 4; 
    border-radius: 4px; /* Sudut tegas mematah */
    overflow: hidden;
    border: 3px double #d4af37; /* Double line warna emas */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    background-color: #4a1c12; /* Dasar cokelat marun */
    opacity: 0; 
    position: relative;
}

/* Ornamen Siku Emas di Bingkai Foto */
.gallery-item::before, .gallery-item::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 1.5px solid #d4af37;
    pointer-events: none;
    z-index: 5;
    transition: all 0.5s ease;
}
.gallery-item::before { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.gallery-item::after { bottom: 4px; right: 4px; border-left: none; border-top: none; }

.gallery-item.wide {
    grid-column: span 2; 
    aspect-ratio: 16 / 9; 
}

/* FOTO DENGAN EFEK VINTAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(25%) contrast(1.1) brightness(0.9); /* Sedikit kecokelatan ala foto lawas */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease;
}

/* Efek saat foto disentuh (Hover) */
.gallery-item:hover img { 
    transform: scale(1.1); 
    filter: sepia(0%) contrast(1.1) brightness(1); /* Warnanya kembali cerah normal */
}

/* Sudut emas membesar saat di-hover */
.gallery-item:hover::before, .gallery-item:hover::after {
    width: 20px; height: 20px;
}

/* ANIMASI KHUSUS GALLERY */
.header-gallery.reveal:not(.active) {
    opacity: 0 !important;
    animation: none !important;
}

.header-gallery.reveal.active {
    transition: none !important; 
    animation: eleganReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important;
}

#gallery.active .gallery-item.delay-1 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards; }
#gallery.active .gallery-item.delay-2 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards; }
#gallery.active .gallery-item.delay-3 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.8s forwards; }
#gallery.active .gallery-item.delay-4 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 1.1s forwards; }
#gallery.active .gallery-item.delay-5 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 1.4s forwards; }
#gallery.active .gallery-item.delay-6 { animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 1.7s forwards; }

/* =========================================================
   STYLE HALAMAN GIFT (TEMA ROYAL KERATON)
   ========================================================= */
.bg-gift {
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important;
    background-size: cover;
    background-position: center;
    background-attachment: scroll !important; 
    position: relative;
    padding: 80px 20px;
    min-height: 100vh;
}

.title-gift {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.subtitle-gift {
    font-family: 'Cormorant Garamond', serif;
    color: #ffe3be;
    font-size: 1.05rem;
    line-height: 1.5;
    font-style: italic;
    max-width: 320px;
    margin: 0 auto 40px auto;
    text-align: center;
    opacity: 0.9;
}

/* KARTU ATM ALA UKIRAN EMAS */
.card-jawa {
    background: linear-gradient(135deg, #2c1a17 0%, #0a0303 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7) !important;
}

/* Tekstur Batik Halus pada Kartu */
.card-jawa::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#d4af37 0.5px, transparent 0.5px);
    background-size: 10px 10px;
    opacity: 0.05;
}

.atm-bank-name {
    font-family: 'Cinzel Decorative', serif;
    color: #edca58 !important;
    font-weight: 700 !important;
    letter-spacing: 2px;
}

.jawa-stamp {
    font-size: 0.6rem;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

.atm-number {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 15px 0 !important;
}

.atm-label {
    color: rgba(212, 175, 55, 0.7) !important;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.65rem !important;
}

.atm-name {
    font-family: 'Cormorant Garamond', serif !important;
    color: #edca58 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* TOMBOL SALIN DI DALAM KARTU */
.btn-copy-inside-jawa {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-copy-inside-jawa:hover {
    background: #d4af37;
    color: #1a0b08;
}

/* KARTU KADO FISIK */
.card-kado-jawa {
    background: #fdfcf0 !important; /* Warna kertas naskah */
    border: 3px double #d4af37 !important;
    border-radius: 4px !important;
    padding: 30px 20px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

.bank-name-jawa {
    font-family: 'Cinzel Decorative', serif;
    color: #4a1c12;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(74, 28, 18, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

.rek-name-jawa {
    color: #4a1c12;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.alamat-kado-jawa {
    font-family: 'Cormorant Garamond', serif;
    color: #2c1a17;
    font-size: 1.1rem;
    line-height: 1.4;
    font-style: italic;
    font-weight: 600;
}

.btn-copy-premium-jawa {
    background: #4a1c12;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 10px 25px;
    border-radius: 0;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-copy-premium-jawa:hover {
    background: #d4af37;
    color: #4a1c12;
}

/* TOMBOL WA CONFIRM */
.wa-text-jawa {
    color: #ffe3be;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    margin-bottom: 15px;
}

.btn-wa-jawa {
    background: linear-gradient(135deg, #d4af37 0%, #b38601 100%);
    color: #1a0b08 !important;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-wa-jawa:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* =========================================================
   FIX: HANYA MENAMBAH JARAK ANTAR KARTU GIFT 
   (TANPA MENGUBAH BENTUK KARTU)
   ========================================================= */

/* Memberikan jarak 45px ke bawah pada setiap kartu agar lega */
.gift-item-wrapper {
    margin-bottom: 45px !important; 
}

/* Memastikan kartu yang paling bawah tidak punya jarak berlebih */
.gift-item-wrapper:last-child {
    margin-bottom: 0 !important; 
}

/* Memberikan jarak aman antara kartu terakhir dengan area tombol WhatsApp */
.wa-confirm-wrapper {
    margin-top: 45px !important;
}
/* =========================================================
   STYLE HALAMAN TURUT MENGUNDANG (TEMA KLASIK KERATON)
   ========================================================= */
.bg-turut-jawa {
    /* Background Sogan Gelap */
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important;
    background-attachment: scroll !important;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    overflow: hidden;
}

.turut-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 45px; /* Jarak lega antar kartu */
}

/* KARTU PRASASTI KREM */
.doa-card-jawa, .turut-card-jawa {
    background: #fdfcf0 !important; /* Warna Kertas Naskah */
    border: 3px double #d4af37 !important;
    border-radius: 4px !important;
    padding: 40px 25px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
    position: relative;
    text-align: center;
}

/* Penempatan Siku Emas */
.doa-card-jawa .siku-emas, .turut-card-jawa .siku-emas {
    position: absolute;
    width: 25px; height: 25px;
    border: 2px solid #d4af37;
    z-index: 5; pointer-events: none;
}
.doa-card-jawa .siku-kiri-atas, .turut-card-jawa .siku-kiri-atas { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.doa-card-jawa .siku-kanan-bawah, .turut-card-jawa .siku-kanan-bawah { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* TIPOGRAFI KERATON */
.title-doa-jawa, .title-turut-jawa {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: #4a1c12; /* Cokelat Sogan */
    font-weight: 700;
    margin-bottom: 5px;
}

.doa-arab {
    font-size: 1.8rem;
    color: #1a0b08;
    line-height: 1.8;
    margin-bottom: 10px;
    font-weight: bold;
}

.doa-latin {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #8a631c; /* Emas Gelap */
    font-style: italic;
    margin-bottom: 15px;
}

.doa-terjemahan {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #2c1a17;
    font-style: italic;
    line-height: 1.5;
    font-weight: 600;
}

.list-turut-jawa {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: inline-block;
    text-align: left;
}

.list-turut-jawa li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: #2c1a17;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

/* Mengubah bullet point menjadi simbol Wajik (◈) Emas */
.list-turut-jawa li::before {
    content: "◈";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 1.2rem;
    top: -2px;
}

/* =========================================================
   ANIMASI REVEAL TURUT MENGUNDANG (MENGALIR MULUS)
   ========================================================= */

/* Sembunyikan sebelum discroll */
.doa-card-jawa.reveal:not(.active),
.turut-card-jawa.reveal:not(.active) {
    opacity: 0 !important;
    animation: none !important;
    pointer-events: none;
}

/* Kartu naik bergantian */
.doa-card-jawa.reveal.active {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important;
    pointer-events: auto;
}

.turut-card-jawa.reveal.active {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards !important;
    pointer-events: auto;
}

/* Detail di dalam kartu memudar masuk */
.doa-card-jawa.reveal.active .title-doa-jawa,
.turut-card-jawa.reveal.active .title-turut-jawa {
    animation: zoomInSmooth 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards !important;
    opacity: 0;
}
.doa-card-jawa.reveal.active .doa-arab {
    animation: cinematicFadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.7s forwards !important;
    opacity: 0;
}
.doa-card-jawa.reveal.active .doa-latin,
.doa-card-jawa.reveal.active .doa-terjemahan {
    animation: cinematicFadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.9s forwards !important;
    opacity: 0;
}

/* Efek khusus: Nama keluarga muncul berurutan (Staggered List) */
.turut-card-jawa.reveal.active .list-turut-jawa li {
    animation: cinematicFadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    opacity: 0;
}
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(1) { animation-delay: 0.7s !important; }
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(2) { animation-delay: 0.8s !important; }
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(3) { animation-delay: 0.9s !important; }
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(4) { animation-delay: 1.0s !important; }
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(5) { animation-delay: 1.1s !important; }
.turut-card-jawa.reveal.active .list-turut-jawa li:nth-child(n+6) { animation-delay: 1.2s !important; }

/* =========================================================
   FIX ANTI-DOUBLE (SAPU JAGAT) - TURUT & BUTTONS
   ========================================================= */

/* --- 1. Reset Status Awal agar Benar-benar Hilang --- */
.doa-card-jawa.reveal, 
.turut-card-jawa.reveal,
.btn-submit-jawa,
.btn-wa-jawa,
.btn-lokasi-premium-jawa {
    opacity: 0;
    pointer-events: none;
}

/* --- 2. Matikan Animasi Liar yang sudah ada sebelumnya --- */
.doa-card-jawa.reveal.active, 
.turut-card-jawa.reveal.active,
.btn-submit-jawa,
.btn-wa-jawa {
    animation: none !important;
}

/* --- 3. Jalankan Animasi Turut Mengundang (HANYA SATU KALI) --- */
.doa-card-jawa.reveal.active {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important;
    pointer-events: auto;
}

.turut-card-jawa.reveal.active {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards !important;
    pointer-events: auto;
}

/* --- 4. Fix Animasi Tombol (Agar Muncul Halus & Tidak Dobel) --- */
/* Tombol Kirim Ucapan */
#rsvpForm .btn-submit-jawa {
    opacity: 1 !important; /* Tombol form biarkan muncul bersama kotak rsvp */
    animation: none !important;
}

/* Tombol WA Confirm & Lokasi */
.wa-confirm-wrapper.reveal.active .btn-wa-jawa,
.event-card-premium.active .btn-lokasi-premium-jawa {
    animation: zoomBlurElegant 2s cubic-bezier(0.19, 1, 0.22, 1) 1.2s forwards !important;
    opacity: 0;
    pointer-events: auto;
}

/* --- 5. Fix List Item Turut (Mencegah Kedipan) --- */
.turut-card-jawa.active .list-turut-jawa li {
    opacity: 0;
    animation: simpleFadeIn 1s ease-out forwards !important;
}
.turut-card-jawa.active .list-turut-jawa li:nth-child(1) { animation-delay: 0.5s !important; }
.turut-card-jawa.active .list-turut-jawa li:nth-child(2) { animation-delay: 0.6s !important; }
.turut-card-jawa.active .list-turut-jawa li:nth-child(3) { animation-delay: 0.7s !important; }
.turut-card-jawa.active .list-turut-jawa li:nth-child(4) { animation-delay: 0.8s !important; }
.turut-card-jawa.active .list-turut-jawa li:nth-child(n+5) { animation-delay: 0.9s !important; }

@keyframes simpleFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   STYLE HALAMAN RSVP (TEMA KLASIK ADAT JAWA - PROPORSIONAL)
   ========================================================= */

/* 1. Latar Belakang & Overlay */
.bg-rsvp {
    background-color: #1a0b08 !important; 
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 80%) !important;
    background-size: cover;
    background-position: center;
    background-attachment: scroll !important; 
    position: relative;
    padding: 80px 20px;
    min-height: 100vh;
}

.overlay-rsvp {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26, 11, 8, 0.4), rgba(10, 3, 3, 0.8));
    z-index: 1;
}

.rsvp-container {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* 2. Area Judul */
.header-rsvp {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-rsvp {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.subtitle-rsvp {
    font-family: 'Cormorant Garamond', serif;
    color: #ffe3be;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.9;
}

.rsvp-wrapper {
    width: 100%;
}

/* 3. KOTAK RSVP & WISH WALL (Gaya Prasasti Proporsional) */
.rsvp-form-box, .wish-wall-box {
    background: #fdfcf0 !important; /* Warna Kertas Naskah */
    border: 3px double #d4af37 !important; /* Bingkai Emas Ganda */
    border-radius: 4px !important;
    padding: 40px 25px !important; /* Padding lega agar tidak gencet */
    margin-bottom: 40px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Formulir wajib rata kiri agar rapi */
}

/* Penempatan Siku Emas di Pojok Box RSVP */
.rsvp-form-box .siku-emas, 
.wish-wall-box .siku-emas {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid #d4af37;
    z-index: 5;
    pointer-events: none;
}
.rsvp-form-box .siku-kiri-atas, .wish-wall-box .siku-kiri-atas { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.rsvp-form-box .siku-kanan-bawah, .wish-wall-box .siku-kanan-bawah { bottom: 6px; right: 6px; border-left: none; border-top: none; }

/* 4. STYLING INPUT FORM */
.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: #ffffff !important;
    border: 1px solid #d4af37 !important; 
    border-radius: 0px !important; 
    color: #2c1a17 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem !important;
    padding: 14px 15px; 
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #888888; 
    font-family: Arial, Helvetica, sans-serif;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #4a1c12 !important;
    box-shadow: 0 0 8px rgba(74, 28, 18, 0.2);
}

.form-group select option {
    background-color: #ffffff; 
    color: #111111; 
}

/* 5. TOMBOL KIRIM (Gaya Stempel Cokelat Gelap) */
.btn-submit-jawa {
    width: 100%;
    background: #4a1c12; 
    color: #d4af37;
    border: 1.5px solid #d4af37;
    padding: 14px; 
    font-size: 0.95rem;
    border-radius: 0;
    font-family: 'Poppins', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.btn-submit-jawa:hover {
    background: #d4af37;
    color: #4a1c12;
}

/* 6. AREA WISH WALL (BUKU TAMU) */
.wish-messages {
    max-height: 300px; 
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar Estetik */
.wish-messages::-webkit-scrollbar { width: 5px; }
.wish-messages::-webkit-scrollbar-track { background: rgba(212, 175, 55, 0.1); border-radius: 10px; }
.wish-messages::-webkit-scrollbar-thumb { background: #d4af37 !important; border-radius: 10px; }

/* BALON UCAPAN (Potongan Kertas Naskah) */
.wish-item {
    background-color: #ffffff !important;
    border: 1px dashed #d4af37 !important; 
    padding: 18px 15px;
    border-radius: 0; 
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 4px 4px 0px rgba(212, 175, 55, 0.1);
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.wish-item:hover {
    transform: translateX(5px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px dashed #d4af37; 
    padding-bottom: 8px;
}

.wish-name {
    color: #4a1c12 !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.wish-status {
    font-size: 0.65rem !important;
    font-weight: bold;
    border: 1px solid currentColor;
    padding: 2px 8px !important;
    border-radius: 2px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wish-text {
    color: #2c1a17 !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem !important;
    line-height: 1.4;
    font-style: italic;
    margin: 0;
}

/* 7. ANIMASI RSVP (MUNCUL MENGALIR KE ATAS) */
.rsvp-form-box.reveal:not(.active),
.wish-wall-box.reveal:not(.active) { 
    opacity: 0 !important; 
}

.rsvp-form-box.reveal.active,
.wish-wall-box.reveal.active { 
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important; 
}
/* =========================================================
   STYLE HALAMAN PENUTUP (TEMA KLASIK ADAT JAWA)
   ========================================================= */
.bg-penutup {
    background-color: #1a0b08 !important;
    background-image: url('assets/bg_penutup1.webp'); /* Tetap pakai foto prewed/penutup Anda */
    background-size: cover;
    background-position: center top; 
    background-attachment: scroll !important; 
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* Diposisikan ke tengah agar megah */
    padding-bottom: 0 !important;
    overflow: hidden;
}

.overlay-penutup {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradasi dari Cokelat Sogan transparan perlahan menjadi Hitam Pekat di bawah */
    background: linear-gradient(
        to bottom, 
        rgba(26, 11, 8, 0.6) 0%,    
        rgba(26, 11, 8, 0.85) 50%,   
        rgba(10, 3, 3, 1) 100%  
    );
    z-index: 1;
}

.penutup-container {
    position: relative;
    z-index: 2; 
    text-align: center;
    width: 100%;
    max-width: 450px;
    margin-top: -50px; /* Sedikit dinaikkan agar tidak tabrakan dengan navigasi bawah */
}

/* Tipografi Megah */
.nama-mempelai-penutup {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37 !important; /* Emas Keraton */
    font-size: 2.5rem; /* Dibuat lebih besar */
    margin-bottom: 0;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(212, 175, 55, 0.3); 
}

.teks-penutup {
    font-family: 'Cormorant Garamond', serif;
    color: #ffe3be !important; /* Kertas Naskah/Krem */
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 35px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

.terima-kasih {
    font-family: 'Cinzel Decorative', serif;
    color: #d4af37 !important; /* Emas */
    font-size: 1.4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Menyiasati Divider di Halaman Penutup agar Background Simbolnya Menyatu */
.bg-penutup .event-divider-jawa::after {
    background: transparent !important; /* Tembus pandang karena gradasinya dinamis */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* =========================================================
   FIX POSISI CREDIT (AMAN DARI NAVIGASI)
   ========================================================= */
.credit-wrapper {
    position: absolute;
    bottom: 110px !important; /* Dinaikkan lebih tinggi (sebelumnya 85px) */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100; 
    pointer-events: auto;
}

.credit-box-jawa {
    background-color: rgba(26, 11, 8, 0.8); /* Cokelat Gelap Transparan */
    border: 1px solid #d4af37; /* Garis Emas Tipis */
    color: #d4af37; 
    padding: 6px 20px;
    border-radius: 50px; 
    text-decoration: none; 
    font-family: 'Poppins', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8); 
}

.credit-box-jawa span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: none;
    font-style: italic;
    color: #ffe3be; /* Krem */
}

/* Efek menyala saat disentuh */
.credit-box-jawa:hover, .credit-box-jawa:active {
    background-color: #d4af37;
    color: #1a0b08;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}
.credit-box-jawa:hover span, .credit-box-jawa:active span { 
    color: #1a0b08; 
}

/* Animasi Muncul Megah */
.penutup-container.reveal:not(.active) { opacity: 0 !important; }
.penutup-container.reveal.active { 
    animation: cinematicFadeUp 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important; 
}

/* =========================================================
   STYLE MENU NAVIGASI BAWAH (TEMA KERATON EKSKLUSIF)
   ========================================================= */
.footer-wrapper {
    position: absolute; /* Mengunci melayang di viewport */
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto; /* Ini kunci utama agar selalu di tengah mutlak */
    width: 100%;
    max-width: 414px; /* Tetap disiplin seukuran body desktop */
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none; 
}

.nav-bottom {
    background: rgba(26, 11, 8, 0.9) !important; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #d4af37 !important; 
    padding: 6px 10px !important; /* Sedikit dirampingkan */
    border-radius: 50px !important; 
    display: flex;
    justify-content: center;
    /* Gap akan menyusut otomatis dari 12px menjadi 4px di HP kecil */
    gap: clamp(4px, 1.5vw, 12px) !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
    pointer-events: auto; 
    width: max-content; 
    max-width: 95%; /* Mencegah menu meluber di HP ukuran mikro */
}

.nav-btn {
    /* Lebar dan tinggi ikon menyusut proporsional (Minimal 28px, Maksimal 38px) */
    width: clamp(28px, 8vw, 38px) !important;  
    height: clamp(28px, 8vw, 38px) !important; 
    border-radius: 50%;
    background-color: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn img {
    /* Gambar di dalamnya juga ikut lentur menyusut */
    width: clamp(14px, 4vw, 18px) !important;  
    height: clamp(14px, 4vw, 18px) !important;
    object-fit: contain;
    filter: invert(72%) sepia(34%) saturate(762%) hue-rotate(5deg) brightness(95%) contrast(89%) !important;
    transition: all 0.3s ease;
}

/* EFEK SAAT MENU DISENTUH (HOVER) */
.nav-btn:hover, .nav-btn:active {
    background-color: #d4af37 !important; /* Lingkaran berubah jadi Emas solid */
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4) !important; /* Cahaya emas di bawah tombol */
}

/* Mengubah Ikon menjadi Cokelat Gelap saat disentuh */
.nav-btn:hover img, 
.nav-btn:active img {
    /* Trik mengubah gambar menjadi warna Cokelat Sogan (#1a0b08) */
    filter: invert(5%) sepia(21%) saturate(6320%) hue-rotate(336deg) brightness(92%) contrast(97%) !important;
}

/* =========================================================
   STYLE TOMBOL MUSIK (TEMA KERATON)
   ========================================================= */
#music-toggle { 
    position: fixed; 
    bottom: 95px !important; /* Dinaikkan sedikit agar sejajar rapi */
    right: 20px; 
    width: 40px !important; 
    height: 40px !important; 
    border-radius: 50%; 
    z-index: 1001 !important; 
    display: none; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.1rem; 
    font-weight: bold; 
    
    background-color: rgba(26, 11, 8, 0.85) !important; /* Sogan Gelap */
    color: #d4af37 !important; /* Teks/Ikon Emas */
    border: 1px solid #d4af37 !important; /* Garis Emas */
    box-shadow: 0 5px 15px rgba(0,0,0,0.6) !important; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(5px);
}

#music-toggle:hover,
#music-toggle:active { 
    background-color: #d4af37 !important; /* Jadi emas solid saat disentuh */
    color: #1a0b08 !important; /* Ikon jadi cokelat */
    transform: translateY(-3px); 
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4) !important; 
}

/* DEKORASI PISAH (ATAS & BAWAH) */
.dekor-pisah { position: absolute; left: 0; width: 100%; height: auto; pointer-events: none; z-index: 4; opacity: 0; }
.dekor-atas { top: 0; } .dekor-bawah { bottom: 0; }
#cover-page .dekor-pisah { animation: munculBingkaiAman 1.5s ease-in-out 1s forwards; }
body.locked #hero .dekor-pisah { animation: none !important; opacity: 0 !important; }
body:not(.locked) #hero .dekor-pisah { animation: munculBingkaiAman 1.5s ease-in-out 0.2s forwards; }
#ayat.active .dekor-pisah.reveal-ayat, #profil.active .dekor-pisah.reveal-profil, #event.active .dekor-pisah.reveal-event { animation: munculBingkaiAman 1.5s ease-in-out 0.5s forwards; }
#story:not(.active) .dekor-pisah { opacity: 0 !important; animation: none !important; }
#story.active .dekor-pisah { opacity: 0; animation: munculBingkaiAman 1s ease-in-out 0s forwards !important; }
#countdown-baru:not(.active) .dekor-pisah { opacity: 0 !important; animation: none !important; }
#countdown-baru.active .dekor-pisah { opacity: 0; animation: munculBingkaiAman 1s ease-in-out 0s forwards !important; z-index: 10; }
#gallery:not(.active) .dekor-pisah { opacity: 0 !important; animation: none !important; }
#gallery.active .dekor-pisah { opacity: 0; animation: munculBingkaiAman 1s ease-in-out 0s forwards !important; z-index: 10; }
#event.active .dekor-atas.reveal-event { animation: munculBingkaiAman 1s ease-in-out 0s forwards !important; }


/* =========================================================
   CREDIT DESIGNER (ABSOLUTE POSITION - ANTI GESER)
   ========================================================= */
.credit-wrapper {
    position: absolute;
    bottom: 30px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100; 
    pointer-events: auto;
    margin: 0;
    padding: 0;
}

.credit-box {
    background-color: #ffffff; 
    color: #0a0303; 
    padding: 8px 22px;
    border-radius: 50px; 
    text-decoration: none; 
    font-family: 'Poppins', serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 227, 190, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
}

.credit-box span {
    font-family: 'Poppins', serif;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: none;
    font-style: italic;
    opacity: 0.9;
}

.credit-box:hover, .credit-box:active {
    background-color: #d78457;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.credit-box:hover span, .credit-box:active span { color: #ffffff; }

/* PERBAIKAN SCROLL TERSENDAT */
.footer-wrapper, 
.footer-wrapper.nav-hidden {
    transition: none !important;       
    transform: translateY(0) !important; 
    will-change: auto !important;
}

/* MEMPERBESAR FOTO HEADER & SLIDER */
.foto-ayat-header { height: 350px !important; }
.story-img-wrapper { height: 320px !important; }
.slider-container { height: 60vh !important; }


/* =========================================================
   MODE DESKTOP & RESPONSIVE LAYOUT
   ========================================================= */
@media (min-width: 500px) {
    body { width: 100%; max-width: 414px; margin: 0 auto; box-shadow: 0 0 50px rgba(0,0,0,0.15); }
    #cover-page { width: 414px !important; left: 50% !important; transform: translateX(-50%) !important; }
    #cover-page.slide-up { transform: translate(-50%, -100%) !important; }
    #music-toggle { right: calc(50vw - 207px + 20px) !important; }

    /* PERBAIKAN FINAL BACKGROUND DESKTOP */
    html body #hero, html body #ayat, html body #profil, html body #countdown-baru, 
    html body #event, html body #story, html body #gallery, html body #gift, 
    html body #rsvp, html body #penutup {
        background-attachment: scroll !important; 
        background-position: top center !important; 
    }

    html body #profil, html body #event, html body #gift {
        background-size: 100% auto !important; 
        background-repeat: repeat !important;
    }

    html body #story, html body #gallery, html body #rsvp, html body #penutup {
        background-size: cover !important; 
        background-repeat: no-repeat !important;
    }
}
@media (hover: hover) { #music-toggle:hover { background-color: #865013; transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.4); } }

/* RESPONSIVE DESIGN KHUSUS LAYAR HP KECIL / PENDEK */
@media (max-width: 400px), (max-height: 720px) {
    #cover-page .title-small { top: 6% !important; font-size: 0.9rem !important; }
    #cover-page .nama-mempelai { font-size: 2.3rem !important; top: 12% !important; }
    .cover-photo { width: 130px; height: 180px; margin-top: 50px; }
    .tamu-section { margin-top: 110px; }
    .tamu-section p:first-child { top: -25px; }
    .tamu-section .nama-tamu { font-size: 1.1rem; top: -15px; }
    #btn-buka { padding: 6px 15px; font-size: 0.8rem; }
    .hero-photo, .mempelai-card img, .story-image-rect { width: 130px; height: 180px; }
    .story-image-rect { width: 200px !important; height: 140px !important; }
    .hero-content .nama-mempelai, .title-section, .title-gallery, .title-gift, .title-rsvp, .mempelai-card h2 { font-size: 2.4rem !important; }
    .cd-box span { width: 50px; height: 50px; font-size: 1.2rem; }
    .section { padding: 40px 15px; }
    .mempelai-card, .event-card, .atm-card, .rsvp-form-box, .wish-wall-box { padding: 25px 15px !important; }
    .bunga-sudut, .bunga-sudut-hero { width: 75vw; max-width: 165px; }
}

@media (max-width: 350px) {
    #cover-page .nama-mempelai { font-size: 2.2rem !important; }
    .cover-photo { width: 110px; height: 150px; }
    .hero-content .nama-mempelai, .title-section, .title-gallery { font-size: 2rem !important; }
    .tamu-section { margin-top: 90px; }
}
/* =========================================================
   FIX BUG WADAH PROFIL MENGHILANG
   ========================================================= */
#profil .profil-item.reveal-profil.active { 
    opacity: 1 !important; 
    pointer-events: auto !important; 
}
/* =========================================================
   FIX: MATIKAN ANIMASI GERAK TERUS-MENERUS BUNGA ATAS 
   (GLOBAL UNTUK SEMUA HALAMAN)
   HANYA REVEAL (MASUK) SAJA
   ========================================================= */

/* 1. Definisi Dasar (Matikan 'ayun' secara global) */
.bunga-atas-kiri { 
    animation: masukAtasKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}
.bunga-atas-kanan { 
    animation: masukAtasKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}

/* 2. Overrides Khusus Per Halaman (Untuk memastikan tidak aktif lagi saat di-scroll) */

/* Halaman Hero */
body:not(.locked) #hero .bunga-atas-kiri { 
    animation: masukAtasKiri 2s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important; 
}
body:not(.locked) #hero .bunga-atas-kanan { 
    animation: masukAtasKanan 2s cubic-bezier(0.22, 1, 0.36, 1) 0s forwards !important; 
}

/* Halaman Ayat */
.bunga-atas-kiri.reveal-ayat.active { 
    animation: masukAtasKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}
.bunga-atas-kanan.reveal-ayat.active { 
    animation: masukAtasKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}

/* Halaman Profil */
#profil .bunga-atas-kiri.reveal-profil.active { 
    animation: masukAtasKiri 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}
#profil .bunga-atas-kanan.reveal-profil.active { 
    animation: masukAtasKanan 4s cubic-bezier(0.22, 1, 0.36, 1) forwards !important; 
}
/* =========================================================
   STYLE DIVIDER JAWA (KONSISTEN UNTUK SEMUA HALAMAN)
   ========================================================= */
.event-divider-jawa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px auto 25px auto;
    width: 100%;
    max-width: 250px; /* Lebar total divider */
}

/* Garis Emas di Kiri dan Kanan */
.event-divider-jawa::before,
.event-divider-jawa::after {
    content: '';
    height: 1.5px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.event-divider-jawa::before {
    background: linear-gradient(to right, transparent, #d4af37);
}

.event-divider-jawa::after {
    background: linear-gradient(to left, transparent, #d4af37);
}

.event-divider-jawa::content {

}

.event-divider-jawa::after {

}
.event-divider-jawa {
    position: relative;
    height: 20px;
    width: 200px;
    margin: 10px auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-divider-jawa::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
}

.event-divider-jawa::after {
    content: '◈'; /* Simbol Klasik */
    position: absolute;
    color: #d4af37;
    font-size: 14px;
    background: inherit; /* Mengikuti warna background elemen di bawahnya */
    padding: 0 10px;
    z-index: 1;
}

/* Penyesuaian khusus jika divider di atas background Sogan Gelap */
.bg-story .event-divider-jawa::after,
.bg-countdown .event-divider-jawa::after,
.bg-gallery .event-divider-jawa::after,
.bg-gift .event-divider-jawa::after,
.bg-ayat .event-divider-jawa::after {
    background: #1a0b08; /* Warna Sogan */
}

/* Penyesuaian khusus jika divider di dalam Kartu Krem (Event) */
.card-event-jawa .event-divider-jawa::after {
    background: #fdfcf0; /* Warna Kertas Naskah */
}
/* =========================================================
   FIX: ANIMASI REVEAL UNTUK HALAMAN GIFT & RSVP
   ========================================================= */

/* --- 1. Kunci Elemen Agar Ghaib Sebelum Disorot Layar --- */
.header-gift.reveal:not(.active),
.gift-item-wrapper.reveal:not(.active),
.wa-confirm-wrapper.reveal:not(.active),
.header-rsvp.reveal:not(.active) {
    opacity: 0 !important;
    animation: none !important;
    pointer-events: none;
}

/* --- 2. Animasi Halaman Gift Mengalir Mulus --- */

/* Judul Gift turun dari atas */
.header-gift.reveal.active {
    animation: cinematicFadeDown 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important;
    pointer-events: auto;
}

/* Kotak Rekening / Kado naik dari bawah (Membaca urutan delay di HTML) */
.gift-item-wrapper.reveal.active {
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    pointer-events: auto;
}

/* Tombol WA Confirm membesar elegan di akhir */
.wa-confirm-wrapper.reveal.active {
    animation: zoomBlurElegant 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards !important;
    pointer-events: auto;
}


/* --- 3. Animasi Judul Halaman RSVP --- */

/* Judul RSVP turun dari atas secara dramatis */
.header-rsvp.reveal.active {
    animation: cinematicFadeDown 2s cubic-bezier(0.19, 1, 0.22, 1) 0s forwards !important;
    pointer-events: auto;
}

/* Memastikan konten di dalam Judul RSVP juga ikut transisi mulus */
.header-rsvp.reveal.active .title-rsvp {
    animation: zoomInSmooth 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards !important;
    opacity: 0;
}
.header-rsvp.reveal.active .event-divider-jawa {
    animation: zoomInSmooth 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.4s forwards !important;
    opacity: 0;
}
.header-rsvp.reveal.active .subtitle-rsvp {
    animation: cinematicFadeUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards !important;
    opacity: 0;
}
/* =========================================================
   FIX FINAL: ANTI-DOUBLE TOMBOL WA CONFIRM
   ========================================================= */

/* 1. Matikan semua animasi bawaan pada tombol WA agar tidak bentrok */
.btn-wa-jawa {
    animation: none !important;
    transition: all 0.3s ease !important; /* Biarkan hanya transisi hover saja */
    opacity: 1 !important; /* Kita buat defaultnya muncul */
}

/* 2. Atur kemunculan HANYA melalui pembungkusnya (wrapper) */
.wa-confirm-wrapper.reveal:not(.active) {
    opacity: 0 !important;
    transform: translateY(20px);
}

.wa-confirm-wrapper.reveal.active {
    /* Kotak pembungkus muncul perlahan, tombol di dalamnya akan ikut tanpa animasi sendiri */
    animation: cinematicFadeUp 2s cubic-bezier(0.19, 1, 0.22, 1) 0.5s forwards !important;
    opacity: 0;
}

/* 3. Pastikan tidak ada keyframe zoom yang menabrak tombol ini lagi */
.wa-confirm-wrapper.reveal.active .btn-wa-jawa {
    animation: none !important;
    opacity: 1 !important;
}
/* =========================================================
   PERBAIKAN FINAL: SMOOTH & SLOW TRANSITION OUR STORY
   ========================================================= */

/* Matikan animasi keyframes agar tidak bentrok dengan transition */
#story .reveal, 
#event .reveal,
#story .reveal.active,
#event .reveal.active {
    animation: none !important; 
}

/* State Awal (Saat Menghilang / Scroll ke Atas) */
#story .reveal,
#event .reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out !important;
    transition-delay: 0s !important; 
}

/* 3. State Masuk (Saat Muncul / Scroll ke Bawah) */
#story .reveal.active,
#event .reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    /* Durasi 1.5 detik agar sangat elegan */
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* 4. Atur Ulang Antrean Muncul (Delay) secara Spesifik */

/* Judul muncul perlahan lebih dulu */
#story .title-story.reveal.active { transition-delay: 0.2s !important; }

/* Ornamen menyusul setelah judul */
#story .ornament-divider.reveal.active { transition-delay: 0.5s !important; }

/* SEMUA KOTAK CERITA muncul BERSAMAAN setelah ornamen dengan tenang */
#story .story-slider-wrapper.reveal.active { transition-delay: 0.5s !important; }

/* Titik navigasi muncul paling akhir sebagai penutup */
#story .story-dots.reveal.active { transition-delay: 0.5s !important; }
/* Antrean delay khusus untuk header event */
#event .title-event-jawa.reveal.active { transition-delay: 0.2s !important; }
#event .ornament-divider.reveal.active { transition-delay: 0.5s !important; }

/* Pastikan kartu event juga menggunakan transisi yang sama jika ingin seragam */
.card-event-jawa.reveal.active { transition-delay: 0.8s !important; }
