/* --- CÀI ĐẶT CHUNG --- */
:root {
    --gold: #d4af37; 
    --red-velvet: #7f0000;
    --color-love: #ff69b4; 
    --color-breakup: #c0c0c0; 
    --color-passion: #ff3030;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Montserrat', sans-serif; 
    color: #fff; 
    /* Nền vũ trụ sạch và sâu */
    background: linear-gradient(to bottom, #0f1724 0%, #1a253a 40%, #050505 100%);
    overflow-x: hidden; 
}

/* --- OVERLAY THIỆP ĐỎ --- */
#welcome-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000 url('https://www.transparenttextures.com/patterns/cubes.png');
    z-index: 9999; display: flex; justify-content: center; align-items: flex-start;
    transition: all 1.2s ease; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 10px;
}

/* LAYER MẠCH ĐIỆN */
#circuit-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.circuit-path { fill: none; stroke: #ffd700; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; filter: drop-shadow(0 0 5px #ffd700); }
@keyframes flowCircuit { 0% { stroke-dashoffset: 1000; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -1000; opacity: 0; } }

/* TẤM THIỆP CHÍNH */
.invitation-card { width: 100%; max-width: 900px; padding: 60px 30px; margin: auto; background: linear-gradient(135deg, #8a0a0a 0%, #b91c1c 50%, #7f0000 100%); border-radius: 15px; border: 3px solid #b8860b; box-shadow: 0 30px 60px rgba(0,0,0,0.9); text-align: center; position: relative; overflow: hidden; flex-shrink: 0; }
.invitation-card::before { content: ''; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border: 2px solid transparent; border-image: linear-gradient(to bottom right, #bf953f, #fcf6ba, #bf953f) 1; pointer-events: none; z-index: 5; }
.card-content { position: relative; z-index: 10; }
.invitation-top { color: #e6b800; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; font-size: 1.1rem; font-weight: bold; }
.names-container { margin-bottom: 30px; }
.groom-name, .bride-name { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 700; line-height: 1.1; background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fcf6ba); -webkit-background-clip: text; color: transparent; text-shadow: 3px 3px 6px rgba(0,0,0,0.4); margin: 10px 0; }
.and-symbol { font-family: 'Dancing Script', cursive; font-size: 3rem; color: #fcf6ba; }
.wedding-date-gold { font-size: 1.8rem; color: #fcf6ba; font-weight: bold; margin-bottom: 40px; letter-spacing: 8px; }
.wax-seal-container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; position: relative; z-index: 20; margin-top: 10px; }
.wax-seal-btn { width: 110px; height: 110px; border-radius: 50%; border: none; background: radial-gradient(circle at 30% 30%, #e8c660, #bf953f, #8a6e2f); box-shadow: 0 5px 20px rgba(0,0,0,0.6); cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; animation: blink-seal 1.2s infinite alternate; }
.wax-seal-btn:hover { transform: scale(1.15); box-shadow: 0 0 50px #ffd700; }
@keyframes blink-seal { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 198, 96, 0.5); } 100% { transform: scale(1.05); box-shadow: 0 0 25px 10px rgba(232, 198, 96, 0.1); } }
.seal-inner { color: #581c0c; font-family: 'Playfair Display'; font-weight: bold; font-size: 1.2rem; }
.seal-inner i { display: block; font-size: 1.5rem; margin-bottom: 5px; color: #800000; }
.click-hint { margin-top: 15px; color: #e6b800; font-size: 1rem; font-style: italic; opacity: 0.8; }
.ornament { position: absolute; width: 40px; height: 40px; border: 3px solid #bf953f; z-index: 5; }
.top-left { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.bottom-right { bottom: 15px; right: 15px; border-left: none; border-top: none; }
#card-sparkles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.sparkle { position: absolute; width: 4px; height: 4px; background-color: #ffd700; border-radius: 50%; box-shadow: 0 0 5px #ffd700, 0 0 10px #fff; opacity: 0; animation: sparkleAnim linear infinite; }
@keyframes sparkleAnim { 0% { transform: translateY(0) scale(0); opacity: 0; } 50% { opacity: 1; transform: scale(1.2); } 100% { transform: translateY(-100px) scale(0); opacity: 0; } }

/* --- MAIN LAYOUT --- */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
#ui-container { position: relative; z-index: 2; min-height: 100vh; overflow: hidden; padding-bottom: 50px; }
#floating-wishes-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.hero { text-align: center; padding: 80px 20px; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pre-title { font-size: 1rem; letter-spacing: 5px; text-transform: uppercase; color: #ccc; margin-bottom: 20px; }
.main-names { font-family: 'Playfair Display'; font-size: 4.5rem; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(212,175,55,0.8), 2px 2px 0 #000, 4px 4px 10px rgba(0,0,0,0.8); line-height: 1.2; }
.heart-beat { color: #e91e63; animation: beat 1s infinite; display: inline-block; }
@keyframes beat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.2);} }
.divider-gold { width: 150px; height: 3px; background: var(--gold); margin: 30px auto; }
.big-date { font-size: 3rem; font-weight: 800; color: #ffd700; letter-spacing: 5px; border: 3px solid rgba(212,175,55,0.6); padding: 15px 40px; background: rgba(0,0,0,0.4); box-shadow: 0 0 20px rgba(212,175,55,0.3); text-shadow: 0 0 15px #ffd700; display: inline-block; }

/* COUNTDOWN TIMER STYLES */
#countdown-timer { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.cd-box { text-align: center; position: relative; min-width: 80px; }
.cd-box span { display: block; font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.cd-box p { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; }
.cd-box:not(:last-child)::after { content: ':'; position: absolute; right: -20px; top: 5px; font-size: 2.5rem; color: rgba(255, 255, 255, 0.3); font-family: 'Playfair Display', serif; }

.story-section { padding: 50px 20px; position: relative; }
.section-title { font-family: 'Dancing Script'; font-size: 3.5rem; color: var(--gold); text-align: center; margin-bottom: 10px; text-shadow: 0 0 10px rgba(212,175,55,0.3); }
.story-subtitle { text-align: center; font-style: italic; color: #ccc; margin-bottom: 60px; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background: linear-gradient(to bottom, var(--gold), var(--red-velvet)); top: 0; bottom: 50px; left: 50%; margin-left: -2px; box-shadow: 0 0 15px var(--gold); z-index: 1; }
.timeline-item { padding: 15px 40px; position: relative; width: 50%; box-sizing: border-box; z-index: 2; }
.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }
.content { padding: 25px; background: rgba(25, 30, 50, 0.8); border: 2px solid rgba(255,255,255,0.1); border-radius: 15px; backdrop-filter: blur(10px); transition: 0.3s; }
.content:hover { transform: scale(1.03); }
.content p { color: #eee; font-size: 1.1rem; line-height: 1.5; }
.year { font-family: 'Playfair Display'; font-size: 2rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.left .year { justify-content: flex-end; } .right .year { justify-content: flex-start; }
.timeline-item::after { content: ''; position: absolute; width: 22px; height: 22px; right: -11px; background: #0f0c29; border: 4px solid var(--gold); top: 30px; border-radius: 50%; z-index: 10; box-shadow: 0 0 10px var(--gold), inset 0 0 5px var(--gold); transition: all 0.3s; }
.right::after { left: -11px; }

/* STYLE THEO MÀU CẢM XÚC */
.timeline-item.love .content { border-color: var(--color-love); box-shadow: 0 5px 20px rgba(255, 105, 180, 0.2); }
.timeline-item.love .year { color: var(--color-love); text-shadow: 0 0 10px var(--color-love); }
.timeline-item.love::after { border-color: var(--color-love); box-shadow: 0 0 15px var(--color-love); }
.timeline-item.breakup .content { border-color: var(--color-breakup); background: rgba(50, 50, 50, 0.8); }
.timeline-item.breakup .year { color: var(--color-breakup); text-shadow: 0 0 10px var(--color-breakup); }
.timeline-item.breakup .content p { color: #ccc; font-style: italic; }
.timeline-item.breakup::after { border-color: var(--color-breakup); background: #333; box-shadow: 0 0 5px var(--color-breakup); }
.timeline-item.passion .content { border-color: var(--color-passion); box-shadow: 0 5px 25px rgba(255, 48, 48, 0.3); }
.timeline-item.passion .year { color: var(--color-passion); text-shadow: 0 0 15px var(--color-passion); }
.timeline-item.passion::after { border-color: var(--color-passion); box-shadow: 0 0 20px var(--color-passion); }

.center-wedding { width: 100%; text-align: center; left: 0; padding-top: 80px; position: relative; z-index: 20; }
.wedding-box { display: inline-block; background: linear-gradient(45deg, var(--gold), #fff, var(--red-velvet)); padding: 25px 70px; border-radius: 60px; color: #000; box-shadow: 0 0 60px rgba(212, 175, 55, 0.8); animation: pulseWedding 2s infinite; position: relative; border: 4px solid #fff; }
.year-wedding { font-size: 2.8rem; font-weight: 900; color: #b00; margin: 0; line-height: 1; text-shadow: 2px 2px 0px #fff; }
.wedding-box p { font-weight: bold; font-size: 1.2rem; margin-top: 10px; letter-spacing: 2px; }
@keyframes pulseWedding { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* --- EVENTS SECTION VỚI VƯƠNG MIỆN 3D --- */
.events-container { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 70px; }
.event-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 60px 40px 40px; /* Tăng padding top để nhường chỗ cho vương miện */
    border-radius: 20px; 
    text-align: center; 
    min-width: 300px; 
    flex: 1; 
    max-width: 450px; 
    backdrop-filter: blur(10px); 
    transition: 0.3s;
    position: relative; /* Quan trọng để định vị vương miện */
    overflow: visible;  /* Quan trọng để vương miện lồi ra ngoài */
    margin-top: 40px;   /* Tạo khoảng trống phía trên */
}

/* Hiệu ứng 3D cho thẻ sự kiện khi hover */
.event-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--gold); 
    box-shadow: 0 20px 50px rgba(212,175,55,0.2); 
}

/* Style riêng cho từng thẻ sự kiện */
.queen-card {
    background: linear-gradient(160deg, rgba(120, 60, 80, 0.4) 0%, rgba(40, 20, 30, 0.6) 100%);
    border: 1px solid rgba(255, 105, 180, 0.3);
}
.king-card {
    background: linear-gradient(160deg, rgba(80, 0, 0, 0.4) 0%, rgba(30, 0, 0, 0.6) 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
}

/* STYLE VƯƠNG MIỆN 3D */
.royal-crown {
    position: absolute;
    top: -50px; /* Đẩy hẳn lên trên */
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    color: #580000;
    
    /* Hiệu ứng 3D đổ bóng và viền sáng */
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.5), /* Bóng đổ sâu */
        inset 0 5px 10px rgba(255,255,255,0.5), /* Highlight bề mặt */
        0 0 0 4px rgba(255,255,255,0.1); /* Viền mờ ngoài cùng */
    
    border: 3px solid #fff;
    z-index: 10;
    animation: floatCrown 3s ease-in-out infinite;
}

/* Animation cho vương miện bay nhẹ */
@keyframes floatCrown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* Chỉnh icon bên trong vương miện */
.king-crown-icon i { transform: translateY(-3px); text-shadow: 0 2px 2px rgba(0,0,0,0.3); }
.queen-crown-icon i { font-size: 2.4rem; transform: translateY(-1px); text-shadow: 0 2px 2px rgba(0,0,0,0.3); }

/* --- CÁC PHẦN CÒN LẠI GIỮ NGUYÊN --- */
.event-title { font-family: 'Playfair Display'; font-size: 2.2rem; color: var(--gold); margin-bottom: 10px; }
.event-icon i { font-size: 3rem; color: #fff; margin: 15px 0; }
.time { font-size: 2rem; font-weight: bold; margin: 10px 0; }
.loc { font-size: 1.1rem; font-weight: 600; }
.loc-sub { color: #ccc; margin-bottom: 20px; }
.map-btn { padding: 10px 25px; background: transparent; border: 1px solid var(--gold); color: var(--gold); border-radius: 30px; cursor: pointer; transition: 0.3s; }
.map-btn:hover { background: var(--gold); color: #000; }

.wishes-section { max-width: 600px; margin: 80px auto; text-align: center; }
.wish-box { background: rgba(0,0,0,0.5); padding: 30px; border-radius: 15px; border: 1px solid var(--gold); display: flex; flex-direction: column; gap: 15px; }
.wish-box input, .wish-box textarea { padding: 15px; background: rgba(255,255,255,0.1); border: none; color: white; outline: none; border-radius: 5px; font-family: inherit; }
#send-wish-btn { padding: 15px; background: var(--gold); border: none; font-weight: bold; cursor: pointer; }
.floating-wish { position: absolute; background: rgba(255,255,255,0.15); padding: 10px 20px; border-radius: 20px; color: #fff; white-space: nowrap; animation: floatMove linear forwards; backdrop-filter: blur(3px); }
.floating-wish strong { color: #ffd700; }
@keyframes floatMove { 0% {transform: translateX(100vw);} 100% {transform: translateX(-100%); opacity: 0;} }
footer { text-align: center; margin-top: 50px; color: #666; font-size: 0.8rem; }

/* === STYLE HỘP QUÀ & QR MODAL === */
.gift-section { padding: 60px 20px; text-align: center; margin-top: 50px; }
.gift-box-container { display: inline-block; cursor: pointer; position: relative; margin-top: 30px; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-20px);} 60% {transform: translateY(-10px);} }
.gift-box { font-size: 5rem; color: #e91e63; text-shadow: 0 0 30px rgba(233, 30, 99, 0.6); transition: transform 0.3s; }
.gift-box:hover { transform: scale(1.1); }
.click-hint-gift { margin-top: 10px; font-size: 0.9rem; color: var(--gold); font-style: italic; }

.modal-hidden { display: none; }
#qr-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 99999;
    display: none; 
    justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
}
.qr-content {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 40px; border-radius: 20px; text-align: center;
    max-width: 400px; width: 90%;
    box-shadow: 0 0 50px rgba(212,175,55,0.5);
    border: 3px solid var(--gold); position: relative;
    animation: zoomIn 0.5s ease;
}
@keyframes zoomIn { from {transform: scale(0);} to {transform: scale(1);} }
.close-qr { position: absolute; top: 10px; right: 20px; font-size: 2rem; color: #333; cursor: pointer; transition: 0.3s; }
.close-qr:hover { color: red; transform: rotate(90deg); }
.qr-title { font-family: 'Playfair Display'; color: #b00; font-size: 1.8rem; margin-bottom: 20px; }
.qr-image-wrapper { padding: 10px; border: 2px dashed var(--gold); border-radius: 10px; background: #fff; margin-bottom: 20px; }
#wedding-qr { width: 100%; height: auto; border-radius: 5px; }
.qr-note { color: #555; font-style: italic; font-size: 0.9rem; }

/* === PRO UPGRADE (MOUSE & SCROLL) === */
/* Đã Fix lỗi mất chuột bằng cách vô hiệu hóa dòng dưới */
/* @media (min-width: 992px) { body, a, button, input, textarea { cursor: none !important; } } */

#magic-cursor { position: fixed; top: 0; left: 0; width: 8px; height: 8px; background: #fff; border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); box-shadow: 0 0 10px #fff; mix-blend-mode: difference; transition: width 0.3s, height 0.3s, background 0.3s; }
#magic-cursor-follower { position: fixed; top: 0; left: 0; width: 40px; height: 40px; border: 1px solid rgba(212, 175, 55, 0.5); border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%, -50%); transition: transform 0.15s ease-out, background 0.3s; }
body.hovering #magic-cursor { width: 0; height: 0; }
body.hovering #magic-cursor-follower { transform: translate(-50%, -50%) scale(1.8); background: rgba(212, 175, 55, 0.1); border-color: #ffd700; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .invitation-card { width: 100%; max-width: none; padding: 40px 15px; margin: 20px 0; }
    .groom-name, .bride-name { font-size: 3rem; }
    .and-symbol { font-size: 2rem; margin: 0; }
    .wax-seal-btn { width: 90px; height: 90px; }
    .wedding-date-gold { font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 30px; }
    .invitation-top { font-size: 0.9rem; letter-spacing: 2px; }
    .timeline::after { left: 20px; }
    .left, .right { left: 0 !important; }
    .timeline-item { width: 100%; padding-left: 55px; padding-right: 10px; text-align: left; }
    .timeline-item::after { left: 9px; }
    .left::after, .right::after { left: 9px; }
    .left .year, .right .year { justify-content: flex-start; }
    .year { font-size: 1.6rem; }
    .content { padding: 20px; }
    .center-wedding { padding-top: 50px; }
    .wedding-box { width: 100%; padding: 20px; border-radius: 30px; }
    .year-wedding { font-size: 2.2rem; }
    .events-container { flex-direction: column; gap: 60px; } /* Tăng khoảng cách mobile để vương miện không đè nhau */
    .event-card { min-width: auto; width: 100%; margin-top: 40px; }
    .section-title { font-size: 2.5rem; }
    .hero { min-height: 60vh; }
    .main-names { font-size: 3rem; }
    .big-date { font-size: 1.8rem; padding: 10px 30px; }
    
    /* Responsive cho Countdown */
    #countdown-timer { gap: 15px; }
    .cd-box { min-width: 60px; }
    .cd-box span { font-size: 2rem; }
    .cd-box p { font-size: 0.7rem; letter-spacing: 1px; }
    .cd-box:not(:last-child)::after { right: -12px; top: 0; font-size: 1.8rem; }
}

/* --- STYLE MỚI CHO LỄ TÂN HÔN (BLINK & GRADIENT) --- */
.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; /* Chữ to */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    
    /* Gradient Vàng Kim */
    background: linear-gradient(to right, #cfc09f, #ffecb3, #ffd700, #ffecb3, #cfc09f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Đổ bóng phát sáng */
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

/* Hiệu ứng Blink Blink */
.blink-text {
    animation: blinkGold 2s infinite alternate;
}

@keyframes blinkGold {
    0% { filter: brightness(100%) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3)); }
    100% { filter: brightness(140%) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
}

/* Thông tin chi tiết trong thiệp */
.wedding-info-gold {
    margin: 20px 0;
    color: #fcf6ba;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.big-time {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.full-date {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e6b800;
}

.divider-small {
    width: 50px;
    height: 2px;
    background: #e6b800;
    margin: 15px auto;
}

.venue-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

/* Căn giữa thẻ sự kiện khi chỉ còn 1 thẻ */
.events-container {
    justify-content: center; /* Căn giữa */
}

/* ==========================================================================
   SIÊU PHẨM THẺ BÀI "BLINK BLINK" VŨ TRỤ HOÀNG GIA (THAY THẾ THẺ NÂU CŨ)
   ========================================================================== */

/* 1. Cấu trúc thẻ chính - Biến thành kính vũ trụ trong suốt */
.single-event {
    max-width: 650px; /* To hơn một chút cho hoành tráng */
    width: 90%;
    margin: 60px auto; /* Tăng khoảng cách trên dưới */
    position: relative;
    overflow: hidden; /* Quan trọng để chứa các hiệu ứng ánh sáng bên trong */
    
    /* Nền kính vũ trụ tối, sâu thẳm nhưng trong suốt */
    background: rgba(20, 0, 30, 0.4); 
    
    /* Hiệu ứng kính mờ cực mạnh làm nền phía sau ảo diệu hơn */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    
    border-radius: 30px; /* Bo tròn mềm mại hơn */
    
    /* Viền phát sáng vàng kim thay đổi màu nhẹ */
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(20, 0, 30, 0.4), rgba(20, 0, 30, 0.4)), 
                      linear-gradient(135deg, #ffd700, #ffecb3, #b8860b, #ffd700);
    background-origin: border-box;
    background-clip: content-box, border-box;
    
    /* Đổ bóng đa tầng tạo chiều sâu 3D và hào quang */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8), /* Bóng tối tạo độ nổi */
        0 0 30px rgba(255, 215, 0, 0.3), /* Hào quang vàng nhẹ */
        inset 0 0 60px rgba(255, 215, 0, 0.1); /* Ánh sáng nội tại */
        
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: cardFloat 4s ease-in-out infinite alternate; /* Thẻ tự bay nhẹ */
}

@keyframes cardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* 2. LỚP "BLINK BLINK" (LẤP LÁNH) CHUYỂN ĐỘNG */
/* Tạo ra một lớp phủ chứa các hạt bụi vàng lấp lánh di chuyển */
.single-event::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        radial-gradient(circle, #ffd700 1px, transparent 1px),
        radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.3;
    z-index: -1; /* Nằm sau nội dung chữ */
    animation: cosmicGlitter Move 60s linear infinite, cosmicGlitterFade 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes cosmicGlitterMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -100px) rotate(10deg); }
}

@keyframes cosmicGlitterFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; filter: brightness(150%); }
}

/* 3. LỚP ÁNH SÁNG QUÉT (SCAN LIGHT EFFECT) */
/* Tạo một luồng sáng vàng quét qua thẻ liên tục */
.single-event::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 236, 179, 0.1) 20%,
        rgba(255, 215, 0, 0.6) 50%, /* Điểm sáng nhất */
        rgba(255, 236, 179, 0.1) 80%,
        transparent 100%
    );
    transform: skewX(-25deg);
    z-index: 0;
    pointer-events: none;
    animation: lightSweep 5s ease-in-out infinite;
}

@keyframes lightSweep {
    0%, 30% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    70%, 100% { left: 200%; opacity: 0; }
}

/* 4. Nâng cấp hiệu ứng Hover (Di chuột vào) */
.single-event:hover {
    transform: translateY(-20px) scale(1.02) !important; /* Bay cao hơn và phóng to nhẹ */
    /* Tăng cường độ sáng của viền và hào quang khi hover */
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(255, 215, 0, 0.6), /* Hào quang mạnh hơn */
        inset 0 0 100px rgba(255, 215, 0, 0.3),
        0 0 15px #fff; /* Viền sáng trắng chói lọi */
    border-color: rgba(255, 255, 255, 0.8); /* Viền chuyển sang trắng sáng */
}

/* 5. Tinh chỉnh nội dung bên trong cho sang trọng hơn */
.single-event .event-title {
    font-size: 3.8rem; /* Chữ to hơn nữa */
    margin-top: 30px;
    margin-bottom: 20px;
    /* Áp dụng lại hiệu ứng chữ vàng gradient lấp lánh */
    background: linear-gradient(to right, #cfc09f, #ffecb3, #ffd700, #ffecb3, #cfc09f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    animation: blinkGold 3s infinite alternate; /* Chữ cũng tự lấp lánh */
    position: relative; z-index: 2;
}

.single-event .time {
    font-size: 2.5rem;
    color: #fff; /* Màu trắng cho nổi trên nền tối */
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700; /* Phát sáng vàng */
    position: relative; z-index: 2;
}

.single-event .loc, 
.single-event .loc-sub {
    position: relative; z-index: 2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* Icon vương miện bay cao hơn và sáng hơn */
.single-event .royal-crown {
    top: -60px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.6),
        inset 0 5px 10px rgba(255,255,255,0.8),
        0 0 20px rgba(255, 215, 0, 0.8); /* Hào quang quanh vương miện */
}