﻿:root {
    --bg: #0f131b;
    --panel: #171b23;
    --panel2: #1d2330;
    --border: #283041;
    --text: #fff;
    --muted: #97a0af;
    --primary: #0075ff;
    --green_bg: #00b24b;
   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration:none;
}

body {
    font-family: Inter, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ── LAYOUT ── */
.layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

/* ── SIDEBAR ── */
.sidebar-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
    overflow: visible; /* cho phép collapse-btn nhô ra ngoài */
    z-index: 400;
}

.sidebar {
    width: 84px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    background: linear-gradient(180deg, #1b2029, #151922);
    border-right: 1px solid var(--border);
    transition: width .25s;
    
}

    .sidebar.expanded {
        width: 260px;
    }

.sidebar-content {
    flex: 1;
    min-height: 0; /* critical: cho phép shrink dưới content size */
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

/* ── AUTH BUTTONS ── */
.sidebar-auth {
    padding: 16px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    
}

    .sidebar-auth a {
        color: var(--text);
        text-decoration: none;
    }
/* hide when collapsed */
.sidebar:not(.expanded) .sidebar-auth {
    display: none;
}

.sidebar-auth-login {
    width: 100%;
    height: 44px;
    border: 1px solid #2e3a4e;
    background: #1a2130;
    color: #cdd3de;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: .2s;
}

    .sidebar-auth-login:hover {
        border-color: var(--primary);
        color: #fff;
    }

    .sidebar-auth-login svg {
        width: 18px;
        height: 18px;
    }

.sidebar-auth-signup {
    width: 100%;
    height: 44px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: .2s;
    box-shadow: 0 0 18px rgba(45,127,255,.35);
}

    .sidebar-auth-signup:hover {
        background: #1a6de8;
    }

    .sidebar-auth-signup svg {
        width: 18px;
        height: 18px;
    }

/* ── SIDEBAR SCROLL AREA ── */
.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: auto;
}

    .sidebar-scroll::-webkit-scrollbar {
        display: none;
    }

/* arrow-right cho Board item */
.menu-item-arrow .arrow-right {
    margin-left: auto;
    margin-right: 14px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: .4;
}

.sidebar:not(.expanded) .menu-item-arrow .arrow-right {
    display: none;
}

/* sub-item arrow-right cho TX Roadmap */
.sub-item .sub-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
    opacity: .4;
    flex-shrink: 0;
}

.menu-item {
    width: 100%;
    height: 58px;
    border: none;
    background: none;
    color: #a7afbc;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: .2s;
    padding: 0 28px;
}

    .menu-item:hover {
        background: rgba(255,255,255,.03);
        color: #fff;
    }

    .menu-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .menu-item span {
        white-space: nowrap;
    }

.sidebar:not(.expanded) .menu-item {
    justify-content: center;
    padding: 0;
}

.sidebar:not(.expanded) span {
    display: none;
}



.divider {
    height: 1px;
    background: #2c3444;
    margin: 20px;
}

/* ── SUB-MENU ── */
.menu-item-group {
    width: 100%;
}

.menu-item-parent {
    width: 100%;
    display: flex;
    align-items: center;
}

    /* arrow indicator */
    .menu-item-parent .arrow {
        margin-left: auto;
        margin-right: 14px;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        transition: transform .25s;
        opacity: .6;
    }

.sidebar:not(.expanded) .menu-item-parent .arrow {
    display: none;
}

.menu-item-group.open .arrow {
    transform: rotate(180deg);
}

/* sub-list */
.sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}

.menu-item-group.open .sub-menu {
    max-height: 1000px;
}

.sidebar:not(.expanded) .sub-menu {
    display: none;
}

.sub-item {
    width: 100%;
    height: 44px;
    border: none;
    background: none;
    color: #8a93a3;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: .2s;
    padding: 0 16px 0 52px; /* indent under parent icon */
    font-size: 14px;
}

    .sub-item:hover {
        background: rgba(255,255,255,.03);
        color: #fff;
    }

    .sub-item svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .sub-item.active {
        color: var(--primary);
    }

.collapse-btn {
    position: absolute;
    top: 55px;
    right: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1c2230;
    border: 1px solid #2e3748;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 35;
    pointer-events: all;
}

/* ── CONTENT ── */
.content {
    flex: 1;
    min-width: 0;
    padding-top: 72px;
}



/* ── TOPBAR ── */
.topbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
   
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    background: #0d1117;
    z-index: 350;


}



.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile */
@media (max-width: 1300px) {
    .topbar {
        left:0px;
    }

    @media (max-width: 1300px) {
        .main-nav a:not(:first-child) {
            display: none;
        }
    }
}



.logo {
    margin-right: 24px;
}

.logo_img {
    height: 40px;
}

.nav-item {
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    justify-content: center; /* căn giữa toàn bộ nội dung */
   
    color: #fff;
    min-height: 48px;
    padding: 10px 16px;
    text-align: center;
    line-height: 1.4;
    word-break: keep-all; /* tốt cho tiếng Hàn */
    white-space: normal; /* cho phép xuống dòng */
    border-radius: 25px;
    text-decoration: none;
}

    .nav-item i {
        flex-shrink: 0;
    }

    .nav-item:hover,
    .nav-item.active {
        background: rgba(255,255,255,.08);
        color: #fff;
    }



.header-left {
    flex: 1;
    min-width: 0;
}

.actions {
    display: flex !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    margin-left: auto;
    align-items: center;
    gap: 12px;
}

    .actions button {
        word-break: keep-all; /* tốt cho tiếng Hàn */
        white-space: normal; /* cho phép xuống dòng */
        align-items: center; /* căn giữa theo chiều dọc */
        justify-content: center; /* căn giữa toàn bộ nội dung */
        
    }

.btn-login {
    background-color: transparent;       
    color: #fff;
}

.btn-signup {
    background: var(--green_bg);
    color: #fff;
    border-radius: 30px;
}


.actions button:hover {
    color: #fff;
}


/* ── HERO ── */
.hero {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 320px;
}

.hero-main {
    min-height: 280px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0b3fb9, #081222);
    display: flex;
    align-items: center;
    padding: 40px;
}

    .hero-main h1 {
        font-size: 48px;
        font-weight: 800;
    }

.hero-side {
    border-radius: 24px;
    background: linear-gradient(135deg, #1e2736, #151922);
}

/* ── SECTIONS ── */
.section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header + .carousel-wrapper {
    margin-top: 0;
}

.section-header {
    margin-bottom: 16px;
}

/* ── GAME GRID (desktop) ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}



    .game-card:hover {
        transform: translateY(-4px);
    }

/* ── PROVIDER GRID (desktop) ── */
.provider-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.provider {
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(135deg, #242c39, #161b25);
}

/* ── FOOTER ── */
.footer {
    margin-top: 50px;
    padding: 30px;
    border-radius: 20px;
    background: #171d27;
}

/* ── MOBILE NAV ── */
.mobile-nav {
    display: none;
}

/* ── SIDEBAR BOTTOM BAR ── */
.sidebar-bottom {
    flex-shrink: 0; /* không bị nén bởi scroll area */
    border-top: 1px solid #2c3444;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
}

.sidebar-bottom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #7a8499;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    flex-shrink: 0;
}

    .sidebar-bottom-btn:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

    .sidebar-bottom-btn svg {
        width: 20px;
        height: 20px;
    }

/* language button */
.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2e3748;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color .2s;
}

    .lang-btn:hover {
        border-color: var(--primary);
    }

    .lang-btn .flag-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* when collapsed — center the 3 items with smaller gap */
.sidebar:not(.expanded) .sidebar-bottom {
    justify-content: center;
    gap: 6px;
}

/* ── LANGUAGE DROPDOWN ── */
.lang-dropdown {
    position: fixed; /* fixed để thoát khỏi overflow:hidden của sidebar */
    min-width: 230px;
    background: #1a2030;
    border: 1px solid #2e3a50;
    border-radius: 14px;
    padding: 8px 0;
    z-index: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

    .lang-dropdown.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

.lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: none;
    color: #cdd3de;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}

    .lang-option:hover {
        background: rgba(255,255,255,.05);
        color: #fff;
    }

    .lang-option .flag-img {
        width: 28px;
        height: 20px;
        object-fit: cover;
        border-radius: 3px;
        flex-shrink: 0;
    }

    .lang-option .lang-name {
        flex: 1;
        text-align: left;
        font-weight: 500;
    }

    .lang-option .lang-code {
        color: #5a6478;
        font-size: 12px;
    }

    .lang-option .check {
        color: var(--primary);
        width: 16px;
        height: 16px;
    }

    .lang-option:not(.active) .check {
        display: none;
    }

/* ── MOBILE DRAWER ── */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 300;
    opacity: 0;
    transition: opacity .25s;
}

    .mobile-drawer-overlay.open {
        opacity: 1;
    }

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(180deg, #1b2029, #151922);
    border-right: 1px solid #2c3444;
    z-index: 301;
    transform: translateX(-100%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .mobile-drawer.open {
        transform: translateX(0);
    }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid #2c3444;
}

.drawer-logo {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, #53b5ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #7a8499;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .drawer-close:hover {
        background: rgba(255,255,255,.06);
        color: #fff;
    }

.drawer-menu {
    flex: 1;
    padding: 8px 0;
}

.drawer-item {
    width: 100%;
    height: 52px;
    border: none;
    background: none;
    color: #a7afbc;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 0 20px;
    font-size: 15px;
    transition: .2s;
}

    .drawer-item:hover {
        background: rgba(255,255,255,.03);
        color: #fff;
    }

    .drawer-item.active {
        color: var(--primary);
    }

    .drawer-item svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .drawer-item span {
        white-space: nowrap;
    }

/* drawer sub-group */
.drawer-group .drawer-sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}

.drawer-group.open .drawer-sub-menu {
    max-height: 300px;
}

.drawer-sub-item {
    width: 100%;
    height: 44px;
    border: none;
    background: none;
    color: #7a8499;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 0 16px 0 48px;
    font-size: 14px;
    transition: .2s;
}

    .drawer-sub-item:hover {
        background: rgba(255,255,255,.03);
        color: #fff;
    }

    .drawer-sub-item.active {
        color: var(--primary);
    }

    .drawer-sub-item svg {
        width: 16px;
        height: 16px;
    }

.drawer-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    opacity: .5;
    transition: transform .25s;
}

.drawer-group.open .drawer-arrow {
    transform: rotate(180deg);
}

.drawer-divider {
    height: 1px;
    background: #2c3444;
    margin: 10px 16px;
}

/* drawer bottom (same lang selector) */
.drawer-bottom {
    border-top: 1px solid #2c3444;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-bottom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    color: #7a8499;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

    .drawer-bottom-btn:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
    }

.drawer-lang-btn {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2e3748;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    transition: border-color .2s;
}

    .drawer-lang-btn:hover {
        border-color: var(--primary);
    }

    .drawer-lang-btn .flag-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ════════════════════════════════
           CAROUSEL
           ════════════════════════════════ */

.carousel-wrapper {
    position: relative;
   
    padding: 0 20px;
   
}

/* Prev / Next buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15,19,27,.9);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    transition: background .2s, opacity .2s, transform .2s;
}

    .carousel-btn:hover {
        background: var(--primary);
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .carousel-btn.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

/* ── ≤ 900 px : activate carousel ── */
@media (max-width: 900px) {

    .carousel-btn {
        display: flex;
    }

    .carousel-wrapper .game-grid,
    .carousel-wrapper .provider-grid {
        display: flex !important; /* override grid */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        /* no extra padding here — wrapper already handles it */
    }

        .carousel-wrapper .game-grid::-webkit-scrollbar,
        .carousel-wrapper .provider-grid::-webkit-scrollbar {
            display: none;
        }

    .carousel-wrapper .game-card {
        flex: 0 0 140px;
        aspect-ratio: 3/4; /* keep correct shape */
        scroll-snap-align: start;
    }

    .carousel-wrapper .provider {
        flex: 0 0 130px;
        height: 80px;
        scroll-snap-align: start;
    }
}

/* ── ≤ 480 px : slightly smaller cards ── */
@media (max-width: 480px) {
    .carousel-wrapper .game-card {
        flex: 0 0 120px;
    }

    .carousel-wrapper .provider {
        flex: 0 0 110px;
    }
}

/* ── ≤ 768 px : mobile layout tweaks ── */
@media (max-width: 768px) {

    .sidebar-wrapper {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .hero-main h1 {
        font-size: 30px;
    }

    .main-nav {
        width: 100%;
       
    }

    .logo {
        width: auto;
        font-size: 24px;
    }

    .nav-item {
        display: none;
    }

    /* bottom nav bar */
    .mobile-nav {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        width: 95%;
        height: 60px;
        border-radius: 999px;
        background: #1b2029;
        border: 1px solid #2c3444;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 200;
        padding: 0 8px;
    }

    .mobile-nav-btn {
        width: 44px;
        height: 44px;
        border: none;
        background: none;
        color: #7a8499;
        cursor: pointer;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: .2s;
    }

        .mobile-nav-btn:hover,
        .mobile-nav-btn.active {
            color: #fff;
            background: rgba(255,255,255,.06);
        }

        .mobile-nav-btn.active {
            color: var(--primary);
            background: none;
        }

        .mobile-nav-btn svg {
            width: 22px;
            height: 22px;
        }

    /* show drawer overlay on mobile */
    .mobile-drawer-overlay {
        display: none;
       
    }
}


.lang-wrapper {
    padding-right: 5px;
}


/* ── Game Card ─────────────────────────────────────────── */
/* ── Game Card ─────────────────────────────────────────── */
.game-card {
    flex: 1;
    min-width: 0;
    max-width: 200px;
    background: linear-gradient(160deg, #1a2235 0%, #111827 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* ── Card Inner (ảnh + overlay) ────────────────────────── */
.card-inner {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.people-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transition: transform 0.45s ease;
}

.game-card:hover .people-card {
    transform: scale(1.1);
}

/* Gradient overlay mặc định (hiện tên card ở bottom) */
.card-overlay-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 14, 25, 0.95) 0%,
        rgba(10, 14, 25, 0.3) 55%,
        rgba(10, 14, 25, 0.1) 100%
    );
    z-index: 1;
}

/* ── Số rank (vàng, ẩn khi hover) ─────────────────────── */
.card-rank {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #c8a84b 0%, #f5d87a 50%, #a07830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .card-rank {
    opacity: 0;
    transform: scale(0.8);
}

/* ── Badge loại game (góc phải trên) ───────────────────── */
.card-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Info mặc định (ẩn khi hover) ─────────────────────── */
.card-base-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .card-base-info {
    opacity: 0;
    transform: translateY(8px);
}

.card-base-info h5 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
}

/* ── Hover mask (hiện khi hover) ───────────────────────── */
.card-hover-mask {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(8, 12, 22, 0.82);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-hover-mask {
    opacity: 1;
}

.mask-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.mask-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-btn {
    background: linear-gradient(135deg, #c8a84b, #f5d87a);
    color: #1a1200;
    border: none;
    border-radius: 20px;
    padding: 7px 22px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 9000;
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(200, 168, 75, 0.45);
}

/* ── Footer (sao) ──────────────────────────────────────── */
.card-footer {
    padding: 10px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.2);
}
.card-hover-mask {
    pointer-events: auto !important;
    cursor: pointer;
}

.game-card:hover .card-hover-mask {
    opacity: 1;
}
.play-btn {
    position: relative;
    z-index: 99999;
}

/*card item*/
 *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



/* ── Section wrapper ── */
.pp-section {
    background: #0f1020;
    padding: 20px 18px 28px;  
    margin: 0 auto;
}

/* ── Header ── */
.pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
}

.pp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
}

.pp-title-icon {
    font-size: 18px;
}

.pp-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pp-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #1c1e2e;
    border: 1px solid #2d3050;
    color: #9098b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s;
    user-select: none;
    flex-shrink: 0;
}

    .pp-nav-btn:hover:not(:disabled) {
        background: #252840;
        border-color: #4a4f80;
        color: #fff;
    }

    .pp-nav-btn:disabled {
        opacity: .3;
        cursor: not-allowed;
    }

.pp-all-btn {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: #1c1e2e;
    border: 1px solid #2d3050;
    color: #c0c8e0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

    .pp-all-btn:hover {
        background: #252840;
        color: #fff;
    }

/* ── Slider ── */
.pp-viewport {
    overflow: hidden;
    width: 100%;
}

.pp-track {
    display: flex;
    gap: 12px;
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Card ── */
.pp-card {
    flex: 0 0 var(--card-w, 150px);
    height: var(--card-h, 200px);
    background: linear-gradient(160deg, #1e2035 0%, #171929 100%);
    border-radius: 14px;
    border: 1px solid #282c48;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color .25s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    transform-origin: center center;
}

    .pp-card:hover {
        border-color: #5060b0;
        transform: scale(1.07);
        box-shadow: 0 8px 32px rgba(60,80,200,.25);
        z-index: 2;
    }

        .pp-card:hover .pp-overlay {
            opacity: 1;
        }

        .pp-card:hover .pp-logo {
            transform: translateY(-6px) scale(1.04);
        }

.pp-logo {
    max-width: 75%;
    max-height: 52%;
    object-fit: contain;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
    display: block;
}


/* SVG logo wrapper */
.pp-logo-svg, .pp-img {
    max-width: 75%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.pp-card:hover .pp-logo-svg {
    transform: translateY(-6px) scale(1.04);
}

.pp-label {
    margin-top: 10px;
    color: #8892b0;
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 8px;
    transition: color .2s;
}

.pp-card:hover .pp-label {
    color: #c0caf5;
}

/* Play overlay */
.pp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.58);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 16px;
    opacity: 0;
    transition: opacity .22s;
    border-radius: 14px;
}

.pp-play-btn {
    background: #1e2235;
    border: 1px solid #4a52a0;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 7px 26px;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    display: inline-block;
    text-decoration: none;
}

    .pp-play-btn:hover {
        background: #2a3060;
        border-color: #7080d0;
    }

/* ── Responsive ── */
@media (max-width: 480px) {
    .pp-section {
        padding: 16px 12px 22px;
    }

    .pp-title {
        font-size: 15px;
    }
}


#toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 0;
}

    #toTop::after {
        content: "↑"; 
        font-weight: 900;
        font-size: 16px;
    }

    #toTop:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    }



    /*menu login top*/
.member_info_list {
    border-bottom: 1px solid #2e3748;
    font-size: 13px;
    padding: 10px;
    padding-left: 15px;
    color: #fff !important;
}
    .member_info_list,
    .member_info_list li {
        list-style: none !important;
    }

        .member_info_list li::marker {
            content: none;
        }

    

        .member_info_list li {
            display: flex;
            align-items: center;
            list-style: none;
            margin-bottom: 6px;
        }

        .member_info_list strong {
            padding-right:10px;
            flex-shrink: 0;
            font-size: 13px;
        }

.member_ID,
.member_wallet {
    display: inline-flex;
    align-items: center;
}



.actions {
    display: flex;
    gap: 1rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    background-color: #1e1e1e;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

    .menu-link i {
        width: 20px;
        height: 20px;
    }

    .menu-link:hover {
        background-color: #333;
        color: #00c4ff;
    }

#sidebar.expanded .member_info_list {
    display: normal;
}

#sidebar:not(.expanded) .member_info_list {
    display: none;
}

.right_col {
    width: 100%;
    margin: 0 auto;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 10px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}




/*table message*/
.rwd-table {
    width: 100%;
    border-collapse: collapse;
    background: #1b1b1b;
    color: #d8d8d8;
    font-size: 13px;
    border: 1px solid #303030;
    border-radius: 8px;
    overflow: hidden;
}

    /* Header */
    .rwd-table thead th {
        background: #2a2a2a;
        color: #cfcfcf;
        font-size: 13px;
        font-weight: 600;
        padding: 10px 12px;
        border-bottom: 1px solid #404040;
        text-align: left;
    }

/* Rows */
#messages tr:nth-child(odd) {
    background: #1b1b1b;
}

#messages tr:nth-child(even) {
    background: #212121;
}

#messages tr:hover {
    background: #2d2d2d;
}

/* Cells */
#messages td {
    padding: 10px 12px;
    border-top: 1px solid #2f2f2f;
    color: #d0d0d0;
    font-size: 13px;
}

    /* Title */
    #messages td:first-child {
        color: #f2f2f2;
        font-weight: 500;
    }

    /* Date */
    #messages td:nth-child(2) {
        color: #9e9e9e;
        width: 110px;
        white-space: nowrap;
    }

    /* Content */
    #messages td:last-child {
        color: #bdbdbd;
    }

.right_title {
    color: #fff !important;
    font-size: 22px;
    font-weight: 500;
    border-left: 5px solid #fff !important;
    padding-left: 10px;
    margin-bottom:5px;
}



.top_marquee {
    display: flex;
    align-items: center;
    background: #1a1a2e;
    border: 1px solid #2d2d4a;
    border-radius: 24px;
    padding: 6px 14px;
    gap: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
    margin:20px;
}

    .top_marquee img {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        float: none !important; /* override inline float */
    }

    .top_marquee marquee {
        color: #a0a0b8 !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        margin: 0 !important;
        height: 20px !important;
        line-height: 20px;
        width: auto !important;
        flex: 1;
        float: none !important;
    }


/*news*/
.bonus-banner {
    margin: 10px;
    background: #161b22;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: stretch; /* đổi từ center → stretch */
    justify-content: space-between;
    gap: 0;
    box-sizing: border-box;
    overflow: hidden; /* để border-radius clip được các item bên trong */
}

.bonus-content {
    flex: 1;
    min-width: 0; /* quan trọng: tránh overflow */
}

.bonus-title {
    margin: 14px 24px 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* Xóa max-width ở đây */
.bonus-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    /* bỏ max-width: 480px */
}

    .bonus-desc.news {
        padding: 0;
        margin: 0;
    }

/* Mỗi item */
.P_promotion_news {
    padding: 14px 24px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: background 0.15s ease;
}

    .P_promotion_news:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .P_promotion_news:last-child {
        border-bottom: none;
    }

    .P_promotion_news .d-flex.align-items-center.justify-content-between {
        gap: 12px;
    }

    /* Title trong item */
    .P_promotion_news .fw-bold {
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        max-width: 500px;
    }

/* Badge NEW */
.new_news {
    background: #e53e3e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    margin-left: 8px;
    white-space: nowrap;
}

/* Date */
.P_promotion_news p[style*="float:right"] {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

/* Content body */
.P_promotion_news > div[style*="color:#a6a6a6"] {
    margin-top: 8px;
    padding-left: 28px;
    font-size: 13px;
    color: #a6a6a6;
    line-height: 1.7;
}

.news-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

.news-content {
    margin-top: 8px;
    padding-left: 28px;
    font-size: 13px;
    color: #a6a6a6;
    line-height: 1.7;
}

.content-service .social img{
    width: 120px;

}
.content-service {
    color: #fff;
}
    .content-service .social img {
        transition: transform 0.25s ease, border 0.25s ease;
    }

.content-service .social img:hover {
           
            transform: scale(1.12);
 }

.ajs-content, .ajs-ok {
    color: #000;
}