/* =====================================================================
   Thiệp Cưới Online — Việt Anh & Thùy Dương (24.12.2026)
   Custom Stylesheet: Lụa Ngọc Xanh - Vàng đồng, Phong bì 3D, Dấu sáp & Responsive
====================================================================== */

/* Beautique Display — nhúng trực tiếp từ assets/fonts/BeautiqueDisplay */
@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Beautique Display';
    src: url('../assets/fonts/BeautiqueDisplay/BeautiqueDisplay-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 17px;
}

@media (min-width: 640px) {
    html {
        font-size: 18.5px;
    }
}

html,
body {
    background-color: #F9F2E4;
    color: #10281F;
    overflow-x: clip;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas,
video,
iframe,
section,
header,
footer,
div,
article,
figure {
    max-width: 100%;
}

/* Nền box nội dung chính (Báo tin, Kính mời, Lịch tháng 12, Mừng cưới): kem ngà #FAF4E6 */
.paper-texture {
    background-color: #FAF4E6;
}

/* Nền background hoa xanh ngọc nhạt rõ nét cho Trân Trọng Báo Tin & Wedding Album */
section#announcement,
section#gallery {
    background-color: #C7D7B2;
    background-image:
        linear-gradient(180deg, rgba(250, 244, 230, 0.14) 0%, rgba(235, 240, 224, 0.14) 100%),
        url('../assets/images/textures/celadon-floral-hd.jpg');
    background-size: 100% 100%, cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Nền background phẳng #EFE1C6 cho khung gộp (Trân Trọng Kính Mời + Counting Down) & Wedding Gift Box */
section#invitation,
section#gift {
    background-color: #EFE1C6;
    background-image: none;
}

/* =====================================================================
   HEADER CỐ ĐỊNH XANH NGỌC SẪM TÁCH BIỆT (#063B2B) VÂN GẤM CHÌM
====================================================================== */
.sticky-header-wine {
    background-color: rgba(15, 33, 23, 0.94);
    background-image:
        linear-gradient(rgba(15, 33, 23, 0.72), rgba(15, 33, 23, 0.78)),
        url('../assets/images/textures/jade-brocade-landscape.jpg');
    background-size: cover;
    background-position: center top;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 154, 98, 0.55);
    box-shadow: 0 4px 18px rgba(6, 20, 13, 0.28);
}

/* Dòng tên thương hiệu luôn gọn trên 1 hàng duy nhất ở mọi kích thước */
.header-brand-text {
    font-size: clamp(0.95rem, 3.8vw, 1.32rem);
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    color: #E7C98F;
}

/* Căn giữa tuyệt đối 2 trục cho toàn bộ nút bấm & tab, không bao giờ rớt dòng */
.btn-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    gap: 6px;
}

/* =====================================================================
   HUY HIỆU BẦU DỤC HOÀNG GIA & DẤU SÁP NIÊM PHONG CHÂN THỰC
====================================================================== */
.royal-oval-medallion {
    position: relative;
    width: clamp(176px, 50vw, 224px);
    height: clamp(106px, 28vw, 128px);
    padding: 12px 18px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.royal-oval-medallion::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    pointer-events: none;
}

/* Biến thể huy hiệu xanh ngọc viền đôi vàng đồng trên Bìa Hero */
.royal-oval-medallion--crest {
    background: radial-gradient(ellipse at 50% 25%, #176047 0%, #0B3C2B 62%, #06281D 100%);
    border: 1.5px solid rgba(201, 164, 92, 0.88);
    color: #E7C98F;
    box-shadow: 0 12px 28px rgba(6, 24, 18, 0.42), inset 0 1px 6px rgba(231, 201, 143, 0.22);
}

.royal-oval-medallion--crest::after {
    border: 1px solid rgba(231, 201, 143, 0.45);
}

/* Dấu sáp niêm phong hữu cơ với viền sáp chảy, lòng dập nổi & texture sáp thật */
.wax-seal-medallion {
    position: relative;
    width: clamp(168px, 46vw, 206px);
    height: clamp(114px, 31vw, 138px);
    padding: 14px 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0B3C2B;
    filter: drop-shadow(0 14px 24px rgba(6, 24, 18, 0.62)) drop-shadow(0 3px 6px rgba(6, 24, 18, 0.45));
    -webkit-tap-highlight-color: transparent;
}

.wax-seal-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.wax-seal-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow:
        0 1px 0 rgba(246, 234, 210, 0.58),
        0 -0.8px 0.8px rgba(11, 60, 43, 0.42);
}

/* Dòng trên: VA & TD — bù trừ padding-inline-start theo letter-spacing */
.medallion-monogram {
    display: block;
    white-space: nowrap;
    font-family: "Beautique Display", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.14rem, 4.3vw, 1.56rem);
    line-height: 1.1;
    letter-spacing: 0.08em;
    padding-inline-start: 0.08em;
}

/* Thanh phân cách mảnh màu vàng đồng kèm chấm thoi ở giữa */
.medallion-divider {
    position: relative;
    width: 54px;
    height: 7px;
    margin: 5px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.medallion-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.78;
}

.medallion-divider-diamond {
    position: relative;
    z-index: 1;
    width: 5px;
    height: 5px;
    background: currentColor;
    transform: rotate(45deg);
}

/* Dòng dưới: 24 · 12 — bù trừ padding-inline-start theo letter-spacing */
.medallion-date {
    display: block;
    white-space: nowrap;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: clamp(0.74rem, 2.4vw, 0.88rem);
    letter-spacing: 0.2em;
    padding-inline-start: 0.2em;
    line-height: 1.1;
}

/* =====================================================================
   HIỆU ỨNG MỞ PHONG BÌ 3D MỀM MẠI, XUẤT HIỆN TUẦN TỰ & CHUYỂN ĐỘNG NHẸ
====================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hiệu ứng xuất hiện tuần tự (Stagger Reveal) cho Bìa Thiệp sau khi mở phong bì */
.hero-awaiting-open .hero-stagger {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
}

.hero-revealed .hero-stagger {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger-delay, 0ms);
}

/* Màn hình phủ Phong Bì 3D */
.envelope-overlay {
    min-height: 100dvh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: clip;
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-overlay.envelope-opened {
    opacity: 0;
    transform: scale(1.035);
    pointer-events: none;
}

/* Sân khấu cho chiếc phong bì giấy cotton tối giản dáng ngang */
.envelope-3d-stage {
    width: 100%;
    max-width: 470px;
    margin-inline: auto;
}

/*
 * Thân phong bì giấy cotton xanh ô-liu ấm (cạnh sắc gọn gàng theo ảnh mẫu):
 * - perspective đặt trực tiếp tại đây để nắp vẫn gập mở 3D có chiều sâu.
 * - transform-style: flat → z-index luôn quyết định thứ tự lớp, tờ thiệp luôn nằm trên nắp.
 */
.envelope-3d-body {
    --env-radius: 3px;
    position: relative;
    width: 100%;
    height: clamp(255px, 58vw, 324px);
    border-radius: var(--env-radius);
    perspective: 1650px;
    -webkit-perspective: 1650px;
    transform-style: flat;
    box-shadow:
        0 26px 56px -14px rgba(8, 16, 8, 0.72),
        0 6px 16px -4px rgba(8, 16, 8, 0.45);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease,
        border-radius 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-3d-body:hover {
    transform: translateY(-3px);
    box-shadow:
        0 32px 66px -14px rgba(8, 16, 8, 0.78),
        0 8px 20px -4px rgba(8, 16, 8, 0.5);
}

.envelope-3d-body.flap-opening {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Viền mép giấy mảnh tạo độ khối tự nhiên (không dùng viền vàng dày) */
.envelope-rim {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(12, 22, 10, 0.35);
    border-bottom: 1px solid rgba(12, 22, 10, 0.45);
    pointer-events: none;
    transition: border-color 0.55s ease;
}

.envelope-3d-body:hover .envelope-rim {
    border-top-color: rgba(255, 255, 255, 0.28);
}

/* Mặt lưng bên trong phong bì */
.envelope-back {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(180deg, #2B3920 0%, #374829 55%, #26331C 100%);
    overflow: hidden;
}

/* Tờ thiệp giấy kem ngà 400gsm nằm khuất hoàn toàn bên trong túi phong bì khi đóng */
.envelope-letter-card {
    position: absolute;
    left: 5.5%;
    right: 5.5%;
    top: 22%;
    bottom: 7%;
    z-index: 2;
    border-radius: 1.05rem;
    background-color: #F6EAD2;
    background-image:
        linear-gradient(180deg, rgba(253, 249, 240, 0.36) 0%, rgba(246, 234, 210, 0.32) 100%),
        url('../assets/images/textures/cream-silk-paper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1.5px solid #B78B40;
    box-shadow: 0 8px 24px rgba(6, 24, 18, 0.34);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.15s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    pointer-events: none;
}

.envelope-letter-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(11, 60, 43, 0.18);
    border-radius: 0.75rem;
    pointer-events: none;
}

/* Tên cặp đôi trên tờ thiệp mở ra: 1 hàng trên màn rộng, tự xếp 3 dòng (Việt Anh / & / Thùy Dương) trên màn nhỏ */
.env-couple-line {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
}

@media (max-width: 520px) {
    .envelope-letter-card {
        top: 6%;
        bottom: 6%;
        padding: 12px 14px;
        justify-content: center;
    }

    .env-couple-line {
        flex-direction: column;
        align-items: center;
        gap: 0.05rem;
        line-height: 1.08;
    }

    .env-couple-amp {
        font-size: 0.78em;
        line-height: 1;
    }
}

/* Khi mở phong bì: tờ thiệp hiện dần và trượt mượt lên khỏi túi chữ V */
.envelope-3d-body.letter-rising .envelope-letter-card {
    z-index: 6;
    opacity: 1;
    transform: translateY(-42%) scale(1.03);
    box-shadow: 0 26px 52px rgba(6, 24, 18, 0.58), 0 0 0 1px rgba(201, 164, 92, 0.78);
}

/* Túi phong bì chữ V vai cao che kín 100% mép giấy bên trong */
.envelope-pocket {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

/* Nắp phong bì tam giác bo đầu gập mở 3D mềm mại */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70%;
    z-index: 5;
    transform-origin: top center;
    -webkit-transform-origin: top center;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 1.05s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    will-change: transform;
}

.envelope-flap.flap-open {
    transform: rotateX(180deg);
}

.envelope-flap.flap-behind {
    z-index: 1;
}

.envelope-flap-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.envelope-flap-back {
    transform: rotateX(180deg);
}

/*
 * Bo 2 góc nắp trùng khít bán kính góc thân phong bì để nắp không lòi ra ngoài viền.
 * Mặt ngoài: bo 2 góc trên (cạnh bản lề), chừa khoảng dưới cho bóng đổ của mũi nắp.
 * Mặt trong: bản lề nằm ở cạnh dưới của chính nó (đã lật 180deg) nên bo 2 góc dưới.
 */
.envelope-flap-face>svg {
    clip-path: inset(0 0 -56px 0 round var(--env-radius) var(--env-radius) 0 0);
    transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-flap-back>svg {
    clip-path: inset(-4px 0 0 0 round 0 0 var(--env-radius) var(--env-radius));
}

.envelope-3d-body.flap-opening .envelope-flap-face>svg {
    clip-path: inset(0 0 -56px 0 round 0 0 0 0);
}

.envelope-3d-body.flap-opening .envelope-flap-back>svg {
    clip-path: inset(-4px 0 0 0 round 0 0 0 0);
}

/* Monogram dập nổi chìm (blind-embossed) nằm giữa nắp phong bì */
.envelope-seal-anchor {
    position: absolute;
    top: 30%;
    left: 50%;
    z-index: 7;
    transform: translate(-50%, -50%);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.envelope-seal-anchor.seal-lifting {
    transform: translate(-50%, -62%) scale(0.96);
    opacity: 0;
    pointer-events: none;
}

.envelope-emboss-seal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.envelope-emboss-monogram {
    font-family: "Beautique Display", Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.65rem, 6.2vw, 2.35rem);
    letter-spacing: 0.06em;
    line-height: 1.05;
    white-space: nowrap;
    color: #4D623B;
    text-shadow:
        -1px -1px 0.8px rgba(235, 245, 220, 0.36),
        1.5px 1.8px 2.2px rgba(16, 26, 10, 0.72),
        0 0 1px rgba(16, 26, 10, 0.38);
}

.envelope-emboss-date {
    margin-top: 4px;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-size: clamp(0.62rem, 2vw, 0.74rem);
    letter-spacing: 0.28em;
    padding-inline-start: 0.28em;
    color: #4D623B;
    text-shadow:
        -0.7px -0.7px 0.5px rgba(235, 245, 220, 0.32),
        1px 1.2px 1.4px rgba(16, 26, 10, 0.65);
}

/* Cụm từ không ngắt dòng cho tên cô dâu / chú rể (Lê Nguyễn / Thùy Dương) */
.name-part {
    display: inline-block;
    white-space: nowrap;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spinSlow 9s linear infinite;
}

@keyframes sealPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.03);
    }
}

.animate-seal-pulse {
    animation: sealPulse 3.4s ease-in-out infinite;
}

.jade-velvet {
    background-color: #13281B;
    background-image:
        linear-gradient(180deg, rgba(12, 27, 18, 0.08) 0%, rgba(12, 27, 18, 0.22) 100%),
        url('../assets/images/textures/jade-brocade-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Trên màn hình dọc (mobile), màn hình phong bì & bìa Hero dùng bản dọc để không bị cắt mất họa tiết góc */
@media (max-width: 767px) and (orientation: portrait) {

    #envelope-screen.jade-velvet,
    #hero.jade-velvet {
        background-image:
            linear-gradient(180deg, rgba(12, 27, 18, 0.08) 0%, rgba(12, 27, 18, 0.22) 100%),
            url('../assets/images/textures/jade-brocade.jpg');
    }
}

.printed-card-frame {
    position: relative;
}

.printed-card-frame::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(183, 139, 64, 0.62);
    border-radius: inherit;
    pointer-events: none;
}

.printed-card-frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(11, 60, 43, 0.16);
    border-radius: inherit;
    pointer-events: none;
}

.jade-frame {
    position: relative;
}

.jade-frame::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(201, 164, 92, 0.54);
    border-radius: inherit;
    pointer-events: none;
}

.jade-frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 164, 92, 0.24);
    border-radius: inherit;
    pointer-events: none;
}

/* Hoa văn góc tự thu gọn trên mobile (< 480px) chống đè chữ */
.corner-ornament {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    display: none;
}

.corner-tl {
    top: 14px;
    left: 14px;
}

.corner-tr {
    top: 14px;
    right: 14px;
    transform: rotate(90deg);
}

.corner-bl {
    bottom: 14px;
    left: 14px;
    transform: rotate(-90deg);
}

.corner-br {
    bottom: 14px;
    right: 14px;
    transform: rotate(180deg);
}

@media (min-width: 480px) {

    .printed-card-frame::before,
    .jade-frame::before {
        inset: 10px;
    }

    .printed-card-frame::after,
    .jade-frame::after {
        inset: 16px;
    }

    .corner-ornament {
        width: 34px;
        height: 34px;
    }

    .corner-tl {
        top: 18px;
        left: 18px;
    }

    .corner-tr {
        top: 18px;
        right: 18px;
    }

    .corner-bl {
        bottom: 18px;
        left: 18px;
    }

    .corner-br {
        bottom: 18px;
        right: 18px;
    }
}

/* =====================================================================
   BỐ CỤC RESPONSIVE: NHÓM NÚT, BẢN ĐỒ, NGÀY THÁNG 3 CỘT, ĐẾM NGƯỢC & LỊCH
====================================================================== */
/* Cụm nút hành động: 1 cột dưới 500px, 2 cột đều nhau từ 500px trở lên */
.action-btn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
}

@media (min-width: 500px) {
    .action-btn-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 480px;
    }
}

/* Khung chứa iframe Google Maps tương tác với chiều cao co giãn mượt */
.venue-map-stage {
    position: relative;
    width: 100%;
    height: clamp(250px, 56vw, 360px);
    background-color: #F9F2E4;
    overflow: hidden;
}

.venue-map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Khối ngày cưới lưới 3 cột đối xứng (1fr auto 1fr) với 2 đường kẻ dọc vàng đồng */
.date-tri-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
}

.date-side-label {
    white-space: nowrap;
    font-size: clamp(0.75rem, 2.8vw, 0.95rem);
    letter-spacing: 0.12em;
    padding-inline-start: 0.12em;
}

.date-center-col {
    border-left: 1px solid rgba(196, 154, 85, 0.72);
    border-right: 1px solid rgba(196, 154, 85, 0.72);
    padding-inline: clamp(14px, 4.5vw, 30px);
    padding-block: 4px;
    text-align: center;
}

/* 4 ô đếm ngược luôn gọn 1 hàng từ 320px */
.countdown-4col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 14px);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* Ô lịch vuông tuyệt đối 1:1 */
.calendar-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ngắt dòng an toàn cho tên khách mời dài */
.safe-guest-wrap {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Cỡ chữ tab Mừng Cưới linh hoạt */
.gift-tab-btn {
    font-size: clamp(0.82rem, 3.2vw, 0.95rem);
}

/* Khung QR tự co giãn gọn gàng trên 320px */
.qr-frame-box {
    width: min(210px, 100%);
    aspect-ratio: 1 / 1;
}