/* ========================================================
   WEDDING INVITATION THEME STYLESHEET
   Cảm hứng: Cinematic Vintage & CineLove
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Dancing+Script:wght@600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --primary: #812927;
    --primary-dark: #58170a;
    --primary-light: #a3403d;
    --accent-gold: #c5a059;
    --accent-gold-light: #e5cf92;
    --bg-page: #e8e0dc;
    --bg-card: #f9f1ef;
    --bg-white: #ffffff;
    --text-main: #2b2321;
    --text-muted: #6e6563;
    --text-red: #8b2827;
    --border-color: #eedcd6;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-script: 'Alex Brush', cursive;
    --font-hand: 'Dancing Script', cursive;
    --font-body: 'Quicksand', 'Montserrat', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(88, 23, 10, 0.08);
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.15);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Desktop Wrapper (Hiển thị giả lập điện thoại sang trọng trên máy tính) */
.desktop-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at top, #f0eae6 0%, #d8ccc6 100%);
    padding: 0;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-card);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* ========================================================
   1. MÀN HÌNH MỞ MÀN PHOTOBOOTH (OPENING SCREEN)
   ======================================================== */
.photobooth-opening {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle at 50% 35%, #5c140a 0%, #360a05 55%, #180301 100%);
    color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 12px 16px 20px;
    box-sizing: border-box;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.photobooth-opening.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.photobooth-header {
    text-align: center;
    margin-top: 0;
    flex-shrink: 0;
}

.photobooth-headline {
    font-size: 10px;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    color: var(--accent-gold-light);
    margin-bottom: 2px;
    font-weight: 600;
}

.photobooth-names {
    font-family: var(--font-script);
    font-size: clamp(30px, 4.5vh, 38px);
    font-weight: normal;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

/* Khung Stage trung tâm */
.photobooth-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto;
}

/* Dải phim Photobooth Vòm Cung Cổ Điển & Viền Vàng Kim (Pinterest 4-in-1 Fusion: Roman Arch Top) */
.photobooth-strip-container.luxury-arch-strip {
    position: relative;
    width: 260px;
    background: #ffffff;
    padding: 6px;
    border-radius: 130px 130px 16px 16px; /* Vòm cung Roman Arch chuẩn tỷ lệ bán nguyệt (260px / 2 = 130px) */
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.75), 
        0 10px 25px rgba(43, 10, 4, 0.5), 
        0 0 35px rgba(212, 175, 55, 0.35); /* Đổ bóng 3D đa tầng siêu sâu */
    animation: stripSlideDown 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid #d4af37;
    z-index: 5;
    flex-shrink: 0;
}

.strip-arch-inner {
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 124px 124px 10px 10px; /* Vòm cung lòng trong đồng tâm hoàn hảo */
    padding: 16px 8px 12px;
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);
    box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4.5px rgba(212, 175, 55, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Con dấu sáp đỏ rượu nạm vàng (Wax Seal Crest) đặt trang trọng ngay tâm vòm */
.strip-wax-seal-crest {
    width: 48px;
    height: 48px;
    margin: 0 auto 4px;
    background: radial-gradient(circle at 35% 35%, #a82a2a 0%, #781c1c 65%, #4a0d0d 100%);
    border: 2px solid #e0c078;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(74, 13, 13, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wax-monogram {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: #fcece9;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.strip-header-tag {
    text-align: center;
    padding: 0 2px;
}

.strip-brand {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 3.5px;
    color: #a8843c;
    text-transform: uppercase;
    display: block;
}

.strip-botanical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 3px 0 2px;
}

.botanical-line {
    display: block;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
}

.botanical-icon {
    font-size: 9px;
    color: #c5a059;
}

/* Khung ảnh cưới mạ viền vàng */
.photobooth-frame.luxury-frame {
    width: 100%;
    height: clamp(100px, 14.5vh, 134px);
    background-color: #1a1615;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.frame-num {
    position: absolute;
    bottom: 5px;
    right: 6px;
    font-family: var(--font-serif);
    font-size: 9px;
    color: #e5cf92;
    background: rgba(43, 16, 12, 0.7);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 1px;
    backdrop-filter: blur(2px);
    z-index: 2;
    border: 0.5px solid rgba(212, 175, 55, 0.4);
}

.photobooth-frame.luxury-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.strip-footer-tag {
    text-align: center;
    padding-top: 5px;
    border-top: 1px dashed rgba(212, 175, 55, 0.4);
    margin-top: 2px;
}

.strip-signature {
    font-family: var(--font-script);
    font-size: 22px;
    color: var(--primary);
    line-height: 1.1;
}

.strip-quote {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a8843c;
    font-weight: 600;
    margin: 2px 0 1px;
}

.photobooth-date {
    font-family: var(--font-serif);
    font-size: 11px;
    color: #4a3e3c;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Nút Mở thiệp */
.photobooth-cta {
    background: linear-gradient(135deg, #d4af37 0%, #b89146 50%, #99732d 100%);
    color: #1c0602;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 12px 34px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.3);
    animation: pulseGlow 2.5s infinite;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
    flex-shrink: 0;
}

.photobooth-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ========================================================
   2. CÁNH HOA BAY (PETALS RAIN)
   ======================================================== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #fca5a5 0%, #f87171 100%);
    border-radius: 16px 2px 16px 2px;
    opacity: 0.7;
    animation: petalFall linear infinite;
}

/* ========================================================
   3. NÚT ĐIỀU KHIỂN NHẠC (AUDIO CONTROLLER)
   ======================================================== */
.music-toggle-btn {
    position: fixed;
    top: 20px;
    right: max(20px, calc(50% - 220px));
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.music-toggle-btn.is-playing {
    animation: spinDisc 6s linear infinite;
}

.music-icon {
    font-size: 20px;
}

/* ========================================================
   4. PHONG BÌ TƯƠNG TÁC (INTERACTIVE ENVELOPE)
   ======================================================== */
.envelope-section {
    padding: 40px 20px 20px;
    text-align: center;
}

.envelope-wrapper {
    position: relative;
    width: 320px;
    height: 220px;
    margin: 30px auto;
    cursor: pointer;
}

.envelope-shadow {
    position: absolute;
    bottom: -15px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
}

@keyframes envelopeFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(88, 23, 10, 0.3);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 16px 32px rgba(88, 23, 10, 0.42);
    }
}

@keyframes sealShimmer {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    }
    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 6px 18px rgba(212, 175, 55, 0.65), 0 0 12px rgba(255, 255, 255, 0.4);
    }
}

.envelope-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 25px rgba(88, 23, 10, 0.35);
    transition: all 0.3s ease;
}

.envelope-wrapper:not(.is-open) .envelope-container {
    animation: envelopeFloat 3.2s ease-in-out infinite;
}

.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid #8b2827;
    border-right: 160px solid #8b2827;
    border-bottom: 110px solid #9d2e2c;
    border-top: 110px solid transparent;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 3;
    pointer-events: none;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 120px solid var(--primary);
    border-bottom: 100px solid transparent;
    z-index: 4;
}

.envelope-letter {
    position: absolute;
    top: 8px;
    left: 4%;
    width: 92%;
    height: 92%;
    background: linear-gradient(180deg, #fffdfb 0%, #faf6f0 100%);
    border-radius: var(--radius-sm);
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-sizing: border-box;
}

.letter-card-content {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    text-align: center;
    background: #ffffff;
}

.letter-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

.letter-photo-frame {
    width: 100%;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0;
    border: 0.5px solid rgba(212, 175, 55, 0.3);
}

.letter-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.letter-couple-names {
    font-family: var(--font-script);
    font-size: 16px;
    color: var(--primary);
    line-height: 1.1;
}

.letter-date-line {
    font-size: 9px;
    font-weight: 700;
    color: #a8843c;
    letter-spacing: 1px;
    margin: 1px 0;
}

.letter-location-line {
    font-size: 8px;
    color: #666666;
}

.wax-seal {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    background: radial-gradient(circle, #b83230 0%, #751a18 100%);
    border: 2px solid #e07a78;
    border-radius: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: var(--font-serif);
    color: #f7d6d0;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    cursor: pointer;
}

.envelope-wrapper:not(.is-open) .wax-seal {
    animation: sealShimmer 2.2s ease-in-out infinite;
}

.envelope-hint {
    margin-top: 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(129, 41, 39, 0.08);
    border: 1px dashed rgba(212, 175, 55, 0.55);
    padding: 7px 18px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    cursor: pointer;
}

.envelope-hint:hover {
    background: rgba(129, 41, 39, 0.14);
    border-color: var(--primary);
    transform: scale(1.03);
}

/* ========================================================
   5. HEADER / HERO SECTION
   ======================================================== */
.hero-section {
    padding: 38px 24px 20px;
    text-align: center;
}

.invitation-tag {
    font-size: 13px;
    letter-spacing: 7px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.invitation-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 700;
}

.couple-names-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-groom-name, .hero-bride-name {
    font-family: var(--font-script);
    font-size: 38px;
    color: var(--text-main);
}

.hero-ampersand {
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--accent-gold);
    font-style: italic;
}

.hero-banner-frame {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    position: relative;
    margin-bottom: 24px;
}

.hero-banner-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================
   6. BỘ ĐẾM NGƯỢC (COUNTDOWN TIMER)
   ======================================================== */
.countdown-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    padding: 18px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    margin: 0 10px 30px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    backdrop-filter: blur(4px);
}

.countdown-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: bold;
    line-height: 1.1;
    color: #ffffff;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold-light);
    margin-top: 2px;
}

/* ========================================================
   7. LỜI NGỎ & GIA ĐÌNH HAI BÊN
   ======================================================== */
.invitation-letter-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    margin: 0 10px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
}

.invitation-letter-box::before {
    content: '“';
    font-family: var(--font-serif);
    font-size: 60px;
    color: var(--accent-gold-light);
    position: absolute;
    top: -10px;
    left: 20px;
    line-height: 1;
}

.letter-heading {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.letter-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Thẻ Gia đình 2 bên */
.families-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 10px 30px;
}

.family-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 18px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.family-side-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
}

.parent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.family-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Thẻ Cô dâu & Chú rể */
.couple-intro-section {
    padding: 0 10px 30px;
}

.couple-profile-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.couple-avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 14px;
}

.couple-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.couple-role {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.couple-fullname {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-dark);
    margin: 4px 0 10px;
}

.couple-bio {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* ========================================================
   8. THỜI GIAN & ĐỊA ĐIỂM TIỆC CƯỚI
   ======================================================== */
.venue-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 26px 20px;
    margin: 0 10px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.section-badge {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 18px;
}

.event-highlight-box {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}

.event-card-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(88, 23, 10, 0.05);
    text-align: center;
}

.event-card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
    padding: 5px 14px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.event-time {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-dark);
}

.event-date-solar {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 4px 0;
}

.event-date-lunar {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.venue-details {
    margin-bottom: 20px;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary);
    font-weight: bold;
}

.venue-hall {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
    margin: 3px 0;
}

.venue-address {
    font-size: 13px;
    color: var(--text-muted);
}

.venue-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(129, 41, 39, 0.25);
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #fae8e4;
}

/* ========================================================
   9. LỊCH TRÌNH TIỆC CƯỚI (TIMELINE)
   ======================================================== */
.timeline-section {
    padding: 0 10px 30px;
}

.timeline-list {
    position: relative;
    padding-left: 20px;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: var(--border-color);
}

.timeline-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.timeline-icon-box {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    z-index: 2;
}

.timeline-content-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    flex-grow: 1;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.timeline-time-badge {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.timeline-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 2px 0 4px;
}

.timeline-item-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================================
   10. CÂU CHUYỆN TÌNH YÊU (LOVE STORY)
   ======================================================== */
.love-story-section {
    padding: 0 10px 30px;
}

.story-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.story-img-frame {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.story-card:hover .story-img-frame img {
    transform: scale(1.05);
}

.story-body {
    padding: 18px;
}

.story-year {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: bold;
    letter-spacing: 2px;
}

.story-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 4px 0 8px;
}

.story-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================================
   11. ALBUM ẢNH CƯỚI (GALLERY) & LIGHTBOX
   ======================================================== */
.gallery-section {
    padding: 0 10px 30px;
}

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

.gallery-item {
    position: relative;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-item:nth-child(1), .gallery-item:nth-child(4) {
    height: 230px;
}

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

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

.gallery-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(88, 23, 10, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 24px;
}

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

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.is-active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
}

/* ========================================================
   12. DRESS CODE (QUY CHUẨN TRANG PHỤC)
   ======================================================== */
.dresscode-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    margin: 0 10px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.dresscode-palette {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 16px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.swatch-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.swatch-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.dresscode-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================================
   13. FORM XÁC NHẬN THAM DỰ (SMART RSVP)
   ======================================================== */
.rsvp-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    margin: 0 10px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.rsvp-form-group {
    margin-bottom: 16px;
}

.rsvp-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.rsvp-label .required {
    color: #e63946;
}

.rsvp-input, .rsvp-select, .rsvp-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #d8ccc6;
    font-family: inherit;
    font-size: 14px;
    background: #fdfaf8;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-input:focus, .rsvp-select:focus, .rsvp-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 41, 39, 0.15);
    background: #ffffff;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fdfaf8;
    border: 1px solid #d8ccc6;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
}

.radio-option input[type="radio"] {
    accent-color: var(--primary);
}

/* ========================================================
   14. SỔ LƯU BÚT ĐIỆN TỬ (DIGITAL GUESTBOOK)
   ======================================================== */
.guestbook-section {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 20px;
    margin: 0 10px 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.wishes-feed {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.wish-item {
    background: #fdfaf8;
    border-radius: var(--radius-sm);
    padding: 14px;
    border: 1px solid #f0e6e2;
    position: relative;
}

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

.wish-author {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
}

.wish-time {
    font-size: 11px;
    color: #999999;
}

.wish-body {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
}

/* ========================================================
   15. HỘP MỪNG CƯỚI (VIETQR BOX)
   ======================================================== */
.gift-box-section {
    padding: 0 10px 30px;
}

.bank-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bank-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.bank-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 12px;
}

.qr-code-frame {
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    padding: 8px;
    background: #ffffff;
    border: 1px dashed var(--accent-gold);
    border-radius: var(--radius-sm);
}

.qr-code-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-info-line {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bank-acc-number {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.btn-copy {
    background: #fae8e4;
    color: var(--primary);
    border: 1px solid #e8c0ba;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ========================================================
   16. FOOTER & TOAST
   ======================================================== */
.footer-section {
    text-align: center;
    padding: 40px 20px 60px;
    background: linear-gradient(180deg, var(--bg-card) 0%, #ebe0dc 100%);
}

.footer-quote {
    font-family: var(--font-script);
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-thanks {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 20px;
}

.footer-copyright {
    font-size: 11px;
    color: #999999;
}

/* Toast Feedback */
.toast-notice {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(43, 35, 33, 0.92);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: none;
    align-items: center;
    gap: 8px;
}

.toast-notice.show {
    display: flex;
    animation: toastSlideIn 0.3s forwards;
}

/* ========================================================
   18. CỘT TRANG TRÍ 2 BÊN CHO MÀN HÌNH MÁY TÍNH (DESKTOP)
   Chỉ hiển thị khi đã ấn "MỞ THIỆP MỜI" trên màn hình Desktop (>= 992px)
   Trên Mobile: Bỏ qua hoàn toàn (display: none)
   ======================================================== */
.desktop-side-panel {
    display: none !important; /* Mặc định luôn ẩn trên mobile và bên ngoài */
}

@keyframes desktopPanelFadeIn {
    0% {
        opacity: 0;
        transform: translateY(35px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .desktop-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: clamp(40px, 4vw, 75px); /* Tách hẳn 2 bên ra rộng rãi */
        padding: 36px clamp(24px, 3.5vw, 60px);
        background: radial-gradient(circle at 50% 20%, #4a1309 0%, #2b0803 50%, #150301 100%);
        min-height: 100vh;
        width: 100%;
        box-sizing: border-box;
    }

    /* MỞ RỘNG NỘI DUNG Ở GIỮA TO RÕ RỆT, ĐỠ THÔ VÀ ĐẦY ĐẶN */
    .mobile-container {
        width: 100%;
        max-width: clamp(600px, 44vw, 720px); /* Tăng mạnh từ 480px lên đến 720px */
        border-radius: 28px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
        overflow: hidden;
    }

    /* Hai bên tách rộng ra và mở rộng kích thước thẻ */
    body.invitation-opened .desktop-side-panel {
        display: flex !important;
        flex-direction: column;
        width: clamp(320px, 22vw, 360px);
        position: sticky;
        top: 24px;
        align-self: flex-start;
        flex-shrink: 0;
        z-index: 10;
        animation: desktopPanelFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .desktop-side-panel .ig-card {
        height: calc(100vh - 48px);
        max-height: 720px;
        box-sizing: border-box;
    }

    /* Ẩn nút nốt nhạc tròn nổi trên Desktop vì đã có Music Sticker chuyên dụng ở cột trái */
    .music-toggle-btn {
        display: none !important;
    }

    /* Tăng kích thước ảnh bìa & ảnh chính tương xứng với khung to */
    .hero-banner-frame {
        height: clamp(440px, 48vh, 540px);
    }

    .hero-groom-name, .hero-bride-name {
        font-size: 44px;
    }

    .invitation-title {
        font-size: 30px;
    }

    /* Chân dung cô dâu chú rể nằm ngang 2 cột song song */
    .couple-intro-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .couple-profile-card {
        margin-bottom: 0;
    }

    /* Hộp mừng cưới tài khoản ngân hàng nằm ngang 2 cột */
    .bank-cards-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Phong bì tương tác to hơn trên desktop */
    .envelope-wrapper {
        width: 360px;
        height: 245px;
    }

    .envelope-pocket {
        border-left-width: 180px;
        border-right-width: 180px;
        border-bottom-width: 125px;
        border-top-width: 120px;
    }

    .envelope-flap {
        border-left-width: 180px;
        border-right-width: 180px;
        border-top-width: 135px;
        border-bottom-width: 110px;
    }

    /* ========================================================
       GIAO DIỆN INSTAGRAM HIỆN ĐẠI CHO 2 BÊN DESKTOP (IG STYLE)
       ======================================================== */
    .ig-card {
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
        padding: 16px 14px 18px;
        overflow: hidden;
        color: #262626;
        display: flex;
        flex-direction: column;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    /* Header Instagram chung */
    .ig-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 12px;
    }

    .ig-logo-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .ig-logo-text {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, cursive;
        font-size: 20px;
        font-weight: 700;
        color: #262626;
        letter-spacing: -0.5px;
    }

    .ig-verified-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 14px;
        background: #1877f2;
        color: #ffffff;
        border-radius: 50%;
        font-size: 9px;
        font-weight: 900;
    }

    .ig-more-dots {
        color: #8e8e8e;
        font-size: 13px;
        letter-spacing: 1.5px;
        cursor: pointer;
    }

    /* 1. PROFILE CARD (BÊN TRÁI) */
    .ig-profile-top {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 12px;
    }

    .ig-story-ring {
        position: relative;
        width: 66px;
        height: 66px;
        padding: 2.5px;
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-radius: 50%;
        flex-shrink: 0;
        cursor: pointer;
        transition: transform 0.25s ease;
    }

    .ig-story-ring:hover {
        transform: scale(1.05);
    }

    .ig-story-ring img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #ffffff;
        display: block;
    }

    .ig-story-live-badge {
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
        color: #ffffff;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.5px;
        padding: 1px 5px;
        border-radius: 4px;
        border: 1.5px solid #ffffff;
        text-transform: uppercase;
    }

    .ig-user-meta {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .ig-handle {
        font-weight: 700;
        font-size: 14px;
        color: #262626;
        letter-spacing: -0.2px;
    }

    .ig-btn-follow {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #efefef;
        border: none;
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 11px;
        font-weight: 600;
        color: #262626;
        cursor: pointer;
        transition: background 0.2s;
    }

    .ig-btn-follow:hover {
        background: #e2e2e2;
    }

    .ig-stats-row {
        display: flex;
        justify-content: space-around;
        padding: 9px 0;
        border-top: 1px solid #f2f2f2;
        border-bottom: 1px solid #f2f2f2;
        margin-bottom: 10px;
    }

    .ig-stat-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ig-stat-num {
        font-size: 13px;
        font-weight: 700;
        color: #262626;
    }

    .ig-stat-label {
        color: #8e8e8e;
        font-size: 10px;
        margin-top: 1px;
    }

    .ig-stat-col.ig-stat-interactive {
        cursor: pointer;
        padding: 3px 6px;
        border-radius: 8px;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
        position: relative;
        user-select: none;
    }

    .ig-stat-col.ig-stat-interactive:hover {
        background: rgba(184, 51, 42, 0.08);
        transform: translateY(-2px) scale(1.06);
    }

    .ig-stat-col.ig-stat-interactive:active {
        transform: scale(0.94);
    }

    .ig-stat-col.ig-stat-interactive .ig-stat-num {
        color: #b8332a;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }

    .ig-stat-col.ig-stat-interactive .ig-stat-num::after {
        content: '❤️';
        font-size: 9px;
        animation: pulseHeart 1.4s ease-in-out infinite;
    }

    @keyframes pulseHeart {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.3); }
    }

    .ig-bio-box {
        font-size: 11px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .ig-fullname {
        font-weight: 700;
        font-size: 12.5px;
        color: #1a0503;
        margin-bottom: 2px;
    }

    .ig-bio-tagline {
        color: #812927;
        font-weight: 600;
        font-size: 11px;
        margin-bottom: 2px;
    }

    .ig-bio-location {
        color: #555555;
        font-size: 10.5px;
        margin-bottom: 3px;
    }

    .ig-bio-quote {
        color: #666666;
        font-style: italic;
        font-size: 10.5px;
        line-height: 1.4;
        border-left: 2px solid #d4af37;
        padding-left: 7px;
        margin-top: 5px;
    }

    .ig-highlights-section {
        margin-bottom: 12px;
    }

    .ig-highlights-title {
        font-size: 9px;
        letter-spacing: 1.5px;
        font-weight: 700;
        color: #999999;
        margin-bottom: 8px;
        text-transform: uppercase;
    }

    .ig-highlights-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .ig-highlight-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s;
    }

    .ig-highlight-item:hover {
        transform: translateY(-2px);
    }

    .ig-hl-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 2px;
        border: 1.5px solid #d4af37;
        background: #faf6f0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    .ig-hl-label {
        font-size: 9.5px;
        font-weight: 600;
        color: #262626;
    }

    .ig-music-sticker {
        display: flex;
        align-items: center;
        gap: 9px;
        background: linear-gradient(135deg, #fff7ea 0%, #fef1e8 100%);
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 12px;
        padding: 8px 10px;
        margin-bottom: 10px;
    }

    .music-disc-wrap {
        width: 30px;
        height: 30px;
        background: #1a0503;
        border: 1.5px solid #d4af37;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        color: #ffd700;
        flex-shrink: 0;
        animation: spinDisc 4s linear infinite;
    }

    .music-sticker-info {
        flex-grow: 1;
        overflow: hidden;
    }

    .music-track-name {
        font-size: 11px;
        font-weight: 700;
        color: #262626;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .music-artist-name {
        font-size: 9px;
        color: #888888;
        margin-bottom: 2px;
    }

    .music-waves {
        display: flex;
        align-items: flex-end;
        gap: 2px;
        height: 8px;
    }

    .wave-bar {
        width: 2px;
        background: #e1306c;
        border-radius: 1px;
        animation: waveJumping 1s ease-in-out infinite;
    }

    .wave-bar:nth-child(1) { height: 4px; animation-delay: 0.1s; }
    .wave-bar:nth-child(2) { height: 7px; animation-delay: 0.3s; }
    .wave-bar:nth-child(3) { height: 5px; animation-delay: 0.2s; }
    .wave-bar:nth-child(4) { height: 8px; animation-delay: 0.4s; }

    @keyframes waveJumping {
        0%, 100% { height: 3px; }
        50% { height: 8px; }
    }

    .music-play-btn {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: none;
        background: #812927;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        cursor: pointer;
        flex-shrink: 0;
        transition: transform 0.2s;
    }

    .music-play-btn:hover {
        transform: scale(1.1);
    }

    .ig-share-pill {
        text-align: center;
        background: #fafafa;
        border: 1px dashed #dcdcdc;
        border-radius: 8px;
        padding: 6px;
        font-size: 9.5px;
        font-weight: 600;
        color: #666666;
        cursor: pointer;
        transition: all 0.2s;
    }

    .ig-share-pill:hover {
        background: #f0f0f0;
        color: #1a0503;
        border-color: #d4af37;
    }

    /* 2. DIRECT CARD (BÊN PHẢI: KHÁCH MỜI ONLINE / OFFLINE) */
    .ig-direct-card {
        max-height: calc(100vh - 48px);
        display: flex;
        flex-direction: column;
    }

    .ig-direct-icon {
        font-size: 16px;
    }

    .ig-direct-title {
        font-weight: 700;
        font-size: 13px;
        color: #262626;
    }

    .ig-live-counter {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #e8f8ed;
        color: #1b873f;
        font-size: 10px;
        font-weight: 700;
        padding: 3px 7px;
        border-radius: 12px;
    }

    .live-dot-pulse {
        width: 6px;
        height: 6px;
        background: #31a24c;
        border-radius: 50%;
        animation: onlinePulse 1.8s infinite;
    }

    .ig-filter-tabs {
        display: flex;
        gap: 5px;
        padding: 2px 0 8px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 8px;
    }

    .ig-tab-btn {
        background: #f5f5f5;
        border: none;
        border-radius: 12px;
        padding: 4px 8px;
        font-size: 10.5px;
        font-weight: 600;
        color: #666666;
        cursor: pointer;
        transition: all 0.2s;
    }

    .ig-tab-btn.is-active,
    .ig-tab-btn:hover {
        background: #262626;
        color: #ffffff;
    }

    .ig-guest-feed {
        flex-grow: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding-right: 3px;
        max-height: 380px;
    }

    .ig-guest-feed::-webkit-scrollbar {
        width: 4px;
    }

    .ig-guest-feed::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.4);
        border-radius: 4px;
    }

    .ig-guest-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #f0f0f0;
        transition: all 0.25s ease;
        cursor: pointer;
    }

    .ig-guest-item:hover,
    .ig-guest-item.is-expanded {
        background: #fdfaf7;
        border-color: rgba(212, 175, 55, 0.45);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        transform: translateX(2px);
    }

    .ig-guest-avatar-wrap {
        position: relative;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .ig-guest-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #f7ede8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 13px;
        color: #812927;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* ĐÈN ONLINE: SÁNG ĐÈN XANH LÁ (THAM GIA) */
    .status-dot {
        position: absolute;
        bottom: -1px;
        right: -1px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid #ffffff;
    }

    .status-dot.online {
        background: #31a24c;
        box-shadow: 0 0 6px #31a24c;
        animation: onlinePulse 2s infinite;
    }

    /* ĐÈN OFFLINE: TỐI ĐÈN XÁM (BẬN KHÔNG ĐẾN) */
    .status-dot.offline {
        background: #8a8d91;
        opacity: 0.75;
        box-shadow: none;
    }

    @keyframes onlinePulse {
        0% {
            box-shadow: 0 0 0 0 rgba(49, 162, 76, 0.7), 0 0 4px #31a24c;
        }
        70% {
            box-shadow: 0 0 0 5px rgba(49, 162, 76, 0), 0 0 4px #31a24c;
        }
        100% {
            box-shadow: 0 0 0 0 rgba(49, 162, 76, 0), 0 0 4px #31a24c;
        }
    }

    .ig-guest-content {
        flex-grow: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .ig-guest-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 6px;
    }

    .ig-guest-name {
        font-size: 12.5px;
        font-weight: 700;
        color: #1a0503;
        line-height: 1.3;
        word-break: break-word;
    }

    .ig-guest-time {
        font-size: 9.5px;
        color: #8e8e8e;
        flex-shrink: 0;
    }

    .ig-guest-note {
        font-size: 11px;
        color: #555555;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Hiển thị trọn vẹn tối đa 2 dòng trước khi ẩn */
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: all 0.25s ease;
        word-break: break-word;
    }

    /* Khi hover hoặc click thì mở rộng toàn bộ 100% nội dung lời chúc */
    .ig-guest-item:hover .ig-guest-note,
    .ig-guest-item.is-expanded .ig-guest-note {
        -webkit-line-clamp: unset;
        display: block;
        color: #1a0503;
    }

    .status-badge {
        display: inline-block;
        font-size: 8.5px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 4px;
        margin-right: 4px;
    }

    .status-badge.online {
        background: #e8f8ed;
        color: #1b873f;
    }

    .status-badge.offline {
        background: #f0f2f5;
        color: #65676b;
    }

    .ig-rsvp-cta-box {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .ig-rsvp-cta-btn {
        width: 100%;
        background: linear-gradient(135deg, #812927 0%, #5a1413 100%);
        color: #ffffff;
        border: 1px solid #d4af37;
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        box-shadow: 0 4px 12px rgba(129, 41, 39, 0.25);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .ig-rsvp-cta-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(129, 41, 39, 0.4);
    }
}
