/* --- START OF FILE public/css/user.css --- */

/* ======================================================= */
/* === BẮT ĐẦU: HIỆU ỨNG NỀN CAO CẤP (ĐÃ CẬP NHẬT) === */
/* ======================================================= */

#page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/assets/images/background.jpg');
    background-size: cover;
    background-position: center center;
}

body.dashboard-page,
body.brand-selection-page,
body.games-page,
body.analysis-page {
    overflow-y: auto;
    position: relative;
}

#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* THAY ĐỔI: Lưới màu cam */
    background-image:
        linear-gradient(rgba(255, 153, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 153, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    animation: grid-glitch 7s linear infinite;
}

@keyframes grid-glitch {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    49% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(2px, -1px); opacity: 0.8; }
    51% { transform: translate(-2px, 1px); opacity: 0.4; }
    52% { transform: translate(0, 0); opacity: 0.5; }
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: background 0.1s linear;
    /* THAY ĐỔI: Hiệu ứng ánh sáng màu cam vàng */
    background:
        radial-gradient(
            circle 500px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 153, 0, 0.25),
            rgba(255, 195, 0, 0.15) 40%,
            transparent 65%
        ),
        linear-gradient(
            to top,
            rgba(120, 50, 0, 0.6) 0%,
            rgba(20, 5, 0, 0.8) 40%,
            transparent 60%
        );
    mix-blend-mode: color-dodge;
    opacity: 0.8;
}

@keyframes move-stars {
    from { transform: translateY(0); }
    to   { transform: translateY(-2000px); }
}

#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#stars1, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2000px;
    background-repeat: repeat;
    background-position: 0 0;
    animation-name: move-stars;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

#stars1 {
    background-image: radial-gradient(1px 1px at 50px 100px, white, transparent),
                      radial-gradient(1px 1px at 150px 250px, white, transparent),
                      radial-gradient(1px 1px at 300px 400px, white, transparent),
                      radial-gradient(1px 1px at 450px 50px, white, transparent);
    background-size: 500px 500px;
    animation-duration: 150s;
}

#stars2 {
    background-image: radial-gradient(2px 2px at 200px 300px, white, transparent),
                      radial-gradient(1.5px 1.5px at 400px 100px, white, transparent),
                      radial-gradient(1.5px 1.5px at 50px 450px, white, transparent);
    background-size: 500px 500px;
    animation-duration: 100s;
}

#stars3 {
    background-image: radial-gradient(2.5px 2.5px at 100px 50px, white, transparent),
                      radial-gradient(2px 2px at 250px 350px, white, transparent);
    background-size: 500px 500px;
    animation-duration: 50s;
}

.header {
    background: rgba(10, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: static;
}

.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shooting-stars .star {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    /* THAY ĐỔI: Sao băng có vệt sáng cam */
    box-shadow: 0 0 8px #fff, 0 0 18px #fff, 0 0 30px var(--primary-red);
    opacity: 0;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.shooting-stars .star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
}

@keyframes shoot-rl {
    0% { transform: translate3d(100vw, 0, 0) rotate(225deg); opacity: 1; }
    100% { transform: translate3d(-50vw, 0, 0) rotate(225deg); opacity: 0; }
}
@keyframes shoot-lr {
    0% { transform: translate3d(-50vw, 0, 0) rotate(45deg); opacity: 1; }
    100% { transform: translate3d(100vw, 0, 0) rotate(45deg); opacity: 0; }
}
@keyframes shoot-tb {
    0% { transform: translate3d(0, -50vh, 0) rotate(135deg); opacity: 1; }
    100% { transform: translate3d(0, 100vh, 0) rotate(135deg); opacity: 0; }
}
@keyframes shoot-bt {
    0% { transform: translate3d(0, 100vh, 0) rotate(315deg); opacity: 1; }
    100% { transform: translate3d(0, -50vh, 0) rotate(315deg); opacity: 0; }
}


.shooting-stars .star:nth-child(4n + 1) { animation-name: shoot-lr; }
.shooting-stars .star:nth-child(4n + 2) { animation-name: shoot-rl; }
.shooting-stars .star:nth-child(4n + 3) { animation-name: shoot-tb; }
.shooting-stars .star:nth-child(4n) { animation-name: shoot-bt; }

/* Các cấu hình thời gian cho sao băng */
.shooting-stars .star:nth-child(1) { top: 80%; left: 0; animation-delay: 1.5s; animation-duration: 5.5s; }
.shooting-stars .star:nth-child(2) { top: 20%; left: 100%; animation-delay: 2.2s; animation-duration: 4.8s; }
.shooting-stars .star:nth-child(3) { top: 0; left: 20%; animation-delay: 0.5s; animation-duration: 6s; }
.shooting-stars .star:nth-child(4) { top: 100%; left: 70%; animation-delay: 3.1s; animation-duration: 5.2s; }
.shooting-stars .star:nth-child(5) { top: 10%; left: 0; animation-delay: 4.5s; animation-duration: 4.5s; }
.shooting-stars .star:nth-child(6) { top: 50%; left: 100%; animation-delay: 0.2s; animation-duration: 7s; }
.shooting-stars .star:nth-child(7) { top: 0; left: 80%; animation-delay: 5.8s; animation-duration: 5.8s; }
.shooting-stars .star:nth-child(8) { top: 100%; left: 30%; animation-delay: 6.3s; animation-duration: 4.2s; }
.shooting-stars .star:nth-child(9) { top: 40%; left: 0; animation-delay: 7.1s; animation-duration: 6.5s; }
.shooting-stars .star:nth-child(10) { top: 90%; left: 100%; animation-delay: 8.4s; animation-duration: 5.3s; }


#background-video, #background-effects { display: none; }
@media (min-width: 769px) { main { max-width: 1000px; margin: 0 auto; } body.dashboard-page .grid-container { grid-template-columns: repeat(4, 1fr); gap: 25px; } }

/* === HEADER ELEMENTS === */
#welcome-message { margin: 0; color: #fff; font-weight: 700; font-size: 1.1em; font-family: 'Poppins', sans-serif; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); letter-spacing: 0.5px; }
/* CSS cũ đã được thay thế bằng .coin-button và .logout-button mới */

/* === MAIN TITLE (ĐÃ CẬP NHẬT) === */
.main-title { display: inline-block; background: linear-gradient(90deg, var(--secondary-red), var(--primary-red)); color: #fff; padding: 15px 40px; margin: 20px 0 40px; border-radius: 50px; font-size: 2em; text-transform: uppercase; font-family: 'Poppins', sans-serif; animation: title-pulse 3s infinite ease-in-out; }
@keyframes title-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 153, 0, 0.7); } 50% { transform: scale(1.03); box-shadow: 0 0 30px rgba(255, 153, 0, 1); } }

/* === LOBBY & GAME CARDS (ĐÃ CẬP NHẬT) === */
.grid-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lobby-card { background: rgba(255, 255, 255, 0.95); border: 1px solid var(--border-color); border-radius: 16px; text-decoration: none; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.lobby-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-hover); border-color: var(--primary-red); }
.card-image-wrapper { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lobby-card:hover .card-image-wrapper img { transform: scale(1.1); }
.card-title-bar { background: linear-gradient(90deg, var(--secondary-red), var(--primary-red)); color: white; padding: 12px; text-align: center; margin-top: auto; }
.card-title-bar p { margin: 0; font-weight: 600; text-transform: uppercase; font-size: 0.9em; letter-spacing: 1px; }

/* Game Card Enhanced */
.game-card-enhanced { background-color: #1c1113; border: 1px solid #8c532c; border-radius: 16px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 15px rgba(255, 153, 0, 0.5); transition: all 0.2s ease-in-out; padding: 8px; text-decoration: none; }
.game-card-enhanced:hover { transform: translateY(-6px); box-shadow: 0 0 30px rgba(255, 153, 0, 0.7); border-color: var(--primary-red); }
.game-card-inner-frame { background-color: #000; border-radius: 12px; padding: 5px; margin-bottom: 10px; border: 1px solid #8c532c; box-shadow: 0 0 15px 2px rgba(255, 153, 0, 0.6); transition: box-shadow 0.2s ease-in-out; }
.game-card-enhanced:hover .game-card-inner-frame { box-shadow: 0 0 20px 4px rgba(255, 153, 0, 0.8); }
.game-card-enhanced .card-image-wrapper { aspect-ratio: 1 / 1; border-radius: 8px; }
.dashboard-lobby-card .card-image-wrapper { aspect-ratio: 16 / 10; }
.dashboard-lobby-card .card-image-wrapper img { object-fit: cover; }
.game-card-enhanced .card-image-wrapper img { border-radius: 8px; }
.game-card-content { padding: 0; display: flex; flex-direction: column; flex-grow: 1; }
.game-info { text-align: center; margin-bottom: 8px; }
.game-name { color: #fff; font-size: 0.9em; font-weight: 700; margin: 0; }
.action-button { width: 100%; padding: 8px; border: none; border-radius: 10px; cursor: pointer; font-weight: bold; font-size: 1em; color: white; text-shadow: 0 0 5px rgba(0,0,0,0.5); transition: all 0.2s; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.action-button:hover { opacity: 0.9; transform: scale(1.03); }

/* === PROGRESS BAR NEON SỌC CHÉO === */
.progress-bar-container {
    width: 100%; height: 16px; background-color: #0a0a0a; border-radius: 12px; border: 1px solid #444; overflow: hidden; margin-bottom: 12px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.9); position: relative; z-index: 1;
}
.progress-bar-fill {
    height: 100%; border-radius: 12px; width: 0%; transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1); position: relative; display: block; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}
.progress-bar-fill::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.5) 75%, transparent 75%, transparent);
    background-size: 15px 15px; animation: move-stripes 0.5s linear infinite; z-index: 2; mix-blend-mode: overlay;
}
.progress-bar-fill::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 45%; background: rgba(255, 255, 255, 0.4); border-radius: 12px 12px 0 0; z-index: 3;
}
@keyframes move-stripes { 0% { background-position: 0 0; } 100% { background-position: 15px 0; } }

/* === HEADER LAYOUT & RESPONSIVE (ĐÃ CẬP NHẬT) === */
body:not(.login-page):not(.games-page) .header { display: flex; justify-content: space-between; align-items: center; }
.header-left { flex: 1; text-align: left; min-width: 120px; display: flex; align-items: center; }
.header-center { 
    flex: 1 1 auto; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    gap: 8px; /* Khoảng cách đồng nhất giữa các phần tử */
}

/* Chuẩn hóa spacing cho các phần tử trong header-center */
.header-center-item {
    margin-bottom: 0; /* Bỏ margin-bottom riêng lẻ, dùng gap của parent */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#welcome-message-center {
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    white-space: nowrap;
}

#vip-status-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-container {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.header-right-content { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
}

/* Coin Button */
.coin-button {
    background: linear-gradient(90deg, var(--secondary-red), var(--primary-red));
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

.coin-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.8);
}

/* Logout Button */
.logout-button {
    background: linear-gradient(90deg, var(--secondary-red), var(--primary-red));
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

.logout-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.8);
}
.games-header { position: relative; display: flex; justify-content: center; align-items: center; height: 60px; }
.games-header #lobby-title { color: #fff; font-family: 'Poppins', sans-serif; margin: 0; font-size: 1.8em; text-shadow: 0 0 10px rgba(255, 153, 0, 0.6); }
.back-button-user { text-decoration: none; color: white; font-weight: bold; font-size: 1.1em; text-shadow: 0 0 8px rgba(255, 153, 0, 0.8); transition: all 0.2s ease; white-space: nowrap; padding: 10px 20px !important; width: auto !important; display: inline-block; }
.back-button-user:hover { color: #ffe0b3; text-shadow: 0 0 15px rgba(255, 153, 0, 1); }
#live-clock-container { color: #fff; font-family: 'Poppins', sans-serif; text-shadow: 0 0 10px rgba(255, 153, 0, 0.8); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.clock-time { font-weight: 700; font-size: 1.1em; }
.clock-date { font-size: 0.8em; opacity: 0.8; }
.games-header #live-clock-container { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); }

.status-tag-wrapper { text-align: center; margin-bottom: 10px; }
.status-tag { color: white; text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); font-size: 0.7em; transition: all 0.3s ease; padding: 4px 12px; border-radius: 50px; font-weight: bold; display: inline-block; }
.status-tag.tag-jackpot { background: linear-gradient(45deg, #00ff8c, #00b894); box-shadow: 0 0 12px rgba(0, 255, 140, 0.8); }
.status-tag.tag-play { background: linear-gradient(45deg, #ffc62b, #ff8e00); box-shadow: 0 0 12px rgba(255, 198, 43, 0.8); }
/* THAY ĐỔI: Tag chờ màu xám thay vì đỏ */
.status-tag.tag-wait { background: linear-gradient(45deg, #6c757d, #343a40); box-shadow: 0 0 12px rgba(108, 117, 125, 0.8); }

.search-container { margin-bottom: 30px; text-align: center; }
#game-search-input { width: 50%; max-width: 500px; padding: 12px 20px; background-color: rgba(0, 0, 0, 0.5); border: 1px solid #8c532c; border-radius: 50px; color: #fff; font-size: 1em; outline: none; transition: all 0.3s ease; }
#game-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
#game-search-input:focus { box-shadow: 0 0 15px var(--primary-red); border-color: var(--primary-red); }

/* === TERMINAL NOTIFICATION (ĐÃ CẬP NHẬT) === */
@keyframes bot-float { 0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(255, 195, 0, 0.6)); } 50% { transform: translateY(-8px); filter: drop-shadow(0 0 18px rgba(255, 195, 0, 0.9)); } }
@keyframes terminal-glow { 0%, 100% { box-shadow: 0 0 20px rgba(255, 195, 0, 0.4); } 50% { box-shadow: 0 0 30px rgba(255, 195, 0, 0.7); } }
@keyframes scanline-effect { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 0.7; } 80% { opacity: 0.7; } 100% { transform: translateY(120px); opacity: 0; } }
.terminal-notification { position: fixed; bottom: 25px; left: 40px; z-index: 100; width: 80px; height: 80px; }
.terminal-bot-icon img { width: 100%; height: 100%; animation: bot-float 3s infinite ease-in-out; }
.terminal-content { position: absolute; bottom: 100px; left: 0; width: 300px; background: linear-gradient(135deg, rgba(20, 15, 0, 0.7), rgba(0, 0, 0, 0.8)); border: 1px solid rgba(255, 195, 0, 0.6); border-radius: 8px; backdrop-filter: blur(10px); overflow: hidden; animation: terminal-glow 3s infinite ease-in-out; }
.terminal-content::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid rgba(255, 195, 0, 0.6); }
.terminal-content::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #FFC300; box-shadow: 0 0 10px #FFC300, 0 0 5px #FFD700; animation: scanline-effect 4s linear infinite; }
.terminal-header { background-color: rgba(0, 0, 0, 0.8); padding: 6px 12px; color: #FFC300; font-size: 0.9em; font-weight: bold; font-family: monospace; text-shadow: 0 0 5px #FFC300; border-bottom: 1px solid rgba(255, 195, 0, 0.4); }
.terminal-body { padding: 15px; color: #e0e0e0; font-family: monospace; font-size: 0.95em; line-height: 1.4; }
.cursor { display: inline-block; width: 10px; height: 1em; background-color: #FFC300; margin-left: 5px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* === SPACE DUST OVERLAY === */
#space-dust-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); opacity: 0.3; animation: move-dust 200s linear infinite;
}
@keyframes move-dust { from { background-position: 0 0; } to { background-position: -10000px 5000px; } }

/* === FEATURED GAMES (ĐÃ CẬP NHẬT) === */
.featured-games-container { display: flex; justify-content: center; gap: 25px; margin: 30px 0 40px 0; flex-wrap: wrap; }
.featured-game-card { width: 250px; height: 320px; position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; transition: all 0.3s ease-in-out; }
.featured-game-card:hover { transform: translateY(-10px) scale(1.05); box-shadow: 0 0 35px rgba(0, 255, 140, 0.6); }
.featured-game-card::before { content: ''; position: absolute; top: 50%; left: 50%; width: 250%; height: 250%; background: conic-gradient(from 0deg, transparent 0%, transparent 85%, #00ff8c 95%, #00b894 100%); animation: featured-spin 3s linear infinite; transform-origin: 0 0; }
@keyframes featured-spin { 100% { transform: rotate(360deg); } }
.featured-game-card-inner { position: absolute; inset: 3px; background: rgba(10, 0, 0, 0.8); backdrop-filter: blur(5px); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; }
.featured-game-card-inner img { width: 100%; height: 70%; object-fit: cover; border-bottom: 2px solid #00b894; }
.featured-game-info { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; text-align: center; }
.featured-game-info h3 { margin: 0; color: #fff; font-family: 'Poppins', sans-serif; font-size: 1.2em; text-transform: uppercase; text-shadow: 0 0 10px var(--primary-red); }
.featured-game-info p { margin: 5px 0 0; color: #ccc; font-size: 0.9em; font-weight: bold; }
.featured-tag { position: absolute; top: 12px; left: -35px; transform: rotate(-45deg); width: 130px; text-align: center; padding: 5px 0; font-weight: bold; font-size: 0.8em; color: #111; background: linear-gradient(45deg, #00ff8c, #00b894); box-shadow: 0 5px 10px rgba(0,0,0,0.3); z-index: 10; }

/* ======================================================= */
/* === NÂNG CẤP HIỂN THỊ CẤP BẬC (BADGE) (ĐÃ CẬP NHẬT) === */
/* ======================================================= */

.user-status-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* THAY ĐỔI: Viền dưới màu cam */
    border-bottom: 2px solid var(--primary-red);
    padding: 8px 25px;
    border-radius: 50px;
    /* THAY ĐỔI: Bóng đổ màu cam */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 153, 0, 0.2);
    transition: all 0.3s ease;
}
.user-status-row:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 153, 0, 0.4);
    transform: translateY(-2px);
}

.vip-status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Poppins', 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    line-height: 1;
    transition: all 0.3s ease;
}

/* THAY ĐỔI: Badge Member thường màu cam */
.badge-normal {
    background: linear-gradient(180deg, #ff9900 0%, #cc7a00 100%);
    color: #ffffff;
    border: 1px solid #ffcc80;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 0 15px rgba(255, 153, 0, 0.7);
    text-shadow: 0 1px 2px rgba(100, 50, 0, 0.8);
}

.badge-vip {
    background: linear-gradient(90deg, #FFD700, #ffaa00, #FFD700);
    background-size: 200% auto;
    color: #422900;
    border: 1px solid #fff5c3;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 0px rgba(255, 255, 255, 0.4);
    animation: vip-gradient-move 2s linear infinite;
}
.badge-vip::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, rgba(255,255,255,0.8), transparent 30%); animation: vip-rotate-shine 3s linear infinite; opacity: 0.3;
}
@keyframes vip-gradient-move { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes vip-rotate-shine { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* === THANH TIẾN TRÌNH VIP === */
.vip-container { width: 100%; max-width: 250px; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.vip-progress-track { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.2); overflow: hidden; position: relative; }
.vip-progress-fill { height: 100%; background: linear-gradient(90deg, #00c6ff, #0072ff); width: 0%; border-radius: 10px; transition: width 1s ease-out; box-shadow: 0 0 8px #0072ff; position: relative; }
.vip-progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(255,255,255,0.4) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.4) 75%, transparent 75%); background-size: 10px 10px; opacity: 0.3; }
.vip-text { display: flex; justify-content: space-between; font-size: 0.7em; color: #aaa; font-weight: bold; font-family: monospace; }

/* === FAKE WINNER MARQUEE (ĐÃ CẬP NHẬT) === */
.fake-winner-marquee { position: fixed; top: 0; left: 0; width: 100%; height: 30px; background: rgba(0, 0, 0, 0.9); border-bottom: 1px solid var(--primary-red); z-index: 9999; overflow: hidden; display: flex; align-items: center; }
.marquee-content { display: flex; gap: 50px; animation: marquee-slide 300s linear infinite; white-space: nowrap; padding-left: 100%; }
.marquee-content span { color: #fff; font-size: 0.85em; font-family: 'Roboto', sans-serif; }
.marquee-content span b { color: var(--accent-glow); }
@keyframes marquee-slide { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* === PADDING HEADER FIX === */
body.dashboard-page .header, body.games-page .header { margin-top: 0 !important; padding-top: 40px !important; position: relative; z-index: 10; }

/* === MOBILE RESPONSIVE TWEAKS === */
@media (max-width: 768px) {
    main { padding: 20px 10px; width: 100%; max-width: none; box-sizing: border-box; }
    
    /* Header - Mobile */
    body.dashboard-page .header, 
    body.games-page .header,
    body.analysis-page .header { 
        padding-top: 35px !important; 
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    body.dashboard-page .header, 
    body.brand-selection-page .header, 
    body.games-page .header,
    body.analysis-page .header { 
        flex-wrap: wrap; 
        padding-bottom: 10px; 
        gap: 8px;
        align-items: flex-start;
    }
    
    /* Header Left - Mobile */
    body.dashboard-page .header-left, 
    body.brand-selection-page .header-left,
    body.games-page .header-left,
    body.analysis-page .header-left { 
        flex: 0 0 auto; 
        min-width: auto; 
        width: auto;
        max-width: 50%;
        order: 1;
        padding-right: 5px;
    }
    
    /* Header Right - Mobile */
    body.dashboard-page .header-right, 
    body.brand-selection-page .header-right,
    body.games-page .header-right,
    body.analysis-page .header-right { 
        flex: 0 0 auto; 
        width: auto;
        max-width: 50%;
        min-width: 0;
        order: 2;
        justify-content: flex-end;
        align-items: flex-end;
        padding-left: 5px;
    }
    
    /* Header Center - Mobile */
    body.dashboard-page .header-center, 
    body.brand-selection-page .header-center,
    body.games-page .header-center,
    body.analysis-page .header-center { 
        flex: 1 1 100%; 
        width: 100%;
        min-width: 100%;
        order: 3; 
        text-align: center; 
        margin-top: 8px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Header Center - Mobile: Giảm gap */
    body.dashboard-page .header-center,
    body.brand-selection-page .header-center,
    body.games-page .header-center,
    body.analysis-page .header-center {
        gap: 6px !important;
    }
    
    /* Header Center Items - Mobile */
    .header-center-item {
        margin-bottom: 0 !important;
    }
    
    /* Welcome Message Center - Mobile */
    #welcome-message-center {
        font-size: 0.8em !important;
        margin-bottom: 0 !important;
    }
    
    /* VIP Status Display - Mobile */
    #vip-status-display {
        justify-content: center !important;
        margin-bottom: 0 !important;
        width: 100%;
    }
    
    /* VIP Container - Mobile */
    .vip-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }
    
    /* Clock Container - Mobile */
    #live-clock-container {
        font-size: 0.8em !important;
        width: 100%;
        margin-bottom: 0 !important;
    }
    
    .clock-time {
        font-size: 0.95em !important;
    }
    
    .clock-date {
        font-size: 0.75em !important;
    }
    
    .header-right-content { 
        padding: 0 !important; 
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 6px !important;
        background: none !important;
        box-shadow: none !important;
        width: auto;
        max-width: 100%;
    } 
    
    .coin-button {
        font-size: 0.75em !important;
        padding: 5px 10px !important;
        min-width: auto;
        width: auto;
        white-space: nowrap;
    }
    
    .logout-button { 
        font-size: 0.75em !important;
        padding: 5px 10px !important;
        min-width: auto;
        width: auto;
        white-space: nowrap;
    }
    
    .logout-button span { display: none; }
    
    .back-button-user { 
        font-size: 0.85em !important; 
        padding: 6px 10px !important; 
        left: 10px !important; 
    }
    
    .featured-games-container { gap: 20px; margin-bottom: 30px; }
    .featured-game-card { width: 45%; max-width: 200px; height: 280px; }
    .featured-game-info h3 { font-size: 1em; } 
    .featured-game-info p { font-size: 0.8em; }
    
    #page-background { 
        background-image: url('/assets/images/background-mobile.jpg'); 
        background-size: cover !important; 
        background-position: center center !important; 
        background-repeat: no-repeat !important; 
        position: fixed !important; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; 
        z-index: -1; 
    }
    
    /* Coin Button - Mobile */
    .coin-button {
        font-size: 0.75em !important;
        padding: 5px 10px !important;
    }
    
    #coin-value {
        font-size: 0.95em !important;
    }
    
    /* VIP Badge - Mobile */
    .vip-status-badge {
        font-size: 0.7em !important;
        padding: 3px 10px !important;
        letter-spacing: 1px !important;
    }
    
    /* VIP Text - Mobile */
    .vip-text {
        font-size: 0.6em !important;
    }
    
    /* Welcome Message Center - Mobile */
    #welcome-message-center {
        font-size: 0.8em !important;
        margin-bottom: 4px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
