:root {
    /* Tema Serenity - Palet warna lembut dan tenang */

    --shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
    --bt-btn-1: linear-gradient(135deg, #fd881b, #eba40a);
    --bt-btn-2: linear-gradient(135deg, #fd881b, #eba40a);
    --text-dark: #3a5e35;
    --text-light: rgb(46, 83, 51);
    --background: #f5f3f7;
    --bg-story: #f9f8fa;
    --bg-opening: #f7f6f8;
    --bg-events: #f8f7f9;
    --white: #FFFFFF;
    --off-white: #faf9fb;



    /* Font untuk Tema Serenity */
    --font-display: "Pinyon Script", sans-serif;
    /* Untuk judul utama */
    --font-heading: "Cinzel", sans-serif;
    /* Untuk heading */
    --font-script: "Imperial Script", sans-serif;
    /* Untuk elemen dekoratif */
    --font-body: "Poppins", sans-serif;
    /* Untuk teks biasa */
    --font-accent: "Caudex", serif;
    /* Untuk teks khusus */
    --font-elegant: "Libre Caslon Display", sans-serif;
    /* Untuk elemen elegan */

    /* Font legacy untuk kompatibilitas */
    --font-pinyon: "Pinyon Script", sans-serif;
    --font-cinzel: "Cinzel", sans-serif;
    --font-imperial: "Imperial Script", sans-serif;
    --font-brillon: "Brillon", sans-serif;
    --font-zcool: "ZCOOL XiaoWei", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--secondary-color);
    color: var(--text-dark);
    overflow-x: hidden;
}



body.hide-invite {
    overflow: hidden;
    height: 100vh;
    /* Tambahkan ini */
}

a {
    text-decoration: none;
}

/* Menggunakan font yang baru didefinisikan */
h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 48px;
}

h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 32px;
}

h3 {
    font-family: var(--font-script);
    font-size: 32px;
}

h1.section-title {
    color: var(--primary-color);
    font-family: var(--font-display);
}

h1.nickname-opening {
    font-family: var(--font-display);
}

/* Class untuk penggunaan khusus */
.font-elegant {
    font-family: var(--font-elegant);
}

.font-accent {
    font-family: var(--font-accent);
}

.font-script {
    font-family: var(--font-script);
}

/* Tambahkan di global.css untuk memastikan urutan z-index */
.bottom-nav {
    z-index: 9998;
}

#music-player {
    z-index: 9999;
}

#cover {
    z-index: 10000;
    /* Splash screen harus paling atas */
}

/* =======================
/* =======================
   DESKTOP SPLIT LAYOUT - OPTIMIZED (REVISED)
======================= */
.desktop-layout {
    display: flex;
    min-height: 100vh;
    contain: layout style;
    /* Optimasi performance */
}

/* Sidebar kiri (65%) - sticky untuk konten utama */
.sidebar-left {
    position: sticky;
    top: 0;
    width: 65%;
    /* DIBALIK: 65% untuk konten utama */
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
    will-change: transform;
    transform: translateZ(0);
}

.sidebar-cover {
    position: relative !important;
    height: 100vh;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    will-change: transform;
}

/* Konten kanan (35%) - scrollable untuk informasi sidebar */
.content-right {
    width: 35%;
    /* DIBALIK: 35% untuk sidebar info */
    overflow-y: auto;
    max-height: 100vh;
    contain: content;
    -webkit-overflow-scrolling: touch;
    background: var(--secondary-color);
    /* Background terang untuk konten */
    padding: 0;
    /* Reset padding */
}

.sidebar-right {
    max-width: 35%;
}

/* Container untuk konten di dalam .content-right agar tidak terlalu lebar */
.content-right-container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

/* =======================
   STYLING UNTUK SIDEBAR KANAN (35%)
======================= */
.content-right .section-title,
.content-right h1,
.content-right h2,
.content-right h3 {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Events card di sidebar kanan */
.content-right .events-card {
    max-width: 100%;
    margin: 0 auto;
}

.content-right .event-item {
    padding: 20px 15px;
    margin-bottom: 20px;
}

/* Gallery di sidebar kanan */
.content-right .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.content-right .gallery-item {
    max-height: 120px;
}

/* Wish section di sidebar kanan */
.content-right .wish-card {
    padding: 20px 15px;
}

.content-right .wish-form input,
.content-right .wish-form select,
.content-right .wish-form textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
}

/* Informasi section di sidebar kanan */
.content-right .card-informasi {
    max-width: 100%;
    gap: 20px;
}

.content-right .info-box {
    padding: 25px 20px;
}

/* =======================
   OPTIMASI FONT SIZE UNTUK SIDEBAR KANAN (35%)
======================= */
@media (min-width: 769px) {
    .content-right .section-title {
        font-size: 1.8rem;
    }

    .content-right h2 {
        font-size: 1.6rem;
    }

    .content-right h3 {
        font-size: 1.4rem;
    }

    .content-right p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .content-right .nickname-opening {
        font-size: 1.8rem;
    }

    .content-right .opening-content {
        padding: 60px 30px;
    }

    .content-right .quote {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .content-right .countdown {
        gap: 10px;
    }

    .content-right .time-box {
        min-width: 70px;
        height: 70px;
        padding: 12px 8px;
    }

    .content-right .time-box span {
        font-size: 1.1rem;
    }
}

/* =======================
   FIX UNTUK ELEMENTS YANG TERLALU LEBAR
======================= */
.content-right img {
    max-width: 100%;
    height: auto;
}

.content-right .gallery-hero {
    max-width: 100%;
    margin: 0 auto 30px;
}

.content-right .gallery-video {
    max-width: 100%;
}

/* =======================
   SCROLLBAR STYLING
======================= */
.content-right::-webkit-scrollbar {
    width: 6px;
}

.content-right::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

.content-right::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* =======================
   MOBILE RESPONSIVE (REVISED)
======================= */
@media (max-width: 768px) {
    .desktop-layout {
        flex-direction: column;
    }

    .sidebar-left {
        display: none;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
    }

    .sidebar-right {
        max-width: 100%;
    }

    .content-right {
        width: 100%;
        max-height: none;
        overflow-y: visible;
        margin-top: 100vh;
    }

    body:not(.hide-invite) .content-right {
        margin-top: 0;
    }

    /* Reset font sizes untuk mobile */
    .content-right .section-title {
        font-size: 2rem !important;
    }

    .content-right .nickname-opening {
        font-size: 2.1rem !important;
    }

    /* Reset gallery grid untuk mobile */
    .content-right .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* =======================
   PERBAIKAN UNTUK ELEMENTS SPESIFIK
======================= */
.content-right .opening {
    min-height: 60vh;
    padding: 40px 20px;
}

.content-right .quote-section {
    padding: 40px 20px;
}

.content-right .mempelai {
    padding: 60px 20px;
}

.content-right .events {
    padding: 60px 20px;
}

.content-right .card-mempelai {
    max-width: 100%;
    padding: 40px 20px;
    border-radius: 40px;
}

/* =======================
   FLEXIBILITY UNTUK KONTEN DINAMIS
======================= */
.content-right .event-location,
.content-right .event-address {
    word-break: break-word;
}

/* =======================
   BOTTOM NAV UNTUK LAYOUT BARU
======================= */
@media (min-width: 769px) {
    .bottom-nav {
        left: calc(65% + (35% / 2));
        width: 35%;
        max-width: none;
        transform: translateX(-50%);
        bottom: 20px;
    }
}

/* =======================
   MUSIC PLAYER POSITION
======================= */
@media (min-width: 769px) {
    #music-player {
        bottom: 22px;
        right: calc(35% + 22px);
    }
}

/* COVER HERO */
.cover-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: white;
    padding: 40px 20px;
    z-index: 9999;
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex !important;
    background-color: var(--primary-color);
}

/* State hidden */
.cover-hero.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* KONTEN BAWAH */
.cover-content {
    margin-bottom: 40px;
}

.nickname {
    margin-bottom: 20px;
}

a.open-invitation {
    margin-top: 20px;
    background: var(--bt-btn-1);
    padding: 12px 24px;
    color: white;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cover-bottom {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(127, 141, 131, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-title {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.guest-name {
    font-size: 1.1rem;
    margin: 6px 0;
    line-height: 1.4;
    color: white;
}

.guest-name strong {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.guest-addres {
    font-size: 0.75rem;
    opacity: 0.75;
    color: rgba(255, 255, 255, 0.8);
}

/* Tambahkan untuk sidebar */
.sidebar-cover {
    padding: 60px 20px;
}

/* Atur spacing untuk sidebar */
.sidebar-cover .cover-content {
    margin-bottom: 80px;
}

.sidebar-cover .nickname {
    margin: 40px 0;
    font-size: 2.8rem;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .sidebar-left {
        display: block !important;
    }

    .sidebar-left.hidden {
        display: none !important;
    }
}

.opening {
    background: url();
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 50px;
    justify-content: center;
    background: url(../media/bg1.jpg);
    background-position: center;
    background-size: cover;
}

.video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* overlay biar teks kebaca */
.opening::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(129, 141, 127, 0.116);
    z-index: 1;
}

.opening-content {
    padding: 100px 50px;
    border-radius: 150px;
    border: solid var(--secondary-color) 2px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    background: rgba(127, 141, 132, 0.3);
    backdrop-filter: blur(10px);
}

.opening-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 16px;
    color: var(--white);
}

.nickname-opening {
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: var(--white);
}

.ampersand-opening {
    display: inline-block;
    font-size: 1.5rem;
    margin: 10px 0;
    opacity: 0.9;
    color: var(--white);
}

.main-date {
    margin-top: 20px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    opacity: 0.85;
    color: var(--white);
}

.quote-section {
    padding: 30px 0px;
    background: var(--accent-color);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.floral-ornament {
    position: absolute;
    top: 40px;
    font-size: 1.2rem;
    opacity: 0.25;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--accent-color);
}

.floral-ornament.left {
    left: 20px;
}

.floral-ornament.right {
    right: 20px;
}

.cover {
    width: 100%;
    max-width: 380px;
    display: block;
    box-shadow: var(--shadow);
}

img.cover {
    max-height: 380px;
    object-fit: cover;
}

.quote {
    position: relative;
    max-width: 380px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
    line-height: 1.9;
    font-style: italic;
    color: var(--primary-color);
    background: url(../media/bg2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 250px;
    box-shadow: var(--shadow);
    border-left: solid 3px var(--secondary-color);
    border-bottom: solid 3px var(--secondary-color);
    border-right: solid 3px var(--secondary-color);
    overflow: hidden;
    padding-bottom: 20px;
    /* penting biar overlay ikut radius */
}

/* BG OVERLAY */
.quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.658);
    /* lembut & readable */
    z-index: 1;
}

/* pastikan isi di atas overlay */
.quote>* {
    position: relative;
    z-index: 2;
}


.quote p {
    padding: 0px 30px 30px 30px;

}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.time-box {
    min-width: 80px;
    height: 80px;
    border: solid 1px var(--accent-color);
    border-radius: 100%;
    padding: 14px 10px;
    background: var(--white);
}

.time-box span {
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    color: var(--primary-color);
}

.time-box small {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.mempelai {
    background: url(../media/bg1.jpg);
    background-position: center;
    background-size: cover;
    padding: 90px 50px;
}

.card-mempelai {
    border: solid 1px var(--secondary-color);
    border-radius: 500px;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.774);
    padding: 50px 30px;
    box-shadow: var(--shadow);
}

img.bunga {
    width: 150px;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--primary-color);
    opacity: 0.7;
    margin-bottom: 16px;
}

.welcome-text {
    max-width: 520px;
    margin: 0 auto 50px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.foto-mempelai {
    width: 180px;
    height: 276px;
    margin: 0 auto 20px;
    border-radius: 100px 100px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid var(--secondary-color);
}

.foto-mempelai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-mempelai {
    max-width: 420px;
    margin: 0 auto 60px;
}

.nickname-detail {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.fullname-detail {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.parents-detail,
.address-detail {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}

.divider-heart {
    margin: 30px 0 60px;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.social-wrapper {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social:hover {
    background: var(--accent-color);
    color: var(--white);
}

p.dan {
    font-family: var(--font-cinzel);
    font-size: 52px;
    color: var(--primary-color);
}

.events {
    padding: 90px 20px;
    background: var(--secondary-color);
    text-align: center;
}

.events-card {
    max-width: 680px;
    margin: 40px auto 0;
}

.event-item {
    position: relative;
    background: url(../media/bg2.jpg);
    background-position: center;
    background-size: cover;
    padding: 10px;
    border-radius: 250px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--secondary-color);
    overflow: hidden;
    /* KUNCI */
}


.event-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.315);
    z-index: 1;
}

.event-item * {
    position: relative;
    z-index: 2;
}


.item {
    display: flex;
    background: white;
    padding: 50px 0px;
    border-radius: inherit;
    gap: 30px;
    flex-direction: column;
    align-items: center;
}

.item img {
    width: 150px;
}

.event-name {
    margin-bottom: 6px;
    color: var(--primary-color);
}

.event-date {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.event-time {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.85;
    margin-bottom: 10px;
}

.event-location {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    color: var(--primary-color);
}

.event-address {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.75;
    margin-bottom: 12px;
}

.maps-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: var(--bt-btn-1);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.maps-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.event-dresscode {
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.event-notes {
    margin-top: 10px;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
}

.divider-floral {
    margin: 10px 0 40px;
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.event-item.empty {
    background: transparent;
    box-shadow: none;
    border: none;
}

.no-event {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.6;
}

.event-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--bt-btn-2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.event-icon i {
    font-size: 26px;
    color: var(--white);
}

.gcalendar-wrapper {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
}

.gcalendar-btn {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem 1rem 1rem;
    border: solid 1px var(--secondary-color);
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.gcalendar-btn:hover {
    background: var(--secondary-color);
    opacity: 0.8;
}

.gcalendar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 1.2em;
    height: 1.2em;
    background: rgba(138, 127, 141, 0.1);
    border-radius: 50%;
}

/* =========================
   GALERI SECTION
========================= */
.gallery-section {
    padding: 80px 20px;
    background: var(--secondary-color);
    text-align: center;
}

.gallery-section .section-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* =========================
   VIDEO SECTION
========================= */
.gallery-video {
    max-width: 420px;
    margin: 0 auto 50px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(138, 127, 141, 0.15);
    border: 2px solid var(--secondary-color);
}

.video-thumbnail img {
    width: 100%;
    display: block;
    transition: transform .6s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(138, 127, 141, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(138, 127, 141, .3);
}

/* =========================
   HERO IMAGE
========================= */
.gallery-hero {
    max-width: 500px;
    margin: 0 auto 50px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(138, 127, 141, .18);
    border: 2px solid var(--secondary-color);
}

.gallery-hero img {
    width: 100%;
    display: block;
    transition: transform .7s ease;
}

.gallery-hero:hover img {
    transform: scale(1.04);
}

/* =========================
   GRID
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: auto;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(138, 127, 141, .12);
    border: 1px solid var(--secondary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 16px;
    }

    .gallery-section .section-title {
        font-size: 2rem;
    }

    .gallery-video {
        max-width: 90%;
    }

    .gallery-hero {
        max-width: 90%;
    }
}

/* live-streaming */

/* =========================
   LIVE STREAM SECTION
========================= */
.live-stream-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--secondary-color), #ffffff);
    text-align: center;
}

.live-stream-section .section-title {
    font-size: 2.3rem;
    margin-bottom: 40px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary-color);
}

.live-stream-section .section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* =========================
   WRAPPER
========================= */
.live-stream-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: auto;
}

/* =========================
   ITEM
========================= */
.live-stream-item {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(138, 127, 141, .15);
    transition: transform .4s ease;
    border: 1px solid var(--secondary-color);
}

.live-stream-item:hover {
    transform: translateY(-6px);
}

/* =========================
   EMBED
========================= */
.live-stream-embed {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}

.live-stream-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================
   INFO
========================= */
.live-stream-info {
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    background: var(--secondary-color);
    color: var(--primary-color);
}

.live-stream-info i {
    margin-right: 8px;
}

/* =========================
   LINK MODE
========================= */
.live-stream-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 200px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--secondary-color), #ffffff);
    transition: all .3s ease;
}

.live-stream-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), #ffffff);
}

.live-stream-link i {
    font-size: 1.6rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .live-stream-section {
        padding: 60px 16px;
    }

    .live-stream-section .section-title {
        font-size: 2rem;
    }

    .live-stream-link {
        height: 170px;
    }
}

.story {
    padding: 80px 0px;
    background: url(../media/bg2.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    padding: 90px 20px;
    display: flex;
    justify-content: center;
}

.card-story {
    max-width: 680px;
    width: 100%;
    border-radius: 28px;
    padding: 50px 30px;
    text-align: center;
}

/* Judul Section */
.card-story {
    background: rgba(255, 255, 255, 0.815);
    border-radius: 250px;
    border: solid 3px var(--secondary-color);
    box-shadow: var(--shadow);
    font-size: 34px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Cover Image */
.story-cover {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 2px solid var(--secondary-color);
}

/* Judul Story */
.story-title {
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--primary-color);
}

/* Timeline */
.timeline {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Isi Cerita */
.story-content {
    font-size: 15.5px;
    line-height: 1.9;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Divider antar story */
.card-story>*:not(:last-child)::after {
    content: "";
    display: block;
    width: 70px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    margin: 35px auto;
}

/* Jika belum ada story */
.no-story {
    font-style: italic;
    color: var(--accent-color);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 640px) {
    .card-story {
        padding: 50px 22px;
    }

    .story-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* =========================
   INFORMASI SECTION
========================= */
.informasi {
    padding: 90px 20px;
    background: url(../media/bg1.jpg);
    background-position: center;
    background-size: cover;
}

.card-informasi {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); */
    gap: 30px;
}

/* =========================
   INFO BOX
========================= */
.info-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .14);
    transition: transform .4s ease, box-shadow .4s ease;
}

.info-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 65px rgba(0, 0, 0, .18);
}

/* =========================
   TITLE & TEXT
========================= */
.info-box {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.info-text {
    font-size: .95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 22px;
}

/* =========================
   BUTTONS
========================= */
.btn-amplop,
.btn-rsvp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.btn-amplop {
    background: var(--bt-btn-2);
    color: #fff;
}

.btn-rsvp {
    background: var(--bt-btn-1);
    color: #fff;
}

.btn-amplop:hover,
.btn-rsvp:hover {
    transform: scale(1.06);
}

/* =========================
   TURUT MENGUNDANG
========================= */
.guest-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.guest-list li {
    padding: 6px 0;
    font-size: .95rem;
    color: var(--text-dark);
}

.guest-list i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* =========================
   ADAB WALIMAH
========================= */
.adab-img {
    margin-top: 18px;
    max-width: 280px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .informasi {
        padding: 70px 16px;
    }

    .info-box {
        padding: 30px 22px;
    }

    .info-box {
        font-size: 1.6rem;
    }
}

/* =========================
   MODAL BASE
========================= */
/* =========================
   MODAL BASE - FIX POSITION
========================= */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(138, 127, 141, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    /* Pastikan di atas semua */
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

/* =========================
   MODAL CONTENT
========================= */
.modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 26px;
    padding: 36px 28px;
    box-shadow: 0 30px 70px rgba(138, 127, 141, .25);
    text-align: center;
    animation: modalScale .4s ease;
    border: 1px solid var(--secondary-color);
    margin: auto;
    z-index: 10001;
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================
   CLOSE BUTTON
========================= */
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary-color);
}

/* =========================
   TITLE & SUBTITLE
========================= */
.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: .95rem;
    color: var(--primary-color);
    margin-bottom: 26px;
    line-height: 1.6;
}

/* =========================
   BANK BOX
========================= */
.bank-box {
    background: #faf7f3;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.bank-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.rekening {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: bold;
    margin-bottom: 4px;
}

.account-holder {
    font-size: .9rem;
    color: var(--primary-color);
}

.bank-note {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    color: var(--secondary-color);
}

/* =========================
   COPY BUTTON
========================= */
.btn-copy {
    margin-top: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #c8a97e, #b08c5a);
    color: #fff;
    font-size: .85rem;
    cursor: pointer;
    transition: transform .3s ease;
}

.btn-copy:hover {
    transform: scale(1.05);
}

/* =========================
   QRIS
========================= */
.qris-section {
    margin-top: 30px;
}

.qris-title {
    font-weight: 600;
    margin-bottom: 14px;
}

.qris-img {
    max-width: 220px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2);
}

.qris-note {
    margin-top: 10px;
    font-size: .85rem;
    color: #6f5b45;
}

/* =========================
   BANK LOGO
========================= */
.bank-logo {
    width: 70px;
    height: 40px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================
   RSVP FORM
========================= */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: .9rem;
}

.rsvp-form textarea {
    resize: none;
}

/* =========================
   SUBMIT BUTTON
========================= */
.btn-submit {
    margin-top: 10px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #7b5d42, #5f4632);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s ease;
}

.btn-submit:hover {
    transform: scale(1.05);
}

/* =========================
   RSVP ALERT
========================= */
.rsvp-alert {
    display: none;
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    font-size: .9rem;
}

.rsvp-alert.success {
    background: #e7f6ee;
    color: #2d7a4b;
}

.rsvp-alert.error {
    background: #fdeaea;
    color: #a94442;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
    .modal-content {
        padding: 28px 20px;
    }

    .modal-title {
        font-size: 1.7rem;
    }
}


.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10010;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    border-left: 4px solid #10b981;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 1.2rem;
}

.toast-notification i.fa-check-circle {
    color: #10b981;
}

.toast-notification i.fa-exclamation-circle {
    color: #ef4444;
}

/* =======================
   BOTTOM NAVIGATION STICKY
======================= */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 10px 40px rgba(138, 127, 141, 0.2);
    z-index: 9998;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
    display: block !important;
    /* Force display */
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    max-width: 70px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(138, 127, 141, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    color: var(--white);
    background: var(--bt-btn-1);
}

.nav-item.active i {
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    opacity: 1;
    font-weight: 600;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .bottom-nav {
        bottom: 15px;
        width: 95%;
        padding: 10px 15px;
    }

    .nav-item {
        padding: 6px 8px;
    }

    .nav-item i {
        font-size: 1.1rem;
    }

    .nav-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        bottom: 10px;
        padding: 8px 12px;
    }

    .nav-label {
        font-size: 0.6rem;
    }

    .nav-item i {
        font-size: 1rem;
    }
}

/* Debug: Tambahkan border merah sementara untuk melihat */
.bottom-nav.debug {
    border: 2px solid red !important;
    background: yellow !important;
}

/* =======================
   THANK YOU SECTION
======================= */
.thank {
    color: #fff;
    position: relative;
    background: linear-gradient(to bottom, #ffffff, var(--secondary-color));
    text-align: center;
}

.thanks-wrapper {
    padding: 120px 20px;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.thanks-wrapper:empty,
.thanks-wrapper:not([style]) {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color));
}

/* =======================
   TEXT
======================= */
.thanks-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 18px;
}

.thanks-text.small-margin {
    margin-bottom: 10px;
    font-style: italic;
    color: var(--primary-color);
}

/* =======================
   COUPLE NAME
======================= */
.thanks-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 0 35px;
    letter-spacing: 1px;
}

/* =======================
   FAMILY
======================= */
.thanks-family {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px 20px;
    box-shadow: 0 15px 35px rgba(138, 127, 141, 0.08);
    display: inline-block;
    min-width: 280px;
    border: 1px solid var(--secondary-color);
}

.thanks-family-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.thanks-family-text {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

/* =======================
   FOOTER
======================= */
footer {
    margin-top: 70px;
}

.footer {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all .25s ease;
}

.footer:hover {
    color: var(--primary-color);
}

.footer .e-moment {
    font-weight: 600;
    color: var(--primary-color);
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 600px) {
    .thanks-title {
        font-size: 28px;
    }

    .thanks-name {
        font-size: 26px;
    }

    .thanks-text {
        font-size: 14px;
    }

    .thanks-family {
        padding: 22px 16px;
    }
}

/* =======================
   MUSIC PLAYER
======================= */
#music-player {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9999;
}

/* Tombol */
#music-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--bt-btn-1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(138, 127, 141, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s ease;
}

/* Hover */
#music-toggle:hover {
    transform: scale(1.08) rotate(8deg);
    box-shadow: 0 15px 35px rgba(138, 127, 141, .35);
}

/* Aktif / Playing */
#music-toggle.playing {
    animation: musicPulse 2.2s infinite ease-in-out;
}

/* Icon */
#music-icon {
    transition: transform .3s ease;
}

/* Muted */
#music-toggle.muted #music-icon {
    opacity: .6;
}

/* =======================
   ANIMATION
======================= */
@keyframes musicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 127, 141, .55);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(138, 127, 141, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(138, 127, 141, 0);
    }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 600px) {
    #music-player {
        bottom: 100px;
        right: 18px;
    }

    #music-toggle {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
}

/* =======================
   WISH SECTION
======================= */
.wish-section {
    position: relative;
    background: linear-gradient(to bottom, var(--secondary-color), #ffffff);
    padding: 80px 20px;
    overflow: hidden;
}

.wish-wrapper {
    max-width: 800px;
    margin: auto;
    position: relative;
}

/* =======================
   FLORAL ORNAMENT
======================= */
.floral-ornament {
    position: absolute;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.15;
    font-size: 18px;
}

.wish-left {
    left: -10px;
}

.wish-right {
    right: -10px;
}

.floral-ornament i {
    color: var(--accent-color);
}

/* =======================
   TITLE
======================= */
.wish-title {
    text-align: center;
    margin-bottom: 35px;
}

.wish-title .section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
}

.wish-title .section-subtitle {
    font-size: 14px;
    color: var(--accent-color);
    margin-top: 6px;
}

/* =======================
   CARD
======================= */
.wish-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(138, 127, 141, 0.08);
    padding: 30px;
    border: 1px solid var(--secondary-color);
}

/* Header */
.wish-header {
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* =======================
   FORM
======================= */
.wish-form {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
}

.wish-form input,
.wish-form select,
.wish-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--secondary-color);
    font-size: 14px;
    transition: all .25s ease;
    color: var(--text-dark);
}

.wish-form textarea {
    resize: vertical;
    min-height: 90px;
}

.wish-form input:focus,
.wish-form select:focus,
.wish-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 127, 141, .15);
}

/* Button */
.wish-form button {
    background: var(--bt-btn-1);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wish-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 127, 141, .35);
}

/* =======================
   COMMENTS
======================= */
.wish-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wish-comment-item {
    background: var(--secondary-color);
    border-radius: 14px;
    padding: 14px 16px;
    animation: fadeUp .4s ease;
    border: 1px solid var(--secondary-color);
}

.wish-comment-sosmed {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.wish-comment-sosmed i {
    color: var(--primary-color);
    margin-right: 4px;
}

.comment-time {
    font-weight: 400;
    font-size: 12px;
    color: var(--accent-color);
}

.wish-comment-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Empty state */
.wish-comments .text-center {
    text-align: center;
    color: var(--accent-color);
    font-size: 14px;
}

/* =======================
   ANIMATION
======================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 600px) {
    .wish-card {
        padding: 22px;
    }

    .wish-title .section-title {
        font-size: 26px;
    }
}