:root {
    --primary-color: #2c2c2c;
    --secondary-color: #8b7355;
    --accent-color: #c9a96e;
    --text-color: #333;
    --light-bg: #faf8f5;
    --cream-bg: #f5f0e8;
    --white: #fff;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    
    --spacing-xs: 40px;
    --spacing-sm: 60px;
    --spacing-md: 80px;
    --spacing-lg: 100px;
    --spacing-xl: 120px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* CONTAINER UTAMA PRELOADER - Gradasi Putih ke Cokelat Muda */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, 
        #FFFFFF 0%, 
        #FDFBF9 20%,
        #F5EDE6 40%,
        #EDE5DC 60%,
        #E0D5C8 80%,
        #D4C4B0 100%);
    background-image: radial-gradient(rgba(0,0,0,0.01) 1px, transparent 0), 
                      linear-gradient(180deg, 
                          #FFFFFF 0%, 
                          #FDFBF9 20%,
                          #F5EDE6 40%,
                          #EDE5DC 60%,
                          #E0D5C8 80%,
                          #D4C4B0 100%);
    background-size: 4px 4px, 100% 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Cinzel', 'Playfair Display', 'Georgia', serif;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none;
    display: none !important;
}

/* ORNAMEN TRADISIONAL JAWA (Gunungan / Wayang di Kiri & Kanan) - CSS Only */
.preloader-ornament {
    position: absolute !important;
    top: 10% !important;
    width: 120px !important;
    height: 350px !important;
    opacity: 0.08 !important;
    pointer-events: none !important;
    background: none !important;
}
.preloader-ornament.left {
    left: -20px !important;
    transform: rotate(5deg) !important;
}
.preloader-ornament.right {
    right: -20px !important;
    transform: rotate(-5deg) scaleX(-1) !important;
}

/* Ornamen SVG inline sebagai pengganti gambar */
.preloader-ornament::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 300'%3E%3Cpath d='M50 10 Q80 50 85 100 Q90 150 70 200 Q60 250 50 290 Q40 250 30 200 Q10 150 15 100 Q20 50 50 10Z' fill='%238D6E63' opacity='0.3'/%3E%3Cpath d='M50 30 Q70 60 75 100 Q80 140 65 180 Q55 220 50 260 Q45 220 35 180 Q20 140 25 100 Q30 60 50 30Z' fill='%238D6E63' opacity='0.2'/%3E%3C/svg%3E") center/contain no-repeat !important;
}

/* ISI KONTEN TENGAH */
.preloader-content {
    text-align: center !important;
    color: #2C1810 !important;
    z-index: 10 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 90% !important;
}

/* BAGIAN ICON & CINCIN */
.preloader-icon-wrapper {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.gunungan-svg {
    position: absolute !important;
    width: 100px !important;
    height: 100px !important;
    color: #6D4C41 !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.05); }
}

.preloader-rings {
    position: relative !important;
    z-index: 2 !important;
}

.rings-art {
    font-size: 2.5rem !important;
    filter: drop-shadow(0 0 10px rgba(139, 111, 94, 0.4)) !important;
    animation: glow 2s ease-in-out infinite !important;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(139, 111, 94, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 111, 94, 0.7)); }
}

/* NAMA MEMPELAI DENGAN GLOW EMAS */
.preloader-title {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    font-size: 2.8rem !important;
    font-weight: 600 !important;
    color: #2C1810 !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: 4px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    animation: titleGlow 3s ease-in-out infinite !important;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    50% { text-shadow: 0 2px 8px rgba(139, 111, 94, 0.3), 0 0 20px rgba(139, 111, 94, 0.2); }
}

/* UCAPAN DOA DAN TEKS TRANSISI */
.preloader-text-group {
    margin-bottom: 30px !important;
}

.preloader-quote {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.3rem !important;
    font-style: italic !important;
    color: #3E2723 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 1px !important;
    font-weight: 500 !important;
}

.preloader-subquote {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.95rem !important;
    color: #4A3728 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* MONOGRAM VERTIKAL F & V */
.header-monogram-side {
    position: absolute !important;
    top: 24px !important;
    right: 20px !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    color: #8C7A6B !important;
    font-family: 'Playfair Display', 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

.header-monogram-side .dot {
    font-size: 0.6rem !important;
    opacity: 0.7 !important;
    margin: 2px 0 !important;
}

@media screen and (max-width: 768px) {
    .header-monogram-side {
        top: 18px !important;
        right: 16px !important;
        font-size: 1rem !important;
    }
}

/* ANIMATED CIRCULAR PROGRESS SPINNER */
.preloader-spinner-container {
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.elegant-spinner {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border: 3px solid rgba(141, 110, 99, 0.2) !important;
    border-top: 3px solid #8D6E63 !important;
    border-right: 3px solid #A1887F !important;
    border-radius: 50% !important;
    animation: spin 1.5s linear infinite !important;
}

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

.spinner-leaves {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    animation: rotateLeaves 8s linear infinite !important;
}

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

.spinner-leaves span {
    position: absolute !important;
    font-size: 1.2rem !important;
    color: #8D6E63 !important;
    opacity: 0.6 !important;
}

.spinner-leaves span:nth-child(1) {
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.spinner-leaves span:nth-child(2) {
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
}

.spinner-leaves span:nth-child(3) {
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.spinner-leaves span:nth-child(4) {
    top: 50% !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .preloader-title {
        font-size: 2rem !important;
        letter-spacing: 2px !important;
    }
    
    .preloader-quote {
        font-size: 1.1rem !important;
    }
    
    .preloader-subquote {
        font-size: 0.85rem !important;
    }
    
    .preloader-ornament {
        width: 80px !important;
        height: 250px !important;
    }
}

.cover-section {
    position: relative;
    height: 100vh;
    background-color: #e8e4df;
    overflow: hidden;
}

.cover-background {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 420px);
    height: 100%;
    background-image: url('../images/cover-bg.jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.75) contrast(1.1) sepia(0.12);
}

.cover-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(23, 19, 17, 0.85) 0%, rgba(23, 19, 17, 0.3) 50%, rgba(0, 0, 0, 0) 80%),
        radial-gradient(circle at 50% 88%, rgba(253, 248, 242, 0.95) 0%, rgba(247, 239, 230, 0.55) 45%, rgba(0, 0, 0, 0) 75%),
        linear-gradient(to top, rgba(145, 120, 102, 0.3) 0%, rgba(145, 120, 102, 0) 30%);
    z-index: 1;
}

.cover-content {
    position: absolute;
    z-index: 1;
    height: 100%;
    width: calc(100% - 420px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10%;
    transform: translateY(30px);
    opacity: 1 !important;
}

.cover-center {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 320px;
    margin: 0 auto;
    position: relative;
}

.cover-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 0;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #1a1a1a;
    text-shadow: 0px 1px 3px rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    white-space: nowrap;
}

.cover-names .ampersand {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 6px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 400;
    letter-spacing: 0;
}

.cover-date {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    color: #2b2b2b;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.cover-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    z-index: 2;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
}

.cover-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Fresma & Vera 3 (kecil).jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.72) contrast(1.05) sepia(0.18) hue-rotate(-10deg);
    z-index: 0;
    pointer-events: none;
}

.cover-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(26, 22, 20, 0.85) 0%, rgba(36, 30, 26, 0.4) 50%, rgba(0, 0, 0, 0) 80%),
        linear-gradient(to top, rgba(247, 244, 240, 0.85) 0%, rgba(244, 239, 233, 0.5) 45%, rgba(255, 255, 255, 0) 80%);
    z-index: 0;
    pointer-events: none;
}

.cover-panel-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 30px 2rem 30px;
    overflow: hidden;
}

.cover-panel.panel-opened .cover-panel-content {
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cover-panel.panel-opened .cover-panel-content::-webkit-scrollbar {
    display: none;
}

.panel-content {
    text-align: center;
    max-width: 300px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.panel-invitation {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    background: #F2EFE9;
}

.panel-hero-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 360px;
}

.panel-hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom, rgba(12, 10, 8, 0.85) 0%, rgba(12, 10, 8, 0.4) 50%, rgba(0, 0, 0, 0) 100%) !important;
    z-index: 5;
    pointer-events: none;
}

.panel-hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to bottom, rgba(242, 239, 233, 0) 0%, rgba(242, 239, 233, 0.4) 35%, rgba(242, 239, 233, 0.85) 75%, rgba(242, 239, 233, 1) 100%) !important;
    z-index: 5;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35% !important;
    filter: brightness(0.75) contrast(1.1) sepia(0.08) !important;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 3;
}

.panel-body {
    position: relative;
    z-index: 3;
    padding: 0 15px;
    margin-top: 0;
    background: #F2EFE9;
}

.panel-name-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    padding-top: 15px;
}

.panel-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2C2825;
    letter-spacing: 0.05em;
    font-weight: 400;
    margin-bottom: 0;
}

.panel-name-divider {
    width: 85%;
    height: 1px;
    background: #C5BCB3;
    margin: 8px auto;
}

.panel-name-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #4A4440;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.panel-gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 16px;
    margin-bottom: 25px;
}

.panel-gallery-track {
    display: flex;
    gap: 8px;
    will-change: transform;
}

.panel-gallery-img {
    flex: 0 0 125px;
    aspect-ratio: 3/4;
    border-radius: 6px;
    overflow: hidden;
}

.panel-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-monogram {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.panel-monogram span {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2C2825;
    font-weight: 300;
    letter-spacing: 0;
}

.scroll-mobile {
    width: 14px;
    height: 24px;
    border: 1.5px solid #5a544f;
    border-radius: 10px;
    position: relative;
    display: inline-block;
    opacity: 0.8;
}

.swipe-dot {
    width: 4px;
    height: 4px;
    background-color: #5a544f;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-up-gesture 1.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes scroll-up-gesture {
    0% {
        bottom: 4px;
        opacity: 0;
        transform: translateX(-50%) scale(0.7);
    }
    15% {
        bottom: 4px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    80% {
        bottom: 15px;
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        bottom: 18px;
        opacity: 0;
        transform: translateX(-50%) scale(0.6);
    }
}

.panel-quote-section {
    text-align: center;
    padding: 0;
    margin: 16px 20px;
    margin-bottom: 25px;
}

.panel-quote-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #4A4440;
    text-align: center;
}

.panel-countdown-section {
    text-align: center;
    margin-bottom: 24px;
}

.panel-countdown-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.panel-countdown-item {
    text-align: center;
}

.panel-countdown-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #2C2825;
    line-height: 1;
    margin-bottom: 5px;
}

.panel-countdown-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8D7B68;
}

.panel-invited-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #4A4440;
    text-align: center;
}

.panel-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2C2825;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.panel-heading-divider {
    width: 40px;
    height: 1px;
    background: #C5BCB3;
    margin: 10px auto 20px;
}

.panel-couple-section {
    margin-bottom: 32px;
    background: #F2EFE9;
}

.panel-couple-greeting {
    text-align: center;
    padding: 0 16px;
    margin-bottom: 24px;
}

.panel-couple-greeting-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #2B2825;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 400;
}

.panel-couple-greeting-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #4A4440;
    text-align: center;
    padding: 0 16px;
    margin-top: 8px;
}

.panel-couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
}

.panel-couple-card {
    text-align: center;
}

.panel-couple-role {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: #2B2825;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 400;
}

.panel-couple-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    width: 100%;
}

.panel-couple-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.panel-couple-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: #2B2825;
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 600;
}

.panel-couple-parents {
    font-size: 0.7rem;
    line-height: 1.4;
    color: #5A544F;
}

.panel-story-section {
    background: #F2EFE9;
    padding: 32px 0 24px;
}

.panel-story-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    color: #2B2825;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}

.panel-story-container {
    text-align: center;
    padding: 0 20px;
}

.panel-story-block {
    margin-bottom: 0;
}

.panel-story-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #2B2825;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 400;
    font-style: italic;
}

.panel-story-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #4A4440;
    text-align: center;
    font-style: italic;
    margin-bottom: 12px;
}

.panel-story-divider {
    border-bottom: 1px solid #C5BCB3;
    width: 100%;
    margin: 20px 0;
}

.panel-gallery-section {
    background: #F2EFE9;
    padding: 32px 0 24px;
}

.panel-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    color: #2B2825;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 400;
}

.panel-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 32px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    position: relative;
}

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

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

.panel-event-section {
    background: #F2EFE9;
    padding: 32px 0 24px;
    margin-bottom: 32px;
}

.panel-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    color: #2B2825;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 400;
}

.event-card {
    background-color: #FAF8F5 !important;
    border: 1px solid #E2DED7 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin: 0 16px 24px 16px !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.event-card-header {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.event-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.event-card-body {
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    width: 100%;
    position: relative;
    background-color: #FAF8F5;
}

.event-card-content {
    flex: 1;
    padding: 18px 12px;
    text-align: center;
}

.event-date {
    font-size: 11px;
    font-weight: 700;
    color: #2B2825;
    margin-bottom: 2px;
    letter-spacing: 0.04em;
}

.event-time {
    font-size: 11px;
    color: #2B2825;
    margin-bottom: 8px;
}

.event-icon-building {
    margin: 4px 0;
}

.event-icon-building i {
    font-size: 20px;
    color: #8C7A6B;
}

.event-location-title {
    font-size: 12px;
    font-weight: 700;
    color: #2B2825;
    margin: 4px 0;
}

.event-address {
    font-size: 10.5px;
    line-height: 1.4;
    color: #5A544F;
    margin-bottom: 12px;
}

.btn-open-maps {
    background-color: #8C7A6B;
    color: #FFFFFF;
    font-size: 10.5px;
    border-radius: 4px;
    padding: 6px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-open-maps:hover {
    background-color: #7a6a5c;
}

.event-side-badge {
    width: 36px;
    background-color: #EFECE6;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    color: #4A4440;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.panel-rsvp-section {
    margin-bottom: 30px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px 16px 20px 16px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #C5BCB3;
}

.section-divider span {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    color: #2B2825;
    font-weight: 400;
    white-space: nowrap;
}

.rsvp-card {
    background-color: #FAF8F5;
    border: 1px solid #E2DED7;
    border-radius: 12px;
    padding: 20px 16px;
    margin: 0 16px 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.rsvp-total-comments {
    font-size: 12px;
    color: #5A544F;
    text-align: center;
    margin-bottom: 12px;
}

.rsvp-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.rsvp-stat {
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.rsvp-stat.hadir {
    background-color: #539E67;
}

.rsvp-stat.tidak-hadir {
    background-color: #D31919;
}

.input-field {
    width: 100%;
    background-color: #EFECE6;
    border: 1px solid #E2DED7;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: #2B2825;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.input-field::placeholder {
    color: #8C857B;
}

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

.attendance-option {
    cursor: pointer;
}

.attendance-label {
    display: block;
    background-color: #EFECE6;
    border: 1px solid #E2DED7;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    color: #2B2825;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attendance-option input:checked + .attendance-label {
    background-color: #8C7A6B;
    color: white;
    border-color: #8C7A6B;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
}

.btn-action {
    width: 100% !important;
    height: 42px !important;
    background-color: #8C7A6B !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px 0 !important;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.btn-action:hover {
    background-color: #7a6a5c !important;
}

/* Sticker Picker */
.sticker-wrapper {
    position: relative;
    width: 100%;
}

.sticker-picker {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 220px;
    background-color: #FAF8F5;
    border: 1px solid #E2DED7;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 99;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sticker-picker.active {
    display: grid;
}

.sticker-item {
    font-size: 20px;
    text-align: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    user-select: none;
}

.sticker-item:hover {
    background-color: #EFECE6;
}

.wishes-list-area {
    background-color: #FAF8F5;
    border-top: 1px dashed #E2DED7;
    padding-top: 12px;
    margin-top: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.wish-empty {
    text-align: center;
    color: #8C827A;
    font-size: 0.85rem;
    padding: 20px 0;
    font-style: italic;
}

.wish-card {
    background: #FAF8F5;
    border: 1px solid #E8E2D9;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

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

.wish-author {
    font-weight: 600;
    color: #2C2523;
    font-size: 0.9rem;
}

.wish-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.wish-badge.badge-hadir {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.wish-badge.badge-tidak-hadir {
    background-color: #FFEBEE;
    color: #C62828;
}

.wish-message {
    font-size: 0.82rem;
    color: #4A423C;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

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

.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #539E67;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.wish-item {
    padding: 8px 0;
}

.wish-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.wish-item-name {
    font-size: 12px;
    font-weight: bold;
    color: #2B2825;
}

.wish-item-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
    color: white;
}

.wish-item-badge.hadir {
    background-color: #539E67;
}

.wish-item-badge.tidak-hadir {
    background-color: #D31919;
}

.wish-item-message {
    font-size: 11px;
    color: #4A4440;
    margin: 4px 0;
    line-height: 1.4;
}

.wish-item-meta {
    font-size: 10px;
    color: #8C857B;
    display: flex;
    gap: 8px;
}

.wish-item-reply {
    cursor: pointer;
}

/* Gift Section */
.panel-gift-section {
    margin-bottom: 30px;
}

.gift-description {
    font-style: italic;
    font-size: 11px;
    line-height: 1.5;
    color: #4A4440;
    padding: 0 20px;
    text-align: center;
    margin-bottom: 20px;
}

.gift-card-main {
    background-color: #FAF8F5;
    border: 1px solid #E2DED7;
    border-radius: 12px;
    margin: 0 16px 32px 16px;
    overflow: hidden;
    display: flex;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gift-card-content {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
}

.gift-side-badge {
    width: 36px;
    background-color: #EFECE6;
    border-left: 1px solid #E2DED7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    color: #8C857B;
    letter-spacing: 0.08em;
}

.btn-toggle-gift {
    background-color: #8C7A6B;
    color: #FFF;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 11.5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.btn-toggle-gift:hover {
    background-color: #7a6a5c;
}

.gift-rekening-extra {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    max-height: 300px;
    opacity: 1;
}

.gift-rekening-extra.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.gift-bank-card {
    background: #FFFFFF;
    border: 1px solid #E5E0D8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.gift-bank-logo {
    height: 24px;
    margin-bottom: 6px;
}

.gift-acc-num {
    font-size: 13px;
    font-weight: 700;
    color: #2B2825;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.gift-acc-name {
    font-size: 11px;
    color: #4A4440;
    margin-bottom: 10px;
}

.btn-copy-outline {
    background-color: #FFFFFF;
    color: #4A4440;
    border: 1px solid #D5D0C8;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-copy-outline:hover {
    background-color: #F5F0E8;
}

.btn-copy-outline.copied {
    background-color: #539E67;
    color: #FFFFFF;
    border-color: #539E67;
}

.btn-copy-fill {
    background-color: #8C7A6B;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.btn-copy-fill:hover {
    background-color: #7a6a5c;
}

.btn-copy-fill.copied {
    background-color: #539E67;
}

.gift-divider {
    border-top: 1px solid #E2DED7;
    margin: 16px 0;
}

.btn-gift-confirm {
    background-color: #8C7A6B;
    color: #FFFFFF;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 11.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.btn-gift-confirm:hover {
    background-color: #7a6a5c;
}

.closing-section {
    position: relative;
    width: calc(100% + 30px) !important;
    max-width: calc(100% + 30px) !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    margin-top: 32px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.closing-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30%;
    z-index: 1;
    filter: brightness(0.85);
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.closing-bg-img.active {
    opacity: 1;
}

.closing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, rgba(242,239,233,0.85) 70%, #F2EFE9 95%, #F2EFE9 100%);
    z-index: 2;
    pointer-events: none;
}

.closing-content {
    position: relative;
    z-index: 3;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 550px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.closing-message-top {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.closing-message-main {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.6;
    color: #FFFFFF;
    max-width: 85%;
    margin: 300px auto 20px auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

.closing-bottom-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 60%;
    margin: 0 auto 12px auto;
}

.closing-divider::before,
.closing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.7);
}

.closing-divider span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.closing-names {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: #3A3530;
    margin: 0;
    font-weight: 400;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.btn-scroll-top {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #A89F91;
    background: rgba(242,239,233,0.6);
    color: #5A544F;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    cursor: pointer;
    backdrop-filter: blur(4px);
    animation: float-up 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.btn-scroll-top:hover {
    background: rgba(242,239,233,0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-credits {
    font-size: 10px;
    color: #6A645F;
    line-height: 1.4;
    margin-top: 20px;
    font-weight: 500;
}

.footer-credits .heart {
    color: #E53935;
    display: inline-block;
    margin: 0 2px;
}

.panel-to {
    font-size: 0.875rem;
    color: #3d3530;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.panel-guest {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: #2c2523;
    margin-top: 4px;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.panel-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #3d3530;
    font-style: italic;
    margin-bottom: 0;
    max-width: 85%;
}

.btn-open {
    background: #8D7B68;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-open:hover {
    background: #7a6d5c;
    transform: translateY(-1px);
}

.panel-note {
    font-size: 0.75rem;
    color: #6b5d52;
    font-style: italic;
    margin-top: 10px;
}

.main-content {
    background: var(--white);
}

.section {
    padding: var(--spacing-md) 20px;
}

.opening {
    background: var(--white);
    padding: var(--spacing-lg) 20px;
}

.opening-container {
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.opening-quote {
    border-left: 2px solid var(--accent-color);
    padding-left: 30px;
    text-align: left;
    margin: 0;
}

.opening-quote .quote-icon {
    margin-bottom: 15px;
    display: block;
}

.couple-section {
    background: var(--light-bg);
    padding: var(--spacing-lg) 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cormorant Upright', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 3px;
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 30px;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--primary-color);
    margin: 15px auto;
    opacity: 0.4;
}

.divider.left-align {
    margin: 15px 0 30px 0;
}

.section-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 30px;
}

.quote-box {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
    padding: 20px;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.quote-text {
    font-family: 'Cormorant Upright', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--primary-color);
}

.intro-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #666;
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

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

.couple-card:first-child .couple-img-wrapper {
    border-color: var(--accent-color);
}

.couple-img-wrapper {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
}

.couple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.couple-name {
    font-family: 'Cormorant Upright', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 2px;
}

.couple-parents {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #888;
}

.couple-and {
    font-family: 'Cormorant Upright', serif;
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.countdown-section {
    background: var(--cream-bg);
    padding: var(--spacing-sm) 20px;
}

.countdown-section .section-title {
    font-size: 1.8rem;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    display: block;
    font-family: 'Cormorant Upright', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
}

.timeline {
    max-width: 700px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-icon i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.timeline-content {
    width: calc(50% - 45px);
    padding: 25px;
    background: var(--white);
    border-radius: 8px;
}

.timeline-content h3 {
    font-family: 'Cormorant Upright', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

.timeline-content p {
    line-height: 1.8;
    color: #777;
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
    cursor: pointer;
}

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

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

.event-section {
    background: var(--light-bg);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-card.primary {
    border-top: 3px solid var(--accent-color);
}

.event-icon {
    width: 60px;
    height: 60px;
    background: var(--cream-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.event-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.event-card h3 {
    font-family: 'Cormorant Upright', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.event-date {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.event-day {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-full-date {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.event-time {
    font-size: 0.85rem;
    color: #999;
}

.location-title {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.location-address {
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.85rem;
}

.btn-maps {
    display: inline-block;
    background: transparent;
    color: var(--secondary-color);
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

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

.rsvp-section {
    background: var(--white);
}

.rsvp-intro {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 35px;
    color: #888;
    font-size: 0.9rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 35px;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0ddd8;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

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

.wishes-container {
    max-width: 500px;
    margin: 40px auto 0;
}

.wishes-container h3 {
    font-family: 'Cormorant Upright', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 2px;
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wish-card {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.wish-name {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.wish-attendance {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wish-attendance.hadir {
    background: #e8f5e9;
    color: #2e7d32;
}

.wish-attendance.tidak_hadir {
    background: #ffebee;
    color: #c62828;
}

.wish-attendance.ragu {
    background: #fff8e1;
    color: #f57f17;
}

.wish-message {
    color: #777;
    line-height: 1.6;
    font-size: 0.85rem;
}

.gift-section {
    background: var(--light-bg);
}

.gift-intro {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 35px;
    color: #888;
    font-size: 0.9rem;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.gift-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.gift-card:last-child {
    border-top: 2px solid var(--accent-color);
}

.bank-logo {
    height: 50px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bank-logo img {
    max-height: 100%;
    max-width: 120px;
}

.account-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.account-name {
    color: #888;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.btn-copy {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

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

.btn-copy.copied {
    background: #2e7d32;
    border-color: #2e7d32;
    color: var(--white);
}

.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.footer-names {
    font-family: 'Cormorant Upright', serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 4px;
}

.footer-divider {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px auto;
}

.footer-credit {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

.footer-credit i {
    color: #c9a96e;
}

.music-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background-color: #8C7A6B !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    z-index: 999 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease !important;
}

.music-toggle:hover {
    background-color: #7a6a5c !important;
}

.music-toggle.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .cover-names {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
    }

    .cover-names .ampersand {
        font-size: 0.95rem;
    }

    .cover-date {
        font-size: 0.75rem;
    }

    .cover-panel {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 70vh;
        padding: 40px 20px 2rem 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        overflow: hidden;
    }

    .cover-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/Fresma & Vera 3 (kecil).jpg');
        background-size: cover;
        background-position: center;
        filter: brightness(0.72) contrast(1.05) sepia(0.18) hue-rotate(-10deg);
        z-index: 0;
    }

    .cover-panel::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            linear-gradient(to bottom, rgba(26, 22, 20, 0.85) 0%, rgba(36, 30, 26, 0.4) 50%, rgba(0, 0, 0, 0) 80%),
            linear-gradient(to top, rgba(247, 244, 240, 0.85) 0%, rgba(244, 239, 233, 0.5) 45%, rgba(255, 255, 255, 0) 80%);
        z-index: 0;
    }

    .cover-section {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }

    .cover-background {
        position: relative;
        height: 60vh;
    }

    .cover-content {
        height: auto;
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .couple-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .couple-and {
        font-size: 2.5rem;
    }

    .couple-img-wrapper {
        width: 180px;
        height: 180px;
    }

    .countdown-wrapper {
        gap: 25px;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .gift-grid {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 25px;
    }

    .footer-names {
        font-size: 2rem;
    }

    .music-toggle {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.gallery-item {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 15, 12, 0.93);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.35s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #F2EFE9;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #8C7A6B;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #FAF8F5;
    padding: 16px 0;
    font-size: 13px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
}

.lightbox.show {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

img, video, canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Global text wrapping untuk mobile */
    p, span, h1, h2, h3, h4, .panel-quote-text, .panel-couple-greeting-text, .panel-story-text, .event-address, .wish-item-message {
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    .cover-section {
        height: auto;
        min-height: 100vh;
    }

    .cover-background {
        display: none;
    }

    .cover-content {
        display: none;
    }

    .cover-panel {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 100vh;
        box-shadow: none;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .panel-hero-wrapper {
        height: 75vh;
        max-height: 600px;
    }

    .panel-body {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .panel-name-section {
        padding-top: 12px;
        margin-bottom: 16px;
    }

    .panel-name {
        font-size: 1.15rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .panel-gallery-wrapper {
        margin-top: 12px;
        margin-bottom: 20px;
        width: 100%;
        overflow: hidden;
        padding: 0;
    }

    .panel-gallery-track {
        display: flex;
        gap: 8px;
    }

    .panel-gallery-img {
        flex: 0 0 120px;
        aspect-ratio: 3 / 4;
    }

    .panel-gallery-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .panel-monogram {
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .panel-monogram span {
        font-size: 2.5rem;
    }

    .scroll-mobile {
        width: 14px;
        height: 24px;
    }

    .panel-quote-section {
        margin: 16px 0;
        margin-bottom: 24px;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .panel-quote-text {
        font-size: 0.75rem;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        padding: 0;
        text-align: center;
    }

    .panel-countdown-section {
        margin-bottom: 28px;
        margin-top: 24px;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .panel-countdown-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        width: 100%;
        margin-bottom: 12px;
        padding: 0;
        box-sizing: border-box;
    }

    .panel-countdown-item {
        text-align: center;
        padding: 6px 2px;
        min-width: 0;
        overflow: hidden;
    }

    .panel-countdown-num {
        font-size: 1.4rem;
        line-height: 1.2;
        display: block;
    }

    .panel-countdown-lbl {
        font-size: 0.6rem;
        letter-spacing: 0.05em;
        display: block;
    }

    .panel-invited-text {
        font-size: 0.75rem;
        margin-top: 8px;
        padding: 0 16px;
        overflow-wrap: break-word;
    }

    .panel-couple-section {
        width: 100%;
        margin-top: 28px;
    }

    .panel-couple-greeting {
        padding: 0 16px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .panel-couple-greeting-title {
        font-size: 1.15rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        padding: 0;
    }

    .panel-couple-greeting-text {
        padding: 0;
        font-size: 0.75rem;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
        text-align: center;
    }

    .panel-couple-grid {
        padding: 0;
        gap: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .panel-couple-card {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .panel-couple-img-wrap {
        aspect-ratio: 3 / 4;
        width: 100%;
    }

    .panel-couple-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .panel-couple-name {
        font-size: 0.8rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .panel-couple-parents {
        font-size: 0.65rem;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .panel-story-section {
        padding: 28px 0 20px;
        width: 100%;
    }

    .panel-story-title {
        font-size: 1.375rem;
        overflow-wrap: break-word;
        padding: 0 16px;
    }

    .panel-story-container {
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .panel-story-block {
        width: 100%;
    }

    .panel-story-subtitle {
        font-size: 0.9rem;
        overflow-wrap: break-word;
    }

    .panel-story-text {
        font-size: 0.7rem;
        line-height: 1.6;
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
    }

    .panel-story-divider {
        width: 100%;
    }

    .panel-gallery-section {
        padding: 28px 0 20px;
        width: 100%;
    }

    .panel-gallery-title {
        font-size: 1.375rem;
        overflow-wrap: break-word;
        padding: 0 16px;
    }

    .panel-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
        width: 100%;
    }

    .gallery-item {
        aspect-ratio: 3 / 4;
        border-radius: 8px;
        width: 100%;
        min-width: 0;
    }

    .panel-event-section {
        padding: 28px 0 20px;
        width: 100%;
    }

    .panel-event-title {
        font-size: 1.375rem;
        overflow-wrap: break-word;
        padding: 0 16px;
    }

    .event-card {
        margin: 0 0 18px 0;
        width: 100%;
    }

    .event-card-header {
        height: 170px;
        width: 100%;
    }

    .event-card-body {
        width: 100%;
    }

    .event-card-content {
        width: 100%;
        padding: 14px 12px;
    }

    .event-side-badge {
        width: 34px;
        font-size: 11px;
    }

    .event-date {
        font-size: 10px;
        overflow-wrap: break-word;
    }

    .event-time {
        font-size: 10px;
        overflow-wrap: break-word;
    }

    .event-address {
        font-size: 10px;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .section-divider {
        margin: 28px 0 16px 0;
        width: 100%;
    }

    .section-divider span {
        font-size: 1.25rem;
        overflow-wrap: break-word;
    }

    .rsvp-card {
        padding: 16px 14px;
        margin: 0 0 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .attendance-grid {
        gap: 10px;
        width: 100%;
    }

    .attendance-label {
        padding: 12px 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-wrap: break-word;
    }

    .action-buttons-grid {
        gap: 10px;
        width: 100%;
    }

    .btn-action {
        min-height: 44px;
        width: 100%;
        overflow-wrap: break-word;
    }

    .sticker-wrapper {
        width: 100%;
        min-width: 0;
    }

    .gift-card-main {
        margin: 0 0 28px 0;
        width: 100%;
    }

    .gift-card-content {
        padding: 16px 14px;
        width: 100%;
    }

    .gift-side-badge {
        width: 32px;
        font-size: 10px;
    }

    .btn-toggle-gift,
    .btn-gift-confirm {
        min-height: 44px;
        padding: 12px 20px;
        overflow-wrap: break-word;
    }

    .btn-copy-outline,
    .btn-copy-fill {
        min-height: 44px;
        padding: 10px 14px;
        overflow-wrap: break-word;
    }

    .gift-bank-card {
        width: 100%;
    }

    .gift-acc-num {
        font-size: 12px;
        overflow-wrap: break-word;
        word-break: break-all;
    }

    .closing-section {
        min-height: 80vh;
        width: 100%;
    }

    .closing-content {
        padding: 30px 16px 16px 16px;
        width: 100%;
    }

    .closing-message-top {
        font-size: 13px;
        overflow-wrap: break-word;
    }

    .closing-message-main {
        font-size: 10.5px;
        margin: 140px auto 16px auto;
        overflow-wrap: break-word;
    }

    .closing-names {
        font-size: 20px;
        overflow-wrap: break-word;
    }

    .btn-scroll-top {
        min-width: 44px;
        min-height: 44px;
    }

    .sticker-picker {
        max-width: 90vw;
        left: 50%;
        transform: translateX(-50%);
    }

    .sticker-picker.active {
        transform: translateX(-50%);
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-close {
        font-size: 32px;
        padding: 12px;
        top: 16px;
        right: 16px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wish-item {
        width: 100%;
    }

    .wish-item-name {
        overflow-wrap: break-word;
    }

    .wish-item-message {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .input-field {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .panel-body {
        padding: 0 10px;
    }

    .panel-name {
        font-size: 1.05rem;
    }

    .panel-name-date {
        font-size: 0.75rem;
    }

    .panel-couple-grid {
        gap: 8px;
    }

    .panel-couple-role {
        font-size: 0.8rem;
    }

    .panel-couple-name {
        font-size: 0.75rem;
    }

    .panel-story-container {
        padding: 0 2px;
    }

    .panel-story-title,
    .panel-gallery-title,
    .panel-event-title {
        font-size: 1.25rem;
    }

    .panel-gallery-grid {
        gap: 6px;
    }

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

    .event-card-header {
        height: 160px;
    }

    .event-card-content {
        padding: 14px 10px;
    }

    .event-side-badge {
        width: 32px;
        font-size: 10px;
    }

    .section-divider {
        margin: 24px 0 14px 0;
    }

    .section-divider span {
        font-size: 1.15rem;
    }

    .rsvp-card {
        padding: 14px 12px;
    }

    .gift-card-main {
        margin-bottom: 24px;
    }

    .gift-card-content {
        padding: 14px 12px;
    }

    .closing-content {
        padding: 24px 14px 14px 14px;
    }

    .closing-message-main {
        font-size: 10px;
        margin: 120px auto 14px auto;
    }

    .closing-names {
        font-size: 18px;
        letter-spacing: 0.1em;
    }

    .closing-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 35%, rgba(242,239,233,0.85) 60%, #F2EFE9 85%, #F2EFE9 100%);
    }
}

/* ============================================
   MOBILE OVERRIDE - PERBAIKAN RADIKAL
   Letakkan di paling bawah untuk override semua style
   ============================================ */
@media (max-width: 767px) {
    /* 1. LOCK VIEWPORT & GLOBAL BOX SIZING */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .cover-panel,
    .panel-body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    * {
        box-sizing: border-box !important;
    }

    /* 2. FORCE TEXT WRAPPING - Cegah teks terpotong */
    p, span, h1, h2, h3, h4,
    .panel-quote-text,
    .panel-couple-greeting-text,
    .panel-couple-greeting-title,
    .panel-story-text,
    .panel-story-subtitle,
    .panel-name,
    .panel-name-date,
    .panel-invited-text,
    .event-date,
    .event-time,
    .event-address,
    .wish-item-name,
    .wish-item-message,
    .closing-message-top,
    .closing-message-main,
    .closing-names {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Teks kutipan dan salam dengan padding aman */
    .panel-quote-section,
    .panel-couple-greeting {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .panel-quote-text {
        font-size: 11px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .panel-couple-greeting-text {
        font-size: 12px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    /* 3. COUNTDOWN TIMER - Forced 4-Column Grid */
    .panel-countdown-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto 12px auto !important;
        box-sizing: border-box !important;
    }

    .panel-countdown-item {
        width: 100% !important;
        min-width: 0 !important;
        padding: 6px 2px !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    .panel-countdown-num {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        display: block !important;
    }

    .panel-countdown-lbl {
        font-size: 8px !important;
        letter-spacing: 0.05em !important;
        display: block !important;
        margin-top: 2px !important;
    }

    .panel-countdown-section {
        width: 100% !important;
        padding: 0 12px !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
    }

    /* 4. GALLERY & IMAGES - Prevent overflow */
    .panel-gallery-wrapper {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .panel-gallery-grid {
        width: 100% !important;
        padding: 0 !important;
    }

    .gallery-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 5. EVENT CARDS - Text wrapping */
    .event-card {
        width: 100% !important;
        overflow: hidden !important;
    }

    .event-card-content {
        width: 100% !important;
        padding: 14px 12px !important;
    }

    .event-address {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    /* 6. RSVP & FORMS - Proper sizing */
    .rsvp-card {
        width: 100% !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
    }

    .input-field {
        width: 100% !important;
    }

    /* 7. GIFT SECTION - Account numbers */
    .gift-card-main {
        width: 100% !important;
    }

    .gift-acc-num {
        font-size: 12px !important;
        word-break: break-all !important;
    }

    /* 8. CLOSING SECTION */
    .closing-section {
        width: 100% !important;
    }

    .closing-content {
        width: 100% !important;
        padding: 30px 16px 16px 16px !important;
    }

    .closing-message-main {
        font-size: 11px !important;
        line-height: 1.6 !important;
        max-width: 90% !important;
    }

    .closing-names {
        font-size: 20px !important;
    }

    /* 9. STICKER PICKER - Prevent overflow */
    .sticker-picker {
        max-width: 90vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .sticker-picker.active {
        transform: translateX(-50%) !important;
    }

    /* 10. LIGHTBOX - Mobile friendly */
    .lightbox-content {
        max-width: 95% !important;
        max-height: 75vh !important;
    }

    .lightbox-close {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 32px !important;
        padding: 12px !important;
    }
}

/* ============================================
   MOBILE FIX - OVERLAP PREVENTION
   Perbaikan final untuk masalah overlap
   ============================================ */
@media (max-width: 768px) {
    /* 1. SEMBUNYIKAN PANEL KIRI DESKTOP */
    .cover-background,
    .cover-content {
        display: none !important;
    }

    /* 2. RESET COVER SECTION - Dokument flow normal */
    .cover-section {
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        background-color: #F2EFE9 !important;
    }

    /* 3. RESTRUKTURISASI PANEL KANAN */
    .cover-panel {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .cover-panel-content {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .cover-panel.panel-opened .cover-panel-content {
        height: auto !important;
        overflow-y: visible !important;
    }

    /* 4. PANEL INVITATION & BODY */
    .panel-invitation,
    .panel-body {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }

    /* 5. HERO HEADER FOTO ATAS */
    .panel-hero-wrapper {
        height: 380px !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* 6. COUNTDOWN TIMER - Grid 4 Kolom Presisi */
    .panel-countdown-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .panel-countdown-item {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        overflow: hidden !important;
    }

    /* 7. TEXT WRAPPING - Cegah teks meluap */
    p, span, h1, h2, h3, h4,
    .panel-quote-text,
    .panel-couple-greeting-text,
    .panel-story-text,
    .event-address,
    .panel-couple-parents,
    .panel-name,
    .panel-name-date,
    .closing-message-top,
    .closing-message-main,
    .closing-names {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        max-width: 100% !important;
    }

    /* 8. LOCK HORIZONTAL SCROLL */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* 9. CONTAINER SAFETY */
    .panel-name-section,
    .panel-gallery-wrapper,
    .panel-monogram,
    .panel-quote-section,
    .panel-countdown-section,
    .panel-couple-section,
    .panel-story-section,
    .panel-gallery-section,
    .panel-event-section,
    .panel-rsvp-section,
    .panel-gift-section,
    .closing-section {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* 10. FORM ELEMENTS */
    .rsvp-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .input-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 11. GALLERY GRID */
    .panel-gallery-grid {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gallery-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 12. EVENT CARDS */
    .event-card {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .event-card-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 13. GIFT SECTION */
    .gift-card-main {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gift-acc-num {
        word-break: break-all !important;
    }

    /* 14. COUPLE GRID */
    .panel-couple-grid {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .panel-couple-card {
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    /* 15. STORY CONTAINER */
    .panel-story-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .panel-story-block {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   OVERRIDE UTAMA VIEWPORT MOBILE (FINAL)
   Dipasang di paling bawah untuk memotong semua style sebelumnya
   ========================================================= */
@media screen and (max-width: 768px) {

    /* Hapus kuncian tinggi 100vh pada cover-section & cover-panel */
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
    }

    #cover, .cover-section {
        height: auto !important;
        min-height: 100vh !important;
        position: relative !important;
        overflow: visible !important;
        display: block !important;
    }

    .cover-background,
    .cover-content {
        display: none !important;
    }

    .cover-panel {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        overflow: visible !important;
        display: block !important;
    }

    .cover-panel-content {
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        display: block !important;
    }

    .cover-panel.panel-opened .cover-panel-content {
        height: auto !important;
        overflow-y: visible !important;
    }

    /* Pastikan kontainer undangan yang terbuka memiliki alur dokumen normal */
    .panel-invitation {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .panel-invitation.hidden {
        display: none !important;
    }

    .panel-body {
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Paksa seluruh text wrapping di mobile */
    p, span, h1, h2, h3, h4, div {
        max-width: 100% !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }

    /* Fix Grid Countdown 4 Kolom di Mobile */
    .panel-countdown-row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .panel-countdown-item {
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px !important;
    }

    .panel-countdown-num {
        font-size: 1.3rem !important;
    }
}

/* =========================================================
   PERBAIKAN HALAMAN PEMBUKA MOBILE (SEBELUM DIBUKA)
   ========================================================= */
@media screen and (max-width: 768px) {
    /* 1. Pastikan container pembungkus utama mengalirkan konten ke dasar */
    .cover-panel:not(.panel-opened) {
        position: relative !important;
        width: 100% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
    }

    .cover-panel:not(.panel-opened) .cover-panel-bg,
    .cover-panel:not(.panel-opened) .cover-panel-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }

    .cover-panel:not(.panel-opened) .cover-panel-content {
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
        height: 100% !important;
        min-height: 100vh !important;
        padding: 0 24px 40px 24px !important;
        box-sizing: border-box !important;
    }

    /* 2. Sembunyikan panel invitation saat belum dibuka */
    .cover-panel:not(.panel-opened) #panelInvitation {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* 3. Paksa elemen #panelIntro berada di bagian paling bawah */
    .cover-panel:not(.panel-opened) #panelIntro {
        margin-top: auto !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        z-index: 10 !important;
        transform: none !important;
        padding-bottom: 20px !important;
    }

    /* 4. Atur warna teks agar kontras & jelas dibaca di atas area terang */
    .cover-panel:not(.panel-opened) .panel-to {
        font-size: 0.85rem !important;
        color: #3D3530 !important;
        margin-bottom: 2px !important;
        font-weight: 500 !important;
    }

    .cover-panel:not(.panel-opened) .panel-guest {
        font-size: 1.65rem !important;
        color: #1A1A1A !important;
        margin-top: 4px !important;
        margin-bottom: 10px !important;
        font-weight: 700 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    .cover-panel:not(.panel-opened) .panel-text {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        color: #2C2523 !important;
        margin-bottom: 14px !important;
        max-width: 90% !important;
    }

    .cover-panel:not(.panel-opened) .btn-open {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
        padding: 12px 28px !important;
        background-color: #8D7B68 !important;
        color: #FFFFFF !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    .cover-panel:not(.panel-opened) .panel-note {
        font-size: 0.7rem !important;
        color: #5A544F !important;
        margin-top: 4px !important;
    }
}

/* =========================================================
   PERBAIKAN RADIKAL MOBILE - FULL BLEED EDGE-TO-EDGE
   Menghilangkan seluruh bingkai/celah di semua sisi
   ========================================================= */
@media screen and (max-width: 768px) {
    /* 1. INDUK PALING LUAR - Reset total */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #cover,
    .cover-section {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow: visible !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* 2. PANEL KANAN UTAMA - Override semua properti desktop */
    .cover-panel {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .cover-panel-content {
        position: relative !important;
        z-index: 1 !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .cover-panel.panel-opened .cover-panel-content {
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .panel-invitation,
    #panelInvitation {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        position: relative !important;
    }

    /* 3. FIX HERO HEADER FOTO ATAS - Menempel 100% */
    .panel-hero-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        height: 75vh !important;
        max-height: 550px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }

    .panel-hero-wrapper img,
    .hero-slide {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        display: block !important;
    }

    /* 4. PADDING HANYA PADA KONTEN TEKS DI BAWAH HERO */
    .panel-body {
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important;
    }

    .panel-name-section {
        padding-top: 20px !important;
        margin-bottom: 16px !important;
    }
}

/* =========================================================
   PERBAIKAN KARTU ACARA, RSVP & GIFT - CENTERED MOBILE
   ========================================================= */
@media screen and (max-width: 768px) {
    .panel-event-section {
        width: 100% !important;
        padding: 28px 0 20px 0 !important;
        box-sizing: border-box !important;
    }

    .event-card {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin: 0 auto 20px auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .event-card-header {
        width: 100% !important;
        height: 160px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .event-card-header img,
    .event-card-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .event-card-body {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .event-card-content {
        flex: 1 !important;
        padding: 14px 10px !important;
        text-align: center !important;
    }

    .event-side-badge {
        width: 32px !important;
        font-size: 10px !important;
        flex-shrink: 0 !important;
    }

    /* RSVP & Gift Card - Centered konsisten */
    .rsvp-card,
    .gift-card-main {
        width: calc(100% - 24px) !important;
        margin: 0 auto 20px auto !important;
        box-sizing: border-box !important;
    }
}

/* =========================================================
   PERBAIKAN CLOSING SECTION - FULL BLEED MOBILE (RADIKAL)
   Teknik breakout 100vw untuk memotong semua padding induk
   ========================================================= */
@media screen and (max-width: 768px) {
    /* 1. RESET PADDING INDUK UTAMA */
    .cover-panel.panel-opened,
    .cover-panel.panel-opened .cover-panel-content,
    .panel-invitation {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* 2. FULL-BLEED BREAKOUT - Memotong semua padding induk */
    .closing-section {
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        margin-top: 32px !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    .closing-bg-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .closing-overlay {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.15) 35%,
            rgba(242,239,233,0.85) 65%,
            #F2EFE9 90%,
            #F2EFE9 100%) !important;
    }

    /* 3. PADDING INTERNAL KONTEN TEKS */
    .closing-content {
        width: 100% !important;
        padding: 36px 20px 20px 20px !important;
        box-sizing: border-box !important;
    }

    .closing-message-main {
        max-width: 88% !important;
        margin: 300px auto 16px auto !important;
    }
}

/* =========================================================
   PERBAIKAN MINI GALLERY MOBILE - 3 FOTO SLIDER BERJALAN
   Kalkulasi presisi: (100% - 2 gap × 8px) / 3 foto
   ========================================================= */
@media screen and (max-width: 768px) {
    /* Pembungkus luar: padding 0 karena .panel-body sudah 12px */
    .panel-gallery-wrapper {
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin-top: 14px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    /* Track slider horizontal */
    .panel-gallery-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: max-content !important;
        box-sizing: border-box !important;
        will-change: transform;
    }

    /* Kalkulasi presisi: (100% Lebar Bersih Induk - Total 2 Gap (16px)) / 3 Foto */
    .panel-gallery-img {
        flex: 0 0 calc((100% - 16px) / 3) !important;
        width: calc((100% - 16px) / 3) !important;
        max-width: calc((100% - 16px) / 3) !important;
        aspect-ratio: 3 / 4 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .panel-gallery-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 8px !important;
    }
}
