/* ================= GLOBAL & VARS ================= */
:root {
    --primary-main: #20232c;       /* သင်ပေးထားသော အဓိကအရောင် */
    --theme-dark: #1e2026;         /* အဓိကအရောင်ထက် အနည်းငယ်ရင့်သောအရောင် */
    --theme-darker: #15171c;       /* Card များအတွက် ရင့်သောအရောင် */
    --bg-dark: #0d0f12;            /* အနောက်ခံ Background အမည်းရောင် */
    --radius-xl: 22px;
    --topbar-h: 72px;
    --text-0: #ffffff;             /* အဖြူရောင် */
    --text-1: #e0e0e0;             /* မီးခိုးနုရောင် */
}

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

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding-top: 78px; 
    padding-bottom: 50px;
}

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

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

/* ================= BACKGROUNDS ================= */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; 
    height: 100dvh; 
    z-index: -5;
    /* ပုံလမ်းကြောင်းများကို ဖျက်ပြီး သင်ပေးထားသောအရောင်ကို နောက်ခံအဖြစ် အစားထိုးထားပါသည် */
    background-color: var(--primary-main); /* #2a2d36 */
}

/* ================= TOPBAR ================= */
.topbar {
    height: var(--topbar-h);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* rgba(42, 45, 54) သည် #2a2d36 ၏ rgba ကုဒ်ဖြစ်ပါသည် */
    background: linear-gradient(180deg, rgba(42, 45, 54, 0.95) 0%, rgba(30, 32, 38, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
}

/* ================= BUTTONS & PILLS ================= */
.pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(42, 45, 54, 0.5);
    color: var(--text-0);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.pill-btn.primary {
    background: var(--primary-main);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.balance-wrapper { display: flex; align-items: center; gap: 8px; }

.balance-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(30, 32, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px 12px;
    min-width: 100px;
}

.bal-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; line-height: 1.4; }
.bal-val-main { color: #ffffff; font-weight: 800; }
.bal-val-safe { color: #a0a5b5; font-weight: 700; }

.logout-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 50, 50, 0.15); border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff4d4d; display: flex; align-items: center; justify-content: center; text-decoration: none;
}

/* ================= HERO SECTION ================= */
.hero-wrap { display: flex; flex-direction: column; }
@media (min-width: 1400px) { .hero-wrap { max-width: 100%; margin: 0 auto; } }

.swiper.main-swiper {
    width: 100%; 
    aspect-ratio: 1920 / 720; 
    border-radius: 18px; 
    overflow: hidden; 
    background: var(--theme-darker);
    box-shadow: 0 6px 18px rgba(0,0,0,.55);
}

.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; 
        aspect-ratio: 1920 / 720; 
    }
}
.swiper-pagination-bullet-active { width: 24px; background: #ffffff; }



@media (min-width: 769px) { .marquee-box.marquee-attached { border-radius: 0 0 18px 18px; border-bottom: 0; } .swiper.main-swiper { border-radius: 18px 18px 0 0; } }
@media (max-width: 768px) { .marquee-box.marquee-attached { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; } .swiper.main-swiper { border-radius: 0; } }

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

.cat-btn {
    min-width: 68px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    background: transparent; 
    border: none; 
    text-decoration: none; 
    position: relative;
    transition: all 0.3s ease;
}

.cat-btn img {
    width: 43px; 
    height: 43px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6)); 
}

.cat-btn span { 
    font-size: 12px; 
    font-weight: 800; 
    color: rgba(255, 255, 255, 0.5); 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cat-btn.active img, .cat-btn:hover img {
    transform: translateY(-4px) scale(1.1); 
    filter: drop-shadow(0 3px 4px rgba(255, 255, 255, 0.3)); 
}

.cat-btn.active span, .cat-btn:hover span {
    color: #ffffff; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); 
}

.cat-btn::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    width: 0;
    height: 2px;
    background: #ffffff;
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}
.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: linear-gradient(180deg, var(--theme-dark) 0%, var(--theme-darker) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 15px;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}
.pv-btn span {
    color: #a0a5b5; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
}
.pv-btn.active, .pv-btn:hover {
    background: linear-gradient(135deg, #ff8642, #ee2a59);
    border-color: #ffffff; transform: translateY(-2px); box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}
.pv-btn.active span, .pv-btn:hover span { color: #ffffff; text-shadow: none; }

/* ================= GAMES & WINNERS ================= */
.game-col { padding: 5px; margin-bottom: 5px; }
.col-4-mobile { width: 33.3333%; flex: 0 0 auto; }
@media (min-width: 992px) { .col-lg-2-desktop { width: 16.6666%; } }

.game-card-mini {
    border-radius: 16px; overflow: hidden; position: relative;
    background: var(--theme-darker); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.game-img { width: 100%; aspect-ratio: 1/1; background: linear-gradient(45deg, var(--theme-darker), var(--theme-dark)); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.3); font-size:28px; }
.game-name { font-size: 11px; font-weight: 700; text-align: center; padding: 8px 4px; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.winners-stack-container { position: relative; height: 220px; overflow: hidden; mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%); }
.winner-card { position: absolute; width: 100%; height: 70px; display: flex; align-items: center; padding: 0 12px; background: rgba(42, 45, 54, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); border-left: 4px solid #ffffff; border-radius: 12px; opacity: 0; transition: 0.5s; }
.winner-card.active { opacity: 1; }
.w-info { flex-grow: 1; padding-left: 10px; } 
.w-game-name { color: #ffffff; font-size: 13px; font-weight: 800; } 
.w-user { color: #e0e0e0; font-size: 11px; } 
.w-amount { color: #ffd700; font-weight: 800; font-size: 15px; } /* အစိမ်းရောင်အစား ရွှေရောင်ပြောင်းထားပါသည် */

.d-none { display: none !important; }


@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-dot {
    width: 8px; 
    height: 8px; 
    background-color: #ff4d4d;
    border-radius: 50%; 
    display: inline-block;
    margin-right: 5px;
    animation: blink 1.5s infinite ease-in-out;
    /* Box shadow ကို ပုံသေပဲ ထားလိုက်ပါ */
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.6); 
}