/* ROOT VARIABLES */
:root { 
    --orange: #ff6b00; 
    --dark-bg: #0d0d0d; 
    --card-bg: #1a1a1a; 
    --border: #2a2a2a; 
}

/* GLOBAL RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', sans-serif; 
}

body { 
    background-color: var(--dark-bg); 
    color: #fff; 
    padding-bottom: 50px; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* HEADER */
header { 
    background: #161616; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.nav-flex { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
}

.logo { 
    font-size: 20px; 
    font-weight: 900; 
    color: #fff; 
}

.search-container { 
    background: var(--card-bg); 
    flex: 1; 
    display: flex; 
    align-items: center; 
    padding: 8px 15px; 
    border-radius: 8px; 
    border: 1px solid var(--border); 
}

.search-container input { 
    background: transparent; 
    border: none; 
    color: #fff; 
    width: 100%; 
    outline: none; 
    margin-left: 10px; 
    font-size: 13px; 
}

/* SUB NAV */
.sub-nav { 
    display: flex; 
    gap: 20px; 
    overflow-x: auto; 
    padding: 15px 0; 
    scrollbar-width: none; 
    border-bottom: 1px solid #222; 
    margin-bottom: 20px;
}

.sub-nav::-webkit-scrollbar { 
    display: none; 
}

.sub-nav a { 
    white-space: nowrap; 
    font-size: 13px; 
    color: #888; 
    font-weight: 500; 
}

.sub-nav a.active { 
    color: var(--orange); 
    border-bottom: 2px solid var(--orange); 
    padding-bottom: 5px; 
}

.sub-nav i { 
    margin-right: 5px; 
    color: var(--orange); 
}

/* BANNER */
.banner { 
    width: 100%; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 30px; 
}

.banner img { 
    width: 100%; 
    display: block; 
}

/* TITLES & SECTIONS */
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 30px 0 15px 0; 
}

.section-header h3 { 
    font-size: 18px; 
    border-left: 4px solid var(--orange); 
    padding-left: 10px; 
}

/* GAME GRID - UPDATE BIAR KOTAK */
.game-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
}

@media (min-width: 768px) { 
    .game-grid { grid-template-columns: repeat(6, 1fr); } 
}

/* GAME ITEM - UPDATE DARI FLEX KE BLOCK (VERTIKAL) */
.game-item { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 8px; 
    display: block; 
    text-align: center;
    transition: 0.3s; 
    text-decoration: none;
}

.game-item:hover { 
    border-color: var(--orange); 
    transform: translateY(-5px); 
}

/* GAME IMAGE - UPDATE BIAR KOTAK PENUH */
.game-item img { 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    border-radius: 10px; 
    object-fit: cover; 
    margin-bottom: 8px;
    display: block;
}

/* GAME TEXT - UPDATE BIAR RAPI DI BAWAH */
.game-item h4 { 
    font-size: 11px; 
    margin-bottom: 2px; 
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.game-item p { 
    font-size: 9px; 
    color: #777; 
    display: block;
}

/* CATEGORY BUTTONS */
.cat-scroll { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    margin: 30px 0; 
    padding-bottom: 5px; 
}

.cat-btn { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    color: #888; 
    padding: 8px 18px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: bold; 
    cursor: pointer; 
    white-space: nowrap; 
}

.cat-btn.active { 
    background: var(--orange); 
    color: #fff; 
    border-color: var(--orange); 
}

/* FOOTER */
footer { 
    background: #161616; 
    padding: 40px 0; 
    margin-top: 50px; 
    border-top: 1px solid var(--border); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 30px; 
}

@media (min-width: 768px) { 
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; } 
}

.footer-logo { 
    font-size: 24px; 
    font-weight: 900; 
    margin-bottom: 10px; 
}

.footer-desc { 
    color: #888; 
    font-size: 13px; 
    line-height: 1.8; 
}

.footer-title { 
    font-weight: bold; 
    margin-bottom: 15px; 
    color: var(--orange); 
}

.footer-links a { 
    display: block; 
    color: #888; 
    font-size: 13px; 
    margin-bottom: 10px; 
}

/* WA FLOAT */
.wa-float { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background: #25d366; 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    z-index: 999; 
}

/* CSS NOTIFIKASI FIX */
.notif-wrapper {
    position: fixed;
    bottom: 100px; 
    left: -400px; 
    background: #1a1a1a; 
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999; 
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    min-width: 250px;
}

.notif-img-container img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    border: 1px solid #444;
}

.notif-text {
    text-align: left;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .notif-wrapper {
        bottom: 85px;
        min-width: 200px;
        padding: 8px 12px;
    }
}