:root {
    --bg-deep:    #071f18;
    --bg-main:    #0a2e22;
    --bg-card:    #0d3d2c;
    --bg-card2:   #0f4530;
    --teal:       #0d7a55;
    --teal-light: #13a36e;
    --gold:       #f0c030;
    --gold-dark:  #c89a10;
    --gold-text:  #ffd84d;
    --green-btn:  #0a6644;
    --text-main:  #e8f5ee;
    --text-muted: #7eb89a;
    --border:     rgba(255,255,255,0.08);
    --glass:      rgba(13, 61, 44, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    padding-bottom: 70px;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    background-image: linear-gradient(135deg, #071f18 0%, #0a2e22 50%, #071f18 100%);
}

/* ─── APP INSTALL BANNER ─── */
.app-banner-top {
    width: 100%; background: linear-gradient(135deg, #0a2e22 0%, #0d3d2c 100%);
    border-bottom: 1px solid rgba(240,192,48,0.25);
    padding: 8px 10px; display: flex; align-items: center;
    justify-content: space-between; z-index: 200; position: relative;
}
.app-banner-top-left { display: flex; align-items: center; gap: 9px; }
.app-banner-top-close {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted); font-size: 11px;
    border: none; flex-shrink: 0;
}
.app-banner-top-logo {
    width: 34px; height: 34px; border-radius: 8px; overflow: hidden;
    background: var(--teal); display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.app-banner-top-logo img { width: 100%; height: 100%; object-fit: cover; }
.app-banner-top-name { font-size: 12px; font-weight: 800; color: var(--text-main); line-height: 1.2; }
.app-banner-top-stars { color: var(--gold-text); font-size: 10px; }
.app-banner-top-install {
    padding: 7px 15px; border-radius: 8px; font-size: 12px; font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffe066 0%, #f0c030 60%, #c89a10 100%);
    color: #2a1500; border: none; cursor: pointer;
    box-shadow: 0 4px 0 #8a6a00, 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.15s; text-decoration: none; display: inline-block;
    border-bottom: 2px solid #ffe57a;
}
.app-banner-top-install:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a00; }

/* ─── HEADER ─── */
.site-header {
    position: sticky; top: 0; z-index: 100; height: 56px;
    background: rgba(7,31,24,0.92); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.logo-text {
    font-size: 22px; font-weight: 900; font-style: italic; color: var(--gold-text);
    letter-spacing: 1px; text-shadow: 0 0 20px rgba(240,192,48,0.4);
}
.logo-text span { color: #fff; }
.site-header-logo-img { height: 38px; max-width: 150px; object-fit: contain; display:block; }
.header-right { display: flex; align-items: center; gap: 8px; }

.btn-login {
    padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s;
    background: linear-gradient(180deg, #1a9966 0%, #0d7a55 60%, #0a5c3e 100%);
    color: #fff; box-shadow: 0 4px 0 #064028, 0 4px 8px rgba(0,0,0,0.4);
    border-bottom: 2px solid #1dcc85;
}
.btn-login:active { transform: translateY(3px); box-shadow: 0 1px 0 #064028, 0 1px 4px rgba(0,0,0,0.4); }

.btn-register {
    padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 700;
    cursor: pointer; border: none; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s;
    background: linear-gradient(180deg, #ffe066 0%, #f0c030 60%, #c89a10 100%);
    color: #3a2500; box-shadow: 0 4px 0 #8a6a00, 0 4px 8px rgba(0,0,0,0.4);
    border-bottom: 2px solid #ffe57a;
}
.btn-register:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a00, 0 1px 4px rgba(0,0,0,0.4); }

/* ─── HAMBURGER ─── */
.hamburger-btn {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; cursor: pointer; padding: 7px 8px;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; position: relative; transition: background 0.2s;
}
.hamburger-btn:active { background: rgba(255,255,255,0.15); }
.hamburger-icon { display: flex; flex-direction: column; gap: 4px; position: relative; width: 18px; }
.hamburger-icon .hb-arrow { display: flex; align-items: center; gap: 2px; }
.hamburger-icon .hb-arrow-left {
    width: 0; height: 0; border-top: 4px solid transparent;
    border-bottom: 4px solid transparent; border-right: 5px solid #fff; flex-shrink: 0;
}
.hamburger-icon .hb-line { height: 2px; background: #fff; border-radius: 2px; display: block; }
.hamburger-icon .hb-line.l1 { width: 100%; }
.hamburger-icon .hb-line.l2 { width: 100%; }
.hamburger-icon .hb-line.l3 { width: 65%; }

/* ─── ANNOUNCEMENT BAR ─── */
.announce-bar {
    background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border);
    padding: 7px 14px; display: flex; align-items: center; gap: 8px;
}
.announce-bar .ann-icon { font-size: 14px; color: var(--gold-text); flex-shrink: 0; }
.announce-bar marquee { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ─── SLIDER ─── */
.slider-wrap { padding: 10px 10px 4px; }
.swiper.mainSlider { border-radius: 12px; overflow: hidden; }
.mainSlider img { width: 100%; height: 170px; object-fit: cover; display: block; border-radius: 12px; }
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.3) !important; opacity: 1 !important;
    width: 6px !important; height: 6px !important; transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    background: var(--gold-text) !important; width: 18px !important; border-radius: 3px !important;
}

/* ─── DEPOSIT & WITHDRAW ─── */
.quick-actions { display: flex; gap: 10px; padding: 10px 10px 4px; }
.qa-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 10px; border-radius: 10px;
    font-size: 14px; font-weight: 800; text-decoration: none;
    transition: all 0.15s; cursor: pointer; border: none;
}
.qa-btn i { font-size: 16px; }
.qa-btn.deposit {
    background: linear-gradient(180deg, #1a9966 0%, #0d7a55 60%, #0a5c3e 100%);
    color: #fff; box-shadow: 0 4px 0 #064028, 0 4px 12px rgba(13,122,85,0.4);
    border-bottom: 2px solid #1dcc85;
}
.qa-btn.deposit:active { transform: translateY(3px); box-shadow: 0 1px 0 #064028; }
.qa-btn.withdraw {
    background: linear-gradient(180deg, #ffe066 0%, #f0c030 60%, #c89a10 100%);
    color: #2a1500; box-shadow: 0 4px 0 #8a6a00, 0 4px 12px rgba(240,192,48,0.3);
    border-bottom: 2px solid #ffe57a;
}
.qa-btn.withdraw:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a00; }

/* ─── SECTION HEADER ─── */
.hot-section { margin-bottom: 6px; }
.sec-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px; }
.sec-title {
    display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800;
    color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.5px;
}
.sec-title i { font-size: 18px; color: var(--gold-text); }
.sec-actions { display: flex; align-items: center; gap: 6px; }

.btn-see-all {
    padding: 6px 13px; border-radius: 7px; font-size: 12px; font-weight: 800;
    color: var(--gold-text);
    background: linear-gradient(180deg, rgba(255,220,70,0.18) 0%, rgba(240,192,48,0.10) 100%);
    border: 1px solid rgba(240,192,48,0.4); border-bottom: 2px solid rgba(255,220,80,0.6);
    text-decoration: none; transition: all 0.15s; box-shadow: 0 3px 0 rgba(0,0,0,0.3);
    display: inline-flex; align-items: center;
}
.btn-see-all:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }

.btn-nav-arrow {
    width: 30px; height: 30px; border-radius: 7px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.15); border-bottom: 2px solid rgba(255,255,255,0.25);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    font-size: 12px; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,0.3);
    transition: all 0.15s; text-decoration: none;
}
.btn-nav-arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); color: var(--gold-text); }

/* ─── GAME GRID ─── */
.games-section { padding: 0 10px; margin-bottom: 6px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 3px; }
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(6, 1fr); } .mainSlider img { height: 240px; } }

.game-card {
    position: relative; 
    border-radius: 10px; 
    overflow: hidden; 
    background: var(--bg-card); 
    border: 1px solid rgba(255,255,255,0.07);
    border-bottom: 2px solid rgba(255,255,255,0.12); 
    transition: all 0.2s; 
    text-decoration: none; 
    display: block; 
    box-shadow: 0 4px 0 rgba(0,0,0,0.4);
    aspect-ratio: 4/5; 
    transform: translateZ(0); 
}
.game-card:active { 
    transform: scale(0.94) translateY(3px) translateZ(0); 
    border-color: var(--teal-light); 
    box-shadow: 0 1px 0 rgba(0,0,0,0.4); 
}

.game-card-img { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: fill; 
    border-radius: 10px; 
    display: block; 
    z-index: 1;
}
.game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.game-card-fav {
    position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; 
    border-radius: 50%; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; 
    color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer;
    z-index: 5; transition: color 0.2s, background 0.2s; border: none; flex-shrink: 0;
}
.game-card-fav.active { color: var(--gold-text); background: rgba(240,192,48,0.18); }
.game-card-name { 
    position: absolute;
    bottom: 8px; 
    left: 0;
    width: 100%;
    font-size: 11px; 
    font-weight: 800; 
    color: #ffffff; 
    padding: 0 6px; 
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    z-index: 3;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* ─── JACKPOT ─── */
.jackpot-section {
    margin: 8px 10px; border-radius: 14px;
    background: linear-gradient(135deg, #0a2e22 0%, #0d3d2c 50%, #071f18 100%);
    border: 1px solid rgba(240,192,48,0.25); padding: 18px 16px 16px;
    text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.jackpot-section::before {
    content: ''; position: absolute; top: -30px; left: -30px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(240,192,48,0.12) 0%, transparent 70%); border-radius: 50%;
}
.jackpot-section::after {
    content: ''; position: absolute; bottom: -30px; right: -30px; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(13,122,85,0.15) 0%, transparent 70%); border-radius: 50%;
}
.jackpot-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 6px; }
.jackpot-img-row {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-bottom: 10px; position: relative; z-index: 1;
}
.jackpot-plane-img {
    width: 64px; height: 64px; object-fit: contain;
    animation: planeFly 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
@keyframes planeFly {
    0%   { transform: translateY(0px) rotate(-3deg); }
    50%  { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(-3deg); }
}
.jackpot-logo-img { height: 48px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(240,192,48,0.5)); }
.jackpot-number-wrap { display: flex; align-items: center; justify-content: center; gap: 2px; flex-wrap: nowrap; }
.jp-digit {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 46px;
    background: linear-gradient(180deg, #1a1a0e 0%, #0d0d06 100%);
    border: 1px solid rgba(240,192,48,0.3); border-radius: 6px;
    font-size: 26px; font-weight: 900; color: var(--gold-text);
    text-shadow: 0 0 12px rgba(240,192,48,0.6);
    box-shadow: 0 3px 0 rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    font-family: 'Courier New', monospace; transition: all 0.15s;
}
.jp-digit.changing { animation: digitFlip 0.15s ease; }
.jp-sep { font-size: 24px; font-weight: 900; color: var(--gold-text); margin: 0 1px; line-height: 1; padding-bottom: 4px; }
@keyframes digitFlip {
    0%   { transform: scaleY(1); }
    50%  { transform: scaleY(0.1); }
    100% { transform: scaleY(1); }
}

/* ─── CATEGORY NAV ─── */
.cat-nav-wrap {
    padding: 12px 10px 0; overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
}
.cat-nav-wrap::-webkit-scrollbar { display: none; }
.cat-nav-inner { display: inline-flex; gap: 8px; padding-bottom: 10px; }
.cat-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
    text-decoration: none; color: var(--text-muted);
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.2s; white-space: nowrap; cursor: pointer;
}
.cat-pill i { font-size: 13px; }
.cat-pill.active, .cat-pill:active {
    background: var(--teal); border-color: var(--teal-light); color: #fff;
    box-shadow: 0 2px 10px rgba(13,122,85,0.4);
}
.cat-section {
    margin-bottom: 6px; background: rgba(13,61,44,0.3);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-bottom: 8px;
}

/* ─── PARTNER ─── */
.partner-section { padding: 16px 12px; display: flex; gap: 12px; }
.partner-btn {
    flex: 1; padding: 14px 10px; border-radius: 10px; text-align: center;
    font-size: 14px; font-weight: 800; cursor: pointer; border: none;
    transition: all 0.15s; text-decoration: none; display: block;
}
.partner-btn.partner {
    background: linear-gradient(135deg, #1a3a2e 0%, #0d2a1e 100%);
    border: 1px solid rgba(255,255,255,0.12); border-bottom: 2px solid rgba(255,255,255,0.2);
    color: var(--gold-text); box-shadow: 0 4px 0 #040f09, inset 0 1px 0 rgba(255,255,255,0.08);
}
.partner-btn.live-chat {
    background: linear-gradient(135deg, #1a4a35 0%, #0d3524 100%);
    border: 1px solid rgba(255,255,255,0.12); border-bottom: 2px solid rgba(255,255,255,0.2);
    color: var(--gold-text); box-shadow: 0 4px 0 #040f09, inset 0 1px 0 rgba(255,255,255,0.08);
}
.partner-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #040f09; }
.partner-btn .chat-icon { font-size: 20px; margin-right: 6px; }

/* ─── GAME CENTER ─── */
.game-center { padding: 8px 12px 16px; }
.game-center-title { font-size: 18px; font-weight: 800; color: var(--gold-text); margin-bottom: 12px; }
.game-center-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-pill {
    padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
    color: var(--teal-light); border: 1px solid rgba(13,122,85,0.4);
    border-bottom: 2px solid rgba(30,200,130,0.5);
    background: linear-gradient(180deg, rgba(13,122,85,0.12) 0%, rgba(13,122,85,0.06) 100%);
    text-decoration: none; transition: all 0.15s; box-shadow: 0 3px 0 rgba(0,0,0,0.3);
}
.gc-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.3); }

/* ─── PROVIDER LOGOS ─── */
.providers-section { padding: 12px; border-top: 1px solid var(--border); }
.providers-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.provider-logo { font-size: 11px; font-weight: 800; color: var(--text-muted); letter-spacing: 0.5px; opacity: 0.7; }

/* ─── GUEST BOTTOM NAV ─── */
.guest-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    display: flex; z-index: 100; background: rgba(7,20,14,0.97); border-top: 1px solid var(--border);
}
.guest-lang {
    width: 30%; display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-main);
    border-right: 1px solid var(--border); cursor: pointer;
}
.guest-flag { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; }
.guest-flag img { width: 100%; height: 100%; object-fit: cover; }
.guest-login-btn {
    width: 35%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; cursor: pointer;
    background: linear-gradient(180deg, #1a9966 0%, #0d7a55 60%, #0a5c3e 100%);
    color: #fff; border-right: 1px solid var(--border); border-top: 2px solid #1dcc85;
    transition: 0.15s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.guest-login-btn:active { filter: brightness(0.85); }
.guest-signup-btn {
    width: 35%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; cursor: pointer;
    background: linear-gradient(180deg, #ffe066 0%, #f0c030 60%, #c89a10 100%);
    color: #2a1500; border-top: 2px solid #ffe57a; transition: 0.15s;
}
.guest-signup-btn:active { filter: brightness(0.9); }

/* ─── DESKTOP SIDEBAR ─── */
@media (min-width: 900px) {
    .main-layout { display: flex; max-width: 1200px; margin: 0 auto; }
    .desktop-sidebar {
        width: 120px; flex-shrink: 0; position: sticky; top: 56px;
        height: calc(100vh - 56px); overflow-y: auto; padding: 12px 6px;
        border-right: 1px solid var(--border); scrollbar-width: none;
    }
    .desktop-sidebar::-webkit-scrollbar { display: none; }
    .main-content { flex: 1; min-width: 0; }
    .guest-nav { display: none; }
    .site-header { max-width: 1200px; width: 100%; left: 50%; transform: translateX(-50%); }
}
.sidebar-item {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 10px 6px; border-radius: 10px; margin-bottom: 4px; cursor: pointer;
    text-decoration: none; color: var(--text-muted); font-size: 10px;
    font-weight: 700; text-align: center; transition: all 0.2s;
}
.sidebar-item i { font-size: 20px; }
.sidebar-item:hover, .sidebar-item.active {
    background: rgba(13,122,85,0.15); color: var(--gold-text); border: 1px solid rgba(13,122,85,0.3);
}
 /* Category Image Nav Styles */
        .cat-item {
            display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
            padding: 8px 12px; border-radius: 12px; font-size: 11px; font-weight: 700;
            text-decoration: none; color: var(--text-muted);
            background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
            transition: all 0.2s; cursor: pointer; min-width: 65px;
        }
        .cat-item img { width: 28px; height: 28px; object-fit: contain; }
        .cat-item.active, .cat-item:active {
            background: rgba(13,122,85,0.2); border-color: var(--teal-light); color: var(--gold-text);
            box-shadow: 0 2px 10px rgba(13,122,85,0.4);
        }