/* ==== RESET CƠ BẢN ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: Arial, sans-serif;
    background-color: var(--over-bg);
    color: var(--site-text);
    padding-top: 80px;
    padding-bottom: 71px;
    display: flex;
    justify-content: center;

}

.wrapper {
    width: 100%;
    max-width: 480px;
    background-color: var(--site-bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;

}

/* ==== HEADER CHIA 2 KHỐI ==== */
#header {
    width: 100%;
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0;

}

#header .header-inner {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;

}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;

}

.header-logo-block,
.header-btn-block {
    width: auto;

}

.logo img {
    max-height: 100%;
    max-width: 120px;
    height: auto;

}

.btn-left {
    display: flex;
    gap: 15px;

}

.btn-left .action-btn {
    position: relative;
    display: inline-block;
    padding: 10px 10px;
    background-color: var(--btn-bg, #ffcc00);
    color: var(--btn-text-color, #fff);
    border: 1px solid transparent;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

@media (max-width: 480px) {
    .btn-left .action-btn {
        padding: 6px 6px;
        font-size: 15px;

    }

}

.btn-left .action-btn::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(270deg, #5E35B1, #03A9F4, #2E7D32);
    background-size: 600% 600%;
    z-index: -1;
    border-radius: 28px;
    animation: borderRun 3s linear infinite;

}

.btn-left .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.4);

}

.btn-left .action-btn:active {
    transform: scale(0.97);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);

}

@keyframes borderRun {
    0% {
        background-position: 0% 50%;

    }

    50% {
        background-position: 100% 50%;

    }

    100% {
        background-position: 0% 50%;

    }

}

/* ==== MOBILE HEADER ==== */
@media (max-width: 480px) {
    #header .header-inner {
        flex-direction: column;

    }

    .header-content {
        flex-direction: column;
        padding: 0;

    }

    .header-logo-block {
        width: 100%;
        background-color: transparent;
        text-align: center;
        padding: 5px 0;

    }

    body {
        padding-top: 0px;

    }


    /* Desktop và mobile chung */
    .header-btn-block {
        display: flex;
        flex-direction: column;

        /* Đảm bảo xếp dọc */
        align-items: center;
        justify-content: center;
        background: #E7B70E;
        padding: 2px 0;
        width: auto;
        min-height: 0;

    }

    .logo img {
        max-width: 160px;
        height: auto;

    }

    .btn-left {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;

    }

}

/* II. Banner */
#banner {
    width: 100%;
    max-width: 480px;

    /* Giá trị tối đa tuỳ ý */
    margin: 5px auto;
    position: relative;
    overflow: hidden;

    /* Sử dụng aspect-ratio để giữ tỉ lệ 407: 120 */
    aspect-ratio: 407 / 120;

}

.slides {
    position: relative;
    width: 100%;
    height: 100%;

}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;

}

.slide.active {
    opacity: 1;

}

#banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.slider-dots {
    position: absolute;
    bottom: 5px;
    width: 100%;
    text-align: center;

}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: #ccc;
    border-radius: 50%;

}

.dot.active {
    background-color: var(--primary-color);

}

/* III. Marquee */
#marquee {
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    white-space: nowrap;
    margin: 8px auto;
    background-color: transparent;
    padding: 1px;
    font-size: 20px;

}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;

}

@keyframes marquee {
    from {
        transform: translateX(0);

    }

    to {
        transform: translateX(-100%);

    }

}

/* IV. Quảng cáo thu hút (Advertisement) */
#ad {
    width: 95%;
    max-width: 480px;
    margin: 5px auto;

    /* Giữ tỉ lệ 407: 94 */
    aspect-ratio: 407 / 94;
    background-image: url('qc1.avif');

    /* Thay bằng ảnh nền thực tế */
    background-size: cover;
    background-position: center;
    position: relative;

    /* Để có thể định vị phần counter tuyệt đối bên trong */
    overflow: hidden;

}

/* Phần số đếm (counter) với các biến để tùy chỉnh kích thước, màu sắc và vị trí */
#ad #counter {
    position: absolute;

    /* Vị trí có thể điều chỉnh qua biến CSS, mặc định nằm ở giữa */
    top: var(--counter-top, 90%);
    left: var(--counter-left, 50%);
    transform: translate(-50%, -50%);

    /* Kích thước và màu sắc */
    font-size: var(--counter-font-size, 20px);
    font-weight: var(--counter-font-weight, bold);
    color: var(--counter-color, var(--secondary-color));

}

/* V. Phần hiển thị các nút */
#buttons-section {
    width: 90%;
    max-width: 480px;
    margin: 10px auto;
    display: flex;
    justify-content: center;

}

.btn-left {
    margin-left: auto;

    /* đẩy nhóm nút sang phải */
    display: flex;
    gap: 8px;

    /* khoảng cách giữa nút Registro và Login */

}

/* VI. Phần hiển thị ảnh */
#image-section {
    width: 90%;
    max-width: 480px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;

}

.square-img {
    width: 100%;

    /* Để giữ tỷ lệ vuông, sử dụng padding-top hoặc thuộc tính aspect-ratio */
    aspect-ratio: 1 / 1;
    object-fit: cover;

}

/* ✨ Video responsive vuông 720×720 với viền vàng và bo góc */
#intro-video .video-container {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1/1;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid #FFD700;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

#intro-video .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

/* ✨ Ảnh banner 1020×300 responsive */
#banner-image {
    width: 100%;
    max-width: 1020px;

    /* giới hạn chiều ngang */
    aspect-ratio: 1020 / 300;

    /* giữ đúng tỉ lệ */
    margin: 0 auto 20px;

    /* canh giữa, cách dưới 20px */
    overflow: hidden;

}

#banner-image .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* cắt gọn nếu ảnh khác tỉ lệ */
    display: block;

}

/* VII. Thông tin trang */
#page-info {
    width: 90%;
    max-width: 480px;
    margin: 10px auto;
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;

}

/* ==== FOOTER ==== */
#footer {
    width: 100%;
    background-color: var(--footer-bg);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;

}

#footer .footer-inner {
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: 60px;

}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;

}

.footer-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    margin-bottom: 2px;

}

.footer-item span {
    color: var(--footer-itemtext);

}

/* Container cho slider icon */
#icon-slider {
    width: 100%;
    max-width: 480px;

    /* bạn có thể điều chỉnh phù hợp */
    margin: 10px auto;
    overflow: hidden;

}

/* Sử dụng flex để xếp icon theo hàng ngang */
.icon-container {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    font-size: 16px;

}

/* Đặt kích thước cố định cho mỗi icon */
.icon-item {
    min-width: 100px;
    text-align: center;
    cursor: pointer;

}

.icon-item img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    display: block;
    margin: 0 auto;

    /* Kích thước icon */
    height: 30px;

}

/* Phần ảnh gallery */
#gallery {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    text-align: center;

}

#gallery img {
    width: 100%;
    max-width: 480px;
    height: auto;

}

/* Đảm bảo body tràn đầy màn hình */
body {
    font-family: sans-serif;

}

/* Khu vực slider icon */
#icon-slider {
    width: 100%;
    max-width: 480px;

    /* Để chỉ hiển thị khoảng 5 icon, bạn điều chỉnh phù hợp */
    margin: 10px auto;
    overflow-x: auto;

    /* Cho phép cuộn ngang */
    -webkit-overflow-scrolling: touch;

}

.icon-container {
    display: flex;
    gap: 10px;

    /* Nếu muốn animation trượt, có thể dùng transition transform */
    transition: transform 0.3s ease;

}

.icon-item {
    min-width: 80px;
    text-align: center;
    cursor: pointer;

}

.icon-link {
    display: inline-block;
    text-decoration: none;
    color: #333;

}

/* Cấu hình cho section ảnh */
section[id^="image"] {
    width: 90%;
    margin: 10px auto;

    /* Giảm khoảng cách trên dưới */
    text-align: center;

}

/* Cấu hình cho các ảnh bên trong section */
section[id^="image"] img {
    width: 100%;
    height: auto;
    min-height: 220px;
    margin-bottom: 10px;
    border: none;

}

.image-with-label {
    display: flex;
    align-items: center;
    margin-left: 10px;

}

.image-with-label img {
    width: 40px;
    height: 30px;
    object-fit: cover;

}

.image-with-label span {
    margin-left: 10px;

    /* Khoảng cách giữa ảnh và văn bản */
    font-size: 18px;

    /* Có thể điều chỉnh kích thước chữ */
    color: var(--site-text);

}

/* Đồng bộ lại icon-item để tránh lệch */
.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;

}

.icon-item img {
    width: 40px;
    height: 30px;
    object-fit: contain;
    display: block;
    margin: 0 auto;

}

.icon-item span {
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.2;

}

/* Banner container */
#fixed-banner-container {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end
}

#fixed-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    width: 100%;
    margin: 0 auto;
    background: #transparent;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 10px rgb(0 0 0 / .3);
    margin-top: 1px;
    grid-auto-flow: row dense
}

#fixed-banner>a:nth-of-type(4n+1),
#fixed-banner>a:nth-of-type(4n+2) {
    grid-column: 1
}

#fixed-banner>a:nth-of-type(4n+3),
#fixed-banner>a:nth-of-type(4n+4) {
    grid-column: 2
}

#fixed-banner>a {
    display: block;
    width: 100%
}

#fixed-banner>a img {
    width: 100%;
    height: auto;
    display: block
}

#view-ads {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(calc(240px - 100%));
    background-color: #000;
    color: #fff;
    border: none;
    padding: 2px 2px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    z-index: 9999
}

@media (max-width: 480px) {
    #view-ads {
        left: auto;
        right: 10px;
        transform: none
    }
}

/* Hai khối riêng biệt trong header */
.header-logo-block,
.header-btn-block {
    width: auto;

}

/* MOBILE: Chia thành 2 khối với nền riêng biệt */
@media (max-width: 480px) {
    #header {
        height: auto;
        padding: 0;
        flex-direction: column;

    }

    .header-content {
        flex-direction: column;
        padding: 0;

    }

    .header-btn-block {
        width: 100%;
        padding: 3px 0;

        /* Nếu muốn cao hơn xíu trên mobile */

    }

    .logo img {
        max-width: 160px;
        height: auto;

    }

    .btn-left {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;

    }

}

@media (min-width: 480px) {
    #header {
        height: 140px;

        /* hoặc giá trị bạn thích, ví dụ 75px, 90px */
        min-height: 110px;

    }

    .header-content {
        height: 120px;
        min-height: 110px;
        align-items: center;

    }

}

body {
    background: var(--over-bg);

    /* hoặc màu tuỳ ý */

}

.wrapper {
    width: 100%;
    max-width: 480px;
    background-color: var(--site-bg);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;

    /* Tạo bóng nếu muốn nổi bật khối chính: */
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.05);

}

#header {
    width: 100%;
    display: flex;
    justify-content: center;
    left: 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#footer {
    width: 100%;
    display: flex;
    justify-content: center;
    left: 0;
    background: transparent;
    position: fixed;
    z-index: 1000;
}

.header-inner,
.footer-inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    background-color: var(--header-bg);

}

.footer-inner {
    background-color: var(--footer-bg);

}

.btn-below {
    display: flex;
    gap: 2px;
    margin-top: 6px;
    justify-content: center;

}

.btn-below2 {
    display: flex;
    gap: 1px;
    margin-top: 1px;
    justify-content: center;

}

.action-btn-nohu {
    position: relative;
    display: inline-block;
    padding: 5px 5px;
    background: linear-gradient(135deg, #D32F2F 0%, #E53935 100%);
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

}

.action-btn-789p {
    position: relative;
    display: inline-block;
    padding: 6px 8px;
    background: #FFFFFF;

    /* nền trắng */
    color: #FE3F03;

    /* chữ cam đỏ */
    border: 1px solid #242A41;

    /* viền xanh đen */
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.4s ease;
    box-shadow: 0 4px 8px rgba(36, 42, 65, 0.2);

    /* bóng nhẹ theo màu viền */

}

.action-btn-au88 {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #1E96FF 0%, #1E96FF 100%);
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

}

.action-btn-89bet {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    color: #FFD700;

    /* vàng ánh kim */
    border: 1px solid #fff;

    /* <-- Thêm viền trắng */
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease, border-color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

}

.action-btn-888top {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #1C9F72 0%, #167E5D 100%);
    color: #ffffff;

    /* trắng để tương phản */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(28, 159, 114, 0.3);

}

.action-btn-ev99 {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #6c9659 0%, #057250 100%);
    color: #ffffff;

    /* trắng để tương phản */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(28, 159, 114, 0.3);

}

.action-btn-99win {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: #142C4F;

    /* màu nền mới */
    color: #FDE8A1;

    /* màu chữ mới */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(20, 44, 79, 0.3);

    /* shadow theo màu nền */

}

.action-btn-i9bet {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #1266DD 0%, #0F52B2 100%);
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(18, 102, 221, 0.3);

}

.action-btn-888new {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #78E02B 0%, #5CB51F 100%);
    color: #000000;
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(120, 224, 43, 0.3);

}

.action-btn-mmoo {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #A0015F 0%, #7D014C 100%);
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(160, 1, 95, 0.3);

}

.action-btn-ok365 {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #03523D 0%, #023A2B 100%);
    color: #FFD700;

    /* vàng */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(3, 82, 61, 0.3);

}

.action-btn-go99 {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #B70000 0%, #8A0000 100%);
    color: #FFD700;

    /* vàng */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(183, 0, 0, 0.3);

}

.action-btn-nn88 {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    color: #FED574;

    /* vàng nhạt */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.4);

}

.action-btn-okking {
    position: relative;
    display: inline-block;
    padding: 6px 6px;
    background: linear-gradient(135deg, #4C0A04 0%, #300602 100%);
    color: #FEFC00;

    /* vàng tươi */
    border: 1px solid #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    box-shadow: 0 4px 8px rgba(76, 10, 4, 0.3);

}

.wrapper {
    position: relative;

    /* rất quan trọng */

}

.wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;

}

#popup {
    display: none;
    position: fixed;
    top: 60px;

    /* chỉnh theo header thực tế */
    bottom: 65px;

    /* chỉnh theo footer thực tế */
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;

}

#popup-content {

    /* đổi layout: 2 popup / hàng */
    display: flex;
    flex-wrap: wrap;

    /* cho phép xuống hàng */
    align-items: flex-start;
    justify-content: center;
    width: 95vw;

    /* giữ như gốc */
    max-width: 420px;

    /* giữ như gốc */
    max-height: 85vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    padding: 6px 3px;

    /* lề trong 2 bên = 5px */
    pointer-events: auto;
    gap: 3px;

    /* khoảng cách giữa các popup */

}

/* Desktop: có thể giảm xuống 70vw, vẫn max 420px */
@media (min-width: 600px) {
    #popup-content {
        width: 70vw;
        max-width: 420px;

    }

}

#popup-content a {

    /* mỗi item chiếm nửa hàng, trừ khoảng cách 5px */
    flex: 1 1 calc(50% - 3px);
    max-width: calc(50% - 3px);
    height: auto;
    padding: 1px;
    display: block;
    border-top: 1px solid #eee;

}

#popup-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 150px;

    /* <= thêm nếu muốn không quá cao */
    object-fit: contain;
    display: block;
    border-radius: 4px;

}

#popup-close {
    position: absolute;
    top: 3px;
    right: 3px;
    background: transparent;
    color: #E7B70F;
    border: 1px solid #fff;

    /* viền trong (trắng) */
    outline: 2px solid #000;

    /* viền ngoài (đen) */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    outline-offset: -0px;

    /* chỉnh khoảng cách nếu muốn 2 viền gần hơn */

}

/* Container chính */
.about-us-page {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;

}

/* Tiêu đề trang */
.about-us-page>h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #1a1a1a;

}

/* Đoạn mở đầu */
.intro-paragraph {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;

}

/* Section chung */
.about-us-page section {
    margin-bottom: 40px;

}

/* Mission & Vision: hai cột */
.mission-vision {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

}

.mission-box,
.vision-box {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;

}

.mission-box h2,
.vision-box h2 {
    margin-bottom: 10px;
    color: #005b96;

}

/* Câu chuyện */
.our-story h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #005b96;

}

/* Gặp gỡ team */
.meet-the-team .ceo-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;

}

.ceo-avatar {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #005b96;

}

.ceo-info h3 {
    margin-top: 0;
    font-size: 22px;

}

.ceo-info .ceo-title {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;

}

.ceo-info blockquote {
    margin: 0;
    padding: 15px 20px;
    background: #eef6fb;
    border-left: 4px solid #005b96;
    border-radius: 4px;

}

/* Core values: grid 2 cột trên desktop */
.core-values .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;

}

.value-item h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #005b96;

}

.value-item p {
    margin: 0;

}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 30px 20px;
    background: #f0f8ff;
    border-radius: 8px;

}

.final-cta h2 {
    margin-bottom: 15px;
    font-size: 26px;
    color: #005b96;

}

.final-cta p {
    margin-bottom: 20px;
    font-size: 18px;

}

/* Nút kêu gọi hành động */
.action-button {
    display: inline-block;
    padding: 12px 24px;
    background: #005b96;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;

}

.action-button:hover {
    background: #004080;
    transform: translateY(-2px);

}

.action-button:active {
    transform: translateY(0);

}

/* Container chính */
.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;

}

/* Banner */
.privacy-policy__banner {
    text-align: center;
    margin-bottom: 30px;

}

.privacy-policy__banner .banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;

}

/* Header chính */
.privacy-policy__header {
    text-align: center;
    margin-bottom: 40px;

}

.privacy-policy__title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #005b96;

}

.privacy-policy__timestamp {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;

}

.privacy-policy__intro {
    font-size: 16px;

}

/* Các section chung */
.privacy-policy__section {
    margin-bottom: 40px;

}

.privacy-policy__section-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #005b96;

}

.privacy-policy__section-content {
    padding-left: 20px;

}

/* Danh sách */
.privacy-policy__list {
    list-style-type: disc;
    margin-left: 40px;

}

.privacy-policy__list-item {
    margin-bottom: 10px;

}

/* FAQ (nếu có nội dung) */
.privacy-policy__faq {

    /* bỏ khung hoặc thêm khoảng cách nếu cần */
    margin-top: 20px;

}

/* Link quay về */
.privacy-policy__back-link {
    text-align: center;
    margin-top: 50px;
    font-size: 16px;

}

.privacy-policy__back-link a {
    color: #005b96;
    text-decoration: none;
    font-weight: bold;

}

.privacy-policy__back-link a:hover {
    text-decoration: underline;

}

.seo-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 15px;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #222;

}

.seo-intro h1 {
    font-size: 28px;
    color: #d32f2f;
    margin-bottom: 20px;
    text-align: center;

}

.seo-intro h2 {
    font-size: 22px;
    margin-top: 24px;
    color: #444;
    border-left: 5px solid #d32f2f;
    padding-left: 10px;

}

.seo-intro h3 {
    font-size: 18px;
    margin-top: 20px;
    color: #555;

}

.seo-intro p {
    margin-bottom: 16px;

}

.seo-intro ul {
    padding-left: 20px;
    margin-bottom: 16px;

}

.seo-intro li {
    margin-bottom: 8px;

}

.seo-intro a {
    color: #d32f2f;
    text-decoration: none;

}

.seo-intro a:hover {
    text-decoration: underline;

}

/* Container khối nút trong header */
.header-btn-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;

}

/* Các hàng nút phải full width */
.btn-left,
.btn-below,
.btn-below2 {
    width: 100%;

}

/* Hàng nút trên (Đăng ký/Đăng nhập) */
.btn-left {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-left: 0;

}

/* Cụm nút dưới: 4 nút / hàng, cụm căn giữa */
.btn-below,
.btn-below2 {
    --gap: 2px;

    /* đổi nếu muốn nới khoảng cách */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap);

}

/* Mỗi nút = 1/4 chiều ngang (trừ gap), nội dung căn giữa */
.btn-below a,
.btn-below2 a {
    flex: 0 0 calc((100% - 3*var(--gap)) / 4);
    max-width: calc((100% - 3*var(--gap)) / 4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;

}

/* Logo giữa, khối nút ở hàng kế tiếp (desktop) */
@media (min-width: 480px) {
    .header-logo-block {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        order: 0;
        margin: 0 auto;

    }

    .header-btn-block {
        width: 100%;
        align-items: stretch;

    }

}

/* Bỏ padding-top cố định */
body {
    padding-top: 0 !important;

}

/* Header sticky - pin khi scroll */
#header {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

/* Đừng gộp header + footer cùng fixed nữa */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;

}

.faq-section {
    max-width: 800px;
    margin: 30px auto;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    font-family: Arial, sans-serif;

}

.faq-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
    text-align: center;
    position: relative;

}

.faq-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #ff6600;

    /* màu nhấn */
    margin: 8px auto 0;
    border-radius: 2px;

}

.faq-section h3 {
    font-size: 18px;
    margin: 15px 0 8px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;

}

.faq-section h3:hover {
    color: #ff6600;

}

.faq-section p {
    margin: 0 0 15px;
    line-height: 1.6;
    color: #555;
    padding-left: 10px;
    border-left: 3px solid #eee;

}

.faq-section a {
    color: #ff6600;
    font-weight: bold;
    text-decoration: none;

}

.faq-section a:hover {
    text-decoration: underline;

}

/* ============================================
   HAMBURGER + DRAWER — THÊM VÀO CUỐI FILE CSS
   ============================================ */

/* Nút hamburger cố định góc trái, thoát khỏi wrapper */
.hamburger-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: rgba(0, 0, 0, 0.65);
    border: none;
    border-radius: 8px;
    cursor: pointer;

}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #FFD700;
    border-radius: 2px;

}

/* Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;

}

/* Drawer — position: fixed thoát khỏi wrapper và overflow: hidden */
.drawer-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    max-width: 80vw;
    height: 100vh;
    background: #1a1a2e;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);

}

.drawer-sidebar.open {
    transform: translateX(0);

}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #16213e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;

}

.drawer-title {
    color: #FFD700;
    font-size: 17px;
    font-weight: 700;

}

.drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

}

.drawer-auth {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: #16213e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}

.drawer-auth-btn {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

}

.drawer-auth-btn.register {
    background: linear-gradient(135deg, #FF6B35, #E53935);
    color: #fff;

}

.drawer-auth-btn.login {
    background: linear-gradient(135deg, #1565C0, #0288D1);
    color: #fff;

}

.drawer-section-title {
    padding: 12px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 1px;
    text-transform: uppercase;

}

.drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;

}

.drawer-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;

}

.drawer-item:hover,
.drawer-item:active {
    background: rgba(255, 215, 0, 0.08);
    color: #FFD700;

}

.drawer-icon {
    width: 28px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;

}

.drawer-icon-emoji {
    width: 28px;
    text-align: center;
    font-size: 18px;
    flex-shrink: 0;

}

.drawer-arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;

}

/* Hamburger: trên desktop căn theo wrapper 480px, không phải mép màn hình */
@media (min-width: 480px) {
    .hamburger-btn {
        left: 50%;
        transform: translateX(calc(-240px + 10px));

        /* 240px = 480px/2, nên nút sẽ nằm đúng góc trái của wrapper */

    }

}

/* ===== CSS RIÊNG TRANG NỔ HŨ ===== */

/* Hero banner đầu trang */
.nohu-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    margin-bottom: 0;

}

.nohu-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.nohu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    text-align: center;

}

.nohu-hero-overlay h1 {
    color: #FFD700;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    line-height: 1.3;

}

.nohu-hero-overlay .hero-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #FF6B35, #E53935);
    color: #fff;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.5);

}

/* Thanh jackpot chạy */
.jackpot-bar {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 2px solid #FFD700;

}

.jackpot-bar .jackpot-label {
    color: #FFD700;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;

}

.jackpot-bar .jackpot-num {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: 1px;

}

/* Grid ảnh game nổi bật */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 14px 10px;

}

.game-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);

}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;

}

.game-card:hover img {
    transform: scale(1.05);

}

.game-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #FFD700;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 6px 5px;
    text-align: center;

}

.game-card .hot-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #E53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;

}

/* Section tiêu đề có gạch vàng */
.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 6px;

}

.section-heading .line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #FFD700, transparent);

}

.section-heading .line.right {
    background: linear-gradient(to left, #FFD700, transparent);

}

.section-heading span {
    color: var(--site-text, #fff);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;

}

/* Ảnh full width có caption */
.full-img-block {
    padding: 6px 10px;

}

.full-img-block img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);

}

.full-img-block .caption {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    font-style: italic;

}

/* Bảng lợi ích (benefit cards) */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 6px 10px 14px;

}

.benefit-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;

}

.benefit-card .b-icon {
    font-size: 26px;
    margin-bottom: 6px;

}

.benefit-card .b-title {
    color: #FFD700;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;

}

.benefit-card .b-desc {
    color: #ccc;
    font-size: 11px;
    line-height: 1.4;

}

/* Bước hướng dẫn */
.steps-list {
    padding: 6px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 12px;
    padding: 12px;
    border-left: 3px solid #FFD700;

}

.step-num {
    background: #FFD700;
    color: #1a1a2e;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

}

.step-content .step-title {
    color: #FFD700;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;

}

.step-content .step-desc {
    color: #ccc;
    font-size: 12px;
    line-height: 1.5;

}

/* Mẹo chơi */
.tips-list {
    padding: 6px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.15);

}

.tip-item .tip-icon {
    font-size: 18px;
    flex-shrink: 0;

}

.tip-item .tip-text {
    color: var(--site-text, #eee);
    font-size: 13px;
    line-height: 1.5;

}

/* FAQ */
.faq-nohu {
    padding: 6px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.faq-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.15);

}

.faq-item .faq-q {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #FFD700;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.faq-item .faq-q::after {
    content: "›";
    font-size: 20px;
    transition: transform 0.3s;

}

.faq-item.open .faq-q::after {
    transform: rotate(90deg);

}

.faq-item .faq-a {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    color: #ccc;
    font-size: 12px;
    line-height: 1.6;
    padding: 10px 14px;

}

.faq-item.open .faq-a {
    display: block;

}

/* CTA button cuối trang */
.cta-block {
    padding: 20px 14px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 10px 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.25);

}

.cta-block p {
    color: #ccc;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;

}

.cta-block .cta-btn {
    display: inline-block;
    padding: 13px 30px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #1a1a2e;
    border-radius: 25px;
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);

}

/* Nội dung SEO prose */
.nohu-prose {
    padding: 6px 14px 14px;
    color: var(--site-text, #eee);
    font-size: 14px;
    line-height: 1.7;

}

.nohu-prose h2 {
    font-size: 17px;
    color: #FFD700;
    border-left: 4px solid #FFD700;
    padding-left: 10px;
    margin: 18px 0 10px;

}

.nohu-prose h3 {
    font-size: 14px;
    color: #FF8C00;
    margin: 14px 0 6px;

}

.nohu-prose p {
    margin-bottom: 12px;

}

.nohu-prose ul {
    padding-left: 18px;
    margin-bottom: 12px;

}

.nohu-prose li {
    margin-bottom: 6px;

}

.nohu-prose a {
    color: #FFD700;
    text-decoration: none;

}

/* 2-ảnh ngang nhau */
.img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px 10px;

}

.img-row img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);

}

/* ===== FIX ẢNH CEO ===== */
.ceo-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ceo-avatar {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 12px !important;
    /* vuông bo góc thay vì tròn */
    border: 3px solid #FFD700 !important;
    display: block;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .ceo-profile {
        flex-direction: row;
        align-items: flex-start;
    }

    .ceo-avatar {
        width: 180px !important;
        height: 180px !important;
        flex-shrink: 0;
    }
}

.wrapper {
    overflow: clip !important;
}