/* ================= GLOBAL & SOFT DARK (DIM) VARS ================= */
:root {
    --primary-blue: #0078ff;       /* ပင်မ အပြာရောင် */
    --primary-glow: rgba(0, 120, 255, 0.4);
    
    /* ညဘက်ကြည့်ရလွယ်သော Soft Dark အရောင်များ */
    --bg-main: #111827;            /* နောက်ခံအပြာရင့်/ခဲရောင် (Slate 900) */
    --card-bg: #1f2937;            /* Box များအတွက် အရောင် (Slate 800) */
    
    --text-main: #f9fafb;          /* စာသား အဖြူဖျော့ */
    --text-muted: #9ca3af;         /* စာသား မီးခိုးရောင် */
    --border-light: rgba(255, 255, 255, 0.08); /* ဘောင်အဖြူဖျော့ဖျော့လေး */
    
    --radius-xl: 18px;             /* App ပုံစံ လုံးဝန်းသော ထောင့်များ */
    --radius-md: 12px;
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@font-face {
    font-family: 'CustomArialBlack';
    src: url('../fonts/ariblk.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap; 
}

body {
    background-color: var(--bg-main); 
    color: var(--text-main);
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding-top: 78px; 
    padding-bottom: 80px; 
}

/* ================= LAYOUT ================= */
main.container {
    width: 100%;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 992px) {
    main.container {
        max-width: 1090px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ================= ⚡ SOFT DARK BACKGROUND ⚡ ================= */
.bg-fixed {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    z-index: -5;
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at top center, rgba(31, 41, 55, 1) 0%, rgba(17, 24, 39, 1) 100%);
}

#snowCanvas { display: none !important; }

/* ================= BUTTONS & PILLS ================= */
.pill-btn {
    border: 1px solid var(--border-light);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}
.pill-btn.primary {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.balance-wrapper { display: flex; align-items: center; gap: 8px; }
.balance-box {
    display: flex; flex-direction: column; justify-content: center;
    background: var(--card-bg); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 6px 14px; min-width: 110px;
    box-shadow: var(--shadow-sm);
}
.bal-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.bal-val-main { color: var(--primary-blue); font-weight: 800; font-size: 13px; }

.logout-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444; display: flex; align-items: center; justify-content: center; text-decoration: none;
}

/* ================= HERO SECTION ================= */
.hero-wrap { display: flex; flex-direction: column; }
.swiper.main-swiper {
    width: 100%; aspect-ratio: 1920 / 720; border-radius: var(--radius-xl); overflow: hidden; 
    background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.main-swiper .swiper-slide img { 
    width: 100%; height: 100%; object-fit: cover; object-position: center; 
}

@media (max-width: 768px) {
    .swiper.main-swiper { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
    .marquee-box.marquee-attached { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
}
.swiper-pagination-bullet-active { width: 24px; background: var(--primary-blue) !important; border-radius: 10px; }

/* ================= SEAMLESS MARQUEE (SOFT DARK) ================= */
.marquee-box {
    background: var(--card-bg); border-radius: 12px; 
    border: 1px solid var(--border-light); padding: 8px 12px; 
    display: flex; align-items: center; gap: 10px; overflow: hidden; z-index: 10;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 769px) { .marquee-box.marquee-attached { border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none; } .swiper.main-swiper { border-radius: 0 0 var(--radius-xl) var(--radius-xl); } }

.marquee-content { display: flex; overflow: hidden; width: 100%; white-space: nowrap; }
.marquee-track { display: flex; flex-shrink: 0; animation: perfect-marquee 30s linear infinite; }
.m-text { padding-right: 50px; font-size: 13px; font-weight: 600; color: var(--text-main); }
@keyframes perfect-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ================= CATEGORY TABS ================= */
.scroll-container { display: flex; gap: 4px; overflow-x: auto; padding: 15px 5px; scrollbar-width: none; }
.scroll-container::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .scroll-container { justify-content: center; } }

.cat-btn {
    min-width: 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 8px; background: transparent; border: none; text-decoration: none; position: relative; transition: all 0.3s ease;
}
.cat-btn img { width: 42px; height: 42px; object-fit: contain; transition: transform 0.3s ease; opacity: 0.7; }
.cat-btn span { font-size: 12px; font-weight: 700; color: var(--text-muted); transition: color 0.3s ease; }

.cat-btn.active img, .cat-btn:hover img { transform: translateY(-4px) scale(1.1); opacity: 1; filter: drop-shadow(0 4px 8px var(--primary-glow)); }
.cat-btn.active span, .cat-btn:hover span { color: var(--primary-blue); }
.cat-btn::after { content: ''; position: absolute; bottom: -5px; width: 0; height: 3px; background: var(--primary-blue); border-radius: 5px; transition: width 0.3s ease; }
.cat-btn.active::after { width: 30px; }

/* ================= PROVIDER INFINITE LOOP ================= */
.provider-wrapper { position: relative; padding: 10px 0; margin-bottom: 15px; }
.swiper.provider-swiper { width: 100%; padding: 10px 5px; }
.provider-slide { width: auto; display: flex; justify-content: center; }

.pv-btn {
    min-width: 80px; max-width: 100px; height: 40px;
    background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 15px; cursor: pointer; transition: all 0.3s ease;
}
.pv-btn span { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pv-btn.active, .pv-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px var(--primary-glow);
}
.pv-btn.active span, .pv-btn:hover span { color: #fff; }

/* ================= 🎰 APP-STYLE GAME CARDS (DIM MODE) 🎰 ================= */
.game-col { padding: 6px; margin-bottom: 3px; }
.col-4-mobile { width: 33.3333%; flex: 0 0 auto; float: left; }
@media (min-width: 992px) { .col-lg-2-desktop { width: 16.6666%; } }

.game-card-mini {
    border-radius: var(--radius-md); 
    overflow: hidden; 
    position: relative; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-card-mini::before { display: none; }

.game-card-mini:hover {
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md) !important; 
    border-color: rgba(0, 120, 255, 0.4) !important;
}

.game-img { 
    width: 100%; 
    aspect-ratio: 1/1; 
    overflow: hidden; 
    padding: 5px;
}

.game-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: transform 0.5s ease; 
    border-radius: 8px;
}
.game-card-mini:hover .game-img img { transform: scale(1.08); }

/* စာသားကို ပုံအောက်မှာ သပ်သပ်ရပ်ရပ်ထားခြင်း */
.game-name { 
    position: relative;
    width: 100%;
    font-size: 11px; 
    font-weight: 700; 
    text-align: center; 
    padding: 1px 4px; 
    color: var(--text-main); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    text-shadow: none; 
}

/* ================= 🏆 3D LIVE WINNERS FEED (DIM MODE) 🏆 ================= */
.winners-feed-container {
    width: 100%; height: 120px; position: relative;
    display: flex; justify-content: center; align-items: center; overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.winners-track { position: relative; width: 100%; max-width: 1200px; height: 100%; margin: 0 auto; }

.winner-pill {
    position: absolute; top: 50%; left: -50%; 
    transform: translate(-50%, -50%) scale(0.5);
    display: flex; align-items: center; box-sizing: border-box;
    
    /* ခပ်မှိုင်းမှိုင်း နောက်ခံအပြာနှင့် အပြာဘောင် */
    background: var(--card-bg);
    border: 1px solid rgba(0, 120, 255, 0.3); 
    border-radius: var(--radius-xl); 
    box-shadow: var(--shadow-sm);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
    
    width: 90% !important; max-width: 290px !important; height: 60px !important;
    padding: 8px 12px; opacity: 0; z-index: 0;
}

@media (min-width: 992px) {
    .winners-feed-container { height: 140px; }
    .winner-pill { max-width: 420px !important; height: 75px !important; padding: 12px 18px; }
}

.winner-pill.pos-left { left: 15%; transform: translate(-50%, -35%) scale(0.85); opacity: 0.5; z-index: 1; filter: blur(1px); }
.winner-pill.pos-center { 
    left: 50%; transform: translate(-50%, -50%) scale(1.1); opacity: 1; z-index: 10; filter: blur(0px);
    box-shadow: 0 4px 15px var(--primary-glow); border-color: var(--primary-blue); 
}
.winner-pill.pos-right { left: 85%; transform: translate(-50%, -35%) scale(0.85); opacity: 0.5; z-index: 1; filter: blur(1px); }
.winner-pill.pos-out { left: 150%; transform: translate(-50%, -50%) scale(0.5); opacity: 0; z-index: 0; }

.wp-img { 
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; 
    border: 2px solid var(--primary-blue); margin-right: 12px; flex-shrink: 0; 
}
.wp-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; overflow: hidden; padding-right: 10px; }
.wp-user { font-size: 13px; color: var(--text-main); font-weight: 800; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-game { font-size: 11px; color: var(--text-muted); line-height: 1.2; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 
.wp-amount { font-size: 15px; font-weight: 900; color: var(--primary-blue); margin-left: auto; flex-shrink: 0; white-space: nowrap; text-shadow: 0 0 8px var(--primary-glow); }

@media (min-width: 992px) {
    .wp-img { width: 48px; height: 48px; margin-right: 14px; }
    .wp-user { font-size: 15px; }
    .wp-game { font-size: 13px; }
    .wp-amount { font-size: 20px; }
}

@keyframes blink-active {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.5; transform: scale(1.2); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.4); }
}
.live-dot { 
    width: 8px; height: 8px; background-color: #10b981; 
    border-radius: 50%; display: inline-block; margin-right: 5px; animation: blink-active 1.5s infinite ease-in-out; 
}

/* ================= 3D JACKPOT DISPLAY ================= */
.jackpot-container { position: relative; width: 100%; height: 170px; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; }
.jackpot-bg-img { width: 80%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); padding-bottom: 5px; }
.jackpot-overlay { position: absolute; top:52%; left: 50%; transform: translate(-50%, -50%); width: 100%; display: flex; justify-content: center; align-items: center; padding-bottom: 3px; z-index: 10; }
.jackpot-amount {
    font-family: 'CustomArialBlack', 'Arial Black', Impact, sans-serif !important;
    font-size: clamp(40px, 4vw, 75px) !important; 
    font-weight: 800 !important; line-height: 1.2; display: inline-block; padding: 10px; 
    -webkit-font-smoothing: antialiased; transform: translateZ(0); 
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.5)) !important;
}

.jackpot-amount .odometer-value, .jackpot-amount .odometer-formatting-mark {
    background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
    -webkit-text-fill-color: var(--primary-blue) !important; color: var(--primary-blue) !important; 
    -webkit-text-stroke: 0.04em #ffd700 !important; 
    text-shadow: 0px 2px 8px rgba(0, 120, 255, 0.4) !important;
}

/* BUTTONS & OTHER */
.btn-load-more { 
    background: var(--primary-blue); 
    border: none; color: #fff; font-weight: 700; padding: 12px 35px; border-radius: 50px; 
    letter-spacing: 0.5px; transition: all 0.3s ease; box-shadow: 0 4px 12px var(--primary-glow); 
    display: inline-block; margin-top: 20px; cursor: pointer; 
}
.btn-load-more:hover { transform: translateY(-3px); box-shadow: 0 6px 18px var(--primary-glow); }

.bonus-warning { color: #f87171; font-weight: bold; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); padding: 15px; border-radius: 12px; font-size: 13px; }
.d-none { display: none !important; }