/**
 * Wedding Builder — Xanh Ngọc Bích (xanh-ngoc-bit) Template
 * Emerald blue color scheme
 */

/* ── RESET & VARIABLES ──────────────────────────────────────── */
:root {
    --xlc-primary: #1b579d;
    /* xanh ngọc bích / xanh dương đậm */
    --xlc-accent: #ffffff;
    /* trắng */
    --xlc-text: #0a1b2b;
    /* xanh đậm đen */
    --xlc-soft: #f2f7fb;
    /* nền trắng xanh nhạt */
    --xlc-gold: #c9a84c;
    /* vàng accent */
    --xlc-border: #ffffff;
}

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

html,
body.xlc-body {
    font-family: 'Cormorant Upright', 'Georgia', serif;
    background: var(--xlc-soft);
    color: var(--xlc-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.xlc-body {
    background: var(--xlc-soft);
}

/* ── PAGE WRAP ──────────────────────────────────────────────── */
.xlc-page-wrap {
    max-width: 420px;
    margin: 0 auto;
    background: var(--xlc-accent);
    position: relative;
    overflow: hidden;
}

/* ── SECTION BASE ───────────────────────────────────────────── */
.xlc-sec {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.xlc-sec-inner {
    position: relative;
    z-index: 2;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── SECTION BG TINT ────────────────────────────────────────── */
.xlc-sec-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}


/* ── LIGHTBOX ───────────────────────────────────────────────── */
#xlc-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#xlc-lightbox.active {
    display: flex;
}

#xlc-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    cursor: zoom-out;
}

#xlc-lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

#xlc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

#xlc-lightbox-img {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* ═══════════════════════════════════════
   SECTION 1: BÌA / COVER — MẪU HỒNG
   Hiệu ứng rèm mây (curtain reveal)
═══════════════════════════════════════ */
.xlc-sec--cover {
    min-height: 745px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: var(--xlc-accent);
    /* isolate: isolate allows curtains overflow outside */
}

/* ── Background hoa hồng (local PNG) ── */
.xlc-cover-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    /* fallback gradient nếu ảnh chưa load */
    background-color: var(--xlc-accent);
}

.xlc-cover-bg-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -15%);
    width: 100%;
    height: 300px;
    z-index: 1;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.85;
    filter: saturate(95%);
}

/* ═══════════════════════════════════════
   HIỆU ỨNG RÈM MÂY — MỞ TỪ TRONG RA
   Như rèm sân khấu:
   - Trang load: 2 tấm rèm đóng che nội dung
   - Sau 0.5s: rèm trái mở sang trái, rèm phải mở sang phải
   - Nội dung thiệp fade-in sau khi rèm đã mở
═══════════════════════════════════════ */

/* Wrapper: flex, phủ đầy section, chia đôi trái/phải */
.xlc-curtain-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    pointer-events: none;
    /* overflow visible để rèm có thể trượt ra ngoài biên */
}

/* Rèm trái: chiếm nửa trái, mở ra bên trái */
.xlc-curtain--left {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    /* Bắt đầu đóng (translateX=0), sau đó mở ra trái */
    animation: xlc-open-left 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
}

.xlc-curtain--left .xlc-curtain-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Dùng phần bên PHẢI của ảnh (trong suốt/mờ) làm cạnh trong (giữa màn hình)
       Mây đậm ở cạnh ngoài bên trái */
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    filter: saturate(70%) blur(3px);
}

/* Rèm phải: chiếm nửa phải, mở ra bên phải */
.xlc-curtain--right {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    animation: xlc-open-right 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
}

.xlc-curtain--right .xlc-curtain-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Lật ngang: cạnh trong suốt/mờ (phải) nay trở thành cạnh TRÁI (inner/giữa)
       Mây đậm ở cạnh ngoài bên phải */
    transform: scaleX(-1);
    background-size: auto 100%;
    background-position: right center;
    background-repeat: no-repeat;
    filter: saturate(70%) blur(3px);
}

/* Rèm trái mở ra: trượt sang bên trái */
@keyframes xlc-open-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Rèm phải mở ra: trượt sang bên phải */
@keyframes xlc-open-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ══ NỘI DUNG BÌA — ẩn lúc đầu, hiện sau khi rèm mở ══ */
.xlc-cover-content {
    position: relative;
    z-index: 5;
    /* dưới rèm z-index:10, hiện ra sau khi rèm mở xong */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 10px;
    /* Nội dung ẩn lúc đầu, fade-in sau khi rèm mở (0.6s delay + 1.4s anim = 2s) */
    opacity: 0;
    animation: xlc-content-fadein 0.8s ease 1.8s forwards;
}

@keyframes xlc-content-fadein {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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




/* ── "Save The Date" title ── */
.xlc-cover-savetd {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    color: var(--xlc-text);
    line-height: 1.1;
    text-align: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.xlc-icon-animated {
    display: inline-block;
    font-size: 24px;
    color: var(--xlc-primary);
    filter: drop-shadow(0 0 5px rgba(127, 176, 60, 0.3));
}

.xlc-icon-left {
    animation: xlcFloatIcon 3s ease-in-out infinite alternate, xlcPulseIcon 2s ease-in-out infinite;
}

.xlc-icon-right {
    animation: xlcFloatIcon 3s ease-in-out infinite alternate-reverse, xlcPulseIcon 2s ease-in-out infinite 1s;
}

@keyframes xlcFloatIcon {
    from {
        transform: translateY(0) rotate(-5deg);
    }

    to {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes xlcPulseIcon {

    0%,
    100% {
        scale: 1;
        opacity: 0.8;
    }

    50% {
        scale: 1.2;
        opacity: 1;
    }
}

/* ── Tên cặp đôi ── */
.xlc-cover-names {
    position: relative;
    z-index: 3;
    margin-top: 5px;
    text-align: center;
    font-family: 'Great Vibes', cursive !important;
    font-size: 34px;
    line-height: 1.1;
    color: var(--xlc-text);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(127, 176, 60, 0.2);
    width: 100%;
}

.xlc-cover-name-b {
    display: inline-block;
    animation: xlcSlideRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s both;
}

.xlc-amp {
    font-size: 24px;
    color: var(--xlc-primary);
    line-height: 1;
    animation: xlcFadeInZoom 1s ease 2.3s both;
}

.xlc-cover-name-g {
    display: inline-block;
    animation: xlcSlideLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s both;
}

@keyframes xlcSlideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes xlcSlideLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes xlcFadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Ảnh bìa portrait ── */
.xlc-cover-photo {
    position: relative;
    z-index: -1;
    width: 280px;
    border-radius: 0;
    overflow: hidden;
    padding: 6px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(127, 176, 60, 0.25);
    border: 1px solid var(--xlc-accent);
}

.xlc-cover-photo img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 0;
}

/* ══ DATE BAR — layout: [giờ|thứ] | [ngày.tháng] | [năm] ══ */
.xlc-cover-datebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 10px 14px;
    border: 1.5px solid rgba(226, 240, 193, 0.85);
    box-shadow: 0 4px 16px rgba(127, 176, 60, 0.15);
    width: 90%;
    max-width: 360px;
    animation: xlcFadeInUpZoom 1s cubic-bezier(0.2, 0.8, 0.2, 1) 2.4s both;
}

@keyframes xlcFadeInUpZoom {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

/* Cột trái: giờ + thứ */
.xlc-cover-datebar__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.xlc-cover-datebar__time {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--xlc-text);
    line-height: 1;
}

.xlc-cover-datebar__dow {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--xlc-primary);
    text-transform: uppercase;
}

/* Divider dọc */
.xlc-cover-datebar__sep {
    width: 1px;
    height: 44px;
    background: var(--xlc-primary);
    opacity: 0.35;
    margin: 0 12px;
    flex-shrink: 0;
}

/* Cột giữa: ngày.tháng */
.xlc-cover-datebar__mid {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.xlc-cover-datebar__day {
    font-family: 'Barlow', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--xlc-text);
}

.xlc-cover-datebar__sub {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    color: var(--xlc-primary);
    font-weight: 700;
    line-height: 1;
}

.xlc-cover-datebar__month {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: var(--xlc-text);
}

/* Cột phải: năm chia 2 dòng */
.xlc-cover-datebar__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--xlc-text);
    gap: 0;
}

/* Âm lịch (lunar note) */
.xlc-cover-lunar {
    margin-top: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: rgba(61, 28, 46, 0.6);
    text-align: center;
}

/* ── Quote ── */
.xlc-cover-quote {
    margin-top: 14px;
    font-family: 'Cormorant Upright', serif;
    font-size: 15px;
    color: rgba(47, 19, 34, 0.85);
    text-align: center;
    line-height: 1.6;
    padding: 0 10px;
}

/* ── Scroll tag ── */
.xlc-cover-scroll-tag {
    position: relative;
    z-index: 3;
    margin-top: 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--xlc-primary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

/* ═══════════════════════════════════════
   SECTION 2: COUPLE & FAMILY
═══════════════════════════════════════ */
.xlc-sec--couple {
    background: var(--xlc-accent);
}

.xlc-sec--couple .xlc-sec-bg {
    background:
        radial-gradient(ellipse at 0% 100%, rgba(226, 240, 193, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 0%, rgba(226, 240, 193, 0.2) 0%, transparent 60%);
}

/* Section eyebrow */
.xlc-sec-eyebrow {
    font-family: 'Great Vibes', cursive;
    font-size: 26px;
    color: var(--xlc-primary);
    margin-bottom: 4px;
}

/* Family blocks */
/* ── SECTION 2: FAMILY ──────────────────────────────────── */
.xlc-family-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 24px;
}

.xlc-family-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    width: 100%;
    min-height: 300px;
}

/* Divider between 2 cards */
.xlc-family-card+.xlc-family-card {
    border-top: 1px solid var(--xlc-border);
}

/* Image column: only the image has the pink border */
.xlc-family-card__img {
    flex: 1;
    position: relative;
    background: #f7eff5;
    border: 2px solid rgba(127, 176, 60, 0.22);
    min-height: 280px;
}

.xlc-family-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Info column: no border, open, clean */
.xlc-family-card__info {
    flex: 1;
    padding: 10px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.xlc-family__label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--xlc-text);
    margin-bottom: 8px;
    opacity: 0.65;
}

.xlc-family__parents {
    line-height: 1.25;
    margin-bottom: 2px;
}

.xlc-family__parents span {
    font-family: 'Barlow', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--xlc-text);
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.5px;
}

.xlc-family__addr {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    color: rgba(47, 19, 34, 0.55);
    margin-top: 5px;
    margin-bottom: 0;
}

.xlc-family__role {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: var(--xlc-text);
    margin-top: 22px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.xlc-family__shortname {
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
    line-height: 1.2;
    color: var(--xlc-text);
    margin-top: 0;
}

@media (max-width: 480px) {
    .xlc-family__shortname {
        font-size: 26px;
    }

    .xlc-family__parents span {
        font-size: 12px;
    }

    .xlc-family__label {
        font-size: 10px;
    }

    .xlc-family-card__info {
        padding: 20px 2px;
    }
}

/* Couple names */
.xlc-couple-names {
    text-align: center;
    margin-bottom: 16px;
}

.xlc-couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: 40px;
    color: var(--xlc-text);
    line-height: 1.1;
}

.xlc-couple-and {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: var(--xlc-primary);
    line-height: 1;
}

/* Couple photo */
.xlc-couple-photo {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 4px solid rgba(226, 240, 193, 0.7);
    box-shadow: 0 4px 20px rgba(127, 176, 60, 0.12);
}

.xlc-couple-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Love story */
.xlc-love-story {
    margin-top: 16px;
    padding: 16px 18px;
    background: rgba(226, 240, 193, 0.15);
    border-left: 3px solid var(--xlc-primary);
    border-radius: 4px;
    font-family: 'Cormorant Upright', serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--xlc-text);
    font-style: italic;
    width: 100%;
}

.xlc-love-story p {
    margin-bottom: 0.5em;
}

/* ═══════════════════════════════════════
   SECTION 3: EVENT / NGÀY GIỜ
═══════════════════════════════════════ */
.xlc-sec--event {
    background: var(--xlc-accent);
}

.xlc-sec--event .xlc-sec-bg {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(226, 240, 193, 0.35) 0%, transparent 60%);
}

.xlc-event-heading-top {
    font-family: 'Cormorant Upright', serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--xlc-text);
    text-align: center;
    margin-bottom: 24px;
    opacity: 0.8;
}

/* 3 preview photos */
.xlc-event-photos {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 16px 0 8px;
    align-items: center;
    overflow: visible;
    padding-bottom: 20px;
}

.xlc-event-photos__item {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    /* side photos: slide from side */
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.xlc-event-photos__item:nth-child(2) {
    /* center photo: slide up */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
}

.xlc-event-photos__item:nth-child(3) {
    /* right photo: slide from right */
    transform: translateX(40px);
}

/* When visible (triggered by IntersectionObserver via .visible class on parent) */
.xlc-event-photos.visible .xlc-event-photos__item {
    opacity: 1;
    transform: translateX(0);
}

.xlc-event-photos.visible .xlc-event-photos__item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
}

.xlc-event-photos.visible .xlc-event-photos__item:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

.xlc-event-photos__item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.xlc-event-photos__item:nth-child(2) img {
    height: 200px;
}

.xlc-event-title {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--xlc-text);
    margin-top: 24px;
    text-align: center;
    text-transform: uppercase;
}

.xlc-event-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: var(--xlc-text);
    margin-top: 4px;
    margin-bottom: 24px;
    text-align: center;
}

/* Date Date Block Layout */
.xlc-date-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin-bottom: 16px;
    gap: 16px;
}

.xlc-date-left,
.xlc-date-right {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: var(--xlc-text);
}

.xlc-date-divider-vert {
    width: 1px;
    background: var(--xlc-text);
    opacity: 0.4;
    margin: 4px 0;
}

.xlc-date-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.xlc-date-dow {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--xlc-text);
    margin-bottom: 4px;
}

.xlc-date-day {
    font-family: 'Barlow', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: var(--xlc-text);
}

.xlc-date-mon {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--xlc-text);
    margin-top: 6px;
}

/* Lunar note */
.xlc-lunar-note {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: var(--xlc-text);
    text-align: center;
    margin-top: 10px;
}

.xlc-event-venue {
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: var(--xlc-text);
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Countdown */
.xlc-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    background: var(--xlc-accent);
    border-radius: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(226, 240, 193, 0.8);
    box-shadow: 0 2px 12px rgba(127, 176, 60, 0.1);
}

.xlc-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}

.xlc-countdown__num {
    font-family: 'Cormorant Upright', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--xlc-primary);
}

.xlc-countdown__lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(61, 28, 46, 0.65);
    margin-top: 2px;
    font-family: 'Barlow', sans-serif;
}

.xlc-countdown__sep {
    font-size: 24px;
    color: var(--xlc-primary);
    opacity: 0.5;
    font-family: 'Cormorant Upright', serif;
    font-weight: 700;
    align-self: flex-start;
    padding-top: 4px;
}

/* ═══════════════════════════════════════
   SECTION 4: VENUE / BẢN ĐỒ
═══════════════════════════════════════ */
.xlc-sec--venue {
    background: #fff;
}

.xlc-sec--venue .xlc-sec-bg {
    background:
        radial-gradient(ellipse at 100% 50%, rgba(226, 240, 193, 0.2) 0%, transparent 60%);
}

.xlc-venue-box {
    width: 100%;
    border: 1px solid var(--xlc-border);
    border-radius: 14px;
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 2px 14px rgba(127, 176, 60, 0.1);
}

.xlc-venue-box__eyebrow {
    font-family: 'Cormorant Upright', serif;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--xlc-primary);
    margin-bottom: 8px;
}

.xlc-venue-box__name {
    font-family: 'Cormorant Upright', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--xlc-text);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.xlc-venue-box__addr {
    font-size: 15px;
    color: rgba(47, 19, 34, 0.8);
    line-height: 1.5;
    margin-bottom: 16px;
    font-family: 'Barlow', sans-serif;
}

.xlc-venue-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--xlc-primary), #5a7d2b);
    color: #fff;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(127, 176, 60, 0.3);
    transition: filter 0.2s, transform 0.2s;
}

.xlc-venue-box__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.xlc-venue-box__btn svg {
    margin-right: 6px;
    vertical-align: middle;
}

/* Calendar */
.xlc-calendar {
    width: 100%;
    border: 1px solid rgba(226, 240, 193, 0.5);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(127, 176, 60, 0.06);
}

.xlc-calendar__header {
    background: rgba(247, 251, 242, 0.9);
    color: var(--xlc-text);
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--xlc-border);
}

.xlc-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px 4px 12px;
    gap: 0;
}

.xlc-calendar__dh {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    color: var(--xlc-text);
    padding: 8px 2px;
    opacity: 0.65;
}

.xlc-calendar__dh--sun {
    color: var(--xlc-primary);
    opacity: 1;
}

.xlc-calendar__blank,
.xlc-calendar__day {
    text-align: center;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    color: var(--xlc-text);
    padding: 7px 2px;
    line-height: 1;
    position: relative;
}

.xlc-calendar__day--sun {
    color: var(--xlc-primary);
    font-weight: 600;
}

/* Remove old active styling - now using heart */
.xlc-calendar__day--active {
    color: var(--xlc-text);
    font-weight: 700;
}

/* Heart wrapper around active day */
.xlc-cal-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 34px;
    height: 34px;
    animation: xlcHeartBeat 1.4s ease-in-out infinite;
}

.xlc-cal-heart__svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
}

.xlc-cal-heart__num {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 700;
    color: var(--xlc-primary);
    line-height: 1;
}

@keyframes xlcHeartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.18);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.12);
    }

    56% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════
   SECTION 5: RSVP
═══════════════════════════════════════ */
.xlc-sec--rsvp {
    background: var(--xlc-accent);
}

.xlc-sec--rsvp .xlc-sec-bg {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(127, 176, 60, 0.2) 0%, transparent 60%);
}

.xlc-rsvp-title-wrap {
    text-align: center;
    margin-bottom: 14px;
}

.xlc-rsvp-script {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: var(--xlc-primary);
    margin-bottom: 4px;
}

.xlc-rsvp-sub {
    font-family: 'Cormorant Upright', serif;
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(47, 19, 34, 0.7);
}

.xlc-rsvp-deadline {
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    color: rgba(61, 28, 46, 0.7);
    text-align: center;
    margin-bottom: 14px;
    font-style: italic;
}

/* RSVP Card */
.xlc-rsvp-card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--xlc-border);
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(127, 176, 60, 0.1);
}

.xlc-rsvp-field {
    margin-bottom: 10px;
}

.xlc-rsvp-card .xlc-rsvp-field input,
.xlc-rsvp-card .xlc-rsvp-field select,
.xlc-rsvp-card .xlc-rsvp-field textarea {
    width: 100% !important;
    padding: 13px 18px !important;
    border: 1.5px solid rgba(226, 240, 193, 0.75) !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-family: 'Barlow', sans-serif !important;
    color: var(--xlc-text) !important;
    background: var(--xlc-accent) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box !important;
    display: block;
}

/* Override browser autofill yellow/blue background */
.xlc-rsvp-card .xlc-rsvp-field input:-webkit-autofill,
.xlc-rsvp-card .xlc-rsvp-field input:-webkit-autofill:hover,
.xlc-rsvp-card .xlc-rsvp-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--xlc-accent) inset !important;
    -webkit-text-fill-color: var(--xlc-text) !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1.5px solid rgba(226, 240, 193, 0.75) !important;
}

.xlc-rsvp-card .xlc-rsvp-field select {
    background-color: var(--xlc-accent) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237fb03c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
    cursor: pointer;
}

.xlc-rsvp-card .xlc-rsvp-field textarea {
    border-radius: 12px !important;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.xlc-rsvp-card .xlc-rsvp-field input:focus,
.xlc-rsvp-card .xlc-rsvp-field select:focus,
.xlc-rsvp-card .xlc-rsvp-field textarea:focus {
    border-color: var(--xlc-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(127, 176, 60, 0.12) !important;
    outline: none !important;
}

.xlc-rsvp-card .xlc-rsvp-field input::placeholder,
.xlc-rsvp-card .xlc-rsvp-field textarea::placeholder {
    color: rgba(47, 19, 34, 0.45);
    font-size: 14px;
}

.xlc-rsvp-submit {
    width: 100%;
    padding: 13px;
    /* Slightly reduced to account for 2px border */
    background: linear-gradient(135deg, var(--xlc-primary), #5a7d2b);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--xlc-primary);
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(127, 176, 60, 0.35);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.xlc-rsvp-submit:hover {
    background: #fff !important;
    color: var(--xlc-primary) !important;
    border-color: var(--xlc-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 176, 60, 0.2);
}

.xlc-rsvp-submit:active {
    transform: translateY(2px);
    filter: brightness(0.96);
}

#xlc-rsvp-msg {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.5;
    animation: xlc-fadein 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#xlc-rsvp-msg.success {
    background: linear-gradient(135deg, rgba(253, 225, 243, 0.8), rgba(255, 240, 250, 0.9));
    color: var(--xlc-primary);
    border: 1.5px solid rgba(226, 240, 193, 0.7);
    font-weight: 600;
}

#xlc-rsvp-msg.error {
    background: rgba(255, 235, 235, 0.8);
    color: #c0394a;
    border: 1.5px solid rgba(255, 180, 180, 0.5);
}

/* Wishes list */
.xlc-wishes-container {
    margin-top: 18px;
    width: 100%;
}

.xlc-wishes-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xlc-wishes-scroll::-webkit-scrollbar {
    width: 4px;
}

.xlc-wishes-scroll::-webkit-scrollbar-thumb {
    background: var(--xlc-border);
    border-radius: 2px;
}

.xlc-wish-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(226, 240, 193, 0.6);
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(127, 176, 60, 0.07);
}

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

.xlc-wish-name {
    font-family: 'Cormorant Upright', serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--xlc-primary);
}

.xlc-wish-date {
    font-size: 11px;
    color: rgba(61, 28, 46, 0.5);
    font-family: 'Barlow', sans-serif;
}

.xlc-wish-content {
    font-size: 13px;
    color: var(--xlc-text);
    line-height: 1.6;
    font-style: italic;
    font-family: 'Barlow', sans-serif;
}

/* ═══════════════════════════════════════
   SECTION 6: GALLERY
═══════════════════════════════════════ */
.xlc-sec--gallery {
    background: var(--xlc-accent);
}

.xlc-gallery-label {
    text-align: center;
    margin-bottom: 16px;
}

.xlc-gallery-label__script {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
    color: var(--xlc-primary);
}

.xlc-gallery-label__sub {
    font-family: 'Cormorant Upright', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(61, 28, 46, 0.55);
    margin-top: 2px;
}

.xlc-gallery-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.xlc-gallery-ornament-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--xlc-primary));
    opacity: 0.5;
}

.xlc-gallery-ornament-line--flip {
    background: linear-gradient(to left, transparent, var(--xlc-primary));
}

.xlc-gallery-heart {
    color: var(--xlc-primary);
    font-size: 16px;
    opacity: 0.7;
}

.xlc-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

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

.xlc-gallery-item--tall-left {
    grid-row: span 2;
}

.xlc-gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.xlc-gallery-item--tall-left .xlc-gallery-img {
    height: 326px;
}

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

.xlc-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(127, 176, 60, 0.25);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.xlc-footer {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--xlc-primary);
}

.xlc-footer-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
}

.xlc-footer-overlay {
    position: absolute;
    inset: 0;
    background: var(--xlc-primary);
    /* Use primary green */
    opacity: 0.01;
    /* High opacity to make it look green while preserving image hint */
}

.xlc-footer-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.xlc-footer-thankyou {
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.xlc-footer-subtitle {
    font-family: 'Cormorant Upright', serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.xlc-footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.xlc-footer-heart {
    color: var(--xlc-primary);
    font-size: 18px;
}

.xlc-footer-date {
    font-family: 'Cormorant Upright', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
}

.xlc-footer-phone {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}

.xlc-footer-phone a {
    color: inherit;
    text-decoration: none;
}

.xlc-footer-social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.xlc-footer-social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s;
}

.xlc-footer-social a:hover {
    background: rgba(127, 176, 60, 0.5);
}

.xlc-footer-deco {
    margin: 6px 0;
    color: var(--xlc-accent);
    font-size: 20px;
    opacity: 0.6;
}

.xlc-footer-credit {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Barlow', sans-serif;
    margin-top: 8px;
}

/* ═══════════════════════════════════════
   GIFT MODAL
═══════════════════════════════════════ */
.xlc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999998;
    align-items: center;
    justify-content: center;
}

.xlc-modal-overlay.active {
    display: flex;
}

.xlc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
}

.xlc-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 18px;
    padding: 28px 20px 22px;
    width: min(88vw, 360px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(127, 176, 60, 0.25);
    border: 1px solid rgba(226, 240, 193, 0.5);
}

.xlc-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    color: rgba(61, 28, 46, 0.5);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.xlc-modal-close:hover {
    color: var(--xlc-primary);
}

.xlc-modal-title {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: var(--xlc-primary);
    text-align: center;
    margin-bottom: 20px;
}

.xlc-qr-flex {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.xlc-qr-item {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
    text-align: center;
}

.xlc-qr-label {
    font-family: 'Cormorant Upright', serif;
    font-size: 13px;
    color: var(--xlc-primary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.xlc-qr-img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid rgba(226, 240, 193, 0.6);
    box-shadow: 0 2px 10px rgba(127, 176, 60, 0.1);
}

.xlc-modal-note {
    text-align: center;
    font-size: 12px;
    color: rgba(61, 28, 46, 0.55);
    margin-top: 16px;
    font-family: 'Barlow', sans-serif;
}

/* ═══════════════════════════════════════
   DECORATIVE SVG DIVIDER
═══════════════════════════════════════ */
.xlc-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 8px 0;
    opacity: 0.6;
}

.xlc-divider__line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--xlc-primary));
}

.xlc-divider__line--flip {
    background: linear-gradient(to left, transparent, var(--xlc-primary));
}

.xlc-divider__icon {
    color: var(--xlc-primary);
    font-size: 16px;
}

/* ═══════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════ */
.xlc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.xlc-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.xlc-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.xlc-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.xlc-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.xlc-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes xlc-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes xlc-zoomin {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes xlc-fadein-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

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

@keyframes xlc-fadein-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.xlc-anim-fadein-4s {
    animation: xlc-fadein 4s ease both;
}

.xlc-anim-zoomin-4s {
    animation: xlc-zoomin 4s ease both;
}

.xlc-anim-fadein-down {
    animation: xlc-fadein-down 3s ease both;
}

.xlc-anim-fadein-up {
    animation: xlc-fadein-up 3s ease both;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 420px) {
    .xlc-cover-name {
        font-size: 38px;
    }

    .xlc-date-big {
        font-size: 38px;
    }

    .xlc-gallery-img {
        height: 130px;
    }

    .xlc-gallery-item--tall-left .xlc-gallery-img {
        height: 266px;
    }
}