/* === BIẾN CSS & CÀI ĐẶT CƠ BẢN === */
:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --primary-color: #ff5722;
    --accent-color: #e63946;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* === CẤU TRÚC HEADER MỚI (CHỈNH SỬA THỦ CÔNG) === */
.custom-header {
    background-color: #1a1a1a;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.header-top {
    background-color: #161616;
    height: 75px; 
}

.header-top .header-inner {
    height: 100%;
    justify-content: flex-start; 
}

.logo-wrapper {
    display: flex;
    align-items: center;
    margin-left: 0px;    
    margin-right: 40px;  
}

.logo-img {
    height: 60px; 
    width: auto;
    object-fit: contain;
}

.desktop-menu {
    display: flex;
    gap: 30px; 
}
.desktop-menu li {
    font-size: 18px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.3s;
}
.desktop-menu li:hover, .desktop-menu li.active {
    color: var(--primary-color);
}

.header-bottom {
    background-color: #1f1f1f;
    height: 50px; 
    border-top: 1px solid #333;
}

.header-bottom .header-inner {
    height: 100%;
    justify-content: space-between; 
    font-size: 13px;
    color: #999;
}

.bottom-left, .bottom-right {
    display: flex;
    align-items: center;
}

.bottom-left { gap: 15px; }
.language { display: flex; align-items: center; gap: 5px; cursor: pointer; }

.lang-icon {
    width: 16px;  
    height: 16px; 
    object-fit: contain; 
    border-radius: 50%; 
}

.sub-menu {
    display: flex;
    gap: 20px; 
    list-style: none;
}
.sub-menu li { cursor: pointer; transition: color 0.3s; }
.sub-menu li:hover { color: #fff; }

.auth-buttons {
    display: flex;
    gap: 5px;         
    margin-left: 20px; 
    margin-right: 0px; 
}

.btn {
    padding: 0 15px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 13px;
    height: 35px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-register {
    background-color: var(--primary-color);
    color: #fff;
}

/* === HERO BANNER SLIDER === */
.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000; 
}

.slider-wrapper {
    display: flex;
    flex-wrap: nowrap; 
    width: 100%;
    transition: transform 0.5s ease-in-out; 
}

.slide {
    width: 100%; 
    flex: 0 0 100%; 
}

.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: white;
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: white;
    width: 25px; 
    border-radius: 10px;
}

/* === NEWS TICKER (CHỮ CHẠY) === */
.ticker {
    background-color: #000;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-gray);
    border-bottom: 1px solid #333;
}
.ticker i { margin-right: 10px; color: var(--primary-color); }
.ticker marquee { flex: 1; }

/* === MAIN CONTENT BỐ CỤC ĐIỆN THOẠI (SPLIT LAYOUT) === */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}
/* Cột trái (Sidebar) - Mobile */
.sidebar {
    width: 25%;
    background-color: #161616; /* Màu nền sau lưng các nút */
    height: calc(100vh - 150px);
    overflow-y: auto;
    padding: 8px 6px; /* Tạo khoảng cách với mép màn hình */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Khoảng cách giữa các nút */
}

/* Ẩn thanh cuộn (scrollbar) để giao diện mobile trông vuốt mượt mà, sạch sẽ hơn */
.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 2px;
    background-color: #2a2a2a; /* Màu nền của nút chưa chọn */
    color: #888888; /* Màu chữ nút chưa chọn */
    border-radius: 6px; /* Bo góc nút */
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    gap: 5px;
    transition: 0.3s;
}

.sidebar-item i { 
    font-size: 18px; 
}

/* Hiệu ứng khi được chọn (Tab đang active) */
.sidebar-item.active {
    background-color: #ff3d00; /* Màu nền cam đỏ giống hình */
    color: #000000; /* Đổi màu chữ và icon thành màu đen */
}

.game-area {
    width: 75%;
    padding: 15px;
    background-color: var(--bg-dark);
    height: calc(100vh - 150px);
    overflow-y: auto;
}
.desktop-only-title {
    margin-bottom: 15px;
    color: #4fc3f7;
}

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

.game-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.game-card:hover { transform: scale(1.05); }
.game-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.game-card p {
    font-size: 11px;
    padding: 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === DESKTOP STEPS (Chỉ hiện trên PC) === */
.desktop-steps {
    width: 100%;
    background-image: url('images/thanhhuongdan.png'); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
    background-color: #1a1a1a; 
    padding: 25px 0;
    border-bottom: 2px solid #000;
}

.step-inner {
    max-width: 1500px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.step-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: relative; 
}
.step-1 { left: 200px; top: 0px; }
.step-2 { left: 35px; top: -5px; }
.step-3 { left: -150px; top: 0px; }

.step-icon {
    width: 65px;  
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.step-text {
    text-align: left;
    line-height: 1.4;
}

.step-number {
    color: #ff5722; 
    font-size: 14px;
    font-weight: bold;
}

.step-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================
   KHU VỰC PHỔ BIẾN NHẤT (CHỈ HIỆN MÁY TÍNH)
========================================== */
.desktop-featured-section {
    width: 100%;
    background-color: #0b132b; 
    position: relative;
    padding-bottom: 40px;
}

.featured-main-content {
    background-image: url('images/75e5ceb37ef22d468a81c28dd69e56de.jpg'); 
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 480px; 
    display: flex;
    justify-content: center;
}

.featured-inner {
    width: 100%;
    max-width: 1100px; 
    position: relative;
    display: flex;
}

.featured-sidebar {
    width: 220px;
    padding-top: 50px;
}

.featured-title {
    color: #0088ff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 25px;
}

.featured-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-tabs li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3); 
    border-radius: 4px;
    cursor: pointer;
    color: #888;
    transition: all 0.3s;
}

.featured-tabs li.active {
    background: rgba(255, 255, 255, 0.1); 
    color: #fff;
    border-left: 4px solid #0088ff; 
}

.tab-icon {
    display: block;
    width: 45px;       
    height: 45px;      
    min-width: 45px;   
    background-size: 100% 200%; 
    background-position: top;   
    background-repeat: no-repeat;
    transition: background-position 0.3s ease; 
}

.featured-tabs li.active .tab-icon {
    background-position: bottom;
}

.icon-banca { background-image: url('images/banca.png'); }
.icon-nohu { background-image: url('images/nohu.png'); }
.icon-casino { background-image: url('images/casino.png'); }

.featured-info {
    position: absolute;
    right: 15%; 
    top: 25%;   
    max-width: 250px;
}

.featured-info h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 15px;
}

.featured-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.btn-play-now {
    background: linear-gradient(to right, #ff5722, #ff3d00);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.4); 
}

.featured-support-banner {
    background-image: url('images/7ed59a8994dd0bfbf19867149d6823c7.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 1050px;
    height: 75px; 
    margin: -35px auto 0; 
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.livechat-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 250px; 
    color: #fff;
    cursor: pointer;
}

.livechat-info i {
    font-size: 26px;
    color: #fff;
}
/* ==========================================
   KHU VỰC JACKPOT & GAME ĐỀ XUẤT (CHỈ HIỆN MÁY TÍNH)
========================================== */
.desktop-jackpot-section {
    background-color: #121212;
    padding: 30px 0;
    width: 100%;
}

.jackpot-inner {
    max-width: 1100px; /* Khớp với các phần trên */
    margin: 0 auto;
    padding: 0 15px;
}

/* Header chia 3 phần cân đối */
.jackpot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.jackpot-title {
    color: #ff3d00; /* Màu chữ đỏ cam */
    font-size: 18px;
    font-weight: bold;
    flex: 1; 
}

.jackpot-tabs {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.tab-btn {
    background-color: #2a2a2a;
    color: #888;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.tab-btn.active {
    background-color: #ff5722;
    color: #fff;
}

.jackpot-more {
    color: #ff5722;
    font-size: 13px;
    text-decoration: none;
    flex: 1;
    text-align: right;
}

/* Layout Nội dung: 1 lớn bên trái, Lưới bên phải */
.jackpot-content {
    display: flex;
    gap: 15px;
}

.jackpot-large-card {
    width: 25%;
    border-radius: 8px;
    overflow: hidden;
}

.large-card-bg {
    width: 100%;
    height: 100%;
    min-height: 330px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
}

.jackpot-amount {
    position: absolute;
    top: 40%; /* Bạn tăng giảm số này để con số trượt lên xuống cho khớp ảnh nền */
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* Lưới 10 game */
.jackpot-grid {
    width: 75%;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 cột */
    gap: 10px;
}

.jp-game-card {
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
    border: 1px solid transparent;
}

.jp-game-card:hover {
    transform: translateY(-5px);
    border-color: #ff5722;
}

.jp-game-card img {
    width: 100%;
    aspect-ratio: 1/1; /* Ép ảnh thành hình vuông */
    object-fit: cover;
    display: block;
}

/* Tem góc trái */
.badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e63946;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
    font-weight: bold;
    z-index: 2;
}

/* Thanh thông tin dưới cùng của card game */
.jp-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    font-size: 11px;
    color: #ccc;
    background-color: #222;
}

.jp-game-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jp-game-info i {
    color: #555;
    cursor: pointer;
}
.jp-game-info i:hover { color: #ff3d00; }
/* === MOBILE HEADER (HIỆN TRÊN ĐIỆN THOẠI) === */
.mobile-header {
    /* 👇 THÊM 4 DÒNG NÀY ĐỂ CHÈN ẢNH NỀN 👇 */
    background-image: url('images/THnohu.gif'); /* Đổi thành tên file ảnh nền của bạn */
    background-size: cover; /* Ép ảnh phủ kín thanh header */
    background-position: center; /* Luôn canh giữa ảnh */
    background-repeat: no-repeat;
    
    /* Các lệnh cũ giữ nguyên để không hỏng cấu trúc */
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Có thể xóa dòng border-bottom đi nếu ảnh nền của bạn đã có sẵn viền */
    border-bottom: 2px solid var(--accent-color); 
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    height: 35px; 
    width: auto;
    object-fit: contain;
}

.mobile-auth-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; 
}

.mobile-menu-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: 10px;
    cursor: pointer;
}

/* === BOTTOM NAVIGATION (Chỉ hiện trên Mobile) === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #222222; /* Màu xám đen nền nã */
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Căn đáy để chừa chỗ cho hộp quà trồi lên */
    padding: 10px 0 12px 0;
    border-top-left-radius: 18px; /* Bo góc trái */
    border-top-right-radius: 18px; /* Bo góc phải */
    border-top: 1px solid #ff7b00; /* Viền cam mỏng ở trên */
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ff9800; /* Màu chữ vàng cam */
    font-size: 10px;
    cursor: pointer;
    flex: 1; 
}

/* Định dạng cho 4 icon bình thường */
.nav-icon {
    width: 26px; 
    height: 26px;
    object-fit: contain;
    margin-bottom: 5px;
}

.nav-item span {
    font-weight: 500;
}

/* --- XỬ LÝ KHỐI ƯU ĐÃI (Nổi lơ lửng) --- */
.center-item {
    position: relative; /* Neo vị trí để ảnh bay lên */
}

.center-icon-wrapper {
    position: absolute;
    top: -48px; /* Kéo hộp quà bay lên khỏi thanh điều hướng */
    left: 50%;
    transform: translateX(-50%);
    width: 145px;  /* Tùy chỉnh độ to của hộp quà ở đây */
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.6)); /* Tạo bóng đổ nhẹ cho hộp quà */
}

/* Kéo chữ "Ưu Đãi" xuống vì ảnh đã bị bốc lên trên */
.center-item span {
    margin-top: 28px; 
}
/* ==========================================
   KHU VỰC ĐỪNG BỎ LỠ (CHỈ HIỆN MÁY TÍNH)
========================================== */
.desktop-dont-miss-section {
    background-color: #121212; /* Nền tối tệp với tổng thể */
    padding: 20px 0 50px 0;
    width: 100%;
}

.dont-miss-inner {
    max-width: 1100px; /* Căn thẳng hàng với các khối trên */
    margin: 0 auto;
    padding: 0 15px;
}

.dont-miss-title {
    color: #ff3d00;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Lưới chứa 3 thẻ ảnh */
.dont-miss-grid {
    display: flex;
    gap: 20px;
}

.dont-miss-card {
    flex: 1;
    height: 220px; /* Chiều cao của thẻ */
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hiệu ứng nảy lên khi di chuột vào */
.dont-miss-card:hover {
    transform: translateY(-8px);
}

/* Chèn Hình Nền và Viền Đáy cho từng thẻ */
.card-casino {
    background-image: url('images/background1.png');
    border-bottom: 4px solid #ffeb3b; /* Viền Vàng */
}

.card-nohu {
    background-image: url('images/background2.png');
    border-bottom: 4px solid #ff1744; /* Viền Đỏ */
}

.card-banca {
    background-image: url('images/background3.png');
    border-bottom: 4px solid #00e5ff; /* Viền Xanh Ngọc */
}

/* Định dạng Chữ */
.dont-miss-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Tạo bóng đen giúp chữ dễ đọc hơn trên nền ảnh */
}

.text-yellow { color: #ffeb3b; }
.text-red { color: #ff1744; }
.text-cyan { color: #00e5ff; }

.dont-miss-card p {
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
/* ==========================================
   CHÂN TRANG / FOOTER (CHỈ HIỆN MÁY TÍNH)
========================================== */
.desktop-footer {
    background-color: #181818; 
    padding: 50px 0;
    width: 100%;
    border-top: 1px solid #2a2a2a;
}

.desktop-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Định dạng danh sách số */
.footer-col ol {
    padding-left: 15px;
    list-style-type: decimal; /* Tạo số thứ tự 1, 2, 3... */
    color: #666;
}

.footer-col ol li {
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-col ol li a {
    color: #666;
    transition: color 0.3s;
}

.footer-col ol li a:hover {
    color: var(--primary-color);
}

/* Định dạng lưới ảnh Chứng chỉ & Thanh toán */
.images-col {
    max-width: 160px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* CSS Mẹo: Tự động biến ảnh màu thành màu xám đồng bộ */
.image-grid img {
    height: 25px; /* Giới hạn chiều cao cho đều nhau */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8); /* Biến thành ảnh xám */
    transition: 0.3s;
}

.image-grid img:hover {
    filter: grayscale(0%) brightness(1); /* Hover vào hiện màu gốc */
}

/* --- KHUNG TẢI ỨNG DỤNG --- */
.download-col {
    width: 320px; /* Nới rộng cột ra một chút để chứa điện thoại */
}

.download-box {
    background-color: #242424;
    border-radius: 8px;
    padding: 20px 15px;
    position: relative; /* Quan trọng: Để neo bức ảnh điện thoại */
    margin-top: 20px; /* Đẩy hộp xuống để điện thoại có chỗ "trồi" lên trên */
}

/* Tùy chỉnh ảnh điện thoại lơ lửng */
.phone-bg-img {
    position: absolute;
    top: -25px;    /* Kéo điện thoại trồi lên khỏi khung đen */
    right: 5px;  /* Kéo điện thoại thò ra ngoài rìa phải */
    width: 150px;  /* 👉 BẠN THAY ĐỔI KÍCH THƯỚC ĐIỆN THOẠI TO/NHỎ Ở ĐÂY */
    height: auto;
    z-index: 1;
}

/* Đảm bảo phần chữ và QR đè lên trên điện thoại nếu có chạm nhau */
.download-header, .qr-section {
    position: relative;
    z-index: 2;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.small-app-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Thêm viền bóng cho đẹp */
}

/* Phần chứa 2 block QR */
.qr-section {
    display: flex;
    gap: 10px; 
}

/* Bố cục bên trong từng block QR (Nằm ngang) */
.qr-item {
    display: flex; 
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4); /* Nền đen mờ nhẹ giống bản gốc */
    padding: 8px;
    border-radius: 6px;
    flex: 1; 
}

.qr-img {
    width: 50px; /* Thu nhỏ mã QR lại cho cân đối */
    height: 50px;
    background-color: white;
    padding: 2px;
    border-radius: 4px;
}

.dl-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.os-label {
    color: #999; 
    font-size: 11px;
}

.dl-btn {
    background-color: #ff5722;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================
   KHU VỰC JACKPOT MOBILE (TRÀN FULL MÀN HÌNH)
========================================== */
.mobile-jackpot-section {
    background-color: #9a3300; 
    /* Đã xóa border-radius để khối nền cam tràn sát mép trái phải */
    width: 100%; 
    text-align: center;
    padding: 0 15px 30px 15px;
    margin-top: 80px; /* Tăng khoảng cách phía trên để ảnh có không gian lơ lửng, không đè vào lưới game */
    margin-bottom: 70px; /* Tăng khoảng cách dưới đáy để không bị thanh menu che mất */
    position: relative;
}

.mj-image-wrapper {
    position: absolute;
    top: -65px; /* Điều chỉnh ảnh nổi cao lên */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    max-width: 380px; /* Cho phép ảnh hiển thị to hơn trên màn hình full */
}

.mj-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
/* ==========================================
   KHU VỰC TẢI APP & MẠNG XÃ HỘI (MOBILE)
========================================== */
.mobile-footer-app {
    width: 100%;
   
}

/* --- Banner nền xám --- */
.m-app-banner {
    background-color: #333333;
    padding: 25px 15px;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid #444;
}

.m-app-content {
    flex: 1;
    z-index: 2; /* Để chữ nổi lên trên ảnh nếu có chạm nhau */
}

.m-app-content h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* --- Cụm Nút tải --- */
.m-app-buttons {
    display: flex;
    gap: 10px;
}

.m-dl-group {
    display: flex;
    height: 32px;
}

.os-box {
    width: 32px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nền cho icon hệ điều hành */
.android-bg { background-color: #4caf50; } /* Màu xanh lá */
.ios-bg { background-color: #555555; }     /* Màu xám */

.os-box img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.m-dl-btn {
    background-color: #ff3d00;
    color: #fff;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Điện thoại nổi lơ lửng --- */
.m-phone-img {
    position: absolute;
    bottom: 0;
    right: 10px; /* Canh lề phải */
    width: 120px; /* TÙY CHỈNH: Tăng giảm số này để thay đổi độ to của điện thoại */
    height: auto;
    z-index: 1;
}

/* --- Thanh Mạng Xã Hội --- */
.m-social-links {
    background-color: #1a1a1a;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Tự động rớt dòng nếu màn hình quá nhỏ */
}

.m-social-links i, .m-icon-18 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

/* Vòng tròn viền xám cho icon mạng xã hội */
.m-social-links i {
    border: 1px solid #777;
    color: #777;
    transition: 0.3s;
}

.m-social-links i:hover {
    color: #ff3d00;
    border-color: #ff3d00;
}

/* Vòng tròn đỏ đặc biệt cho 18+ */
.m-icon-18 {
    border: 1px solid #ff1744;
    color: #ff1744;
    font-weight: bold;
    font-size: 11px;
}
/* ==========================================
   KHU VỰC CHỨNG CHỈ & THANH TOÁN (MOBILE)
========================================== */
.mobile-footer-certs {
    background-color: #1a1a1a;
    padding: 20px 15px 30px 15px;
    margin-bottom: 60px; /* Chừa khoảng trống dưới đáy cho thanh menu nổi (bottom-nav) */
}

.m-cert-group {
    margin-bottom: 20px;
}

.m-cert-group h4 {
    color: #6787a6; /* Màu xanh xám giống hệt bản gốc */
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 12px;
}

.m-cert-logos {
    display: flex;
    flex-wrap: wrap; /* Tự động xuống dòng nếu nhiều logo */
    gap: 12px;
    align-items: center;
}

/* Áp dụng kỹ thuật biến ảnh thành màu xám đồng bộ */
.m-cert-logos img {
    height: 20px; /* Điều chỉnh độ to nhỏ của logo ở đây */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2); /* Làm xám và tăng độ sáng nhẹ để nổi trên nền đen */
}

.m-copyright {
    color: #6787a6;
    font-size: 12px;
    text-align: left;
    margin-top: 30px;
    line-height: 1.5;
    padding-bottom: 10px;
}
/* ==========================================
   GOM GỌN: CÔNG TẮC ĐIỀU KHIỂN GIAO DIỆN (MEDIA QUERIES)
========================================== */

/* 1. MÀN HÌNH ĐIỆN THOẠI (Tối đa 768px) */
@media (max-width: 768px) {
    /* Ẩn các khu vực dành riêng cho máy tính */
    .custom-header { display: none !important; }
    .desktop-header { display: none !important; }
    .desktop-menu { display: none; }
    .desktop-steps { display: none !important; }
    .desktop-featured-section { display: none !important; } /* Đã thêm lệnh ẩn Cá mập */
    .desktop-jackpot-section { display: none !important; }
    .desktop-dont-miss-section { display: none !important; }
    .desktop-footer { display: none !important; }
    /* Bật các khu vực dành riêng cho điện thoại */
    .mobile-header { display: flex; }

    /* Điều chỉnh kích thước các thành phần khác */
    .logo { font-size: 20px; }
    .banner h1 { font-size: 24px; }
    .banner { padding: 20px 10px; }
    
    /* Điều chỉnh Banner Slider */
    .slide img {
        height: 200px; 
        object-fit: cover; 
        object-position: center; 
    }
    .slider-btn { width: 30px; height: 30px; font-size: 12px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
    .dot { width: 8px; height: 8px; }
    .dot.active { width: 20px; }
}

/* 2. MÀN HÌNH MÁY TÍNH (Từ 769px trở lên) */
@media (min-width: 769px) {
    /* Ẩn các khu vực dành riêng cho điện thoại */
    .sidebar { display: none; }
    .bottom-nav { display: none; }
    .mobile-header { display: none !important; }
    .mobile-jackpot-section { display: none !important; }
    .main-container { display: none !important; }
    .mobile-footer-app { display: none !important; }
    .mobile-footer-certs { display: none !important; }
    /* Đảm bảo hiển thị đúng cấu trúc */
    .desktop-steps { display: block; } /* Đã sửa lỗi flex ở đây */
    .game-area { width: 100%; height: auto; overflow: visible; padding: 40px; }
    .game-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
    .game-card img { height: 120px; }
    .banner h1 { font-size: 48px; }
}
/* ==========================================
   CSS CHO POPUP (MODAL) ĐĂNG NHẬP / ĐĂNG KÝ
========================================== */
/* Lớp phủ màn hình đen mờ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none; /* Mặc định ẩn */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Hiển thị modal khi được gọi */
.modal-overlay.show { display: flex; }

/* Hộp nội dung Modal */
.modal-content {
    background-color: #ebebeb; /* Nền xám nhạt như hình */
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    max-height: 90vh; /* Chống tràn màn hình */
    overflow-y: auto;
}

/* Thanh Header cam */
.modal-header {
    background-color: #ff5722;
    height: 35px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 10px;
}

.close-btn {
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.modal-logo {
    text-align: center;
    padding: 15px 0;
}
.modal-logo img { height: 60px; }

/* TABS Đăng nhập / Đăng ký */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #ff0000;
    margin: 0 20px 20px 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.auth-tab.active {
    color: #ff0000;
    position: relative;
}

/* Dấu tam giác nhỏ dưới tab đang active */
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ff0000;
}

/* Ẩn hiện các Form */
.auth-form-wrapper {
    display: none;
    padding: 0 20px 20px 20px;
}
.auth-form-wrapper.active { display: block; }

/* === STYLE INPUT DÀNH CHO FORM ĐĂNG NHẬP === */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding-left: 40px; /* Chừa chỗ cho icon bên trái */
    padding-right: 60px; /* Chừa chỗ cho icon/chữ bên phải */
    background-color: transparent;
    color: #333;
    outline: none;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}

.forgot-link {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    color: #ff3d00;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.toggle-pw, .refresh-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
}

/* === STYLE DÀNH CHO FORM ĐĂNG KÝ === */
.form-group-reg {
    margin-bottom: 15px;
}

.form-group-reg label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.text-orange { color: #ff5722; margin-right: 5px; }

.form-group-reg .input-wrapper { position: relative; }

.form-group-reg input {
    width: 100%;
    height: 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
    padding: 0 10px;
    outline: none;
}

.help-text {
    display: block;
    font-size: 10px;
    color: #777;
    margin-top: 3px;
}

.terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 15px;
}

.terms-check a { color: #0066cc; text-decoration: underline; }

/* Nút Submit chung */
.btn-submit-auth {
    width: 100%;
    height: 45px;
    background-color: #ff3d00;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease; /* Thêm hiệu ứng chuyển đổi mềm mại */
}
.btn-submit-auth.reg-btn { background-color: #f78b5e; }

/* 👇 THÊM ĐOẠN NÀY ĐỂ XỬ LÝ KHI NÚT BỊ KHÓA (CHƯA ĐIỀN ĐỦ) 👇 */
.btn-submit-auth:disabled {
    opacity: 0.4; /* Làm mờ nút đi 60% */
    cursor: not-allowed; /* Đổi con trỏ chuột thành biểu tượng cấm */
    pointer-events: none; /* Chặn hoàn toàn thao tác click khi đang mờ */
}