/* Biến màu */
:root {
    --primary-red: #d32f2f; /* Màu đỏ primary */
    --gold: #d4af37; /* Màu vàng hoàng kim */
    --dark-nav-bg: #1a1a1a; /* Nền tối nav */
    --box-bg: rgba(255, 255, 255, 0.95); /* Nền mờ nhẹ các khối nội dung */
    --border-color: #e2e8f0; /* Màu viền khối */
}

/* Reset và Base styles */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 1. Phần quan trọng nhất về Hình Nền: */
/* Wrapper bao bọc toàn bộ header và lưới sẽ nhận hình nền phức tạp. */

.main-wrapper {
    background-image: url('../img/hinh-nen.png');
    background-size: cover;
    
    /* THAY ĐỔI DÒNG NÀY: Dùng số âm để kéo hình ngược lên trên */
    background-position: center -80px; 
    
    background-repeat: no-repeat;
    margin-top: 0;
    background-attachment: fixed;
    min-height: 100vh;
}
/* 2. Màu nền của phần lưới nội dung mờ dần: */
.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr 360px; /* Giữ nguyên các số cũ của bạn */
    gap: 30px;
    max-width: 1500px; 
    
    /* CÁCH 1: Nếu trước đó bạn ĐANG DÙNG lệnh margin: 0 auto; thì sửa thành dòng này: */
    margin: 30px auto 0 auto; /* 80px là khoảng cách đẩy xuống, auto là căn giữa */
    
    /* CÁCH 2: Nếu trước đó KHÔNG CÓ lệnh margin: 0 auto; thì bạn chỉ cần thêm dòng này: */
    margin-top: 150px 0 auto; 
}

/* 3. Định dạng thanh điều hướng Top Tối */
.dark-nav {
    background: linear-gradient(to bottom, #a04000, #803000); /* Đỏ nâu đất */
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 2px solid #d4af37; /* Viền vàng phía dưới */
    position: sticky;  /* Lệnh "bám dính" */
    top: 0;            /* Dính sát vào mép trên cùng của trình duyệt */
    z-index: 9999;     /* Luôn nằm trên cùng, không bị hình ảnh hay video khác đè lên */
}
.nav-container {
    max-width: 1400px; /* Hoặc 100% nếu bạn muốn tràn viền màn hình */
    margin: auto;
    display: flex;
    width: 100%; /* Đảm bảo khung bao luôn rộng hết cỡ */
}
.nav-menu {
    list-style: none;
    display: flex;
    width: 100%; /* Cực kỳ quan trọng: ép danh sách menu rộng bằng khung bao */
    justify-content: space-between; /* Lệnh thần thánh để dàn đều các mục */
    padding: 0 20px; /* Tạo một chút khoảng cách ở 2 đầu cho đẹp */
}
.nav-menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700; /* Làm chữ đậm hơn */
    font-size: 15px;  /* Tăng cỡ chữ lên 20px (bạn có thể tăng lên 22px hoặc 24px tùy ý) */
    text-transform: uppercase; /* Chuyển thành chữ IN HOA cho giống phong cách game */
    transition: all 0.3s ease;
    display: block; /* Giúp vùng bấm rộng hơn */
}
.nav-menu li a:hover {
    color: #ffd700; /* Màu vàng hoàng kim */
    transform: scale(1.1); /* Chữ hơi phóng to nhẹ khi hover */
}

/* 4. Định dạng Header và Logo */
.main-header {
    max-width: 1200px;
    margin: 0 auto; /* Đổi 40px thành 0 để sát vào thanh menu */
    padding: 10px 20px; /* Dùng padding để tạo khoảng cách bên trong thay vì margin */
    text-align: left;
}
.logo-text {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-red);
    text-transform: uppercase;
    white-space: nowrap; /* Lệnh ép chữ nằm trên 1 dòng */
}

.slogan-text {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    white-space: nowrap; /* Lệnh ép chữ nằm trên 1 dòng */
}

.header-slogan {
    font-size: 36px;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap; /* Lệnh ép chữ nằm trên 1 dòng */
}
.header-character {
    max-height: 300px;
}

/* 5. Định dạng thanh tìm kiếm */
.search-bar-wrapper {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}
.search-bar {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--gold);
    border-radius: 25px;
    font-size: 16px;
    background: var(--box-bg);
}

/* 6. Bố cục lưới nội dung (Grid) */


/* 7. Định dạng các khối nội dung */
.column-box {
    background: var(--box-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.box-border {
    border: 1px solid var(--border-color);
}
.column-box h3 {
    font-size: 18px;
    color: var(--gold);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Định dạng các nút */
.btn {
    text-decoration: none; /* Lệnh thần thánh để xóa gạch chân */
    display: inline-block; /* Giúp nút giữ nguyên kích thước khối */
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.buttons-box a.btn {
    text-decoration: none;
}
/* Nút bấm màu vàng hoàng kim */
.btn-yellow {
    background: linear-gradient(to bottom, #ffdf00, #d4af37); /* Đổ bóng từ vàng tươi xuống vàng đồng */
    color: #3e2723 !important; /* Chữ màu nâu đậm kiếm hiệp (Dùng !important để ghi đè màu trắng cũ) */
    border: 1px solid #b8860b;
    font-weight: bold;
    text-transform: uppercase; /* In hoa chữ cho ngầu */
}

/* Hiệu ứng khi rê chuột vào nút vàng */
.btn-yellow:hover {
    background: linear-gradient(to bottom, #d4af37, #ffdf00); /* Đảo ngược màu nền */
    color: #000 !important; /* Chữ đen nét hơn */
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4); /* Tỏa hào quang vàng nhẹ */
}
.btn-red { background-color: var(--primary-red); color: #fff; }
.btn-red:hover { background-color: #e57373; }
.btn-grey { background-color: #f1f5f9; color: #555; }
.btn-grey:hover { background-color: #e2e8f0; }
.btn-gold-text { color: var(--gold); }

/* Định dạng ảnh banner */
.full-banner {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Chân trang */
footer {
    background-color: var(--dark-nav-bg);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: #718096;
}
/* --- KHU VỰC TẢI GAME NỔI BẬT (TÔNG SÁNG) --- */
.download-action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Nền trắng mờ pha chút vàng kim, thanh thoát và hợp tông sáng */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 220, 0.9) 100%);
    border: 2px solid #e67e22; /* Viền màu cam đất kiếm hiệp */
    border-radius: 10px; /* Bo góc mềm mại */
    padding: 15px 20px;
    text-decoration: none;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.15); /* Bóng đổ màu cam nhạt ấm áp */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng nổi lên và tỏa sáng khi di chuột */
.download-action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.3); 
}

/* Hiệu ứng tia sáng lướt qua */
.download-action-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine-effect 3s infinite;
    z-index: 0;
}

@keyframes shine-effect {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.dl-content, .dl-icon {
    z-index: 1;
    position: relative;
}

.dl-title {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 900;
    color: #d35400; /* Chữ TẢI GAME màu cam đỏ */
    text-transform: uppercase;
    text-shadow: none; /* Bỏ bóng đen để chữ thanh thoát hơn */
}

.dl-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #555; /* Chữ mô tả màu xám đậm */
}

.dl-info strong {
    color: #c0392b; /* Nhấn mạnh dung lượng bằng màu đỏ tươi */
    font-size: 14px;
}

/* Định dạng Icon tải xuống */
.dl-icon {
    width: 45px;
    height: 45px;
    background: rgba(211, 84, 0, 0.1); /* Nền cam mờ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(211, 84, 0, 0.3);
}

.dl-icon svg {
    width: 24px;
    height: 24px;
    fill: #d35400; /* Icon màu cam đỏ */
}
/* --- ĐỊNH DẠNG KHU VỰC TIN TỨC --- */
.view-more {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s;
}

.view-more:hover {
    color: var(--primary-red);
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.news-list li:last-child {
    border-bottom: none; /* Xóa gạch chân ở dòng cuối cùng */
}

/* Các nhãn (Tag) phân loại tin tức */
.news-tag {
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 12px;
    min-width: 65px;
    text-align: center;
    color: white;
    text-transform: uppercase;
}

.tag-hot { background-color: #e74c3c; }   /* Đỏ cho tin HOT */
.tag-event { background-color: #f39c12; } /* Cam cho Sự kiện */
.tag-update { background-color: #3498db; }/* Xanh dương cho Cập nhật/Thông báo */
.tag-guide { background-color: #27ae60; } /* Xanh lá cho Cẩm nang */

/* Tiêu đề bài viết */
.news-title {
    flex-grow: 1; /* Cho phép tiêu đề chiếm hết khoảng trống ở giữa */
    text-decoration: none;
    color: #333;
    font-size: 15px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* Cắt chữ thành dấu "..." nếu tiêu đề quá dài */
    transition: color 0.2s;
}

.news-title:hover {
    color: var(--primary-red);
}

/* Ngày đăng bài */
.news-date {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    min-width: 40px;
    text-align: right;
}
/* Khung tổng thể */
.jx2-daily-box {
    width: 300px;
    background: rgba(220, 220, 220, 0.9); /* Nền xám nhạt */
    border: 1px solid #555;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: "Arial", sans-serif;
}

/* Tiêu đề vàng vân gỗ */
.jx2-title {
    background: linear-gradient(to bottom, #f39c12, #a04000);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    border-bottom: 2px solid #333;
    text-shadow: 1px 1px 2px #000;
}

/* Thanh tab Thứ */
.jx2-day-tabs {
    display: flex;
    background: #ccc;
    border-bottom: 1px solid #888;
}

.day-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-right: 1px solid #999;
}

.day-tab:last-child { border-right: none; }

/* Thứ đang chọn (Active) */
.day-tab.active {
    background: #555;
    color: white;
}

/* Vùng cuộn nội dung */
.jx2-content-scroll {
    height: 400px;
    overflow-y: scroll;
    padding: 5px 0;
}

/* Tùy chỉnh thanh cuộn cho giống hình */
.jx2-content-scroll::-webkit-scrollbar { width: 6px; }
.jx2-content-scroll::-webkit-scrollbar-thumb { background: #555; border-radius: 10px; }
.jx2-content-scroll::-webkit-scrollbar-track { background: #ccc; }

/* Dòng hoạt động */
.act-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    font-weight: bold;
    font-size: 15px;
}

/* Màu sắc các loại hoạt động theo hình */
.text-grey { color: #888; }
.text-blue { color: #00a8ff; } /* Boss Tiểu */
.text-pink { color: #ff00ff; } /* Boss Đại */
.text-green { color: #00ff00; } /* Chiến trường */
.text-gold { color: #f39c12; }  /* Thời gian */
/* Container Fanpage */
.fanpage-container {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fanpage-content {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

/* Banner Fanpage giả lập (Chuyên nghiệp hơn) */
.fanpage-banner {
    display: block;
    text-decoration: none;
    position: relative;
    transition: filter 0.3s;
}

.fanpage-banner:hover {
    filter: brightness(1.05);
}

.fb-img {
    width: 100%;
    height: auto;
    display: block;
}

.fb-like-info {
    padding: 10px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    gap: 10px;
}

.fb-icon-circle {
    background: #1877F2;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.fb-text {
    display: flex;
    flex-direction: column;
}

.fb-name {
    color: #1e293b;
    font-weight: bold;
    font-size: 14px;
}

.fb-sub {
    color: #64748b;
    font-size: 12px;
}

.btn-fb-follow {
    background: #1877F2;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 12px;
    font-weight: bold;
}

/* Các nút bấm hỗ trợ bên dưới */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-btn {
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 2px solid #cbd5e1;
}

.side-btn:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.btn-recharge {
    background: #fef2f2;
    color: #dc2626;
    border-bottom: 2px solid #fee2e2;
}

.btn-recharge:hover {
    background: #fee2e2;
}
/* Container Fanpage */
.fanpage-container {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.fanpage-content {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

/* Banner Fanpage giả lập (Chuyên nghiệp hơn) */
.fanpage-banner {
    display: block;
    text-decoration: none;
    position: relative;
    transition: filter 0.3s;
}

.fanpage-banner:hover {
    filter: brightness(1.05);
}

.fb-img {
    width: 100%;
    height: auto;
    display: block;
}

.fb-like-info {
    padding: 10px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    gap: 10px;
}

.fb-icon-circle {
    background: #1877F2;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 20px;
}

.fb-text {
    display: flex;
    flex-direction: column;
}

.fb-name {
    color: #1e293b;
    font-weight: bold;
    font-size: 14px;
}

.fb-sub {
    color: #64748b;
    font-size: 12px;
}

.btn-fb-follow {
    background: #1877F2;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 12px;
    font-weight: bold;
}

/* Các nút bấm hỗ trợ bên dưới */
.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-btn {
    text-decoration: none;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 2px solid #cbd5e1;
}

.side-btn:hover {
    background: #e2e8f0;
    transform: translateX(5px);
}

.btn-recharge {
    background: #fef2f2;
    color: #dc2626;
    border-bottom: 2px solid #fee2e2;
}

.btn-recharge:hover {
    background: #fee2e2;
}
/* Container cho các Tab */
.news-tabs-header {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 15px;
    gap: 5px;
}

/* Nút bấm Tab */
.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #888;
    position: relative;
    transition: all 0.3s ease;
}

/* Khi Tab được chọn (Active) */
.tab-btn.active {
    color: #d35400; /* Màu cam đậm */
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d35400; /* Thanh gạch chân màu cam */
}

.tab-btn:hover {
    color: #d35400;
}

/* Ẩn các tab không được chọn */
.tab-pane {
    display: none;
}

/* Hiện tab đang active */
.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-footer {
    text-align: right;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
/* Khung bao ngoài của Fanpage */
.box_right {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px; /* Tăng khoảng cách này để đẩy đống nút xuống dưới */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
}

/* Tiêu đề của khung Fanpage */
.box-title {
    font-size: 22px; /* Tăng cỡ chữ tiêu đề cho cân xứng */
    color: #d35400;
    text-align: center;
    border-bottom: 2px solid #e67e22;
    margin-bottom: 15px;
}

/* Khung chứa trực tiếp iframe */
.SocialContent {
    background: #f8fafc; /* Nền xám cực nhạt để làm nổi cái khung Fanpage */
    padding: 10px 0;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Tùy chỉnh cho Iframe mượt hơn */
#SocialFb iframe {
    max-width: 100%; /* Đảm bảo không bị tràn nếu thu nhỏ màn hình */
    border-radius: 4px;
}
/* --- CSS DÀNH RIÊNG CHO TRANG TẢI GAME --- */

/* Lưới các thẻ tải game */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.dl-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.dl-card:hover {
    transform: translateY(-5px);
    border-color: #d35400;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.dl-card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.dl-card h4 {
    color: #d35400;
    margin-bottom: 10px;
    font-size: 18px;
}

.dl-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    height: 40px;
}

.dl-version {
    display: block;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Bảng cấu hình */
.config-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.config-table th, .config-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.config-table th {
    background-color: #f1f5f9;
    color: #475569;
}

.config-table tr:hover {
    background-color: #fdf2e9;
}

/* Hướng dẫn cài đặt */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #d35400;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.step-num {
    font-size: 24px;
    font-weight: 900;
    color: #e2e8f0;
}
/* --- CSS CHO BANNER SLIDER --- */
.slideshow-container {
    position: relative;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mySlides {
    display: none; /* Ẩn các hình đi, chỉ hiện hình được chọn bằng JS */
}

/* Nút Next & Prev */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.2);
}

/* Đưa nút next sang bên phải */
.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Hiệu ứng khi rê chuột vào nút điều hướng */
.prev:hover, .next:hover {
    background-color: #d35400; /* Đổi sang màu cam đỏ */
}

/* Chấm tròn chỉ mục dưới cùng */
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.active-dot, .dot:hover {
    background-color: #d35400; /* Chấm của ảnh hiện tại có màu cam */
}

/* Hiệu ứng Fade (Mờ ảo) chuẩn game kiếm hiệp */
.fade {
    animation-name: fadeEffect;
    animation-duration: 1.5s; /* Thời gian chuyển cảnh */
}

@keyframes fadeEffect {
    from {opacity: .5} 
    to {opacity: 1}
}
/* --- CSS DÀNH RIÊNG CHO TRANG MÁY CHỦ MỚI --- */

/* Lịch trình ra mắt (Timeline) */
.timeline-container {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.timeline-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid;
    background: #fff;
}

.alpha-test { border-left-color: #3498db; }
.open-beta { border-left-color: #e74c3c; background: #fffcfc; }

.tl-icon {
    font-size: 40px;
    margin-right: 20px;
}

.tl-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1e293b;
}

.tl-time {
    display: inline-block;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    color: #d35400;
    font-size: 14px;
    margin-bottom: 8px;
}

.tl-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Bảng thông số (Rates) */
.server-rates td {
    width: 50%;
    background: #fff;
    font-size: 15px;
}

/* Quà Tân Thủ (Dạng lưới Item) */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột */
    gap: 15px;
}

.gift-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.gift-item:hover {
    transform: translateY(-3px);
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.gift-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px auto;
    background: #1e293b;
    color: #ffd700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    border: 2px solid #d4af37;
}

.gift-name {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}
/* Đường kẻ phân cách giữa các mục trong cùng 1 khung */
.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0; /* Màu xám nhạt */
    margin: 30px 0; /* Cách đều trên dưới 30px */
}
/* Đảm bảo khung nội dung luôn có nền trắng mờ */
.box { 
    background: rgba(255, 255, 255, 0.95) !important; 
    padding: 40px; 
    border-radius: 12px; 
    max-width: 500px; 
    margin: 100px auto 0 auto; /* Đẩy khung xuống thấp, cách trên 100px */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #cbd5e1;
    position: relative; /* Giúp khung ổn định vị trí */
}

/* Đảm bảo chữ trong box không bị chìm do màu nền */
.box h2, .box p, .box .msg-text {
    color: #334155 !important;
}

/* Đảm bảo nút copy không bị mờ */
.btn-copy {
    background: #1e293b !important;
    color: #ffd700 !important;
}
/* Dùng cho các trang cần căn giữa, có hình nền (như Nhận Code, Tải Game) */
.wrapper-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: #0a0a0a url('../img/hinh-nen.png') no-repeat center top fixed;
    background-size: cover;
}

/* Đảm bảo khung nội dung luôn hiển thị tốt */
.box { 
    background: rgba(255, 255, 255, 0.95) !important; 
    padding: 40px; 
    border-radius: 12px; 
    max-width: 500px; 
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid #cbd5e1;
    text-align: center;
}
/* --- CSS CHO BẢNG THÔNG BÁO (POPUP) --- */
.popup-overlay {
    display: none; /* Ẩn mặc định, JS sẽ gọi hiện lên */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Màn đen mờ che toàn web */
    z-index: 9999; /* Đảm bảo luôn nằm trên cùng mọi thứ */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); /* Tỏa hào quang vàng */
    border: 2px solid #d4af37; /* Viền vàng đồng */
    position: relative;
    animation: slideDown 0.4s ease-out;
    overflow: hidden;
}

.popup-header {
    background: linear-gradient(to bottom, #d32f2f, #b71c1c); /* Đỏ nổi bật */
    color: #fff;
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #d4af37;
}

.popup-header h2 {
    margin: 0;
    font-size: 22px;
    text-shadow: 1px 1px 2px #000;
}

.popup-body {
    padding: 20px 25px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.popup-body ul {
    padding-left: 20px;
    margin: 15px 0;
}

.popup-body li {
    margin-bottom: 8px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #ffdf00; /* Đổi màu vàng khi rê chuột vào chữ X */
    transform: scale(1.1);
}

/* Hiệu ứng chuyển động */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* --- KHUNG HIỂN THỊ GIFTCODE --- */
.code-display {
    font-size: 28px; /* Chữ to rõ ràng */
    font-weight: 900; /* In đậm nét */
    color: #c0392b; /* Màu đỏ đô nổi bật */
    background-color: #fcf6e5; /* Nền vàng nhạt cổ điển */
    border: 2px dashed #d4af37; /* Khung viền đứt nét màu vàng đồng */
    padding: 15px 30px; /* Mở rộng không gian bên trong khung */
    margin: 20px auto; /* Tự động căn giữa và cách lề trên dưới */
    border-radius: 8px; /* Bo góc cho mềm mại */
    letter-spacing: 4px; /* Giãn khoảng cách giữa các chữ số cho dễ nhìn */
    text-align: center;
    width: fit-content; /* Khung sẽ ôm vừa vặn độ dài của đoạn code */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ cho khung nổi lên */
}
/* =========================================
   GIAO DIỆN TRANG TỔNG HỢP TIN TỨC
   ========================================= */

/* Khung bọc trang tin tức (rộng hơn bình thường một chút để dễ đọc) */
.news-archive-box {
    max-width: 800px; /* Rộng hơn box nhận code */
    margin: 50px auto;
    text-align: left; /* Căn trái cho dễ đọc */
}

.page-title {
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Nút lọc danh mục */
.news-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    color: #d35400;
    background: #fff3e0;
}

/* Danh sách bài viết */
.news-list-full {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px dashed #ccc; /* Đường viền đứt nét giống ảnh của bạn */
    transition: 0.2s;
}

.news-item:hover {
    background-color: #f9f9f9;
}

.news-item:hover .news-title {
    color: #b91c1c; /* Đổi màu chữ khi rê chuột vào */
}

/* Phần bên trái chứa thẻ Tag và Tiêu đề */
.news-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Thiết kế các thẻ Tag (HOT, MỚI...) */
.tag {
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.tag-hot { background-color: #e74c3c; }   /* Đỏ */
.tag-new { background-color: #3498db; }   /* Xanh dương */
.tag-event { background-color: #9b59b6; } /* Tím */
.tag-guide { background-color: #f39c12; } /* Cam */

.news-title {
    font-size: 15px;
    font-weight: 500;
}

.news-date {
    font-size: 13px;
    color: #888;
}

/* Phân trang (Nút chuyển trang) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    text-decoration: none;
    color: #333;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}
/* Chỉnh kích thước của icon */
.btn-icon {
    width: 24px;  /* Chiều rộng của hình (bạn có thể tăng/giảm thành 20px hoặc 28px tùy mắt nhìn) */
    height: 24px; /* Chiều cao của hình */
    object-fit: contain; /* Giữ cho hình không bị méo */
}

/* Đảm bảo nút được căn giữa hình và chữ */
.side-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 1. Đổi từ center thành flex-start để căn thẳng hàng bên trái */
    padding: 12px 10px 12px 60px; /* 2. Thêm khoảng cách 60px bên trái để đẩy toàn bộ icon+chữ ra giữa nút */
    gap: 15px; /* Khoảng cách giữa icon và chữ */
    
    /* Các thuộc tính cũ giữ nguyên */
    background: #f4f7f9;
    color: #1a4a76;
    text-decoration: none;
    margin-bottom: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}
.main-logo {
    max-width: 350px; /* B?n gi?m con s? này xu?ng, ví d? 150px ho?c 100px */
    height: auto;     /* Gi? nguyên d? logo không b? méo */
}