/* =========================================
   1. SETUP WARNA & FONT GLOBAL
   ========================================= */
:root {
    --primary: #4a3b2a;
    /* Cokelat Tua (Kayu) */
    --secondary: #8B4513;
    /* Saddle Brown */
    --gold: #c5a059;
    /* Emas Keraton (Mewah) */
    --cream: #faf3e0;
    /* Krem Kertas Kuno */
    --bg: #fdfbf7;
    /* Background Utama */
    --text: #2c241b;
    /* Teks Hitam Kecokelatan */

    /* Font Theme */
    --font-head: 'Cinzel', serif;
    /* Tegas & Mewah */
    --font-body: 'Lato', sans-serif;
    /* Bersih */
    --font-script: 'Pinyon Script', cursive;
    /* Sambung Klasik */
}

/* Reset Standar Browser */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Set Body (Background Luar Gelap untuk Laptop) */
body {
    background: #111;
    font-family: var(--font-body);
    color: var(--text);
    overflow-x: hidden;
    /* Mencegah scroll samping yang tidak perlu */
}

/* =========================================
   2. CONTAINER UTAMA (RESPONSIVE HP)
   ========================================= */
.mobile-container {
    /* KUNCI: Batasi lebar max 480px agar tetap bentuk HP di Laptop */
    max-width: 480px;
    margin: 0 auto;
    /* Posisi Tengah */
    background: var(--bg);
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow-x: hidden;
    /* Bayangan agar terlihat elegan di Laptop */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* =========================================
   3. PRELOADER (LOADING LOVE)
   ========================================= */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}

.heart-loader {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    transform: rotate(45deg);
    animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(0.8) rotate(45deg);
    }

    50% {
        transform: scale(1.1) rotate(45deg);
    }

    100% {
        transform: scale(0.8) rotate(45deg);
    }
}

/* =========================================
   4. OPENING MODAL (GLASS JAWA FIXED)
   ========================================= */
#opening-modal {
    position: fixed;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);

    /* Background Gambar */
    background: url('asset/wedding8.jpg') center 25% / cover no-repeat;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s ease-in-out;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Gelap agar teks emas terbaca */
    z-index: 1;
}

#opening-modal.hide {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* KARTU KACA (GLASS) + FRAME EMAS */
.glass-jawa-card {
    position: relative;
    z-index: 2;

    /* Efek Kaca */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Bingkai Emas */
    border: 1px solid rgba(197, 160, 89, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    padding: 30px 15px;
    width: 85%;
    max-width: 400px;
    border-radius: 5px;
    /* Sudut agak tegas ala Jawa */
    text-align: center;
    color: white;
}

/* Ornamen */
.ornament-top,
.ornament-bottom {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ornament-top::before,
.ornament-top::after,
.ornament-bottom::before,
.ornament-bottom::after {
    content: "";
    height: 1px;
    width: 40px;
    background: var(--gold);
    margin: 0 10px;
    display: inline-block;
}

.top-tag {
    font-family: var(--font-head);
    letter-spacing: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ddd;
}

/* --- LOGIKA NAMA MEMPELAI SEJAJAR --- */
.couple-name-row {
    display: flex;
    /* Wajib Flexbox */
    flex-direction: row;
    /* Baris Horizontal */
    justify-content: center;
    /* Tengah */
    align-items: center;
    /* Lurus Vertikal */
    gap: 10px;
    /* Jarak antar nama */
    flex-wrap: nowrap;
    /* DILARANG turun ke bawah */
    margin: 10px 0 20px;
}

.mempelai {
    font-family: var(--font-head);
    /* Font Cinzel */
    font-size: 2.2rem;
    /* Ukuran pas di HP */
    color: var(--gold);
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    /* Mencegah nama panjang turun baris */
}

.connector {
    font-family: var(--font-script);
    /* Font sambung */
    font-size: 1.8rem;
    color: #fff;
    margin-top: 5px;
    /* Penyesuaian posisi dikit */
}

/* Responsif jika layar HP sangat kecil */
@media (max-width: 360px) {
    .mempelai {
        font-size: 1.8rem;
    }
}

/* Tanggal */
.date-tag {
    font-weight: bold;
    color: #fff;
    letter-spacing: 3px;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    display: inline-block;
    padding: 5px 20px;
    margin-bottom: 20px;
}

/* Kotak Nama Tamu */
.guest-box-glass {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 5px;
    margin: 0 auto 20px;
    border: 1px dashed rgba(197, 160, 89, 0.5);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label-k {
    font-size: 0.8rem;
    font-style: italic;
    color: #ccc;
}

.guest-box-glass h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Tombol Buka */
.btn-open-glass {
    background: linear-gradient(45deg, var(--primary), #2c241b);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.btn-open-glass:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
}

/* =========================================
   5. HERO SECTION (ANTI-GLITCH)
   ========================================= */
.hero {
    /* Tinggi dinamis dikunci JS agar tidak lompat di HP */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);

    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary);
    background: #fdfcf8;
    overflow: hidden;
}

/* Layer Gambar Background (Dipisah agar stabil) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Lebih tinggi dikit untuk anti-glitch */

    /* --- PERBAIKAN DI SINI --- */
    /* Kita gabung Gradasi dan URL Gambar jadi satu */
    /* Layer 1 (Atas): Linear Gradient dari Putih Transparan ke Cokelat Transparan */
    /* Layer 2 (Bawah): URL Gambar Wedding */
    background-image:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2), #4a3b2a99),
        url('asset/wedding1.jpg');

    /* Pengaturan posisi gambar */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    z-index: 1;
    will-change: transform;
}

/* Konten Nama Mempelai */
.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.381);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    width: 85%;
    max-width: 350px;
    transform: translateY(-80px);
    /* Naik sedikit ke atas */
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: var(--primary);
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h4 {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
}

/* Responsif Hero di HP Kecil */
@media (max-width: 768px) {
    .hero-content {
        width: 85%;
        max-width: 350px;
        padding: 25px 15px;
        background: rgba(255, 255, 255, 0.381);
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content h4 {
        font-size: 0.8rem;
    }
}

/* =========================================
   6. COMPONENT UMUM
   ========================================= */
.section-padding {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.bg-light {
    background-color: #f4f7f5;
}

.bg-green {
    background-color: var(--primary);
    color: white;
}

.text-white {
    color: white !important;
}

.title-head h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.bg-green .title-head h2 {
    color: white;
}

.divider {
    height: 3px;
    width: 80px;
    background: var(--gold);
    margin: 0 auto 40px;
}

/* =========================================
   7. MEMPELAI (TEMA JAWA KLASIK - RUMPIS/RAPAT)
   ========================================= */

/* Container Utama */
.couple-container {
    display: flex;
    flex-direction: column;
    /* Default HP: Susun ke bawah */
    gap: 5px;
    /* --- JARAK HP DIRAPATKAN (Dari 40px jadi 25px) --- */
    align-items: center;
    width: 100%;
}

/* Bingkai Foto Jawa (Kotak + Border Emas) */
.jawa-frame {
    /* --- UKURAN FOTO DIKECILKAN --- */
    width: 160px;
    /* Dari 200px */
    height: 210px;
    /* Dari 260px */

    position: relative;
    border: 1px solid var(--gold);
    /* Garis Emas Tipis Luar */
    padding: 5px;
    /* Jarak antara foto dan garis */
    margin: 0 auto 15px;
    /* Margin bawah dikurangi dikit */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* Gambar di dalam bingkai */
.couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(10%);
    /* Sedikit efek sepia biar klasik */
}

/* --- ORNAMEN SUDUT (CORNER) --- */
/* Ukuran ornamen disesuaikan sedikit dengan bingkai yg mengecil */
.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    /* Dikecilkan dikit dari 35px */
    border: 3px solid var(--primary);
    /* Warna Cokelat Tua */
}

/* Simbol Dan (&) */
.couple-connector .dan-text {
    font-family: var(--font-script);
    /* Font Sambung */
    font-size: 3.5rem;
    /* Dikecilkan sedikit menyesuaikan foto */
    color: var(--gold);
    line-height: 1;
}

/* Sudut Kiri Atas */
.top-left {
    top: -5px;
    left: -5px;
    border-right: 0;
    border-bottom: 0;
}

/* Sudut Kanan Bawah */
.bottom-right {
    bottom: -5px;
    right: -5px;
    border-left: 0;
    border-top: 0;
}

/* Sudut Kanan Atas */
.top-right {
    top: -5px;
    right: -5px;
    border-left: 0;
    border-bottom: 0;
}

/* Sudut Kiri Bawah */
.bottom-left {
    bottom: -5px;
    left: -5px;
    border-right: 0;
    border-top: 0;
}

/* Teks Info */
.couple-info h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    /* Ukuran font disesuaikan */
    color: var(--primary);
    margin-bottom: 5px;
}

.couple-info p {
    font-style: italic;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Tombol Sosmed */
.btn-socmed {
    background: transparent;
    color: var(--gold);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 25px;
    border-radius: 50px;
    border: 1.5px solid var(--gold);
    transition: 0.3s;
    margin-top: auto;
}

.btn-socmed:hover {
    background: var(--gold);
    color: white;
    box-shadow: 0 5px 15px rgba(176, 141, 85, 0.4);
    transform: translateY(-3px);
}

.btn-socmed:hover i {
    animation: shake 0.5s ease-in-out;
}

/* --- RESPONSIF UNTUK LAPTOP/TABLET (REMPETKAN) --- */
@media (min-width: 768px) {
    .couple-container {
        flex-direction: row;
        /* Susun ke samping */
        justify-content: center;
        align-items: flex-start;
        gap: 35px;
        /* --- JARAK LAPTOP DI-REMPETKAN (Dari 50px jadi 30px) --- */
    }

    .couple-connector {
        margin-top: 80px;
        /* Posisi simbol & disesuaikan karena foto lebih pendek */
    }
}

/* =========================================
   8. TIMELINE (KISAH CINTA - ADAT JAWA)
   ========================================= */

/* Container Garis Tengah */
.timeline-jawa {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    /* Garis Emas di Kiri */
    border-left: 2px solid var(--gold);
    padding-left: 25px;
    /* Jarak konten dari garis */
    text-align: left;
}

/* Item Timeline */
.timeline-item {
    position: relative;
    margin-bottom: 45px;
    /* Jarak antar cerita */
}

/* Ornamen Ketupat (Pengganti Titik Bulat) */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    /* Posisi pas di tengah garis */
    top: 16px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    /* Warna Cokelat */
    border: 2px solid var(--gold);
    /* Pinggiran Emas */
    transform: rotate(45deg);
    /* Putar jadi ketupat */
    z-index: 2;
    box-shadow: 0 0 0 3px var(--bg);
    /* Spasi putih di sekitar ketupat */
}

/* Kotak Konten */
.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    /* Sudut agak tajam */
    border: 1px solid #e0d0b0;
    /* Garis krem tua */
    box-shadow: 0 5px 15px rgba(74, 59, 42, 0.1);
    position: relative;
}

/* Segitiga Penunjuk ke Garis */
.timeline-content::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 15px;
    height: 15px;
    background: #fff;
    border-left: 1px solid #e0d0b0;
    border-bottom: 1px solid #e0d0b0;
    transform: rotate(45deg);
}

/* Badge Tahun (Penanda Waktu) */
.year-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Bingkai Foto Cerita (Efek Foto Lawas) */
.story-frame {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 4px double var(--gold);
    /* Bingkai ganda emas */
    padding: 3px;
    /* Jarak foto & bingkai */
}

.story-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%);
    /* Efek Sepia (Kekuningan) */
    transition: 0.5s;
}

/* Judul & Teks */
.timeline-content h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 5px;
    border-bottom: 1px solid var(--gold);
    /* Garis bawah judul */
    padding-bottom: 5px;
    display: inline-block;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    /* Miring agar puitis */
}

/* =========================================
   9. EVENTS & COUNTDOWN
   ========================================= */
.glass-event-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
}

.icon-event {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.glass-event-card p {
    font-size: 0.8rem;
    margin-top: 5px;
    color: white;
}

.btn-maps {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--gold);
    font-size: 0.9rem;
    font-weight: bold;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

#countdown div {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    min-width: 60px;
    font-size: 0.8rem;
    border: 1px solid var(--gold);
}

#countdown span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-head);
}

.btn-calendar {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    border: 1px solid var(--gold);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

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

/* =========================================
   7. GALLERY GRID (MOSAIC ZIG-ZAG)
   ========================================= */

.gallery-grid {
    display: grid;
    /* Membagi layar jadi 3 kolom sama besar */
    grid-template-columns: repeat(3, 1fr);
    /* Jarak antar foto */
    gap: 4px;
    padding: 0 10px;

    /* KUNCI RAHASIA: Agar tidak ada bolong/kosong */
    grid-auto-flow: dense;
}

/* --- ITEM STANDAR (KECIL 1x1) --- */
.grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    /* Kotak Sempurna */
    cursor: pointer;
    border: 1px solid var(--gold);
    /* Bingkai Emas Tipis */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: sepia(20%);
    /* Efek Klasik */
}

.grid-item:hover img {
    transform: scale(1.1);
    filter: sepia(0%);
}

/* --- ITEM SPESIAL (BESAR 2x2) --- */

/* 1. Foto Besar di KIRI (Default) */
.grid-item.big-left {
    grid-column: span 2;
    /* Lebar 2 kolom */
    grid-row: span 2;
    /* Tinggi 2 baris */
}

/* 2. Foto Besar di KANAN (Dibalik) */
.grid-item.big-right {
    grid-column: 2 / span 2;
    /* Paksa mulai dari kolom ke-2 */
    grid-row: span 2;
    /* Tinggi 2 baris */
}

/* =========================================
   11. TOAST NOTIFICATION (POPUP)
   ========================================= */
.toast-notification {
    visibility: hidden;
    min-width: 215px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    border-radius: 50px;
    padding: 10px;
    position: fixed;
    z-index: 10000;

    /* Tengah Horizontal */
    left: 50%;
    transform: translateX(-50%);

    /* Awal Sembunyi di Atas */
    top: -100px;
    bottom: auto;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s, top 0.5s ease-in-out;
}

/* Saat Muncul */
.toast-notification.show {
    visibility: visible;
    opacity: 1;
    top: 30px;
}

/* Saat Error (Merah) */
.toast-notification.error {
    background-color: #d62828;
    box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

/* =========================================
   12. GIFT & RSVP (MODERN FORM)
   ========================================= */
.gift-intro p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.gift-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gift-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex: 1 1 300px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.gift-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--secondary);
}

.gift-card:hover {
    transform: translateY(-5px);
}

.bank-logo {
    height: 30px;
    margin-bottom: 15px;
    object-fit: contain;
}

.rek-num {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.rek-name {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.btn-copy {
    background-color: #f0f4f1;
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-copy:hover {
    background-color: var(--secondary);
    color: white;
}

/* Modern Form RSVP */
.modern-form {
    max-width: 500px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: #f9f9f9;
    transition: 0.3s;
    background-color: #e9ecef;
    /* Abu muda */
    color: #6c757d;
    /* Teks abu tua */
    border-color: #d1d3e2;
    pointer-events: none;
    /* Supaya ga bisa diklik */
    font-weight: bold;
}

.modern-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: #f9f9f9;
    transition: 0.3s;
}

.modern-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.modern-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    margin-top: 10px;
    align-self: center;
}

.modern-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--secondary);
}

/* Styling Tambahan untuk Form Konfirmasi */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

/* Menyamakan style Select dengan Input */
.modern-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: #f9f9f9;
    transition: 0.3s;
    appearance: none;
    /* Hilangkan panah default browser */
    /* Ganti panah custom (opsional) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2352796f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

.modern-form select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}


/* =========================================
   13. LIVE WISHES LIST
   ========================================= */
.wishes-box {
    max-width: 500px;
    margin: 30px auto 0;
    padding-bottom: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
}

.wishes-header {
    background: var(--secondary);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.wishes-list {
    height: 300px;
    overflow-y: scroll;
    padding: 0px;
    background: #fdfdfd;
    scroll-behavior: auto;
    /* Sembunyikan Scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wishes-list::-webkit-scrollbar {
    display: none;
}

.wish-item {
    padding: 15px 20px;
    border-bottom: 1px dashed #ddd;
    animation: fadeIn 0.5s ease;
}

.wish-name {
    font-weight: bold;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wish-date {
    font-size: 0.7rem;
    color: #999;
    font-weight: normal;
    margin-left: auto;
}

.wish-text {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
    line-height: 1.5;

    /* --- TEKNIK PEMOTONG KATA (ANTI-JABLAY) --- */

    /* 1. Standar Modern: Memotong kata hanya jika terlalu panjang */
    overflow-wrap: break-word;

    /* 2. Support Browser Lama (Fallback) */
    word-wrap: break-word;

    /* 3. Paksa potong meskipun itu satu kata panjang tanpa spasi */
    word-break: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   14. FLOATING ELEMENTS (NAV & MUSIC)
   ========================================= */
.glass-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.292);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    width: 90%;
    max-width: 400px;
    padding: 12px 0;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.glass-nav a {
    color: var(--primary);
    font-size: 1.1rem;
    transition: 0.3s;
    position: relative;
    padding: 5px;
}

.glass-nav a:hover {
    color: var(--gold);
    transform: translateY(-3px);
}

#music-btn {
    position: fixed;
    top: 30px;
    z-index: 10006;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;
    /* Posisi Responsive (Default HP) */
    right: 20px;
}

@media (min-width: 481px) {
    #music-btn {
        right: auto;
        left: 50%;
        margin-left: 180px;
    }
}

#music-btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.1s ease;
}

#icon-music {
    opacity: 1;
    animation: spin 8s linear infinite;
}

#icon-pause {
    opacity: 0;
}

#music-btn.paused #icon-music {
    opacity: 0;
    animation-play-state: paused !important;
}

#music-btn.paused #icon-pause {
    opacity: 1;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 30px 20px 100px;
    text-align: center;
    font-size: 0.8rem;
}

.noscroll {
    overflow: hidden;
    height: 100vh;
}