/* ==========================================================================
   RESET & PHONG CÁCH NỀN SÁNG CHUYỂN XANH DƯƠNG NHẸ
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;

    /* 1. Gọi ảnh nền của bạn vào đây (Nhớ sửa lại đường dẫn file cho đúng) */
    background-image: url('images/background/bg-main.png');
    
    /* 2. Giữ ảnh cố định khi cuộn chuột, tạo chiều sâu cực sang */
    background-attachment: fixed;
    
    /* 3. Căn ảnh ra giữa trung tâm */
    background-position: center center;
    
    /* 4. Không cho ảnh lặp đi lặp lại */
    background-repeat: no-repeat;
    
    /* 5. Phủ kín ảnh tràn toàn bộ màn hình của mọi thiết bị */
    background-size: cover;
    
    position: relative;
}

/* Thêm một lớp layer nhẹ để giả lập các vệt sáng vàng chéo sang trọng của ảnh mẫu */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255, 235, 214, 0.6) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(255, 218, 185, 0.4) 0%, transparent 50%);
    pointer-events: none; /* Không làm ảnh hưởng đến việc click chuột trên trang */
    z-index: -1;
}

.main-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative; /* Giữ relative để nút Trở lại vẫn nằm góc trên cùng bên trái */
}

/* ==========================================================================
   CẬP NHẬT HEADER: BỎ NỀN CAM - CHỮ 3D MÀU CAM THƯƠNG HIỆU
   ========================================================================== */
header {
    background: transparent !important;
    padding: 10px 20px 10px 20px; /* Giảm từ 40px xuống còn 10px để đẩy sát lên trên */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Thu nhỏ khoảng cách giữa logo, chữ và thanh tin tức */
    border-bottom: none !important;
}
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 75px; /* Tăng nhẹ kích thước logo cho cân xứng */
    object-fit: contain;
    /* Tạo hiệu ứng đổ bóng nhẹ dưới chân logo */
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.08)); 
}

/* ĐỊNH DẠNG TITLE CHỮ 3D CỰC KỲ NỔI BẬT */
.sub-title {
    margin: 5px 0 0 0;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Nunito', 'Quicksand', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Màu cam Gradient mượt mà từ trên xuống */
    background: linear-gradient(180deg, #ff8c06 0%, #e65c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Đổ bóng 3D mịn màng tinh tế, tạo độ nổi nhẹ tự nhiên thay vì đổ khối thô cứng */
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.12))
            drop-shadow(0px 4px 8px rgba(230, 92, 0, 0.15));
            
    padding-bottom: 5px;
    display: inline-block;
}


/* ==========================================================================
   THIẾT KẾ THANH THÔNG BÁO TIN MỚI NHẤT (TONE CAM NHẸ DỊU, SANG TRỌNG)
   ========================================================================== */
.announcement-bar {
    display: flex;
    align-items: center;
    
    /* MÀU NỀN MỚI: Tông cam đất/cam sữa đậm đặc, giảm độ trong suốt để tách hẳn khỏi background */
    background: rgba(255, 230, 204, 0.98); 
    
    /* Viền cam đậm nét hơn để định hình khung chắc chắn */
    border: 1.5px solid #ffb380; 
    
    border-radius: 30px;                
    padding: 6px 12px 6px 16px;
    width: 100%;
    max-width: 950px;                   
    margin: 15px auto 0 auto;           
    
    /* Tăng cường độ đổ bóng để tạo hiệu ứng nổi hẳn lên trên bề mặt nền lưới */
    box-shadow: 0 6px 20px rgba(230, 92, 0, 0.15);
    box-sizing: border-box;
    overflow: hidden;
}

/* Định dạng Icon Loa Phóng Thanh màu cam đất ấm áp */
.announcement-icon {
    color: #e65c00;
    font-size: 16px;
    margin-right: 8px;
    animation: pulse-speaker 2s infinite alternate; 
    flex-shrink: 0;
}

/* Chữ "Tin mới nhất:" chuyển sang màu nâu cam đậm cho dễ đọc */
.announcement-label {
    color: #4a280d;
    font-size: 13.5px;
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Khung chứa hiệu ứng chạy chữ */
.announcement-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
}

/* Khối nội dung chữ di chuyển */
.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    gap: 40px; 
    position: absolute;
    padding-left: 100%; 
    animation: marquee-speed 25s linear infinite;
}

/* Màu chữ của các tin tức thông thường (màu chữ tối để nổi trên nền sáng) */
.ticker-content span {
    color: #665241;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Đổi riêng màu cho 2 link ẩn U888.CC và U888.ID tối lại, không bị chói */
.ticker-link {
    color: #3d200a !important; /* Hoặc đổi thành #ffaa00 tùy thuộc vào màu bạn muốn ưu tiên */
    text-decoration: none;  
    font-weight: 700;       
    transition: color 0.2s ease;
}

.ticker-link:hover {
    color: #ff6b00 !important;   
    text-decoration: underline; 
}


.announcement-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* ==========================================================================
   HIỆU ỨNG ANIMATION HỖ TRỢ
   ========================================================================== */
/* Hiệu ứng chữ chạy liên tục mượt mà từ phải qua trái */
@keyframes marquee-speed {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
/* Hiệu ứng rung nhẹ nhẹ cho icon cái loa thêm sinh động */
@keyframes pulse-speaker {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(-3deg); }
    100% { transform: scale(1) rotate(3deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .announcement-bar { max-width: 95%; padding: 6px 10px; }
    .announcement-label { margin-right: 8px; font-size: 12px; }
    .ticker-content span { font-size: 11.5px; }
}
/* ==========================================================================
   BỐ CỤC CHIA LÀM 2 BÊN RÕ RÀNG TRÊN 1 DÒNG NẰM NGANG
   ========================================================================== */
.page-body {
    display: flex;
    padding: 5px 30px 30px 30px; 
    justify-content: center; 
    gap: 30px;          
    flex: 1;
    
    /* CHỈNH DÒNG NÀY: Đổi từ center thành stretch */
    align-items: stretch; 
    
    max-width: 1350px;   
    margin: 0 auto;     
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   CSS TÁI THIẾT KẾ CỘT TRÁI
   ========================================================================== */

/* Khung container bao bọc toàn bộ cột trái */
.left-banner-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;      
    justify-content: center;   
    gap: 12px; 
    box-sizing: border-box;
    padding: 10px; 
    
    /* Đổi từ 100% thành auto để tránh bị ép chiều cao vô lý */
    height: auto; 
}

/* Đưa nút Trở lại lên góc trên cùng bên trái độc lập */
.btn-back {
    position: absolute;
    top: 30px;  /* Khoảng cách từ đỉnh trang xuống */
    left: 40px; /* Khoảng cách từ mép trái màn hình vào */
    z-index: 99;
    
    text-decoration: none;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid #ffe8d6;
    font-size: 12px;
    font-weight: 600;
    color: #ff6b00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    transition: all 0.2s ease;
}

.btn-back:hover {
    border-color: #ff6b00;
    background-color: #fffaf5;
    transform: scale(1.03);
}

/* KHỐI CHỮ "HỖ TRỢ 24/7" ĐỀU NHAU, SANG TRỌNG & CÂN BẰNG */
.support-title-box {
    width: 100%;
    text-align: center;
    margin-bottom: 0px;        /* Triệt tiêu hoàn toàn margin thừa */
    padding: 0;
    z-index: 5;
}

.sup-main {
    font-size: 34px; 
    font-weight: 850;
    color: #ff6b00; 
    line-height: 1.1;          /* Thu hẹp khoảng cách dòng của chữ */
    margin: 4px 0;
    font-family: 'Nunito', 'Quicksand', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px #ffffff;
}

.sup-desc {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    letter-spacing: 0.2px;
}


/* KHÔNG GIAN DÀNH CHO ẢNH ĐẠI SỨ */
.brand-ambassador-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Đổi từ 360px thành auto và giới hạn lại một chút */
    max-height: 300px; 
    height: auto; /* Thay đổi ở đây */
    margin: 0;                 
}

/* THU NHỎ HÌNH ẢNH */
.ambassador-img {
    height: auto; /* Đổi từ 100% sang auto để ảnh không bị kéo giãn */
    max-height: 280px; /* Khống chế chiều cao thực tế của cặp điện thoại */
    width: auto;               
    object-fit: contain;
    display: block;
}

/* THANH THÔNG BÁO DƯỚI CHÂN (BỆ ĐỠ KHỐI) */
.support-footer-bar {
    width: 100%;
    background: linear-gradient(135deg, #102a54 0%, #1e3d73 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 15px; /* Thu nhỏ padding nhẹ để text hiển thị ôm khít */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(30, 61, 115, 0.15);
    margin-top: auto; /* Ép neo chặt ở dưới đáy */
}

/* Đường line phân cách dọc tinh tế bên trong thanh màu xanh */
.footer-bar-logo {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
    display: flex;
    align-items: center;
}

.bar-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.footer-bar-text {
    display: flex;
    flex-direction: column;
}

.bar-title {
    color: #ff9f43; /* Chữ cam sáng nổi bần bật */
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.bar-subtitle {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
}

/* Icon sao trang trí bên phải thanh */
.bar-stars-decor {
    margin-left: auto;
    display: flex;
    gap: 3px;
    color: #ffbc00;
    font-size: 10px;
    opacity: 0.8;
}

/* ==========================================================================
   THIẾT KẾ KHỐI NÚT TẢI APP CAO CẤP (ANDROID & IOS)
   ========================================================================== */
.download-app-container {
    width: 100%;
    text-align: center;
    padding: 0px 10px;         
    margin: 0;
    box-sizing: border-box;
}

.download-title {
    font-size: 13px;
    font-weight: 700;
    
    /* THAY ĐỔI: Đổi sang màu nâu đậm chuẩn tone chữ "TẢI APP" */
    color: #4a280d; 
    
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px; /* Tăng nhẹ khoảng cách giữa 2 nút cho thoáng */
}

/* Kiểu dáng chung nút tải dạng Store */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* MÀU NỀN MỚI: Tông màu cam sữa đậm, tươi tắn và nổi bật rõ ràng trên nền sáng */
    background-color: #fff0e0; 
    color: #4a280d; 
    
    text-decoration: none;
    
    /* KÍCH THƯỚC MỚI: Tăng padding từ 10px lên 13px giúp nút lớn hơn, mập mạp hơn */
    padding: 13px 18px;      
    border-radius: 14px; /* Bo góc rộng hơn một chút cho hợp kích thước mới */
    
    /* Viền màu cam định hình khung rõ nét */
    border: 1px solid #ffd0b3; 
    
    /* Đổ bóng nhẹ nhàng giúp nút có độ nổi khối mượt mà */
    box-shadow: 0 4px 12px rgba(230, 107, 0, 0.12); 
    
    /* Tăng độ rộng tối đa để chứa chữ thoải mái không bị gò bó */
    width: 48%; 
    max-width: 175px; 
    
    transition: all 0.25s ease;
    box-sizing: border-box;
}
/* Hiệu ứng khi di chuột vào */
.btn-download:hover {
    background-color: #ffe5cc;
    border-color: #ffb88c;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(230, 107, 0, 0.18);
}

/* ĐỊNH DẠNG ICON ẢNH */
.app-custom-icon {
    width: 25px;         
    height: 25px;       
    object-fit: contain;
    margin-right: 10px;  
    flex-shrink: 0;
}

/* Định dạng SVG Icon */
.btn-download svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* KHỐI CHỮ BÊN TRONG NÚT */
.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Căn lề trái cho cụm chữ trông chuyên nghiệp như các kho ứng dụng */
    text-align: left;  
    line-height: 1.2;    
}

.btn-text span {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #8c7360; /* Màu chữ phụ tiệp màu với tone cam đất */
    margin-bottom: 1px;
}

.btn-download:hover .btn-text span {
    color: #ffffff; /* Chuyển chữ nhỏ sang trắng khi hover */
}

.btn-text strong {
    font-size: 14px;
    font-weight: 700; /* Độ đậm tiêu chuẩn tạo sự thanh thoát, không bị thô cứng */
    white-space: nowrap; 
    color: #4a280d; /* Màu chữ nâu đậm quý phái, rất rõ ràng trên nền cam sữa */
}


/* --- CỘT BÊN PHẢI (CARD LỚN CHỨA MENU CHỨC NĂNG) --- */
.right-menu-area {
    /* Khóa chặt kích thước cố định ở 650px, không cho phép phình to hay thu nhỏ */
    flex: 0 0 650px !important;      
    width: 650px !important;
    max-width: 650px !important;
    /* margin-left: auto;   */
}
.u888-main-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(30, 61, 115, 0.1);
    overflow: hidden;
    border: 1px solid #e1ecf7;
}

/* THANH TABS HÌNH HỘP TRẮNG/XANH ĐẬM */
.tabs-container {
    display: flex;
    background: #f7f9fc;
    padding: 10px;
    gap: 10px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    font-weight: bold;
    color: #4a5568;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.tab-item.active {
    background: #1e3d73; /* Màu xanh Navy đậm cực chuẩn theo ảnh */
    color: #ffffff;
}

.card-body {
    padding: 15px 20px; 
    display: flex;
    flex-direction: column;
    gap: 12px; /* Giảm khoảng cách dọc giữa các khối lớn từ 20px xuống 12px */
}

/* LƯỚI 6 NÚT CHỨC NĂNG CHÍNH (1 HÀNG CHIA ĐÔI 2 NÚT) */
.tab-content {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tab-content.active {
    display: grid;
}

/* ==========================================================================
   CĂN GIỮA NÚT CHỨC NĂNG - DÙNG 100% ICON ẢNH SẴN CÓ
   ========================================================================== */
/* NÚT BẤM ĐỔ BÓNG CAM CAM NHẠT PHÍA DƯỚI RẤT ĐẸP */
.card-btn {
    display: flex;
    flex-direction: column;  /* Giữ xếp dọc Icon ở trên, chữ ở dưới */
    align-items: center;     /* Căn giữa trục ngang */
    justify-content: center; /* Căn giữa trục dọc */
    gap: 4px;                /* Thu hẹp khoảng cách giữa icon và chữ */
    
    /* Hạ padding xuống thấp để nút ôm sát nội dung, trả lại kích thước nhỏ gọn như ban đầu */
    padding: 8px 10px;      
    
    background: linear-gradient(180deg, #ffffff 0%, #fff2e6 100%);
    border: 1px solid #ffe3cc;
    border-radius: 10px;     /* Bo góc nhỏ lại cho hợp dáng nút gọn */
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.03);
    transition: all 0.2s ease;
    box-sizing: border-box;
    
    /* Khống chế chiều cao tối đa của nút để không bị phồng lớn */
    min-height: 75px;       
}

/* Hiệu ứng di chuột nhẹ nhàng */
.card-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 5px 10px rgba(230, 126, 34, 0.1);
    border-color: #e67e22;
}

.btn-left-part {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ĐỊNH DẠNG SIZE ICON CỦA BẠN (79x79px tương đương tỉ lệ hiển thị ~36px trong web) */
.card-custom-icon {
    width: 36px;             /* Kích thước vừa vặn giúp nút không bị đẩy to ra */
    height: 36px;
    object-fit: contain;     /* Giữ nguyên tỉ lệ hình ảnh gốc 79x79 của bạn, không lo bị méo */
    flex-shrink: 0;
}

/* NỘI DUNG CHỮ TRÊN NÚT: IN ĐẬM VÀ CĂN GIỮA */
.btn-main-text {
    font-size: 12px;       /* Hạ nhẹ 0.5px để chữ nằm gọn gàng, cân xứng với nút nhỏ */
    font-weight: 800;        /* Giữ nguyên in đậm rõ nét */
    color: #2d3748;
    text-align: center;
    letter-spacing: 0.2px;
    line-height: 1.2;
}


/* ==========================================================================
   SỬA LỖI ICON BỊ LỆCH: CĂN GIỮA TUYỆT ĐỐI KHUNG TRÒN CAM
   ========================================================================== */
.icon-circle {
    width: 34px;
    height: 34px;
    background: #e67e22;
    color: #ffffff;
    border-radius: 50%;
    
    /* Bộ ba thuộc tính bắt buộc giúp ép icon vào chính giữa tâm đường tròn */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    
    font-size: 14px;
    line-height: 1; /* Khử hoàn toàn khoảng cách dòng mặc định của font chữ */
    flex-shrink: 0; /* Giữ ô tròn không bị méo khi co giãn màn hình */
}

/* Đảm bảo thẻ i (icon thực tế) không mang margin/padding lạ làm lệch tâm */
.icon-circle i, 
.icon-circle::before { /* Thêm :: vào trước before */
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
}

.arrow-right {
    color: #a0aec0;
    font-size: 12px;
}

/* KHU VỰC LIÊN HỆ DÀN HÀNG NGANG (HÌNH VUÔNG TRÒN BIỂU TƯỢNG) */
.border-top-dashed {
    border-top: 1px dashed #cbd5e0;
    padding-top: 20px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.contact-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.contact-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 5px;
}

.c-label {
    font-size: 11px;
    color: #718096;
    margin-bottom: 2px;
}

.c-value {
    font-size: 12px;
    font-weight: 700;
    color: #1e3d73;
}

/* ==========================================================================
   CSS CẤU TRÚC LIÊN HỆ: SỬ DỤNG ICON HÌNH ẢNH (IMG)
   ========================================================================== */
.contact-info-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 5px;
}

.contact-card-item {
    flex: 1;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 8px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Khung bọc ngoài icon ảnh để căn giữa */
.contact-icon-wrapper {
    width: 35px;      /* Chiều rộng khu vực chứa icon */
    height: 35px;     /* Chiều cao khu vực chứa icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* Định dạng riêng cho thẻ ảnh icon */
.contact-custom-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Giữ nguyên tỷ lệ ảnh, không lo bị méo hay kéo giãn */
    display: block;
}

.contact-label {
    font-size: 11px;
    color: #718096;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 13px;
    font-weight: 700;
    color: #1e3d73;
    word-break: break-word; /* Tránh tràn chữ trên màn hình nhỏ */
}

/* Responsive mượt mà trên Mobile */
@media (max-width: 600px) {
    .contact-info-container {
        flex-direction: column; /* Xếp dọc 3 ô liên hệ khi xem trên điện thoại */
        gap: 10px;
    }
}

/* WIDGET GRID DƯỚI CÙNG (CHIA ĐÔI NGANG BẰNG NHAU) */
.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px dashed #cbd5e0;
    padding-top: 20px;
}

.widget-box {
    padding: 15px;
    background-color: #f7fafc; /* Hoặc màu nền xám hiện tại của bạn */
    border-radius: 12px;
}

.links-container {
    display: flex;
    justify-content: space-between; /* Giản đều khoảng cách */
    gap: 10px;                     /* Khoảng cách cố định giữa các nút */
    width: 100%;                   /* Ép full 100% chiều ngang khung xám */
    box-sizing: border-box;
}

.widget-title {
    font-size: 12px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vertical-bar {
    width: 3px;
    height: 12px;
    background: #1e3d73;
    display: inline-block;
}

/* Khung ô tìm kiếm an toàn */
.search-link-bar {
    display: flex;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 4px;
    overflow: hidden;
}

.search-link-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 12px;
    color: #4a5568;
}

.search-btn {
    background: #1e3d73;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* Dòng 3 nút tốc độ cao có đo Ping ms */
.backup-links-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speed-link-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #edf2f7;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    color: #4a5568;
}

.speed-link-item span {
    display: flex;
    align-items: center;
}

.dot-green { width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; margin-right: 8px; }
.dot-red { width: 6px; height: 6px; background: #e74c3c; border-radius: 50%; margin-right: 8px; }
.dot-blue { width: 6px; height: 6px; background: #3498db; border-radius: 50%; margin-right: 8px; }

.ping-ms {
    margin-left: auto;
    color: #718096;
    font-weight: normal;
    gap: 6px;
}

/* FOOTER */
.footer-info {
    background: #ffffff;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #edf2f7;
    margin-top: auto;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #718096;
    text-decoration: none;
    font-weight: 600;
}

.footer-menu span { color: #e2e8f0; }
.copyright { font-size: 11px; color: #a0aec0; }

/* ==========================================================================
   CẬP NHẬT LOGO HÌNH ẢNH TRONG THANH HỖ TRỢ XANH
   ========================================================================== */
.support-bar {
    display: flex;
    align-items: center;
    background: #1e3d73;
    border-radius: 12px;
    padding: 12px 20px;
    gap: 15px;
}

/* Khung bọc logo */
.support-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Tạo vách ngăn bên phải nếu muốn giống giao diện cũ */
    border-right: 2px solid rgba(255, 255, 255, 0.1); 
    padding-right: 15px;
    height: 100%;
}

/* Định dạng ảnh logo thu nhỏ bằng kích thước chữ cũ */
.support-bar-logo {
    height: 24px;       /* Giới hạn chiều cao bằng đúng chữ U888 lúc trước */
    width: auto;        /* Chiều rộng tự động co giãn theo tỷ lệ ảnh */
    object-fit: contain;
    display: block;
}

/* CSS cho phần chữ bên cạnh (để bạn tham khảo nếu cần chỉnh layout) */
.support-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-highlight {
    color: #ff9f43; /* Màu cam chữ lớn */
    font-weight: bold;
    font-size: 13px;
}

.text-sub {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.8;
}
/* ==========================================================================
   CẬP NHẬT: TIÊU ĐỀ CĂN GIỮA & NÚT DẠNG HỘP CAO (GIỐNG ẢNH MẪU)
   ========================================================================== */
.footer-widgets-full {
    border-top: 1px dashed #cbd5e0;
    padding-top: 12px;
    width: 100%;
}

.widget-box {
    background: #f7f9fc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2f7;
}

/* Căn giữa tiêu đề Link dự phòng */
.widget-title-center {
    font-size: 13px;
    font-weight: 700;
    color: #1e3d73; /* Màu xanh Navy đồng bộ */
    text-align: center;
    margin-bottom: 12px; /* Giảm khoảng cách từ tiêu đề xuống các link */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.vertical-bar {
    width: 3.5px;
    height: 14px;
    background: #1e3d73;
    display: inline-block;
    border-radius: 2px;
}

/* Lưới chứa 5 nút nằm ngang */
.backup-links-grid {
    display: flex;
    justify-content: space-between; 
    gap: 10px;                  /* Khoảng cách cố định giữa 5 nút */
    width: 100%;                /* Phủ kín toàn bộ chiều ngang hộp xám */
    box-sizing: border-box;
}

/* Biến nút thành hình hộp cao, mập mạp giống ảnh mẫu */
.speed-link-card {
    flex: 1;                    /* BÍ KÍP: Ép 5 nút tự động co giãn đều nhau */
    min-width: 0;               /* Ngăn chặn vỡ layout chữ */
    
    display: flex;
    flex-direction: column;     /* Bắt buộc tên LINK ở trên, PING ở dưới */
    align-items: center;        /* Căn giữa tuyệt đối */
    justify-content: center;
    position: relative;
    
    padding: 12px 10px;         /* Tăng không gian đệm cho nút mập mạp, sang trọng */
    min-height: 65px;           /* Chiều cao lý tưởng để chứa 2 dòng chữ */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Hiệu ứng tương tác rê chuột */
.speed-link-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.link-card-content {
    display: flex;
    flex-direction: column;  /* Xếp Tên Link ở trên, Ping ở dưới */
    align-items: center;     /* Căn giữa cả cụm chữ theo chiều ngang */
    justify-content: center;
    gap: 2px;                /* Khoảng cách sát nhau giữa dòng Link và dòng Ping */
    width: 100%;
}

/* Dòng chữ phía trên: Chấm tròn + Chữ LINK (Chữ to hơn) */
.link-card-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;        /* Tạo khoảng cách nhỏ với dòng ping bên dưới */
    white-space: nowrap;
}

/* Định dạng chấm tròn (xanh/đỏ) */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Dòng phía dưới: Số ms + Mũi tên */
.link-card-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px; /* Khoảng cách giữa số ms và mũi tên */
}

.ping-ms {
    display: block;             /* Kích hoạt xuống hàng tự động */
    font-size: 11.5px;
    color: #718096;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.arrow-small {
    font-size: 11px;
    color: #a0aec0;
}

/* Mũi tên nhỏ (>) ghim ngay ngắn ở rìa lề phải mỗi nút */
.speed-link-card .fa-chevron-right {
    position: absolute;
    right: 8px;                 /* Đẩy sát mép phải */
    top: 50%;
    transform: translateY(-50%); /* Căn giữa hoàn hảo theo chiều dọc */
    font-size: 8px;
    color: #cbd5e1;
    pointer-events: none;
}

/* Đồng bộ lại các chấm màu nhỏ gọn */
.dot-green, .dot-red, .dot-blue { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    flex-shrink: 0; 
}
.dot-green { background: #2ecc71; }
.dot-red   { background: #e74c3c; }
.dot-blue  { background: #3498db; }



/* Điều hướng hiển thị ẩn/hiện */
.active-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.hidden-view {
    display: none !important;
}
/* Định dạng cấu trúc hiển thị khối chat */
#chat-view.active-view {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Style Khung Chat Tổng Thể */
/* Tìm đến đoạn này ở cuối file style.css và chỉnh lại chiều rộng */
#chat-view {
    width: 100%;
    max-width: 460px; /* Tăng từ 420px lên 460px để khung chat hiển thị to, rõ nét và cân đối */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Thanh Header Màu Cam Tươi */
.chat-header {
    background: linear-gradient(90deg, #f39c12, #e67e22); /* Đổi 90px thành 90deg */
    background-color: #f39c12; 
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
    position: relative;
}
.chat-dots { letter-spacing: 2px; opacity: 0.8; }
.chat-title { font-size: 15px; }

/* Nút tắt X màu đỏ hình tròn */
.chat-close-x {
    background: #e74c3c;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.chat-close-x:hover { background: #c0392b; transform: scale(1.1); }

/* Vùng nội dung cuộn bên dưới */
.chat-body-container {
    padding: 15px;
    max-height: 550px;
    overflow-y: auto;
}

.chat-promo-banner img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.chat-quick-links {
    text-align: center;
    font-size: 13px;
    margin: 12px 0;
    line-height: 1.5;
}
.highlight-txt { color: #e74c3c; font-weight: bold; }

/* Giao diện Form nhập liệu */
.chat-form-box {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    background: #fafafa;
}
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }
.required { color: red; }
.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 13px;
}

.radio-option { display: flex; align-items: center; margin-bottom: 8px; font-size: 13px; }
.radio-option input { margin-right: 8px; cursor: pointer; }

/* Nút Bắt đầu chat màu vàng cam */
.btn-start-chat {
    width: 100%;
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-start-chat:hover { background: #d35400; }

/* Tối ưu hiển thị trên màn hình nhỏ/Mobile */
@media (max-width: 768px) {
    .backup-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Tự chuyển thành lưới 2 cột dễ bấm trên điện thoại */
        gap: 10px;
    }
}

/* CHUYỂN DỌC TRÊN MOBILE */
@media (max-width: 992px) {
    .page-body { flex-direction: column; padding: 15px; }
    .contact-horizontal { flex-direction: column; }
    .footer-widgets-grid { grid-template-columns: 1fr; }
}

/* Tối ưu hiển thị trên màn hình nhỏ/Mobile */
@media (max-width: 768px) {
    .backup-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Tự chuyển thành lưới 2 cột dễ bấm trên điện thoại */
        gap: 10px;
    }
}

/* Đảm bảo hiển thị hoàn hảo trên Mobile */
@media (max-width: 992px) {
    .left-banner-column {
        padding-right: 0;
        margin-bottom: 4px;
    }
    .sup-main {
        font-size: 34px;
    }
}

/* ==========================================================================
   ĐỊNH DẠNG CONTAINER LIVECHAT INLINE BÊN CỘT TRÁI
   ========================================================================== */
/* Khung bọc tổng thể bên ngoài */
#livechat-inline-container {
    width: 100%;
    max-width: 460px;
    height: 580px; /* Định hình chiều cao cố định bằng với thiết kế của bạn */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Ép Iframe của LiveChat chính thức tuân thủ tuyệt đối khung chứa */
#livechat-inline-container iframe, 
.livechat-inline-container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 550px !important;
    border: none !important;
}

/* Điều hướng hiển thị ẩn hiện */
.active-view {
    display: flex !important;
}
.hidden-view {
    display: none !important;
}


/* ==========================================================================
   Khung chứa toàn bộ phần chat và thanh thao tác
   ========================================================================== */
#livechat-inline-container {
    width: 100%;
    max-width: 460px;
    min-height: 580px; /* Tăng nhẹ chiều cao để bù cho thanh tiêu đề */
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Thanh tiêu đề chứa nút quay lại */
.chat-header-actions {
    width: 100%;
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-start;
}

/* Style cho nút Quay Lại */
#btn-close-chat {
    background: #e17055; /* Màu cam/đỏ dịu mắt hoặc đổi thành #0984e3 nếu thích màu xanh */
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#btn-close-chat:hover {
    background: #d63031; /* Đậm màu hơn khi hover */
    transform: translateY(-1px);
}

/* Khu vực đích chứa widget ngay dưới nút Quay Lại */
#livechat-widget-target {
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
    display: block !important;
    position: relative !important;
}

/* Đè mọi thuộc tính CSS độc quyền của LiveChat để ép nó tuân thủ khung HTML */
#livechat-widget-target iframe,
#livechat-inline-container iframe {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

/* Ép iframe thật bên trong cao kịch trần theo layout */
#livechat-widget-target iframe {
    width: 100% !important;
    height: 100% !important;
    flex: 1; /* Thêm dòng này để iframe chiếm trọn không gian */
    border: none !important;
}

/* ==========================================================================
   CSS THIẾT KẾ LẠI POPUP XÓA CƯỢC SANG TONE MÀU CAM THƯƠNG HIỆU
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Tăng độ mờ nhẹ giúp popup nổi bật */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Thêm class hiển thị popup */
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 30px 25px;
    /* Đổ bóng nhẹ tone cam đất tinh tế dưới chân khối */
    box-shadow: 0 15px 40px rgba(230, 92, 0, 0.15); 
    position: relative;
    box-sizing: border-box;
    text-align: center;
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

/* Nút X đóng góc phải */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.modal-close-btn:hover {
    color: #ff6b00; /* Đổi màu cam khi hover */
    transform: rotate(90deg);
}

/* Tiêu đề popup màu cam gradient 3D */
.modal-title {
    font-size: 26px;
    font-weight: 850;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    font-family: 'Nunito', 'Quicksand', 'Segoe UI', sans-serif;
    
    /* Đổi sang Cam Gradient từ trên xuống thương hiệu */
    background: linear-gradient(180deg, #ff8c06 0%, #e65c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(230, 92, 0, 0.15));
}

.modal-subtitle {
    font-size: 13.5px;
    color: #4a5568;
    margin: 0 0 25px 0;
    font-weight: 500;
}

/* Form group */
.popup-form-group {
    margin-bottom: 18px;
    text-align: center;
}
.popup-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}
.required-star {
    color: #ff4d4d;
}

/* Định dạng Input & Textarea viền màu cam nhạt tinh tế */
.popup-form-group input[type="text"],
.popup-form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #ffd0b3; /* Viền cam sữa */
    background-color: #fffcf9;   /* Nền hơi ngả cam ấm nhẹ */
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 13.5px;
    outline: none;
    color: #333;
    transition: all 0.2s ease;
}

/* Hiệu ứng khi click vào ô nhập liệu (Focus) */
.popup-form-group input[type="text"]:focus,
.popup-form-group textarea:focus {
    border-color: #ff8c06;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 140, 6, 0.15);
}

.popup-form-group input::placeholder,
.popup-form-group textarea::placeholder {
    color: #b5c2d1;
}

/* 4 ô vuông nhập số tài khoản */
.bank-digits-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.bank-digits-container .digit-input {
    width: 48px !important;
    height: 48px;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
    padding: 0 !important;
    border-radius: 10px !important;
}

/* Khu vực nút bấm dưới chân */
.popup-action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

/* THIẾT KẾ LẠI CẶP NÚT: Đổi từ đỏ sang CAM gradient sang trọng */
.popup-action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

/* Định dạng lại class nút bấm */
.btn-popup-red {
    flex: 1;
    padding: 14px 0;
    
    /* Font chữ hiện đại, trẻ trung và thanh thoát */
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    
    /* Kéo giãn khoảng cách các chữ cái tạo độ thoáng và sang trọng */
    letter-spacing: 1.5px; 
    
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
    
    /* Thiết kế bo góc vuông nhẹ hiện đại thay vì bo tròn xoe như cũ */
    border-radius: 8px; 
    
    /* Hiệu ứng mượt mà khi tương tác */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NÚT THỨ NHẤT: GỬI YÊU CẦU (Nút chính - Màu cam phẳng hiện đại) */
.btn-popup-red:first-child {
    background: #ff7a00; /* Màu cam tươi phẳng, không đổ bóng khối */
    color: #ffffff;
    border: 1px solid #ff7a00;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.15);
}

.btn-popup-red:first-child:hover {
    background: #e66e00;
    border-color: #e66e00;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 122, 0, 0.25);
}

/* NÚT THỨ HAI: KIỂM TRA (Nút phụ - Phong cách Outline cực sang) */
.btn-popup-red:last-child {
    background: #ffffff; /* Nền trắng sạch sẽ */
    color: #ff7a00;      /* Chữ màu cam tương hiệu */
    border: 1.5px solid #ff7a00; /* Viền cam mảnh sắc nét */
    box-shadow: none;
}

.btn-popup-red:last-child:hover {
    background: #fff5eb; /* Nền ngả cam sữa cực nhẹ khi hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.08);
}

/* Hiệu ứng khi bấm click chuột */
.btn-popup-red:active {
    transform: translateY(0);
}