:root{
    --gold:#ffd700;
    --dark:#0b011a;
    --purple:#2a085c;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    padding-top:calc(var(--site-topbar-height, 90px) + 40px);

    background:
    linear-gradient(
        rgba(0,0,0,.82),
        rgba(0,0,0,.82)
    ),
    url('/shared/images/background.webp');

    background-size:cover;
    background-position:center;
    background-attachment:fixed;

    font-family:Arial,sans-serif;
    color:#fff;
}




/* =========================
   MARQUEE
========================= */

.marquee-wrapper{
    position:fixed;
    left:0;
    right:0;
    bottom:0;

    width:100%;
    max-width:100vw;

    overflow:hidden;

    z-index:9999;
}

.marquee-text{

    display:inline-block;

    white-space:nowrap;

    font-size:16px;

    font-weight:700;

    color:#fff;

    padding-left:100%;

    animation:marqueeMove 28s linear infinite;

    text-shadow:
        0 0 2px #fff,
        0 0 6px rgba(255,215,0,.55);
}

@keyframes marqueeMove{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-100%);
    }
}

/* =========================
   MAIN
========================= */

main{
    max-width:1280px;
    margin:0 auto;
    padding:40px 20px;
}

.game-grid{

    display:flex;

    gap:30px;

    justify-content:center;

    flex-wrap:wrap;
}

/* =========================
   GAME CARD
========================= */

.game-card{

    width:280px;

    background:
    rgba(20,10,35,.93);

    border-radius:20px;

    overflow:hidden;

    border:2px solid #444;

    transition:.3s;

    box-shadow:
    0 0 20px rgba(0,0,0,.5);
}

.game-card:hover{

    transform:translateY(-8px);

    border-color:var(--gold);
}

.game-thumb{

    height:170px;

    background-size:cover;

    background-position:center;
}

.thumb-slot{
    background-image:url('/shared/images/solt.webp');
}

.thumb-lucky{
    background-image:url('/shared/images/lucky.webp');
}

.thumb-fish{
    background-image:url('/shared/images/banca.webp');
}

.thumb-tx{
    background-image:url('/shared/images/sicbo.webp');
}

.thumb-funnel{
    background-image:url('/shared/images/funnel.png');
}

.thumb-bongda{
    background-image:url('/shared/images/bongda.png');
}

.thumb-daga{
    background-image:url('/shared/images/daga.png');
}

.game-details{
    padding:20px;
}

.game-title{

    font-size:20px;

    color:var(--gold);

    font-weight:bold;

    margin-bottom:10px;
}

.game-details p{

    color:#ddd;

    margin-bottom:18px;
}

/* =========================
   PLAY BUTTON
========================= */

.btn-play{

    width:100%;

    border:none;

    padding:14px;

    border-radius:12px;

    background:
    linear-gradient(
        #4caf50,
        #2e7d32
    );

    color:#fff;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;
}

.btn-play:hover{
    transform:scale(1.03);
}

/* =========================
   MODAL
========================= */

.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.72);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    backdrop-filter:blur(5px);
}

.modal.open{
    display:flex;
}

.modal-box{

    width:320px;

    background:#1b1230;

    padding:20px;

    border-radius:16px;

    border:2px solid gold;

    box-shadow:
    0 0 30px rgba(0,0,0,.5);
}

.modal-box h2{

    margin-top:0;

    margin-bottom:18px;

    color:gold;
}

.modal-box input{

    width:100%;

    padding:12px;

    margin-bottom:12px;

    border:none;

    border-radius:10px;

    outline:none;

    background:#2b2345;

    color:#fff;
}

.modal-box button{

    width:100%;

    padding:12px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-weight:bold;
}

.modal-box form button{

    background:
    linear-gradient(
        #ffd700,
        #ff9800
    );

    color:#000;
}

.close-btn{

    margin-top:10px;

    background:#444 !important;

    color:#fff !important;
}

/* =========================
   PROFILE
========================= */

.profile-tabs{

    display:flex;

    gap:6px;

    margin:16px 0;
}

.profile-tab{

    flex:1;

    border:none;

    padding:10px;

    border-radius:10px;

    cursor:pointer;

    background:#2b2345;

    color:#ccc;

    font-size:12px;

    font-weight:bold;
}

.profile-tab.active{

    background:gold;

    color:#000;
}

.profile-tab-content{
    display:none;
}

.profile-tab-content.active{
    display:block;
}

.profile-stat-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.08);
}

.profile-stat-label{
    color:#aaa;
    font-size:13px;
}

.profile-stat-value{
    font-weight:bold;
    color:#fff;
}

/* =========================
   JACKPOT
========================= */

.jackpot-center-wrap{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-top:40px;

    margin-bottom:20px;

    position:relative;

    z-index:50;
}

.jackpot-container{

    position:relative;

    width:460px;

    max-width:92%;
}

.jackpot-frame{

    width:100%;

    display:block;

    animation:jackpotGlow 2s infinite alternate;
}

.jackpot-number{

    position:absolute;

    top:55%;

    left:54%;

    transform:translate(-50%,-50%);

    width:100%;

    text-align:center;

    font-size:46px;

    font-weight:900;

    font-family:'Arial Black';

    color:#ffe600;

    letter-spacing:1px;

    white-space:nowrap;

    text-shadow:
        0 0 5px #fff,
        0 0 10px #ff0,
        0 0 20px orange,
        0 0 35px red;
}

@keyframes jackpotGlow{

    from{
        filter:drop-shadow(0 0 10px gold);
    }

    to{
        filter:drop-shadow(0 0 30px orange);
    }
}

/* =========================
   MOBILE JACKPOT FIX
========================= */

@media (max-width:768px){

    .jackpot-center-wrap{

        width:100%;

        display:flex;

        justify-content:center;

        align-items:center;

        margin-top:25px;

        margin-bottom:15px;
    }

    .jackpot-container{

        position:relative;

        left:18px;

        max-width:85%;
    }

    .jackpot-number{

        left:54%;

        font-size:38px;
    }
}

/* Điện thoại nhỏ */

@media (max-width:420px){

    .jackpot-container{

        left:15px;

        max-width:82%;
    }

    .jackpot-number{

        font-size:30px;

        left:54%;
    }
}

/* =========================
   FOOTER
========================= */

.casino-footer{

    margin-top:60px;

    background:
    linear-gradient(
        180deg,
        rgba(10,10,15,.98),
        rgba(0,0,0,1)
    );

    border-top:
    1px solid rgba(255,215,0,.25);

    padding:
    50px 20px 20px;
}

.footer-container{

    max-width:1100px;

    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:25px;

    text-align:center;
}

.footer-box{
    padding:5px;
}

.footer-box h3{

    margin-top:0;

    color:var(--gold);

    font-size:16px;

    margin-bottom:14px;
}

.footer-box p{

    color:#aaa;

    font-size:13px;

    line-height:1.7;
}

.footer-box ul{

    list-style:none;

    padding:0;
}

.footer-box li{

    margin-bottom:10px;

    color:#aaa;

    font-size:13px;
}

.footer-box a{

    color:#aaa;

    text-decoration:none;

    transition:.2s;
}

.footer-box a:hover{
    color:var(--gold);
}

.footer-bottom{

    margin-top:30px;

    padding-top:18px;

    text-align:center;

    border-top:
    1px solid rgba(255,255,255,.06);

    color:#666;

    font-size:12px;

    letter-spacing:1px;
}

/* =========================
   MOBILE
========================= */

@media (max-width:768px){

    body{
        overflow-x:hidden;
        padding-top:calc(var(--site-topbar-height, 220px) + 20px);
    }

    .game-grid{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .game-card{
        width:100%;
        margin:0;
    }

    .game-thumb{
        height:120px;
    }

    .game-details{
        padding:12px;
    }

    .game-title{
        font-size:16px;
    }

    .game-details p{
        font-size:12px;
        margin-bottom:10px;
    }

    .btn-play{
        padding:10px;
        font-size:13px;
    }

    .modal-box{
        width:95% !important;
        max-width:95%;
    }

    .jackpot-container{
        width:320px;
        max-width:95%;
    }

    .jackpot-number{
        font-size:30px;
    }

    .marquee-text{
        font-size:12px;
    }

    .profile-tabs{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:6px;
    }

    .profile-tab{
        font-size:11px;
        padding:8px;
    }

    .bh-stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:600px){

    .footer-container{
        grid-template-columns:1fr;
    }

    main{
        padding:20px 10px;
    }
}

/* =========================
   BET HISTORY
========================= */

.bh-empty {
    text-align: center;
    color: #888;
    padding: 28px 0;
    font-size: 13px;
}

/* Thống kê tổng quan */
.bh-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px 8px;
    margin-bottom: 14px;
}
.bh-stat-item { text-align: center; }
.bh-stat-val  { font-size: 18px; font-weight: bold; color: #fff; line-height: 1.2; }
.bh-stat-lbl  { font-size: 10px; color: #888; margin-top: 3px; }

/* Filter bar — NGANG */
.bh-filter-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.bh-filter {
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #aaa;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}
.bh-filter.active,
.bh-filter:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
    font-weight: bold;
}

/* Mỗi dòng lịch sử */
.bh-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bh-row:last-child { border-bottom: none; }

/* Icon game */
.bh-game-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.bh-amount {
    font-weight: bold;
    font-size: 14px;
    line-height: 1.3;
}
.bh-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bh-note {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* Badge */
.bh-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.bh-badge-win {
    background: rgba(0,230,118,0.12);
    color: #00e676;
    border: 1px solid rgba(0,230,118,0.3);
}
.bh-badge-lose {
    background: rgba(255,85,85,0.12);
    color: #ff7070;
    border: 1px solid rgba(255,85,85,0.25);
}
.bh-badge-pending {
    background: rgba(255,193,7,0.12);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.3);
}

```css
/* =========================================
   CASINO FOOTER MOBILE UI
========================================= */

.casino-footer{
    margin-top:40px;
    background:
    linear-gradient(
    180deg,
    #161616 0%,
    #0d0d0d 100%
    );
    border-top:
    1px solid rgba(255,215,0,0.15);
    padding:
    22px 16px 90px;
    color:#fff;
}

.footer-top{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:24px;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:14px;
    background:
    rgba(255,255,255,0.03);
    border:
    1px solid rgba(255,255,255,0.06);
    border-radius:18px;
    padding:14px;
}

.footer-brand img{
    width:58px;
    height:58px;
    border-radius:14px;
    object-fit:cover;
}

.footer-brand h2{
    margin:0;
    font-size:18px;
    color:#ffd700;
}

.footer-brand p{
    margin:5px 0 0;
    font-size:12px;
    color:#aaa;
    line-height:1.6;
}

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

.footer-stat-card{
    background:
    rgba(255,255,255,0.03);
    border:
    1px solid rgba(255,255,255,0.05);
    border-radius:16px;
    padding:14px 10px;
    text-align:center;
}

.footer-stat-card span{
    display:block;
    font-size:22px;
    margin-bottom:8px;
}

.footer-stat-card strong{
    display:block;
    font-size:16px;
    color:#ffd700;
}

.footer-stat-card small{
    color:#888;
    font-size:11px;
}

.footer-links-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.footer-link-box{
    background:
    rgba(255,255,255,0.025);
    border:
    1px solid rgba(255,255,255,0.05);
    border-radius:16px;
    padding:16px;
}

.footer-link-box h3{
    margin:0 0 14px;
    font-size:15px;
    color:#ffd700;
}

.footer-link-box a,
.footer-contact-item{
    display:block;
    color:#bbb;
    text-decoration:none;
    font-size:13px;
    padding:8px 0;
    transition:0.2s;
}

.footer-link-box a:hover{
    color:#ffd700;
    transform:translateX(3px);
}

.footer-warning{
    margin-top:20px;
    background: rgba(255,140,0,0.08);
    border: 1px solid rgba(255,140,0,0.15);
    border-radius:14px;
    padding:12px;

    color:#ffb347;
    font-size:12px;
    line-height:1.6;

    /* Thêm */
    display:flex;
    justify-content:center;
    align-items:center;
}

.footer-bottom{
    margin-top:20px;
    padding-top:18px;
    border-top:
    1px solid rgba(255,255,255,0.06);

    display:flex;
    justify-content:space-between;
    align-items:center;

    font-size:11px;
    color:#777;
    gap:10px;
    flex-wrap:wrap;
}

/* =========================
TABLET+
========================= */

@media(min-width:768px){

    .casino-footer{
        padding:40px 30px;
    }

    .footer-links-grid{
        grid-template-columns:
        repeat(3,1fr);
    }

    .footer-top{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
    }

    .footer-brand{
        width:48%;
    }

    .footer-stats{
        width:48%;
    }

}
```



/* =========================================
   MOBILE UI FIX — CASINO GAME
========================================= */

html,
body{
    overflow-x:hidden;
    max-width:100%;
}

body{
    padding-top:calc(var(--site-topbar-height, 90px) + 40px);
}

/* =========================
   ONLINE COUNTER
========================= */

.online-counter {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 255, 100, 0.07);
    border: 1px solid rgba(0, 255, 100, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: bold;
    color: #00ff88;
    white-space: nowrap;
    user-select: none;
    transition: border-color 0.3s;
}

.online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00ff88;
    display: inline-block;
    flex-shrink: 0;
    animation: pulseDot 1.8s ease-in-out infinite;
    box-shadow: 0 0 6px #00ff88;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.6); opacity: 0.4; }
}

.online-label {
    font-size: 12px;
    color: rgba(0, 255, 136, 0.6);
    font-weight: normal;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .online-counter {
        font-size: 12px;
        padding: 5px 10px;
        gap: 5px;
    }
    .online-dot {
        width: 7px;
        height: 7px;
    }
}

@media (max-width:600px){

    .footer-links-grid{
        grid-template-columns:repeat(3,1fr);
        gap:8px;
    }

    .footer-link-box{
        padding:10px;
        text-align:center;
        min-height:auto;
    }

    .footer-link-box h3{
        font-size:13px;
        margin:0;
    }

    .footer-link-box a,
    .footer-contact-item{
        display:none;
    }

}


/* ===== MOBILE FOOTER OPTIMIZE ===== */
@media (max-width:600px){

    .footer-links-grid{
        grid-template-columns:repeat(3,1fr);
        gap:8px;
    }

    .footer-link-box{
        padding:10px;
        min-height:auto;
        text-align:center;
    }

    .footer-link-box h3{
        margin:0;
        font-size:12px;
    }

    .footer-link-box a,
    .footer-contact-item{
        display:none;
    }

    .footer-bottom{
        flex-direction:column;
        gap:6px;
        text-align:center;
    }

    .online-counter{
        font-size:12px;
        padding:5px 10px;
    }
}


/* ===== TT85 MOBILE/DESKTOP OPTIMIZATION ===== */
.game-card{
display:flex;
flex-direction:column;
min-height:400px;
}
.game-thumb{
height:220px;
background-size:contain;
background-repeat:no-repeat;
}
.game-details{
display:flex;
flex-direction:column;
flex:1;
}
.game-details p{
min-height:48px;
}
.btn-play{
margin-top:auto;
}

@media (max-width:768px){
body{
background-attachment:scroll;
padding-top:calc(var(--site-topbar-height, 220px) + 20px);
}
main{
padding:15px 10px;
}
.game-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:12px;
}
.game-card{
width:100%;
min-height:auto;
}
.game-thumb{
height:120px;
}
.game-title{
font-size:16px;
}
.game-details{
padding:12px;
}
.game-details p{
font-size:12px;
min-height:34px;
}
.btn-play{
padding:10px;
font-size:12px;
}
.jackpot-container{
max-width:100%;
}
.jackpot-number{
font-size:28px;
}
.footer-container{
grid-template-columns:1fr 1fr;
gap:15px;
}
.modal-box{
width:95%;
max-width:380px;
}
}
@media (max-width:420px){
.game-grid{
grid-template-columns:1fr;
}
.game-thumb{
height:160px;
}
.footer-container{
grid-template-columns:1fr;
}
}
