/*
 * Wedding Builder — Đỏ Vàng Template (do-vang)
 * Faithful recreation of THƯ MỜI CƯỚI MẪU ĐỎ VÀNG
 * Max-width: 420px, mobile-first, pixel-perfect
 */

/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --wb-primary: #8e0101;
    --wb-accent: #c9a84c;
    --wb-red-border: #8e0101;
    --wb-bg-pattern: #f9f1db;
    --wb-text: #222222;
    --wb-cream: #fdf8f0;
    --wb-white: #ffffff;
    --wb-w: 420px;
    /* Fonts */
    --f-script: 'Great Vibes', 'Ephesis', cursive;
    --f-alt-script: 'Ephesis', cursive;
    --f-body: 'Roboto', Arial, sans-serif;
    --f-bold: 'Roboto', Arial, sans-serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body.dv-body {
    background: #e8ddd4;
    font-family: var(--f-body);
    color: var(--wb-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Page wrapper centered at 420px ─────────────────────── */

/* Nội dung trang cũng fade-in nhẹ sau khi viền mở xong */
@keyframes dv-page-fadein {
    0% {
        opacity: 0;
        transform: scale(0.98);
    }

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

.dv-page-wrap {
    width: 100%;
    max-width: var(--wb-w);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    animation: dv-page-fadein 0.8s ease 0.3s both;
}


/*
  Viền trang trí đỏ-vàng chạy dọc 2 bên — dùng đúng ảnh PNG từ mẫu gốc.
  Cả 2 ảnh đều rộng 420px, hiệu ứng mở từ trong ra khi load trang.
*/

/* ── Keyframe: cánh trái mở từ giữa → trái ───────────────── */
@keyframes dv-curtain-left {
    0% {
        transform: translateX(210px);
        /* bắt đầu ở giữa trang */
        opacity: 0;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(-210px);
        /* vị trí cuối: sát trái trang */
        opacity: 1;
    }
}

/* ── Keyframe: cánh phải mở từ giữa → phải ──────────────── */
@keyframes dv-curtain-right {
    0% {
        transform: translateX(-210px);
        /* bắt đầu ở giữa trang */
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translateX(210px);
        /* vị trí cuối: sát phải trang */
        opacity: 1;
    }
}

body.dv-body::before,
body.dv-body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 420px;
    pointer-events: none;
    z-index: 9999999;
    background-repeat: repeat-y;
    background-size: 420px auto;
    background-position: 0 0;
    /* Màn rèm trượt ra - mẫu dùng 8-10s -> mình set 4s nhe */
    animation-duration: 4s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    /* standard smooth easing */
    animation-fill-mode: forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Cánh trái */
body.dv-body::before {
    right: 50%;
    z-index: 10000000 !important;
    animation-name: dv-curtain-left;
    background-image: var(--wb-curtain-l);
}

/* Cánh phải */
body.dv-body::after {
    left: 50%;
    animation-name: dv-curtain-right;
    background-image: var(--wb-curtain-r);
}


/* ── Common section background (pattern png) ─────────────── */
.dv-sec {
    position: relative;
    width: 100%;
    /* remove overflow hidden to allow lanterns/flowers to spill over section seams smoothly */
}


/* ══════════════════════════════════════════════════════════
   ANIMATIONS — đúng theo mẫu gốc
   ══════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

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

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

/* Áp dụng animation — giống mẫu gốc */
.dv-anim-fadein-7s {
    animation: fadeIn 7s ease both;
}

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

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

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


/* Every section has the same hoa văn (pattern) background */

.dv-sec-bg {
    position: absolute;
    inset: 0;
    background-color: var(--wb-bg-pattern);
    background-image: url("https://content.pancake.vn/1/s840x1600/fwebp/fd/42/7d/0c/1ca1e8525f99e3105eb930cd8ed684a64b07a0d9df7e0c725ca9779c-w:1260-h:2400-l:65030-t:image/png.png");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: repeat-y;
    z-index: 0;
}

.dv-sec-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 35px 28px;
}

/* Per-section padding overrides for balanced spacing */
.dv-sec--couple .dv-sec-inner {
    padding-top: 16px;
    padding-bottom: 24px;
}

.dv-sec--event .dv-sec-inner {
    padding-top: 8px;
    padding-bottom: 24px;
    gap: 12px;
}

.dv-sec--venue .dv-sec-inner {
    padding-top: 20px;
    padding-bottom: 24px;
    gap: 16px;
}

.dv-sec--rsvp .dv-sec-inner {
    padding-top: 24px;
    padding-bottom: 32px;
    gap: 14px;
}

.dv-sec--gallery .dv-sec-inner {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 12px;
}

/* ══════════════════════════════════════════════════════════
   SECTION 1: BÌA / COVER
   ══════════════════════════════════════════════════════════ */
.dv-sec--cover {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.dv-cover-bg {
    position: absolute;
    inset: 0;
    background-image: url("https://content.pancake.vn/1/s840x1600/fwebp/fd/42/7d/0c/1ca1e8525f99e3105eb930cd8ed684a64b07a0d9df7e0c725ca9779c-w:1260-h:2400-l:65030-t:image/png.png");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center top;
    background-color: var(--wb-bg-pattern);
    z-index: 0;
}

/* Side decorative flower panels (position 2 bên trang) */
.dv-deco-flower {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.dv-deco-flower--left {
    top: 80px;
    /* Dịch lên ngang hàng với chữ THIỆP MỜI */
    left: 8px;
}

.dv-deco-flower--right {
    top: 80px;
    right: 8px;
}

.dv-deco-flower img {
    display: block;
    opacity: 0.85;
}


/* Logo flower icon top center */
.dv-cover-logo {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    /* Giảm từ 80px xuống 30px */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-cover-logo img {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Lồng đèn: position absolute góc dưới-phải của section cover
   Mẫu gốc: top:683px, left:303px trong section h=800px */
.dv-cover-lantern {
    position: absolute;
    bottom: -75px;
    /* Treo ở góc dưới */
    right: -40px;
    /* Treo lệch sang phải */
    z-index: 3;
    pointer-events: none;
}

.dv-cover-lantern img {
    display: block;
    width: 100px !important;
    height: auto !important;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.2));
}

/* THIỆP MỜI label */
.dv-cover-label {
    position: relative;
    z-index: 2;
    font-family: var(--f-body);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 7px;
    color: var(--wb-text);
    text-align: center;
    margin-top: 4px;
}

.dv-cover-sub {
    position: relative;
    z-index: 2;
    font-family: var(--f-body);
    font-size: 15px;
    letter-spacing: 1px;
    color: var(--wb-text);
    text-align: center;
}

/* Names in script font */
.dv-cover-names {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    /* Chuyển sang hàng ngang */
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    flex-wrap: wrap;
    /* Tránh bị tràn màn hình */
}

.dv-cover-name {
    font-family: 'UTM-Sloop-1', 'Great Vibes', 'Ephesis', cursive;
    font-size: 34px;
    /* Giảm size một chút để nằm ngang đẹp hơn */
    color: var(--wb-text);
    line-height: 1;
    text-shadow: 0px 4px 4px rgba(255, 255, 255, 1);
}

.dv-cover-amp {
    font-family: 'UTM-Azkia', 'Great Vibes', 'Ephesis', cursive;
    font-size: 24px;
    /* Nhỏ lại để tinh tế hơn khi nằm ngang */
    color: var(--wb-text);
    text-shadow: 0px 4px 4px rgba(255, 255, 255, 1);
    line-height: 1.2;
}

/* Date badge */
.dv-cover-date {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.dv-cover-date__dow {
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--wb-text);
    letter-spacing: 1px;
}

.dv-cover-date__nums {
    font-family: var(--f-body);
    font-size: 22px;
    font-weight: bold;
    color: var(--wb-text);
    letter-spacing: 7px;
}

.dv-cover-date__nums strong {
    font-size: 28px;
    color: var(--wb-primary);
}

.dv-cover-date__time {
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--wb-primary);
    letter-spacing: 2px;
}

/* Cover photo with thick red border */
.dv-cover-photo {
    position: relative;
    z-index: 2;
    width: 304px;
    margin-top: 35px;
    /* Tăng khoảng cách với thông tin phía trên */
    border: 7px solid var(--wb-primary);
    border-radius: 0;
    overflow: visible;
    /* bỏ hidden để lồng đèn tràn ra */
    margin-bottom: 24px;
}

.dv-cover-photo img {
    width: 100%;
    display: block;
    max-height: 456px;
    object-fit: cover;
}

/* Lồng đèn: vị trí góc dưới bên phải đu vào mép khung ảnh đỏ như hình chụp */
.dv-cover-lantern {
    position: absolute;
    bottom: -75px;
    right: -40px;
    z-index: 5;
    pointer-events: none;
}

.dv-cover-lantern img {
    display: block;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.2));
}

.dv-cover-bottom-deco img {
    display: block;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}


/* ══════════════════════════════════════════════════════════
   SECTION 2: CẶP ĐÔI & GIA ĐÌNH
   ══════════════════════════════════════════════════════════ */

.dv-couple-deco-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 86px;
    flex-shrink: 0;
    margin: 0;
    /* Bỏ hoàn toàn margin để ép 2 bên xích lại gần */
}

.dv-couple-heart-icon {
    position: relative;
    z-index: 2;
}

.dv-couple-heart-icon img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
}

.dv-small-flower {
    position: absolute;
    top: 65px;
    /* Nằm ngay dưới icon song hỷ như mẫu */
    z-index: 1;
}

.dv-small-flower img {
    width: 68px;
    height: 68px;
    display: block;
    opacity: 0.9;
}

.dv-couple-eyebrow {
    font-family: 'BlackMango-Medium', var(--f-body);
    font-size: 14px;
    color: var(--wb-text);
    text-align: center;
    letter-spacing: 0.3px;
}

.dv-couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
}

.dv-couple-name {
    font-family: 'UTM-Sloop-1', 'Great Vibes', 'Ephesis', cursive;
    font-size: 40px;
    color: var(--wb-text);
    text-shadow: 0px 4px 4px rgba(255, 255, 255, 1);
    line-height: 1.25;
}

.dv-couple-and {
    font-family: 'UTM-Azkia', 'Great Vibes', 'Ephesis', cursive;
    font-size: 40px;
    color: var(--wb-text);
    text-shadow: 0px 4px 4px rgba(255, 255, 255, 1);
    line-height: 1.2;
}

/* Family info two-column */
.dv-family {
    display: flex;
    justify-content: center;
    /* Đổi sang center để kéo sát vào giữa */
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
    gap: 0;
    /* Bỏ gap */
}

.dv-family__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 8px 0;
    flex: 1;
    /* chia đều 50% không gian */
    min-width: 0;
    word-break: break-word;
    /* ngăn rớt từng chữ như hình chụp */
}

.dv-family__label {
    font-family: 'UTM-Cafeta', var(--f-body);
    font-size: 16px;
    font-weight: bold;
    color: var(--wb-text);
    text-align: center;
    white-space: nowrap;
    /* không cho NHÀ GÁI tách thành 2 dòng */
}

.dv-family__parents {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dv-family__parents span {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--wb-text);
    text-align: center;
    white-space: nowrap;
    /* Tránh ông bà bị xuống dòng giữa chừng nếu màn nhỏ */
}

.dv-family__addr {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--wb-text);
    font-style: italic;
    text-align: center;
}

/* Couple photo section 2 - with red border */
.dv-couple-photo {
    width: 100%;
    margin: 0 auto;
    border: 7px solid var(--wb-primary);
    overflow: hidden;
}

.dv-couple-photo img {
    width: 100%;
    display: block;
    max-height: 269px;
    object-fit: cover;
}

.dv-love-story {
    width: 100%;
    margin: 0 auto;
    border: 1.5px solid var(--wb-accent);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    background: rgba(201, 168, 76, 0.08);
}

/* ══════════════════════════════════════════════════════════
   SECTION 3: NGÀY GIỜ
   ══════════════════════════════════════════════════════════ */


/* 3 small photos row */
.dv-event-photos {
    display: flex;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.dv-event-photos__item {
    flex: 1;
    max-width: 120px;
    overflow: hidden;
    border-radius: 2px;
}

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

/* Script "Trân Trọng Kính Mời" */
.dv-event-script {
    font-family: 'Ephesis', 'Great Vibes', cursive;
    font-size: 26px;
    color: var(--wb-text);
    text-align: center;
    line-height: 1.2;
}

.dv-event-heading {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: bold;
    color: var(--wb-text);
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.5;
}

.dv-event-subtext {
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--wb-text);
    letter-spacing: 1px;
    text-align: center;
}

/* Date card (3-column: dow+month | big day | year+time) */
.dv-date-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 380px;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.dv-date-card__left,
.dv-date-card__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 8px;
}

.dv-date-card__dow,
.dv-date-card__month,
.dv-date-card__year,
.dv-date-card__time {
    font-family: var(--f-body);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--wb-text);
    text-align: center;
}

.dv-date-card__time {
    font-weight: normal;
    letter-spacing: 1px;
    color: var(--wb-primary);
}

.dv-date-card__center {
    padding: 0 16px;
}

.dv-date-card__day {
    font-family: var(--f-bold);
    font-size: 50px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--wb-text);
    line-height: 1;
    text-align: center;
}

/* Vertical dividers around day */
.dv-date-card__left {
    border-right: 1px solid rgba(83, 96, 119, 1);
}

.dv-date-card__right {
    border-left: 1px solid rgba(83, 96, 119, 1);
}

.dv-lunar-note {
    font-family: var(--f-body);
    font-size: 14px;
    font-style: italic;
    color: var(--wb-text);
    text-align: center;
    letter-spacing: 1px;
}

/* Countdown */
.dv-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 14px 18px;
    width: 100%;
    justify-content: center;
}

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

.dv-countdown__num {
    font-family: var(--f-bold);
    font-size: 32px;
    font-weight: 800;
    color: var(--wb-primary);
    line-height: 1;
    text-align: center;
}

.dv-countdown__lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wb-text);
    margin-top: 2px;
}

.dv-countdown__sep {
    font-size: 28px;
    font-weight: 700;
    color: var(--wb-primary);
    align-self: flex-start;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   SECTION 4: ĐỊA ĐIỂM
   ══════════════════════════════════════════════════════════ */


/* Venue box with red rounded border */
.dv-venue-box {
    width: 100%;
    border: 2px solid var(--wb-primary);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0);
}

.dv-venue-box__eyebrow {
    font-family: var(--f-body);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--wb-text);
    text-align: center;
}

.dv-venue-box__name {
    font-family: 'SVN-Gilroy-Bold-Italic', var(--f-bold);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--wb-text);
    text-align: center;
}

.dv-venue-box__addr {
    font-family: 'SVN-Gilroy-Italic', var(--f-body);
    font-size: 14px;
    color: var(--wb-text);
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.5;
}

.dv-venue-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 28px;
    background: var(--wb-primary);
    color: var(--wb-white);
    border-radius: 42px;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.5px;
}

.dv-venue-box__btn:hover {
    opacity: 0.85;
}

/* Calendar */
.dv-calendar {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
    padding: 10px;
}

.dv-calendar__header {
    text-align: center;
    font-family: var(--f-bold);
    font-size: 16px;
    font-weight: bold;
    color: var(--wb-primary);
    padding: 8px 0 12px;
    letter-spacing: 1px;
}

.dv-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.dv-calendar__dh {
    font-family: var(--f-bold);
    font-size: 11px;
    font-weight: bold;
    color: var(--wb-primary);
    padding: 4px 0;
}

.dv-calendar__blank,
.dv-calendar__day {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--wb-text);
    padding: 5px 0;
    border-radius: 50%;
    line-height: 1.6;
}

.dv-calendar__day--active {
    background: var(--wb-primary);
    color: var(--wb-white);
    border-radius: 50%;
    font-weight: bold;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Map frame — ẩn iframe vì mẫu gốc không dùng, chỉ dùng nút xem bản đồ */
.dv-map-frame {
    display: none;
}

/* ══════════════════════════════════════════════════════════
   SECTION 5: RSVP
   ══════════════════════════════════════════════════════════ */


.dv-rsvp-title-wrap {
    text-align: center;
}

.dv-rsvp-script {
    font-family: 'Ephesis', 'Great Vibes', cursive;
    font-size: 30px;
    color: var(--wb-text);
    line-height: 1;
    text-align: center;
}

.dv-rsvp-sub {
    font-family: 'Ephesis', 'Great Vibes', cursive;
    font-size: 30px;
    color: var(--wb-text);
    line-height: 1;
    text-align: center;
}

.dv-rsvp-deadline {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--wb-text);
    text-align: center;
}

.dv-rsvp-deadline strong {
    color: var(--wb-primary);
    font-weight: bold;
}

/* Red RSVP card */
.dv-rsvp-card {
    width: 100%;
    max-width: 100%;
    background: var(--wb-primary);
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 8px 24px rgba(142, 1, 1, 0.35);
}

.dv-rsvp-field {
    margin-bottom: 12px;
}

.dv-rsvp-field input,
.dv-rsvp-field select,
.dv-rsvp-field textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-family: var(--f-body) !important;
    color: var(--wb-primary) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.dv-rsvp-field textarea {
    min-height: 60px;
    resize: none;
}

.dv-rsvp-field input::placeholder,
.dv-rsvp-field textarea::placeholder {
    color: rgba(142, 1, 1, 0.55) !important;
    font-size: 13px !important;
}

.dv-rsvp-field input:focus,
.dv-rsvp-field select:focus,
.dv-rsvp-field textarea:focus {
    border-color: var(--wb-accent) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3) !important;
}

/* SEND button (white with red text) */
.dv-rsvp-submit {
    display: block !important;
    width: 180px !important;
    margin: 8px auto 0 !important;
    padding: 13px 0 !important;
    background: #f3e5c9 !important;
    /* Màu kem giống mẫu */
    color: var(--wb-primary) !important;
    border: none !important;
    border-radius: 50px !important;
    font-family: var(--f-bold) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.dv-rsvp-submit:hover {
    background: var(--wb-accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px) !important;
}

.dv-rsvp-submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

#dv-rsvp-msg {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
    display: none;
}

#dv-rsvp-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#dv-rsvp-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Wishes List */
.dv-wishes-container {
    width: 100%;
    margin-top: 24px;
}

.dv-wishes-scroll {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 8px;
    /* Custom vertical scrollbar */
}

.dv-wishes-scroll::-webkit-scrollbar {
    width: 5px;
}

.dv-wishes-scroll::-webkit-scrollbar-track {
    background: rgba(142, 1, 1, 0.1);
    border-radius: 10px;
}

.dv-wishes-scroll::-webkit-scrollbar-thumb {
    background: var(--wb-accent);
    border-radius: 10px;
}

.dv-wish-item {
    background: var(--wb-primary);
    ;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.dv-wish-item:hover {
    transform: translateY(-2px);
    background: var(--wb-primary);
}

.dv-wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.dv-wish-name {
    font-family: var(--f-bold);
    font-weight: 700;
    color: var(--wb-accent);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.dv-wish-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--f-body);
}

.dv-wish-content {
    font-family: var(--f-body);
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
    font-style: italic;
}

/* Call button (red rounded) */
.dv-rsvp-call-btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--wb-primary);
    color: var(--wb-white);
    border-radius: 9px;
    font-family: var(--f-bold);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.5px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    transition: opacity .2s;
}

.dv-rsvp-call-btn:hover {
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════
   SECTION 6: GALLERY
   ══════════════════════════════════════════════════════════ */


.dv-gallery-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dv-gallery-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--wb-primary);
    width: 100%;
    max-width: 280px;
    /* Prevent over-stretching */
    margin: 0 auto;
}

.dv-gallery-ornament-svg {
    flex: 1;
    height: 15px;
    max-width: 100px;
}

.dv-gallery-ornament-svg--flip {
    transform: scaleX(-1);
}

.dv-gallery-heart-icon {
    color: var(--wb-primary);
    animation: dv-gallery-heart-pulse 2s infinite;
}

@keyframes dv-gallery-heart-pulse {

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

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.dv-gallery-label__script {
    font-family: var(--f-script);
    font-size: 44px;
    /* Reduced from 52px */
    color: var(--wb-text);
    line-height: 1.1;
    margin-top: -5px;
    letter-spacing: -0.5px;
}

.dv-gallery-label__sub {
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--wb-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    font-weight: 500;
}

/*
  Gallery grid: matches sample layout
  - Left col: 1 tall photo (row-span 2) + 1 bottom photo
  - Right col: 2 smaller photos stacked
  Then below: 4 photos (2+2)
*/
.dv-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

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

.dv-gallery-item:nth-child(1) {
    grid-row: span 2;
}

.dv-gallery-item:nth-child(1) .dv-gallery-img {
    height: 320px;
}

.dv-gallery-item:nth-child(2) .dv-gallery-img {
    height: 155px;
}

.dv-gallery-item:nth-child(3) .dv-gallery-img {
    height: 155px;
}

.dv-gallery-item:nth-child(4) .dv-gallery-img {
    height: 268px;
}

.dv-gallery-item:nth-child(5) .dv-gallery-img {
    height: 268px;
}

.dv-gallery-item:nth-child(6) .dv-gallery-img {
    height: 116px;
}

.dv-gallery-item:nth-child(7) .dv-gallery-img {
    height: 116px;
}

.dv-gallery-item:nth-child(8) .dv-gallery-img {
    height: 268px;
}

.dv-gallery-img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

.dv-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(142, 1, 1, .55) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    opacity: 0;
    transition: opacity .3s;
}

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

.dv-gallery-overlay span {
    font-size: 20px;
    color: var(--wb-white);
}

/* ══════════════════════════════════════════════════════════
   FOOTER / THANK YOU
   ══════════════════════════════════════════════════════════ */
.dv-footer {
    position: relative;
    width: 100%;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: center;
    background: var(--wb-bg-pattern);
    padding: 0;
}

.dv-footer-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.05);
}

.dv-footer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(142, 1, 1, 0.85) 100%);
    z-index: 1;
}

/* Dark box at bottom */
.dv-footer-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 20px 80px;
    /* More bottom padding for floating buttons */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    border-top: 2px solid var(--wb-accent);
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--wb-primary) 70%, transparent),
            color-mix(in srgb, var(--wb-primary) 85%, transparent));
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

/* "thank you" in script near-white */
.dv-footer-thankyou {
    font-family: var(--f-script);
    font-size: 64px;
    color: var(--wb-accent);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.dv-footer-deco {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.dv-footer-deco::before,
.dv-footer-deco::after {
    content: "";
    flex: 1;
    height: 1px;
    max-width: 60px;
    background: linear-gradient(to var(--side, right), transparent, var(--wb-accent));
}

.dv-footer-deco::before {
    --side: right;
}

.dv-footer-deco::after {
    --side: left;
}

.dv-footer-deco img {
    width: 32px;
    height: 32px;
    filter: brightness(1.2) saturate(1.2);
}

.dv-footer-subtitle {
    font-family: var(--f-body);
    font-size: 15px;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.dv-footer-names {
    font-family: var(--f-script);
    font-size: 36px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 5px 0;
}

.dv-footer-heart {
    color: var(--wb-accent);
    font-size: 26px;
    animation: dv-mini-pulse 1.5s infinite;
}

@keyframes dv-mini-pulse {

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

    50% {
        transform: scale(1.2);
    }
}

.dv-footer-date,
.dv-footer-phone {
    font-family: var(--f-body);
    font-size: 13px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.dv-footer-phone-icon {
    display: inline-flex;
    color: var(--wb-accent);
}

.dv-footer-phone a {
    color: var(--wb-accent);
    text-decoration: none;
    font-weight: bold;
}

.dv-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.dv-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--wb-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wb-accent);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.dv-footer-social a:hover {
    background: var(--wb-accent);
    color: #fff;
}

.dv-footer-credit {
    font-family: var(--f-body);
    font-size: 11px;
    color: rgba(255, 255, 255, .3);
    margin-top: 15px;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════
   MUSIC BUTTON
   ══════════════════════════════════════════════════════════ */
#dv-music-btn {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 99999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, .35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transition: transform .2s, background .2s;
    touch-action: manipulation;
}

#dv-music-btn:hover {
    transform: scale(1.08);
}

#dv-music-btn img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

#dv-music-btn.dv-playing {
    background: rgba(201, 168, 76, .3);
    animation: dv-ripple 1.8s ease-out infinite;
}

@keyframes dv-ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, .5), 0 4px 16px rgba(0, 0, 0, .2);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(201, 168, 76, 0), 0 4px 16px rgba(0, 0, 0, .2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0), 0 4px 16px rgba(0, 0, 0, .2);
    }
}

/* ══════════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════════ */
#dv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
}

#dv-lightbox.dv-open {
    display: flex;
}

#dv-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .92);
}

#dv-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90svh;
    object-fit: contain;
    border-radius: 4px;
}

#dv-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS (reveal on scroll)
   ══════════════════════════════════════════════════════════ */
.dv-reveal,
.dv-reveal-left,
.dv-reveal-right,
.dv-reveal-bottom {
    opacity: 0;
    will-change: transform, opacity;
}

.dv-reveal {
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

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

.dv-reveal-left {
    transform: translateX(-40px);
}

.dv-reveal-right {
    transform: translateX(40px);
}

.dv-reveal-bottom {
    transform: translateY(40px);
}

/* Cover page animations - deleted as we now use specific ones at top of file */

/* ══════════════════════════════════════════════════════════
   RESPONSIVE (desktop centering)
   ══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    body.dv-body {
        background: #d5ccc3;
    }

    .dv-page-wrap {
        box-shadow: 0 0 80px rgba(0, 0, 0, .25);
    }
}

/* -- THEME OVERRIDES & ENHANCEMENTS from template.php ----------------- */

/* -- RESET THEME INTERFERENCE --------------------------- */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--wb-bg-pattern) !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* -- PAGE WRAP CENTER ----------------------------------- */
.dv-page-wrap {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    position: relative !important;
    overflow: visible !important;
    background-color: var(--wb-bg-pattern) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, .25) !important;
    display: block !important;
    float: none !important;
}

[class*="dv-reveal-"] {
    opacity: 0;
}

.dv-reveal-bottom {
    transform: translateY(30px);
}

.dv-reveal-left {
    transform: translateX(-30px);
}

.dv-reveal-right {
    transform: translateX(30px);
}

.dv-reveal-gsap {
    transform: translateY(20px);
}

/* Continuous High-Z Borders - Adjusted to keep only the inner row */
.dv-page-wrap::before,
.dv-page-wrap::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 17px !important;
    /* Cut more precisely */
    z-index: 999 !important;
    background-image: url("https://content.pancake.vn/1/s840x1600/fwebp/fd/42/7d/0c/1ca1e8525f99e3105eb930cd8ed684a64b07a0d9df7e0c725ca9779c-w:1260-h:2400-l:65030-t:image/png.png") !important;
    background-repeat: repeat-y !important;
    background-size: 420px auto !important;
    pointer-events: none !important;
    filter: contrast(1.5) saturate(1.3) brightness(0.9);
}

.dv-page-wrap::before {
    left: -14px !important;
    background-position: -20px top !important;
}

.dv-page-wrap::after {
    right: -14px !important;
    background-position: -20px top !important;
    transform: scaleX(-1);
}

/* -- ALL SECTIONS --------------------------------------- */
.dv-sec {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
}

.dv-sec-inner {
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

/* -- COVER SECTION -------------------------------------- */
.dv-sec--cover {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: auto !important;
    position: relative !important;
}

.dv-cover-logo,
.dv-cover-label,
.dv-cover-sub,
.dv-cover-names,
.dv-cover-date,
.dv-cover-photo,
.dv-cover-bottom-deco {
    position: relative !important;
    z-index: 2 !important;
}

.dv-cover-logo {
    margin-top: 15px !important;
}

.dv-cover-photo {
    overflow: visible !important;
    margin-top: 50px !important;
}

.dv-cover-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.dv-cover-date__dow,
.dv-cover-date__nums,
.dv-cover-date__time {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.dv-cover-names {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* -- TWO COLS FAMILY OVERRIDE ---------------------------- */
.dv-family {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
}

.dv-family__side {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 85px 25px 8px 25px !important;
    margin: 0 !important;
    word-break: normal !important;
    gap: 6px !important;
}

.dv-family__label,
.dv-family__parents span,
.dv-family__addr {
    white-space: nowrap !important;
    word-break: normal !important;
}

/* -- FONTS ----------------------------------------------- */
.dv-cover-name,
.dv-cover-amp,
.dv-couple-name,
.dv-couple-and {
    font-family: 'Great Vibes', 'Ephesis', cursive !important;
    display: block !important;
}

/* -- LINKS ----------------------------------------------- */
.dv-page-wrap a {
    text-decoration: none !important;
}

.dv-page-wrap img {
    max-width: 100% !important;
}

/* -- RSVP FORM ------------------------------------------- */
.dv-rsvp-form input,
.dv-rsvp-form select,
.dv-rsvp-form button {
    box-sizing: border-box !important;
}

/* -- ENHANCEMENTS & ANIMATIONS -------------------------- */

/* 1. Outside Borders (Initial opening part) */
body.dv-body::before,
body.dv-body::after {
    filter: contrast(1.2) brightness(0.85);
}

body.dv-body::before {
    animation-name: dv-curtain-left-outer !important;
}

body.dv-body::after {
    animation-name: dv-curtain-right-outer !important;
}

@keyframes dv-curtain-left-outer {
    0% {
        transform: translateX(210px);
        opacity: 1;
    }

    100% {
        transform: translateX(-240px);
        opacity: 1;
    }
}

@keyframes dv-curtain-right-outer {
    0% {
        transform: translateX(-210px);
        opacity: 1;
    }

    100% {
        transform: translateX(240px);
        opacity: 1;
    }
}

/* 2. Heart Calendar Animation */
.dv-calendar__day--active {
    background: var(--wb-primary) !important;
    color: #fff !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    position: relative !important;
    padding-bottom: 4px !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    animation: dv-gallery-heart-pulse 2s infinite !important;
}

/* 3. Layout Tweaks */
.dv-section-divider {
    margin: 20px 0 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

.dv-event-photos {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 20px 0 !important;
    width: 100% !important;
    /* padding: 0 20px !important; */
}

.dv-event-photos__item {
    flex: 1;
    min-width: 0;
    position: relative;
    opacity: 1;
}

/* Middle photo slightly raised - No !important so GSAP can override during anim */
.dv-event-photos__item:nth-child(2) {
    transform: translateY(-20px);
    z-index: 2;
}

.dv-event-photos__item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dv-date-cols {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 4px 0 6px !important;
}

.dv-date-col {
    text-align: center !important;
}

.dv-date-divider {
    width: 1px !important;
    height: 60px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    margin: 0 10px !important;
}

.dv-date-big {
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #222 !important;
}

.dv-date-sub {
    font-size: 16px !important;
    color: #444 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dv-date-year-label {
    font-size: 18px !important;
    margin-bottom: 4px;
}

.dv-date-year-val {
    font-size: 24px !important;
    font-weight: bold;
}

/* 4. Floating Gift Button */
#dv-floating-gift-btn {
    position: fixed;
    left: 80px;
    bottom: 14px;
    z-index: 99999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #8e0101 !important;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: 2px solid #c9a84c !important;
    box-shadow: 0 4px 16px rgba(142, 1, 1, 0.4) !important;
    transition: transform .2s, background .2s;
    touch-action: manipulation;
    font-size: 24px;
    animation: gift-bounce 2.5s infinite ease-in-out;
}

#dv-floating-gift-btn::after {
    content: "Mừng Cưới";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #8e0101;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    border: 1px solid #c9a84c;
}

#dv-floating-gift-btn:hover {
    transform: scale(1.1);
}

@keyframes gift-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(0);
    }

    40% {
        transform: translateY(-10px) rotate(-10deg);
    }

    60% {
        transform: translateY(-5px) rotate(10deg);
    }
}

/* 5. Gift Modal */
.dv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    padding: 20px;
}

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

.dv-modal-content {
    background: #fff;
    width: 100%;
    max-width: 360px;
    padding: 40px 20px 30px;
    border-radius: 20px;
    position: relative;
    text-align: center;
}

.dv-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.dv-qr-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dv-qr-img {
    max-width: 220px;
    margin: 0 auto;
    border: 4px solid #eee;
    border-radius: 10px;
}

.dv-qr-label {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: var(--wb-primary);
    margin-bottom: 8px;
}