/* --- PENGATURAN DASAR --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0614;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 70px;
}

/* --- Kontainer Utama yang Fleksibel (Responsif HP & Desktop) --- */
.container {
    width: 100%;
    max-width: 480px;
    background-color: #120921;
    min-height: 100vh;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    transition: max-width 0.3s ease;
}

/* --- HEADER --- */
.header {
    text-align: center;
    margin-bottom: 15px;
}

.logo-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffcc00;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 11px;
    color: #ff9900;
    font-weight: 600;
}

/* --- BANNER UTAMA --- */
.main-banner {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #331a4d;
}

.main-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

/* --- TOMBOL AKSI (DAFTAR & LOGIN) --- */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-daftar {
    background: linear-gradient(to bottom, #ff1a1a, #b30000);
    color: white;
}

.btn-login {
    background: linear-gradient(to bottom, #1a75ff, #004080);
    color: white;
}

/* --- MENU KATEGORI GRID --- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.cat-item {
    background-color: #1f1035;
    color: #d1b3ff;
    text-align: center;
    padding: 10px 5px;
    font-size: 11px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #3a1e5c;
    font-weight: 600;
}

.cat-item:hover {
    background-color: #3a1e5c;
    color: #fff;
}

/* --- BANNER JACKPOT & PETIR --- */
.jackpot-container {
    margin-bottom: 15px;
}

.jackpot-ribbon {
    background: linear-gradient(135deg, #ff0000, #ff9900);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #ffff66;
}

.jackpot-label {
    background: #000;
    color: #ffcc00;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-right: 8px;
}

.jackpot-amount {
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

.lightning-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lightning-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    opacity: 0.6;
}

/* --- KOTAK GAMES --- */
.section-header {
    font-size: 14px;
    color: #ffcc00;
    margin-bottom: 8px;
    border-left: 3px solid #ffcc00;
    padding-left: 6px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.game-card {
    background-color: #1a0f2e;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid #331a4d;
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.game-tag {
    position: absolute;
    top: 3px;
    left: 3px;
    background: #ff0000;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* --- ARTIKEL SEO --- */
.seo-content {
    background-color: #180c2b;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #331a4d;
}

.seo-title {
    font-size: 13px;
    color: #d1b3ff;
    margin-bottom: 5px;
}

.seo-text {
    font-size: 11px;
    color: #b3b3b3;
    line-height: 1.4;
}

/* --- BOTTOM NAVIGATION (MOBILE STICKY) --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #120921;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #2a1442;
    z-index: 1000;
}

.nav-link {
    color: #8c73ad;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
}

.nav-link.active {
    color: #ff99ff;
}

/* ========================================================== */
/* KHUSUS TAMPILAN LAPTOP / KOMPUTER (DESKTOP MODE)            */
/* ========================================================== */
@media (min-width: 768px) {
    body {
        background-color: #05020a;
    }

    .container {
        max-width: 750px; 
        padding: 25px;
        margin: 20px auto;
        border-radius: 12px;
    }

    .logo-title {
        font-size: 36px;
    }

    .cat-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .jackpot-amount {
        font-size: 30px;
    }
}
