*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Inter,sans-serif;
}


body{
    background:#0d111f;
    color:#fff;
    padding-top:65px;
    padding-bottom:75px;
}

.game-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card{
    cursor: pointer;
    transition: transform 0.2s ease;
}

.game-card:hover{
    transform: scale(1.05);
}

/* =========================
   TOP BAR
========================= */

.top-bar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:65px;
    background:#070b12;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 10px;
    z-index:99999;
    border-bottom:1px solid #151515;
}

/* LOGO */
.logo-red{
    font-weight:900;
    font-size:16px;
    font-style:italic;
    letter-spacing:1px;
}

.mega{
    color:#f8c21c;
}

.stake{
    color:#ffffff;
}


/* RIGHT SIDE */

.header-right{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

/* GUEST MENU */

#guestMenu{
    display:flex;
    align-items:center;
    gap:8px;
}

.auth-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    height:42px;
    padding:0 16px;
    border-radius:25px;
    font-size:15px;
    font-weight:700;
    transition:.25s;
}

.auth-btn:first-child{
    background:#111827;
    color:#fff;
    border:1px solid #334155;
}

.auth-btn:last-child{
    background:#f8c21c;
    color:#000;
}

.auth-btn:hover{
    transform:translateY(-2px);
}

/* USER MENU */

#userMenu{
    display:flex;
    align-items:center;
    gap:12px;
}

/* ACCOUNT INFO */

.account-type{
    display:flex;
    flex-direction:column;
    align-items:center;
    line-height:1.1;
}

.account-type small{
    font-size:12px;
    color:#bdbdbd;
    margin-bottom:2px;
    font-weight:500;
}

.account-type .amount{
    font-size:18px;
    font-weight:700;
    color:#f8c21c;
    white-space:nowrap;
}

.balance-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.amount{
    min-width:90px;
    text-align:right;
    display:inline-block;
    color:#f8c21c;
    font-size:18px;
    font-weight:700;
    white-space:nowrap;
}

.ksh{
    color:#fff;
    font-size:18px;
    font-weight:700;
}

/* BALANCE */

.balance{
    font-size:18px;
    font-weight:700;
    color:#f8c21c;
    white-space:nowrap;
}



/* ICON */

.icon{
    font-size:20px;
    color:#d4e11c;
    cursor:pointer;
}

/* DEPOSIT BUTTON */

.deposit-btn{
    height:42px;
    padding:0 16px;
    border:none;
    border-radius:25px;
    background:#f8c21c;
    color:#000;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:none;
    transition:.25s;
}

.deposit-btn:hover{
    transform:scale(1.05);
}

/* =========================
   WINNER POPUP
========================= */

#winnerPopup{
    position:fixed;
    top:90px;
    right:15px;
    width:260px;
    padding:12px 14px;
    background:linear-gradient(135deg,#111827,#1f2937);
    border-left:4px solid #22c55e;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,.45);
    transform:translateX(320px);
    opacity:0;
    transition:.45s;
    z-index:999999;
}

#winnerPopup.show{
    transform:translateX(0);
    opacity:1;
}

/* =========================
   MOBILE
========================= */


@media(max-width:480px){

    .top-bar{
        height:70px;
        padding:0 6px;
    }

    .logo-red{
        font-size:13px;
    }

    #userMenu{
        gap:8px;
    }

    .header-right{
        gap:8px;
    }

    .account-type small{
        font-size:11px;
    }

    .amount{
        width:auto;
        font-size:15px;
    }

    .ksh{
        font-size:15px;
    }

    .balance{
        font-size:15px;
    }

    .icon{
        font-size:20px;
    }

    .deposit-btn{
        height:40px;
        padding:0 12px;
        font-size:13px;
        flex-shrink:0;
    }

}


/*=========================
BANNER
=========================*/

.partners{
    padding:15px;
}

.partners h3{
    color:white;
    margin-bottom:12px;
}

.partner-banner{
    width:100%;
    height:220px;
    border-radius:18px;
    overflow:hidden;
    background:#111827;
}

.partner-banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:opacity .8s ease;
}

/*=========================
CATEGORIES
=========================*/
.categories{
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:10px;
    scrollbar-width:none;
}

.categories::-webkit-scrollbar{
    display:none;
}

.category{
    flex:0 0 auto;
    width:90px; /* smaller */
    text-decoration:none;
    border-radius:12px;
    overflow:hidden;
}

.category img{
    width:100%;
    height:75px; /* smaller */
    object-fit:cover;
    display:block;
    border-radius:12px;
}

/*=========================
POPULAR GAMES
=========================*/

.games{
    padding:15px;
}

.games h3{
    margin-bottom:12px;
    font-size:22px;
}

.game-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.game-card{
    background:#161d27;
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
    cursor:pointer;
}

.game-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,.5);
}

.game-card img{
    width:100%;
    height:95px;
    object-fit:cover;
    display:block;
}

.game-card h4{
    padding:6px;
    margin:0;
    font-size:13px;
    text-align:center;
    line-height:1.1;
}

/* ==========================
PROMOTIONS
========================== */

.promo{
    margin-top:15px;
    padding:0 15px;
}

.promo h3{
    margin-bottom:10px;
    font-size:20px;
    font-weight:700;
    color:#fff;
}

.promo-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.promo-card{
    background:#1b2332;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.promo-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(34,197,94,.3);
}

.promo-img{
    width:100%;
    height:90px;
    object-fit:cover;
    display:block;
}

.promo-title{
    padding:6px;
    text-align:center;
    font-size:12px;
    font-weight:600;
    color:#fff;
    line-height:1.1;
}


/* ===============================
   BOTTOM NAVIGATION
=============================== */


.bottom-nav{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    height:75px;

    background:#111827;

    border-top:1px solid #1f2937;

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index:9999;

    padding-bottom:5px;

}



.nav-link{

    flex:1;

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    color:rgb(255, 255, 255);

    transition:.3s;

}



.nav-link .material-icons{

    font-size:25px;

    margin-bottom:5px;

}



.nav-link p{

    margin:0;

    font-size:12px;

    font-weight:700;

}


/* ACTIVE PAGE */

.nav-link.active{

    color:#8b5cf6;
    position:relative;

}

.nav-link.active .material-icons{

    color:#8b5cf6;

}


/* PURPLE DASH */

.nav-link.active::after{

    content:"";

    position:absolute;

    bottom:0;

    width:35px;

    height:4px;

    background:#8b5cf6;

    border-radius:10px;

}

.nav-link:hover{

    color:#8b5cf6;

}

.nav-link:hover .material-icons{

    color:#8b5cf6;

}

/* ===============================
   MOBILE
=============================== */


@media(max-width:380px){


.bottom-nav{

    height:70px;

}


.nav-link .material-icons{

    font-size:23px;

}


.nav-link p{

    font-size:11px;

}


}







.about-megastake{

padding:25px 18px 35px;

background:#0d111f;

color:#ddd;

}

.about-megastake h2{

font-size:18px;

color:#fff;

margin-bottom:15px;

}

.about-megastake h3{

margin-top:30px;

margin-bottom:12px;

font-size:18px;

color:#fff;

}

.about-megastake p{

line-height:1.9;

font-size:14px;

color:#bdbdbd;

}

.about-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:25px;

margin-top:25px;

}

.about-grid h4{

color:#fff;

margin-bottom:12px;

font-size:18px;

}

.about-grid a{

display:block;

text-decoration:none;

color:#cfcfcf;

margin-bottom:14px;

font-size:14px;

}

.about-grid p{

margin-bottom:14px;

}

.trust-links{

display:flex;

flex-direction:column;

gap:14px;

margin-top:15px;

}

.trust-links a{

text-decoration:none;

color:#cfcfcf;

font-size:14px;

}

.payments{

display:flex;

gap:19px;

flex-wrap:wrap;

margin-top:20px;

}

.payments img{

width:100px;

height:50px;

object-fit:contain;

border-radius:18px;

padding:5px;

}

.license{

margin-top:10px;

}


/* =========================
   SOCIAL ICONS
========================= */

.social {
    margin-bottom: 20px;
}

.social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    background-color: #1a202c;
    color: #ffffff;

    border-radius: 50%;
    margin-right: 10px;

    text-decoration: none;
    font-size: 23px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* HOVER EFFECT — SAME AS WALLET */

.social a:hover {
    background-color: #2d3748;
    color: #FFD700;
    transform: translateY(-2px);
}

/* ICON TRANSITION */

.social a i {
    transition: color 0.2s ease;
}


/* Age 18+ Badge */
.age18 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #6b21a8;
    color: #ffffff;
    font-weight: bold;
    font-size: 19px;
    border-radius: 50%;
    margin-top: 10px;
}







html{
    scroll-behavior:smooth;
}
.games{
    scroll-margin-top:80px;
}




.login-error{
    position:fixed;
    top:90px;
    left:50%;
    transform:translateX(-50%);
    width:90%;
    max-width:400px;
    background:rgba(255,0,0,.2);
    border:2px solid #ff3333;
    color:#fff;
    padding:14px;
    border-radius:18px;
    text-align:center;
    font-weight:700;
    backdrop-filter:blur(8px);
    z-index:999999;
    display:none;
}





.material-icons{
    font-size:24px;
    display:block;
    overflow:hidden;
    white-space:nowrap;
}



/* Hide homepage-only elements on other SPA pages */

.home-only[hidden] {
    display: none !important;
}


/* =========================================
   PREVENT HORIZONTAL PAGE SCROLLING
========================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

#spaPageContent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}



