/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* =========================
   THEME VARIABLES
========================= */
:root{

    /* =========================
       BACKGROUND (Deep Gaming)
    ========================= */
    --bg-solid: #0b1220;
    --bg-gradient: linear-gradient(135deg,#0b1220 0%, #0f1b33 100%);

    /* =========================
       TEXT
    ========================= */
    --text-color: #e6edf6;
    --text-muted: #8fa3bf;

    /* =========================
       CARD (Soft Navy)
    ========================= */
    --card-bg: #162238;
    --card-border: #22324a;

    /* =========================
       PRIMARY (Type Button / Accent)
    ========================= */
    --primary-solid: #6d28d9;
    --primary-gradient: linear-gradient(90deg,#6d28d9,#06b6d4);

    /* =========================
       TRANSAKSI ORANGE (Special)
    ========================= */
    --transaksi-solid: #ff6a00;
    --transaksi-glow: 0 15px 35px rgba(255,106,0,0.35);

    /* =========================
       ANNOUNCEMENT
    ========================= */
    --announce-bg: #111c2e;

}

/* =========================
   BODY
========================= */
body{
    font-family:'Inter',sans-serif;
    background: var(--bg-solid);
    color: var(--text-color);
    padding-bottom:70px;
}

body.gradient{
    background: var(--bg-gradient);
}
body::after{
    content:"";
    position:fixed;
    width:400px;
    height:400px;
    background: radial-gradient(circle, rgba(255,106,0,0.08), transparent 70%);
    bottom:-100px;
    left:-100px;
    z-index:-1;
}
/* ================= HEADER BASE ================= */

.nav-link{
    position:relative;
    transition:.2s;
}

.nav-link:hover{
    color:#a855f7 !important;
}

.nav-link::after{
    content:"";
    position:absolute;
    bottom:5px;
    left:0;
    width:0%;
    height:2px;
    background:linear-gradient(90deg,#7c3aed,#06b6d4);
    transition:.3s;
}

.nav-link:hover::after{
    width:100%;
}

.search-item:hover{
    background:rgba(124,58,237,.2);
}

/* =========================
   CAROUSEL
========================= */
.carousel{
    max-width:1100px;
    margin:25px auto;
    padding:0 20px;
}

.slide{
    display:none;
    border-radius:18px;
    overflow:hidden;
}

.slide img{
    width:100%;
    height:190px;
    object-fit:cover;
    border-radius:18px;
    box-shadow:0 15px 35px rgba(0,0,0,0.35);
}

.slide.active{
    display:block;
}

/* =========================
   ANNOUNCEMENT
========================= */
.announcement{
    max-width:1100px;
    margin:15px auto;
    padding:12px 20px;
    background: var(--announce-bg);
    border-radius:14px;
    font-size:13px;
    overflow:hidden;
    color:var(--text-muted);
}

.announcement span{
    display:inline-block;
    white-space:nowrap;
    animation:marquee 12s linear infinite;
}

@keyframes marquee{
    0%{ transform:translateX(100%); }
    100%{ transform:translateX(-100%); }
}

/* =========================
   TYPE SECTION
========================= */
/* ===== SECTION TITLE ===== */
/* =========================
   PREMIUM SECTION HEADER
========================= */

.section-header{
    padding:18px 20px 12px 20px;
    background: rgba(255,255,255,0.02);
    border-radius:16px;
    margin:0 15px 10px 15px;
}

.section-title-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.section-title-left h2{
    font-size:20px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--text-color);
    margin:0;
}

/* Icon */
.section-icon{
    width:32px;
    height:32px;
    border-radius:8px;
    background:linear-gradient(135deg,#6d28d9,#06b6d4);
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:16px;
    box-shadow:0 6px 15px rgba(109,40,217,.3);
}

/* Accent Line */
.section-line{
    margin-top:10px;
    width:60px;
    height:3px;
    border-radius:3px;
    background:linear-gradient(90deg,#ff6a00,#ff3d00);
}
.type-wrapper{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:10px 20px 20px 20px;
}

.type-section{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:5px;
    scroll-behavior:smooth;
}

.type-section::-webkit-scrollbar{
    height:4px;
}
.type-section::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,0.2);
    border-radius:10px;
}

.type-btn{
    flex:0 0 auto;
    padding:10px 20px;
    border-radius:999px;
    font-size:14px;
    font-weight:500;
    text-decoration:none;

    background:var(--card-bg);
    border:1px solid var(--card-border);
    color:var(--text-color);

    transition:.25s ease;
}

.type-btn:hover{
    transform:translateY(-2px);
    border-color:var(--primary-solid);
}

.type-btn.active{
    background:var(--primary-gradient);
    border:none;
    color:#fff;
    box-shadow:
        0 0 20px rgba(124,58,237,.4),
        0 8px 20px rgba(0,0,0,.3);
}

/* Desktop center */
@media (min-width:1024px){
    .type-section{
        justify-content:center;
        overflow:visible;
        flex-wrap:wrap;
    }
}


/* =========================
   BRAND GRID RESPONSIVE
========================= */

.brand-section{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 15px 30px 15px;
}

/* Default Mobile */
.brand-section .grid{
    display:grid;
    gap:14px;
    grid-template-columns:repeat(3,1fr);
}

/* Tablet */
@media (min-width:768px){
    .brand-section .grid{
        grid-template-columns:repeat(4,1fr);
    }
}

/* Laptop */
@media (min-width:1024px){
    .brand-section .grid{
        grid-template-columns:repeat(5,1fr);
    }
}

/* Desktop Besar */
@media (min-width:1280px){
    .brand-section .grid{
        grid-template-columns:repeat(6,1fr);
    }
}

/* =========================
   BRAND CARD
========================= */

.brand-box{
    width:100%;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.01)
    );
    backdrop-filter: blur(8px);
    border:1px solid var(--card-border);
    border-radius:18px;

    aspect-ratio:1/1;

    display:flex;
    flex-direction:column;
    justify-content:space-between;

    padding:12px;
    transition:.25s ease;
}

.brand-box:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 30px rgba(0,0,0,0.4);
    border-color:var(--primary-solid);
}

/* IMAGE FULL */
.brand-logo{
    width:100%;
    height:75%;
    overflow:hidden;
}

.brand-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

/* TEXT */
.brand-name{
    text-align:center;
    font-weight:500;
    font-size:clamp(11px,1.2vw,14px);
    line-height:1.2;
    color:var(--text-color);

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}
/* =========================
   FOOTER
========================= */
/* =========================
   DARK GAMING FOOTER
========================= */
/* ===============================
   MOBILE APP BOTTOM NAV
================================ */

.app-bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    height:75px;

    background:var(--card-bg);
    border-top:1px solid var(--card-border);

    display:flex;
    justify-content:space-around;
    align-items:center;

    z-index:9999;
    overflow:visible; /* WAJIB supaya tombol keluar */
}

/* ITEM NORMAL */
.app-bottom-nav .nav-item{
    flex:1;
    text-align:center;
    text-decoration:none;
    color:var(--text-muted);
    font-size:11px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    transition:.2s;
}

.app-bottom-nav .nav-item i{
    font-size:22px;
    margin-bottom:4px;
}

.app-bottom-nav .nav-item.active{
    color:var(--primary-solid);
}

.app-bottom-nav .nav-item:hover{
    color:white;
}

/* ===============================
   CENTER FLOATING WRAPPER
================================ */

.center-wrapper{
    position:absolute;
    top:-38px;   /* lebih turun dari -46 */
    left:50%;
    transform:translateX(-50%);
    z-index:10000;
}

.center-button{
    width:86px;
    height:86px;
    border-radius:50%;

    background:linear-gradient(135deg,#ff7a00,#ff3d00);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:2px;

    color:white;
    text-decoration:none;

    border:4px solid var(--card-bg); /* lebih tipis biar elegan */

    box-shadow:
        0 12px 25px rgba(255,122,0,.35),
        0 0 20px rgba(255,122,0,.25);

    transition:.2s ease;
}

.center-button i{
    font-size:26px;
    line-height:1;
}

.center-button span{
    font-size:11px;
    font-weight:600;
    line-height:1;
}
.center-button:active{
    transform:scale(.92);
}

/* ===============================
   SAFE AREA CONTENT SPACE
================================ */

@media (max-width:991px){
    body{
        padding-bottom:130px; /* biar konten gak ketutup */
    }
}
/* =========================
   DESKTOP FOOTER
========================= */

.desktop-footer{
    background:#0f172a;
    border-top:1px solid #1f2937;
}

.footer-link{
    color:#cbd5e1;
    margin:0 15px;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.footer-link:hover{
    color:#7c3aed;
}
/* =========================
   MENU DRAWER
========================= */
.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    opacity:0;
    pointer-events:none;
    transition:.3s;
    z-index:999;
}

.menu-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.menu-drawer{
    position:fixed;
    top:0;
    right:-260px;
    width:250px;
    height:100%;
    background: var(--card-bg);
    padding:20px;
    box-shadow:-5px 0 30px rgba(0,0,0,0.5);
    transition:.3s ease;
    z-index:1000;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.menu-drawer.active{
    right:0;
}

.menu-drawer a{
    text-decoration:none;
    color:var(--text-color);
    font-size:14px;
}

.menu-drawer a:hover{
    color: var(--primary-solid);
}