.invitation-card {
    display: none;
    max-width: 490px;
    width: 95%;
    background: #071933;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 230, 255, 0.4);
    border: 1.5px solid #00f0ff;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 94vh;
    overflow-y: auto;
}

.invitation-card::-webkit-scrollbar { width: 5px; }
.invitation-card::-webkit-scrollbar-thumb { background: #00f0ff; border-radius: 4px; }
/* TẤM THIỆP THẬT TRƯỢT TỪ DƯỚI PHONG BÌ VÚT LÊN RỒI NỞ RỘNG TOÀN MÀN HÌNH */
.invitation-card.show {
    display: block;
    animation: cardSlideUpOut 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes cardSlideUpOut {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.7);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-15px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header Terminal */
.terminal-bar {
    background: #041021;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #133863;
    position: sticky;
    top: 0;
    z-index: 30;
}
.terminal-dots { display: flex; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { margin: 0 auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #7da5d0; transform: translateX(-15px); }

.close-btn {
    position: absolute;
    top: 6px;
    right: 12px;
    background: transparent;
    border: none;
    color: #ff6b6b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    z-index: 35;
}
.close-btn:hover { color: #fff; }

.card-inner {
    padding: 18px 16px 22px 16px;
    position: relative;
    background: 
        radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.12), transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(0, 119, 255, 0.15), transparent 45%),
        #061730;
}

.tag-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    margin-bottom: 10px;
}
.code-badge { color: #00f0ff; background: rgba(0, 240, 255, 0.12); padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(0, 240, 255, 0.3); }
.status-badge { color: #27c93f; font-size: 11px; }
.status-badge i { font-size: 8px; margin-right: 3px; }

.tag-happy-wrapper { display: flex; justify-content: center; margin-bottom: 12px; }
.tag-happy {
    background: linear-gradient(135deg, #184c8a, #0f315d);
    padding: 7px 28px;
    border-radius: 6px;
    transform: rotate(-1deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
    text-align: center;
    border: 1px dashed #00f0ff;
}
.script-happy { font-family: 'Dancing Script', cursive; font-size: 22px; color: #00f0ff; display: block; line-height: 1; }
.main-grad { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 3px; color: #ffffff; margin: 0; }

.scrap-note {
    background: #e6f4ff;
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 15;
}
.host-note {
    display: inline-block;
    margin-left: 8px;
    margin-bottom: -10px;
    transform: rotate(-2deg);
    background: #0f2e54;
    border: 1px solid #00f0ff;
    color: #fff;
}
.host-note .note-sub { color: #00f0ff; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; }
.host-note .note-name { color: #ffffff; }

.guest-note-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: -16px;
    margin-right: 8px;
    position: relative;
    z-index: 20;
}
.guest-note {
    background: #ffffff;
    transform: rotate(2deg);
    min-width: 140px;
    text-align: center;
    border-left: 4px solid #00f0ff;
}
.guest-note .note-sub { color: #082d62; font-size: 10.5px; }
.guest-note .note-name-guest { color: #051838; font-size: 22px; }

.handwritten { font-family: 'Dancing Script', cursive; font-size: 23px; font-weight: bold; line-height: 1.1; }
.sticker-chip { position: absolute; top: -10px; left: -8px; color: #00f0ff; font-size: 18px; filter: drop-shadow(0 0 5px #00f0ff); }
/* MŨ CỬ NHÂN: NỔI KHỐI NHẸ NHÀNG, THANH THOÁT, ĐỨNG IM */
.sticker-cap {
    position: absolute;
    top: -13px;
    left: -9px;
    font-size: 24px;
    transform: rotate(-10deg);
    animation: none;           /* Đứng im hoàn toàn */
    z-index: 25;

    /* Màu trắng bạc phớt nhẹ */
    background: linear-gradient(160deg, #ffffff 40%, #eef5fc 85%, #d0e0ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Đổ bóng nhẹ nhàng vừa đủ tách nền (không bị viền đen dày cộp) */
    filter: 
        drop-shadow(0 1px 1px rgba(10, 35, 65, 0.35))   /* Viền mỏng định hình khối */
        drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.18));   /* Bóng đổ nhẹ xuống mặt giấy */
}

/* Floating IT Emojis */
.floating-tech-item { position: absolute; color: #00f0ff; font-family: 'JetBrains Mono', monospace; font-weight: 700; pointer-events: none; text-shadow: 0 0 10px rgba(0, 240, 255, 0.7); }
.float-1 { top: 58%; left: 8px; font-size: 16px; }
.float-2 { top: 66%; left: 14px; font-size: 18px; }
.float-3 { top: 68%; right: 14px; font-size: 18px; color: #ffb703; }
.float-4 { top: 56%; right: 10px; font-size: 20px; }

/* Bảng thông tin HUD */
.details-section {
    display: flex;
    justify-content: space-between;
    background: rgba(4, 18, 38, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 10px;
    padding: 12px 10px;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', monospace;
}
/* Sửa lại class .detail-col để làm ô bấm toàn phần */
.detail-col { 
    flex: 1; 
    text-align: center; 
    text-decoration: none; /* Bỏ gạch chân mặc định của thẻ <a> */
    color: inherit;
    position: relative;
    padding: 6px 4px 16px 4px;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* Hiệu ứng khi rê chuột vào từng ô */
.detail-col.clickable:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
}

.detail-col.clickable:active {
    transform: translateY(0);
}

/* Huy hiệu icon nhỏ góc dưới cho khách biết bấm được */
.click-badge {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 8.5px;
    color: #00f0ff;
    background: rgba(3, 14, 30, 0.85);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    opacity: 0.8;
    transition: all 0.2s;
}

.detail-col.clickable:hover .click-badge {
    opacity: 1;
    background: #00f0ff;
    color: #030e1d;
    box-shadow: 0 0 8px #00f0ff;
}

.divider-line { width: 1.5px; background: #00f0ff; margin: 0 6px; opacity: 0.3; }
.col-title { font-size: 9.5px; font-weight: 700; color: #00f0ff; margin-bottom: 3px; }
.highlight-day { font-size: 13.5px; font-weight: 800; color: #ffffff; font-family: 'Montserrat', sans-serif; }
.date-time, .hour-time { font-size: 12px; font-weight: 600; color: #a0c9f7; }
.venue-name { font-size: 11.5px; font-weight: 700; color: #ffffff; line-height: 1.25; font-family: 'Be Vietnam Pro', sans-serif; }
.venue-addr { font-size: 10px; color: #79a6db; margin-top: 3px; line-height: 1.3; font-family: 'Be Vietnam Pro', sans-serif; }

/* Footer */
.card-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    font-family: 'JetBrains Mono', monospace;
}
.contact-item { color: #8ec3f8; text-decoration: none; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.contact-item i { color: #00f0ff; }
.contact-item:hover { color: #ffffff; text-shadow: 0 0 8px #00f0ff; }