﻿/* =============================================
   KUBER GAME MATCH - Main Stylesheet
   Theme: Dark + Golden
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #f0c040;
    --gold-light: #ffd966;
    --gold-dark: #b8860b;
    --gold-glow: rgba(240, 192, 64, 0.35);
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-sidebar: #111120;
    --bg-header: #ecbc3d;
    --bg-header2: #0f0f18;
    --bg-section: #111118;
    --border-gold: rgba(240, 192, 64, 0.25);
    --text-white: #f0f0f0;
    --text-muted: #8a8a9a;
    --text-gold: #f0c040;
    --sidebar-width: 220px;
    --header-row1: 60px;
    --header-row2: 70px;
    --header-height: 160px;
    --green-btn: #1db954;
    --red-btn: #e53935;
    --gold1: #f7c948;
    --gold2: #d89f1d;
    --black: #0d0d0d;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--gold-primary);
    }

/* =============================================
   HEADER  (2 rows)
   ============================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    box-shadow: 0 2px 20px rgba(0,0,0,0.7);
    border-bottom: 1px solid rgb(116 106 79);
    display: flex;
    flex-direction: column;
    border-radius: 4px 0px 26px 26px;
}

/* --- Row 1 --- */


.header-row1 {
    height: var(--header-row1);
    display: grid;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    gap: 12px;
    grid-template-columns: 4fr 1fr;
}

@media only screen and (min-width:769px) and (max-width:2067px) {

    .header-row1 {
        height: var(--header-row1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        gap: 12px;
    }
}


@media only screen and (min-width:308px) and (max-width:375px) {

    .stab-name {
        font-size: 8px !important;
    }
}

@media only screen and (min-width:50px) and (max-width:307px) {

    .stab-name {
        font-size: 7px !important;
    }
}


.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .logo-wrap img {
        height: 60px;
        object-fit: contain;
        filter: drop-shadow(0 0 7px var(--gold-glow));
    }

.site-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.1;
}

    .site-name span {
        display: block;
        font-size: 10px;
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        letter-spacing: 2.5px;
        background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.sidebar-toggle {
    background: none;
    border: 1px solid var(--bg-card);
    color: var(--bg-card);
    width: 34px;
    height: 34px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .sidebar-toggle:hover {
        background: var(--gold-glow);
    }

    .sidebar-toggle span {
        width: 17px;
        height: 2px;
        background: var(--bg-card);
        border-radius: 2px;
        transition: all 0.3s;
    }

.header-center {
    flex: 1;
    max-width: 460px;
    margin: 0 12px;
}

.search-box { 
    position: relative;
    margin: 10px 10px 10px;
}

    .search-box input {
        width: 100%;
        background: #1a1a25;
        border: 1px solid var(--border-gold);
        color: var(--text-white);
        padding: 7px 14px 7px 36px;
        border-radius: 20px;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s;
        font-family: 'Poppins', sans-serif;
    }

        .search-box input:focus {
            border-color: var(--gold-primary);
        }

        .search-box input::placeholder {
            color: var(--text-muted);
        }

    .search-box .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
        font-size: 13px;
    }

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.balance-chip {
    background: #1a1a25;
    border: 1px solid var(--border-gold);
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #f7c948;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 200, 50, .15), 0 8px 18px rgb(0 0 0 / 31%) !important;
    transition: .25s;
}

/* LOGIN BUTTON */
.btn-login {
    height: 40px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid #f7c948;
    background: linear-gradient(180deg,#111,#000);
    color: var(--gold1);
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins',sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,200,50,.15), 0 8px 18px rgba(0,0,0,.45);
    transition: .25s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 15px rgba(255,200,50,.35), 0 10px 22px rgba(0,0,0,.55);
    }

/* REGISTER BUTTON */
.btn-register {
    height: 40px;
    padding: 0 15px;
    border-radius: 14px;
    border: 1px solid #222;
    background: linear-gradient(180deg,#f9d35a,#d39b16);
    color: #111;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins',sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px rgba(0,0,0,.25);
    transition: .25s;
}

    .btn-register:hover {
        background: linear-gradient(180deg,#ffdf77,#e6ad24);
        transform: translateY(-2px);
    }

/* Mobile Responsive */
@media (max-width: 768px) {

    .btn-login,
    .btn-register {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        gap: 6px;
        border-radius: 10px;
    }

        .btn-login i,
        .btn-register i {
            font-size: 13px;
        }
}

@media (max-width: 480px) {

    .btn-login,
    .btn-register {
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        gap: 5px;
        border-radius: 8px;
    }

        .btn-login i,
        .btn-register i {
            font-size: 12px;
        }
}

/* --- Row 2: Sport Tabs --- */
.header-row2 {
    position: relative;
    height: var(--header-row2);
    background: var(--bg-header2);
    border: 1px solid rgb(245 195 63 / 44%);
    margin: 15px 10px;
    border-radius: 11px;
    padding: 3px;
    margin-bottom: -12px;
}

img.stab-img {
    width: 32px;
}

.sport-tabs-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    height: 99%;
    padding: 0px 5px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
}

    .sport-tabs-bar::-webkit-scrollbar {
        display: none;
    }

.sport-tab {
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    text-align: center;
    padding-top: 6px !important;
}

    .sport-tab:hover {
        color: var(--gold-primary);
    }

    .sport-tab.active {
        color: var(--gold-primary);
        /* border-bottom-color: var(--gold-primary); */
        background: rgba(240, 192, 64, 0.06);
        border: 1px solid var(--gold-primary);
        border-radius: 10px;
    }

.stab-icon {
    font-size: 16px;
    line-height: 1;
    /*  text-align: -webkit-center;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.stab-name {
    font-size: 10px;
    display: block;
    color: #fff;
}

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
.layout {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* =============================================
   LEFT SIDEBAR
   ============================================= */
#sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-gold);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 900;
    transition: width 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

    #sidebar.collapsed {
        width: 60px;
    }

        #sidebar.collapsed .nav-label,
        #sidebar.collapsed .section-title,
        #sidebar.collapsed .sidebar-footer-text,
        #sidebar.collapsed .nav-badge {
            display: none;
        }

        #sidebar.collapsed .nav-item {
            justify-content: center;
            padding: 10px 0;
        }

        #sidebar.collapsed .nav-icon {
            margin: 0;
        }

.sidebar-section {
    padding: 3px 0 6px;
}

.section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(240, 192, 64, 0.6);
    padding: 0 16px 7px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #c0c0d0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

    .nav-item:hover {
        color: var(--gold-primary);
        background: rgba(240,192,64,0.07);
        border-left-color: var(--gold-primary);
    }

    .nav-item.active {
        color: var(--gold-primary);
        background: rgba(240,192,64,0.11);
        border-left-color: var(--gold-primary);
    }

.nav-icon {
    width: 30px;
    height: 30px;
    background: rgba(240, 192, 64, 0.12);
    border: 1px solid rgba(240, 192, 64, 0.2);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.2s;
    text-align: center;
    color: var(--gold-primary);
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    background: rgba(240,192,64,0.22);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(240,192,64,0.25);
}

.nav-badge {
    margin-left: auto;
    background: #ff5722;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-gold);
    margin: 6px 14px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid var(--border-gold);
}

.sidebar-footer-text {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

    .sidebar-footer-text span {
        color: var(--gold-primary);
        font-weight: 600;
    }

/* =============================================
   MAIN CONTENT
   ============================================= */
#main {
    margin-left: var(--sidebar-width);
    flex: 1;
    transition: margin-left 0.3s ease;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    #main.expanded {
        margin-left: 60px;
    }

/* =============================================
   ACTION BUTTONS BAR
   ============================================= */
.action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-section);
}

.btn-deposit {
    background: linear-gradient(135deg, #b8860b, var(--gold-primary));
    border: none;
    color: #000;
    padding: 11px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 12px rgba(240,192,64,0.22);
}

    .btn-deposit:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(240,192,64,0.38);
    }

.btn-withdraw {
    background: linear-gradient(135deg, #145a32, var(--green-btn));
    border: none;
    color: #fff;
    padding: 11px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 12px rgba(29,185,84,0.18);
}

    .btn-withdraw:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(29,185,84,0.32);
    }

/* =============================================
   SLIDER
   ============================================= */
.slider-wrap {
    position: relative;
    overflow: hidden;
    margin: 0 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 4px 22px rgba(0,0,0,0.5);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    aspect-ratio: 16/5;
    overflow: hidden;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

    .slide:hover img {
        transform: scale(1.02);
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    z-index: 10;
}

    .slider-btn:hover {
        background: rgba(240,192,64,0.18);
    }

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.22s;
}

    .dot.active {
        background: var(--gold-primary);
        width: 18px;
        border-radius: 4px;
        box-shadow: 0 0 7px var(--gold-glow);
    }

/* =============================================
   NEWS TICKER
   ============================================= */
.news-ticker {
    background: #0f0f1a;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    margin: 0 14px 14px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 34px;
}

.news-label {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    gap: 55px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    padding-left: 18px;
}

    .ticker-inner:hover {
        animation-play-state: paused;
    }

    .ticker-inner span {
        font-size: 12px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

        .ticker-inner span i {
            color: var(--gold-primary);
            margin-right: 5px;
        }

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0 14px 18px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 9px;
    padding: 12px 14px;
    text-align: center;
    transition: all 0.2s;
}

    .stat-card:hover {
        border-color: var(--gold-primary);
        box-shadow: 0 3px 14px rgba(240,192,64,0.13);
    }

.stat-icon {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--gold-dark);
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* =============================================
   PROMO BANNER
   ============================================= */
.promo-banner {
    margin: 0 14px 18px;
    background: linear-gradient(135deg, #1a1200, #0a0a0f 40%, #1a1200);
    border: 1px solid var(--border-gold);
    border-radius: 11px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

    .promo-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -20%;
        width: 180px;
        height: 200%;
        background: linear-gradient(90deg, transparent, rgba(240,192,64,0.06), transparent);
        transform: skewX(-15deg);
        animation: shimmer 4s infinite;
    }

@keyframes shimmer {
    0% {
        left: -40%;
    }

    100% {
        left: 120%;
    }
}

.promo-text h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
}

.promo-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.promo-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: #000;
    padding: 9px 22px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

    .promo-btn:hover {
        transform: scale(1.04);
        box-shadow: 0 4px 14px var(--gold-glow);
    }

/* =============================================
   GAME SECTIONS
   ============================================= */
.content-area {
    padding: 0 14px 14px;
    flex: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border-gold);
}

.section-title-main {
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .section-title-main::before {
        content: '';
        width: 3px;
        height: 16px;
        background: linear-gradient(180deg, var(--gold-primary), var(--gold-dark));
        border-radius: 2px;
        display: inline-block;
    }

    .section-title-main i {
        color: var(--gold-primary);
        font-size: 15px;
    }

.view-all {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

    .view-all:hover {
        gap: 8px;
    }

.game-section {
    margin-bottom: 24px;
}

/* =============================================
   GAME CARDS
   ============================================= */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 10px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
}

    .game-card:hover {
        transform: translateY(-4px);
        border-color: var(--gold-primary);
        box-shadow: 0 7px 22px rgba(240,192,64,0.18);
    }

.game-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1c1c28;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .game-card-img img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    .game-card-img .placeholder-icon {
        font-size: 40px;
        opacity: 0.25;
    }

.game-card-info {
    padding: 9px 11px;
}

.game-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-provider {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.live-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--red-btn);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .live-badge::before {
        content: '';
        width: 5px;
        height: 5px;
        background: #fff;
        border-radius: 50%;
        animation: blink 1s infinite;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hot-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 30px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

/* =============================================
   CASINO CARDS
   ============================================= */

.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 2fr));
    gap: 10px;
}

/* CARD */
.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s;
    position: relative;
}

    .casino-card:hover {
        transform: translateY(-4px);
        border-color: var(--gold-primary);
        box-shadow: 0 7px 22px rgba(240,192,64,0.18);
    }

/* IMAGE */
.casino-card-img {
    width: 100%;
    aspect-ratio: 4/4;
    overflow: hidden;
    background: #1c1c28;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .casino-card-img img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

    .casino-card-img .placeholder-icon {
        font-size: 40px;
        opacity: 0.25;
    }

/* INFO */
.casino-card-info {
    padding: 9px 11px;
}

.casino-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-card-provider {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* LIVE BADGE */
.live-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--red-btn);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .live-badge::before {
        content: '';
        width: 5px;
        height: 5px;
        background: #fff;
        border-radius: 50%;
        animation: blink 1s infinite;
    }

/* BLINK ANIMATION */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* HOT BADGE */
.hot-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* PLAY OVERLAY */
.casino-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.casino-card:hover .casino-play-overlay {
    opacity: 1;
}

.casino-play-overlay i {
    font-size: 30px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-gold);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 32px 28px 24px;
    max-width: 1400px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
    margin-top: 10px;
}

.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.social-btn {
    width: 34px;
    height: 34px;
    background: #1c1c28;
    border: 1px solid var(--border-gold);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

    .social-btn:hover {
        border-color: var(--gold-primary);
        color: var(--gold-primary);
        background: rgba(240,192,64,0.08);
    }

.footer-col h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

    .footer-col ul li a {
        font-size: 12px;
        color: var(--text-muted);
        transition: color 0.2s;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .footer-col ul li a i {
            font-size: 9px;
            color: var(--gold-dark);
        }

        .footer-col ul li a:hover {
            color: var(--gold-primary);
        }

.footer-bottom {
    border-top: 1px solid var(--border-gold);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

    .footer-bottom p {
        font-size: 11px;
        color: var(--text-muted);
    }

        .footer-bottom p span {
            color: var(--gold-primary);
        }

.footer-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.f-badge {
    background: #1c1c28;
    border: 1px solid var(--border-gold);
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 9px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .f-badge i {
        color: var(--gold-primary);
    }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(4px);
}

    .modal-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.modal {
    background: #13131e;
    border: 1px solid var(--border-gold);
    border-radius: 13px;
    width: 90%;
    max-width: 390px;
    padding: 28px;
    position: relative;
    transform: scale(0.93);
    transition: transform 0.25s;
    box-shadow: 0 18px 55px rgba(0,0,0,0.6);
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

    .modal-close:hover {
        color: var(--gold-primary);
    }

.modal h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.modal p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        font-size: 11px;
        font-weight: 500;
        color: var(--text-muted);
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }

    .form-group input {
        width: 100%;
        background: #1a1a28;
        border: 1px solid var(--border-gold);
        color: var(--text-white);
        padding: 9px 13px;
        border-radius: 7px;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s;
        font-family: 'Poppins', sans-serif;
    }

        .form-group input:focus {
            border-color: var(--gold-primary);
        }

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: #000;
    padding: 11px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 3px 14px var(--gold-glow);
}

    .btn-submit:hover {
        box-shadow: 0 5px 20px var(--gold-glow);
        transform: translateY(-1px);
    }

.modal-switch {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

    .modal-switch a {
        color: var(--gold-primary);
        font-weight: 600;
        cursor: pointer;
    }

/* =============================================
   PROMOTIONS IMAGE GRID
   ============================================= */
.promo-grid-section {
    margin: 0 14px 18px;
}

.promo-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.promo-img-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-gold);
    cursor: pointer;
    transition: all 0.22s;
    background: var(--bg-card);
}

    .promo-img-card:hover {
        transform: translateY(-3px);
        border-color: var(--gold-primary);
        box-shadow: 0 6px 20px rgba(240,192,64,0.2);
    }

    .promo-img-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s;
    }

    .promo-img-card:hover img {
        transform: scale(1.04);
    }

    /* Last 3 span differently for visual balance */
    .promo-img-card:nth-child(5),
    .promo-img-card:nth-child(6),
    .promo-img-card:nth-child(7) {
        grid-column: span 1;
    }

@media (max-width: 768px) {
    .promo-img-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .promo-img-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }
}

/* =============================================
   GOLDEN GLOW ANIMATION
   ============================================= */
.pulse-gold {
    animation: pulseGold 2.5s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 7px rgba(240,192,64,0.18);
    }

    50% {
        box-shadow: 0 0 18px rgba(240,192,64,0.48);
    }
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 850;
    backdrop-filter: blur(2px);
}

    .sidebar-overlay.show {
        display: block;
    }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 195px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-row1: 60px;
        --header-row2: 67px;
        --header-height: 150px;
    }

    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

        #sidebar.mobile-open {
            transform: translateX(0);
        }

    #main {
        margin-left: 0 !important;
    }

    .header-center {
        display: none;
    }

    .site-name {
        font-size: 17px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 10px 14px;
    }

    .action-bar {
        padding: 9px 10px;
    }

    .slider-wrap {
        margin: 0 10px 12px;
    }

    .news-ticker {
        margin: 0 10px 12px;
    }

    .promo-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin: 0 10px 14px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 22px 18px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 12px 18px;
    }


    .sport-tab {
        padding: 0 1px;
    }

    .stab-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .balance-chip {
        font-size: 11px;
        gap: 1px;
        padding: 7px 9px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

.featured-game::before {
    content: '⭐TRENDING';
    position: absolute;
    top: 0px;
    left: -3px;
    background: linear-gradient(180deg, #eabf38, #d39b16);
    color: #000;
    padding: 2px 4px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    z-index: 9;
}

.featured-game {
    border: 2px solid #ff9800;
    box-shadow: 0 0 20px rgba(255,152,0,.5);
}



.d-none{
    display:none !important;
}


.refer-card {
    background: linear-gradient(349deg, #ecbc3d, #fec007);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 10px;
    box-sizing: border-box;
}

.refer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.refer-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .refer-icon i {
        color: #ffc107;
        font-size: 20px;
    }

.refer-text h4 {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

.refer-text p {
    margin: 2px 0 0;
    color: #0a0a0f;
    font-size: 12px;
}

.refer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: #1a1a25;
    color: #ffc107;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid var(--border-gold);
}

.refer-btn {
    height: 40px;
    padding: 0 14px;
    background: #000;
    color: #ffc107;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 576px) {

    .refer-card {
        padding: 5px;
    }

    .refer-text h4 {
        font-size: 14px;
    }

    .refer-text p {
        font-size: 11px;
    }

    .copy-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .refer-btn {
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .refer-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

.customer {
    border-radius: 50%;
    display: inline-block;
    animation: tgBorderBlink 1.5s infinite ease-in-out;
}

/* Telegram glow border */
@keyframes tgBorderBlink {
    0% {
        box-shadow: 0 0 0px rgb(0 136 204 / 88%);
    }

    50% {
        box-shadow: 0 0 14px 4px rgb(0 136 204);
    }

    100% {
        box-shadow: 0 0 0px rgb(0 136 204 / 67%);
    }
}

/* Icon bounce + pulse */
#dvhelpid {
    animation: tgIconBounce 1.2s infinite ease-in-out, tgIconPulse 1.2s infinite ease-in-out;
    transform-origin: center;
}

/* Bounce effect */
@keyframes tgIconBounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Pulse effect */
@keyframes tgIconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}