*{
margin:0;
padding:0;
box-sizing:border-box;
}


html{
scroll-behavior:smooth;
}

body{

    font-family:'Cairo',sans-serif;

    background:#214f81;

    color:#fff;

    overflow-x:hidden;

}


a{

text-decoration:none;

color:inherit;

}


/* =====================
   BACKGROUND
===================== */


.bg{

    position:fixed;

    inset:0;

    background:#214f81;

    z-index:-2;

}




.bg::before{

content:"";

position:absolute;

width:600px;

height:600px;

border-radius:50%;

background:#2f6ea6;

filter:blur(120px);

top:-250px;

left:-180px;

animation:float1 10s infinite ease-in-out;

}


.bg::after{

content:"";

position:absolute;

width:500px;

height:500px;

border-radius:50%;

background:#00b0ff22;

filter:blur(120px);

bottom:-220px;

right:-180px;

animation:float2 12s infinite ease-in-out;

}



@keyframes float1{

50%{

transform:translateY(50px);

}

}


@keyframes float2{

50%{

transform:translateY(-40px);

}

}



/* =====================
   APP HEADER
===================== */

.appHeader{

    height:64px;

    background:#295b93;

    display:flex;

    align-items:center;

    padding:0 12px;

    gap:10px;

    overflow:hidden;

}

/* يجعل اللوجو في أقصى اليمين */

.brand{

    margin-right:auto;

    flex:0 0 auto;

}

.brand img{

    width:115px;

    height:auto;

    display:block;

}

/* علم مصر */

.flag{

    flex:0 0 auto;

}

.flag img{

    width:34px;

    display:block;

}

/* الهدية */

.gift{

    position:relative;

    width:48px;

    height:48px;

    border-radius:12px;

    background:#3c6da9;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex:0 0 auto;

}

.gift span{

    position:absolute;

    top:-5px;

    right:-5px;

    width:20px;

    height:20px;

    border-radius:50%;

    background:#97d126;

    color:#fff;

    font-size:11px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

}

/* تسجيل الدخول */

.loginBtn{

    flex:0 0 auto;

    height:46px;

    padding:0 18px;

    border-radius:14px;

    background:#3b6ca8;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-size:17px;

    font-weight:700;

}

/* التسجيل */

.registerBtn{

    flex:0 0 auto;

    height:46px;

    padding:0 22px;

    border-radius:14px;

    background:#95c929;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#fff;

    font-size:18px;

    font-weight:800;

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.appHeader{

    gap:8px;

    padding:0 8px;

}

.brand img{

    width:95px;

}

.flag img{

    width:28px;

}

.gift{

    width:38px;

    height:42px;

    font-size:20px;

}

.loginBtn{

    padding:0 10px;

    font-size:14px;

    height:42px;

}

.registerBtn{

    padding:0 10px;

    font-size:14px;

    height:42px;

}

}

/* =====================
   FOOTER
===================== */


footer{

max-width:1100px;

margin:60px auto 30px;

padding:30px 20px;

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

border-radius:30px;

backdrop-filter:blur(20px);

text-align:center;

}



.logoFooter{

width:75px;

height:35px;

margin-bottom:15px;

}



footer p{

font-size:14px;

opacity:.7;

line-height:1.8;

}



.footerLinks{

display:flex;

justify-content:center;

gap:25px;

margin-top:20px;

flex-wrap:wrap;

}

/* ==========================
 MOBILE BOTTOM NAV
========================== */


.bottomNav{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    height:75px;

    background:#fff;

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index:9999;

    box-shadow:0 -2px 10px rgba(0,0,0,.12);

    direction:rtl;

}



.bottomNav a{

    flex:1;

    text-align:center;

    text-decoration:none;

    color:#78909c;

    font-size:12px;

}



.bottomNav i{

    display:block;

    font-size:25px;

    margin-bottom:6px;

}



.bottomNav small{

    font-size:13px;

    white-space:nowrap;

}



.bottomNav a.active{

    color:#2196f3;

}



.bottomNav a.active i{

    color:#2196f3;

}


/* ==================================================
   HERO SLIDER V2
================================================== */
.heroSlider{
    position:relative;
    width:100%;
    overflow:hidden;
    background:#08131f;
}

.heroViewport{
    width:100%;
    overflow:hidden;
}



.heroTrack{
    display:flex;
    flex-wrap:nowrap;
    align-items:stretch;
    transition:transform .5s ease;
    direction:ltr;
}



.heroSlide{
    flex:0 0 100%;
    width:100%;
    min-width:100%;
    max-width:100%;
    display:block;
}



.heroSlide img{
    display:block;
    width:100%;
    height:420px;
    object-fit:cover;
    object-position:center;
}

@media(max-width:992px){

.heroSlide img{

height:300px;

}

}

@media(max-width:768px){

    .heroSlider{

        display:none;

    }

}

/* ===========================================
   CONTROLS
=========================================== */

.sliderBtn{

position:absolute;

top:50%;

transform:translateY(-50%);

width:44px;

height:80px;

border:none;

background:rgba(0,0,0,.30);

color:white;

font-size:22px;

cursor:pointer;

z-index:5;

transition:.25s;

}

.sliderBtn:hover{

background:#168bff;

}

.prev{

left:0;

border-radius:0 10px 10px 0;

}

.next{

right:0;

border-radius:10px 0 0 10px;

}

/* Dots */

.heroDots{

position:absolute;

bottom:15px;

left:50%;

transform:translateX(-50%);

display:flex;

gap:8px;

z-index:5;

}

.heroDots button{

width:10px;

height:10px;

border-radius:50%;

border:none;

background:rgba(255,255,255,.5);

cursor:pointer;

transition:.3s;

}

.heroDots button.active{

width:28px;

border-radius:30px;

background:white;

}



/* ================================
   WINNING EVENTS SLIDER
================================ */

.winningLine{
    width:100%;
    overflow:hidden;
    background:#214f81;
    direction:ltr;
    padding:10px 0;
}

.winningTrack{
    display:flex;
    flex-wrap:nowrap;
    width:max-content;
    animation:winningMove 35s linear infinite;
    will-change:transform;
}

.winningItem{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:190px;
    margin:0 8px;
    padding:10px 16px;

    background:#13233a;
    border-radius:12px;
}

.winningItem img{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.winningItem div{
    display:flex;
    flex-direction:column;
}

.winningItem strong{
    color:#18ff88;
    font-size:15px;
    font-weight:700;
}

.winningItem span{
    color:#a8b3c2;
    font-size:12px;
}

@keyframes winningMove{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

.winningLine:hover .winningTrack{
    animation-play-state:paused;
}

@media(max-width:768px){

    .winningLine{

        display:none;

    }

}

.gameNav{

    display:flex;

    align-items:center;

    gap:15px;

    padding:12px;

    background:#214f81;

}


.categoryScroll{

    display:flex;

    flex:1;

    gap:12px;

    overflow-x:auto;

    scrollbar-width:none;

}


.categoryScroll::-webkit-scrollbar{

    display:none;

}



.gameCategory{

    flex:0 0 auto;

    min-width:100px;

    height:60px;

    background:#295b93;

    border-radius:12px;

    color:white;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-size:13px;

    gap:5px;

}



.gameCategory.active{

    background:#168bff;

}



.gameSearch{

    flex:0 0 240px;

    height:55px;

    background:#13233a;

    border-radius:12px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:0 15px;

}



.gameSearch span{

    font-size:18px;

}



.gameSearch input{

    width:100%;

    background:none;

    border:none;

    outline:none;

    color:white;

    font-size:14px;

}



.gameSearch input::placeholder{

    color:#8c9aaa;

}



@media(max-width:768px){

    .gameNav{

        flex-direction:column;

        align-items:stretch;

    }


    .gameSearch{

        flex:unset;

        width:auto;

    }

}


.gamesHeader{
    display:flex;
    gap:15px;
    align-items:center;
    margin-bottom:20px;
}

.categories{
    display:flex;
    gap:5px;
    flex:1;
    overflow-x:auto;
}

.categories::-webkit-scrollbar{
    display:none;
}

.cat{
    background:#222;
    color:#fff;
    border:0;
    padding:12px 20px;
    border-radius:10px;
    cursor:pointer;
    white-space:nowrap;
}

.cat.active{
    background:#ffc400;
    color:#000;
}

.searchBox{
    width:280px;
}

.searchBox input{
    width:100%;
    padding:12px 15px;
    border:none;
    border-radius:10px;
}

.gamesGrid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
}

.gameCard{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    background:#295b93;
}

.gameCard img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
}

.gameOverlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:.3s;
}

.gameCard:hover .gameOverlay{
    opacity:1;
}

.gameOverlay a{
    background:#ffb400;
    color:#000;
    padding:10px 35px;
    border-radius:12px;
    font-weight:bold;
}

.gameName{
    padding:10px;
    color:#fff;
    text-align:center;
    font-size:18px;
}

@media(max-width:768px){

    .gamesGrid{
        grid-template-columns:repeat(3,1fr);
        gap:10px;
    }

    .gamesHeader{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .categories{
        width:100%;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:8px;
    }

    .searchBox{
        width:100%;
    }

}

@media(max-width:480px){

    .gamesGrid{
        grid-template-columns:repeat(auto-fill,188px);
            justify-content:center;
           gap:5px;
    }

}

html,
body{
    direction: rtl;
}

.heroSlider,
.heroViewport,
.heroTrack{
    direction: ltr;
}

.heroTrack{
    display: flex;
    flex-direction: row;
}

.heroSlide{
    flex: 0 0 100%;
}



/* =========================
   TOP INSTALL BANNER
========================= */

.topInstallBanner{

    height:68px;

    background:#eef2f6;

    display:flex;

    align-items:center;

    padding:0 12px;

    gap:14px;

    color:#2f6ea6;

    border-bottom:1px solid #d6dde6;

}

.installIcon{

    width:42px;
    height:42px;

    border-radius:10px;

    background:#8bc53f;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    font-size:22px;

    flex-shrink:0;

}

.installContent{

    flex:2;

}

.installText{

    font-size:16px;

    font-weight:700;

    line-height:1.1;

}

.installText strong{

    color:#1d6fc9;

    font-size:28px;

    font-weight:900;

}

.installStars{

    color:#2d84d8;

    font-size:16px;

    letter-spacing:2px;

    margin-top:3px;

}

.playIcon{

    width:44px;
    height:44px;

    border-radius:12px;

    background:#2b78c9;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    font-size:20px;

    flex-shrink:0;

}

.closeBanner{

    width:34px;
    height:34px;

    border:none;

    background:transparent;

    color:#8d9aa8;

    font-size:14px;

    cursor:pointer;

    flex-shrink:0;

}

.closeBanner:hover{

    color:#4d5a68;

}

@media(max-width:768px){

    .topInstallBanner{

        height:60px;

        padding:0 8px;

        gap:10px;

    }

    .installText{

        font-size:14px;

    }

    .installText strong{

        font-size:16px;

    }

    .installStars{

        font-size:13px;

    }

    .installIcon{
        
        width:38px;
        height:38px;
font-size:38px;
font-weight:900;
    }
    .playIcon{

        width:38px;
        height:38px;
    }

}


/* =========================
   INFO BANNER
========================= */

.infoBanner{

    height:54px;

    background:#173b68;

    border-radius:12px;

    padding:0 12px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.infoBanner span{

    color:#fff;

    font-size:20px;

    font-weight:700;

}

.searchIcon{

    width:34px;
    height:34px;

    padding:7px;

    box-sizing:border-box;

    background:#0d1d33;

    border-radius:10px;

    color:#fff;

    flex-shrink:0;

}







/* =========================================
   GAME SLIDER
========================================= */


.gameSlider{

    width:100%;

    direction: ltr;

}



.gameViewport{

    overflow:hidden;

    width:100%;

}



.gameTrack{

    display:flex;

    flex-wrap:nowrap;

    gap:10px;

    transition:transform .4s ease;

    direction:ltr;

}

.gameCard{

    flex:0 0 calc((100% - 30px) / 4);

    flex-shrink:0;

    background:#15558b;

    border-radius:15px;

    overflow:hidden;

    color:white;

    text-align:center;

    padding-bottom:10px;

}



.gameCard img{


    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;


}



.gameCard p{


    margin:8px 5px 0;

    font-size:15px;

    line-height:1.5;

}



/* TABLET */

@media(max-width:991px){


    .gameCard{

        flex:0 0 calc(33.333% - 7px);

    }


}



/* MOBILE */

@media(max-width:600px){

    .gameCard{

        flex:0 0 calc(50% - 5px);

    }

    .gameTrack{

        gap:10px;

    }

}



@media(min-width:992px){

    .gameSlider{

        display:none;

    }

}


/* =================================
   INSTALL POPUP
================================= */


.installPopup{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:none;

    align-items:center;

    justify-content:center;

    z-index:99999;

}



.installBox{


    width:90%;

    max-width:360px;

    background:#13233a;

    color:white;

    padding:25px;

    border-radius:20px;

    text-align:center;

    position:relative;


}



.installBox h3{

    font-size:22px;

    margin-bottom:10px;

}



.installBox p{

    color:#ccc;

}



.installBox button,
.installBox a{


    display:block;

    width:100%;

    padding:14px;

    margin-top:15px;

    border-radius:12px;

    border:none;

    font-size:16px;

    cursor:pointer;

    text-decoration:none;

}



#popupInstall{

    background:#18ff88;

    color:#000;

}



#browserPlay{

    background:#168bff;

    color:white;

}



.closeInstall{


    position:absolute;

    top:10px;

    right:10px;

    width:35px!important;

    height:35px;

    padding:0!important;

    background:#333;

    color:white;

}