:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1e1e1e;
    --text-white: #ffffff;
    --text-grey: #aaaaaa;
    --text-dim: #aaaaaa;
    --accent: #ffffff;
    --success: #2ed573;
    --danger: #ff4757;
    --border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Lexend', sans-serif; letter-spacing: -0.02em; }

body.dark-mode {
    --bg-dark: #0f0f0f;
    --bg-card: #1e1e1e;
    --text-white: #ffffff;
    --text-grey: #aaaaaa;
    --text-dim: #aaaaaa;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.light-mode {
    --bg-dark: #f9f9f9;
    --bg-card: #ffffff;
    --text-white: #000000;
    --text-grey: #606060;
    --text-dim: #606060;
    --accent: #000000;
    --border: rgba(0, 0, 0, 0.1);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Penyesuaian Nav untuk Light Mode */
body.light-mode .top-nav {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .nav-menu li {
    color: var(--text-grey);
}

body.light-mode .nav-menu li:hover, body.light-mode .nav-menu li.active {
    color: #00d4ff;
}

body.light-mode .btn-login {
    background: #000;
    color: #fff;
}

body.light-mode .btn-register {
    background: #000;
    color: #fff;
}

body.light-mode .lang-selector {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* Fix Theme Toggle Visibility */
.theme-btn {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-white) !important;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

body.light-mode .theme-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000 !important;
    border-color: rgba(0,0,0,0.1) !important;
}

body.light-mode .footer {
    background: #f1f1f1;
    border-top: 1px solid var(--border);
}

body.light-mode .footer-social a {
    color: #000;
}

/* --- TOP LOADING BAR --- */
.top-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #00d4ff;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
    transition: width 0.3s ease;
}

/* --- TOP NAV --- */
.top-nav {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left { display: flex; align-items: center; gap: 40px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; }
.brand img { width: 35px; height: 35px; }

.nav-menu { display: flex; list-style: none; gap: 25px; }
.nav-menu li { cursor: pointer; color: var(--text-grey); font-size: 14px; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.nav-menu li:hover, .nav-menu li.active { color: #00d4ff; }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* LANG SELECTOR */
.lang-selector { position: relative; cursor: pointer; padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 10px; font-size: 13px; font-weight: 700; }
.lang-dropdown { position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; width: 150px; display: none; flex-direction: column; overflow: hidden; z-index: 5000; }
.lang-dropdown.active { display: flex; }
.lang-dropdown div { padding: 12px; display: flex; align-items: center; gap: 10px; }
.lang-dropdown div:hover { background: rgba(255,255,255,0.05); }

/* AUTH BUTTONS */
.auth-buttons { display: flex; gap: 10px; }
.btn-login, .btn-register { padding: 10px 20px; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 700; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.btn-login, .btn-register { background: var(--text-white); color: #000; }
.btn-login:hover, .btn-register:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

/* User Display Profile Store */
.user-display-store {
    display: flex;
    align-items: center;
    background: var(--text-white);
    color: #000;
    padding: 5px 5px 5px 15px;
    border-radius: 12px;
    gap: 12px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-logout-store {
    background: #ff4757;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.btn-logout-store:hover { background: #ff6b81; transform: scale(1.05); }

body.light-mode .user-display-store {
    background: #000;
    color: #fff;
}

/* --- BANNER SLIDER --- */
.hero-banner { margin-top: 0; width: 100%; max-width: 1400px; height: 350px; margin-left: auto; margin-right: auto; border-radius: 24px; overflow: hidden; position: relative; }
.banner-slider { display: flex; height: 100%; width: 100%; transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1); }
.banner-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }

/* --- CONTENT --- */
.main-wrapper { padding: 40px 30px; margin-top: 70px; flex: 1; }
.content-section { max-width: 1400px; margin: 0 auto; }

/* --- HOME TABS --- */
.home-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    border: none;
}

.home-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 14px;
    color: var(--text-grey);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateY(-2px);
}

.home-tab.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

body.light-mode .home-tab {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

body.light-mode .home-tab:hover {
    background: #f9f9f9;
}

body.light-mode .home-tab.active {
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
    border-color: #00d4ff;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease-out; }

/* --- SOURCE CODE GRID --- */
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 25px;
}

.source-card {
    height: 180px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.source-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--game-color) 0%, transparent 60%);
    opacity: 0.2;
    z-index: 1;
    transition: 0.4s;
}

.source-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(1px);
    transition: 0.6s;
}

.source-info {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 3;
}

.source-badge {
    position: absolute;
    top: 20px; right: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

.source-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.source-details h4 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.source-details p { font-size: 13px; color: rgba(255,255,255,0.5); }

.source-action {
    margin-left: auto;
    width: 55px;
    height: 55px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
}

.source-card:hover { transform: translateY(-8px); border-color: var(--game-color); }
.source-card:hover .source-bg { filter: brightness(0.5); transform: scale(1.05); }
.source-card:hover .source-card-overlay { opacity: 0.4; }
.source-card:hover .source-action { background: var(--game-color); color: #fff; transform: scale(1.1); }

/* Motif aksen elegan untuk Source Card */
.source-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.02) 15px, rgba(255,255,255,0.02) 30px);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .source-grid { grid-template-columns: 1fr; }
    .source-card { height: 150px; }
    .source-logo { width: 70px; height: 70px; }
    .source-details h4 { font-size: 20px; }
}

/* --- HOME TABS --- */
.home-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    border: none;
}

.home-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 14px;
    color: var(--text-grey);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateY(-2px);
}

.home-tab.active {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

body.light-mode .home-tab {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

body.light-mode .home-tab:hover {
    background: #f9f9f9;
}

body.light-mode .home-tab.active {
    background: rgba(0, 212, 255, 0.05);
    color: #00d4ff;
    border-color: #00d4ff;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease-out; }

/* --- SOURCE CODE GRID --- */
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 25px;
}

.source-card {
    height: 200px; /* Setengah dari Banner (350px) + sedikit padding */
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.source-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--game-color) 0%, transparent 60%);
    opacity: 0.2;
    z-index: 1;
    transition: 0.4s;
}

.source-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(1px);
    transition: 0.6s;
}

.source-info {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 3;
}

.source-badge {
    position: absolute;
    top: 20px; right: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

.source-logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.source-details h4 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.source-details p { font-size: 14px; color: rgba(255,255,255,0.6); }

.source-action {
    margin-left: auto;
    width: 60px;
    height: 60px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: 0.3s;
}

.source-card:hover { transform: translateY(-8px); border-color: var(--game-color); }
.source-card:hover .source-bg { filter: brightness(0.5); transform: scale(1.05); }
.source-card:hover .source-card-overlay { opacity: 0.4; }
.source-card:hover .source-action { background: var(--game-color); color: #fff; transform: scale(1.1); }

/* Motif aksen elegan untuk Source Card */
.source-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255,255,255,0.02) 15px, rgba(255,255,255,0.02) 30px);
    z-index: 2;
    pointer-events: none;
}

/* --- COIN GRID --- */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.coin-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.05) 0%, rgba(255,215,0,0.01) 100%);
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.coin-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

.coin-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.coin-info { position: relative; z-index: 2; }
.coin-info h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.coin-info p { font-size: 12px; color: var(--text-grey); margin-bottom: 15px; }

.coin-price {
    font-size: 20px;
    font-weight: 900;
    color: #00d4ff;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    display: inline-block;
}

.coin-action {
    position: absolute;
    bottom: -50px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.coin-card:hover { transform: translateY(-10px); border-color: #FFD700; }
.coin-card:hover .coin-action { bottom: 25px; }
.coin-card:hover .coin-icon-wrapper { transform: scale(1.1) rotate(10deg); }

.star-coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.star-coin-balance:hover { background: rgba(255, 215, 0, 0.2); }
.star-coin-balance span { font-weight: 800; color: #FFD700; font-family: monospace; font-size: 14px; }

.star-coin-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    height: 38px;
}
.star-coin-nav-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}
.star-coin-nav-item i {
    color: #FFD700;
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}
.star-coin-nav-item span {
    font-weight: 800;
    color: #FFD700;
    font-size: 14px;
    font-family: 'Lexend', sans-serif;
}

body.light-mode .star-coin-nav-item {
    background: #fff9e6;
    border-color: #ffe0b3;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.1);
}
body.light-mode .star-coin-nav-item span {
    color: #d4a017;
}
body.light-mode .star-coin-nav-item i {
    color: #f1c40f;
}

@media (max-width: 1024px) {
    .nav-left { gap: 20px; }
    .nav-menu { gap: 15px; }
}

@media (max-width: 768px) {
    /* PAKSA SEMBUNYIKAN MENU TEKS DI ATAS */
    .top-nav .nav-menu { display: none !important; }

    /* TAMPILKAN MENU BAWAH - IKON + TEKS */
    .nav-menu-mobile {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 65px !important;
        background: #0f0f0f !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 5px 0 !important;
        border-top: 1px solid var(--border) !important;
    }
    .nav-menu-mobile li {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        width: 16% !important;
        list-style: none !important;
        color: var(--text-grey) !important;
        cursor: pointer !important;
        transition: 0.3s;
    }
    .nav-menu-mobile li i { font-size: 18px !important; }
    .nav-menu-mobile li span { display: block !important; font-size: 9px !important; font-weight: 600 !important; }
    .nav-menu-mobile li.active, .nav-menu-mobile li.active i, .nav-menu-mobile li.active span { color: #00d4ff !important; }

    /* HALAMAN PEMBELIAN MOBILE */
    .buy-header-new {
        padding: 20px !important;
        gap: 15px !important;
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        border-radius: 15px !important;
        background-position: center !important;
    }
    .buy-header-new img { width: 80px !important; height: 80px !important; border-radius: 15px !important; }
    .buy-header-new h1 { font-size: 18px !important; }
    .buy-header-new p { font-size: 11px !important; margin-bottom: 10px !important; }
    .buy-header-new div { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }

    .badge-item { padding: 4px 8px !important; font-size: 9px !important; border-radius: 6px !important; background: rgba(255,255,255,0.05); }

    .buy-container { display: grid !important; grid-template-columns: 1fr !important; gap: 15px !important; margin-top: 10px !important; }
    .buy-card { padding: 15px !important; margin-bottom: 15px !important; border-radius: 15px !important; }
    .buy-card-title { font-size: 14px !important; margin-bottom: 15px !important; }
    .step-number { width: 22px !important; height: 22px !important; font-size: 11px !important; }

    .input-group label { font-size: 10px !important; }
    .input-control { padding: 12px !important; font-size: 13px !important; }

    .packages-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .package-item { padding: 10px !important; }
    .package-item h5 { font-size: 11px !important; }
    .package-item .price { font-size: 13px !important; }

    .payment-item { padding: 12px !important; font-size: 12px !important; }
    .btn-order-full { padding: 15px !important; font-size: 14px !important; }

    /* HALAMAN TRANSAKSI / INVOICE MOBILE */
    .invoice-page-wrapper { margin: 20px auto; padding: 0 10px; }
    .invoice-stepper { margin-bottom: 30px; }
    .invoice-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .invoice-product-card { padding: 15px; }
    .invoice-game-img { width: 60px; height: 60px; }
    .invoice-game-title { font-size: 16px; }
    .invoice-card-title { font-size: 14px; padding-bottom: 10px; margin-bottom: 15px; }
    .invoice-row { font-size: 12px; }
    .invoice-total-row { font-size: 14px; }

    .invoice-ref-text { font-size: 15px; }
    .invoice-msg-box p { font-size: 12px; }
    .timer-value { font-size: 16px; }

    .pay-target-no { font-size: 22px; }
    .btn-tele-proof { padding: 15px; font-size: 13px; border-radius: 12px; }

    .license-code { font-size: 18px; }
    .license-info-grid { gap: 10px; }
    .license-info-item { padding: 10px; }
    .license-info-item strong { font-size: 11px; }

    /* TOP NAV MOBILE - Minimalis */
    .top-nav { height: 60px !important; }
    .nav-container { padding: 0 8px !important; }
    .brand img { width: 22px !important; height: 22px !important; }
    .brand span { font-size: 11px !important; }

    .nav-right { gap: 4px !important; }
    .star-coin-nav-item { padding: 2px 6px !important; height: 28px !important; }
    .star-coin-nav-item span { font-size: 9px !important; }
    .theme-btn { width: 28px !important; height: 28px !important; }
    .lang-selector { padding: 2px 4px !important; }

    /* TOMBOL LOGIN & DAFTAR JADI KECIL */
    .btn-login, .btn-register { padding: 5px 8px !important; font-size: 9px !important; }

    /* HERO BANNER - Ukuran pas di HP */
    .hero-banner {
        height: 180px !important;
        aspect-ratio: auto !important;
        margin-top: 8px !important;
        border-radius: 12px !important;
    }
    .banner-slide {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Kembali ke cover agar memenuhi kotak */
    }

    /* HOME TABS (Kategori: Mobile, PC, dll) - Kecil & Scroll ke Samping */
    .home-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding: 5px 2px !important;
        scrollbar-width: none !important; /* Sembunyikan scrollbar */
        border: none !important;
        background: transparent !important;
        margin-bottom: 20px !important;
    }
    .home-tabs::-webkit-scrollbar { display: none !important; }

    .home-tab {
        flex: 0 0 auto !important; /* Jangan mengecil, biarkan scroll */
        padding: 8px 12px !important;
        font-size: 11px !important;
        border-radius: 10px !important;
        gap: 6px !important;
    }
    .home-tab i { font-size: 14px !important; }

    /* TABEL DAFTAR HARGA, RIWAYAT, FREE KEY (MOBILE) - FIT SCREEN NO SCROLL */
    .table-responsive {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    table {
        width: 100% !important;
        min-width: auto !important;
        table-layout: fixed;
    }

    th, td {
        padding: 5px 2px !important;
        font-size: 9px !important;
        word-break: break-word;
        text-align: center;
    }

    th:first-child, td:first-child { width: 30%; text-align: left; padding-left: 4px !important; }
    th:last-child, td:last-child { text-align: right; padding-right: 5px !important; }

    /* Tombol Beli / Copy di dalam tabel */
    .btn-main { padding: 6px !important; font-size: 9px !important; width: 30px !important; height: 30px !important; border-radius: 8px !important; display: inline-flex !important; align-items: center; justify-content: center; }

    /* Header Halaman */
    .buy-header-new h1 { font-size: 16px !important; }
    .buy-header-new p { font-size: 10px !important; }
    .buy-header-new { padding: 20px 10px !important; }

    /* Riwayat & Free Key */
    td strong { font-size: 11px !important; }
    td small { font-size: 9px !important; }
    td code { font-size: 10px !important; padding: 2px 4px !important; }
    .btn-main { padding: 4px 8px !important; font-size: 10px !important; width: auto !important; }

    /* Section Title */
    .section-title { font-size: 16px !important; margin-bottom: 12px !important; }

    /* MODAL/ALERT BOX */
    .starcool-modal { width: 90% !important; padding: 20px !important; }
    .starcool-modal i { font-size: 30px !important; margin-bottom: 15px !important; }
    .starcool-modal h3 { font-size: 16px !important; }
    .starcool-modal p { font-size: 12px !important; }
    .starcool-modal button { padding: 12px !important; font-size: 13px !important; }

    /* MAIN WRAPPER */
    .main-wrapper { padding: 10px 10px 80px 10px !important; margin-top: 60px !important; }
}

@media (max-width: 480px) {
    .hero-banner { height: 160px; }
    .source-grid { grid-template-columns: 1fr; }
    .source-card { height: 140px; }
    .source-logo { width: 60px; height: 60px; }
    .source-details h4 { font-size: 18px; }
    .source-action { width: 45px; height: 45px; font-size: 16px; }
}

.section-title { font-size: 22px; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.game-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Overlay Motif Full ala Oura */
.game-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--game-color) 0%, transparent 60%);
    opacity: 0.15;
    z-index: 1;
    transition: 0.4s;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
    z-index: 0;
}

.game-card-bg-accent {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 140px;
    height: 140px;
    object-fit: contain;
    opacity: 0.15;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    transition: 0.6s ease-in-out;
    transform: rotate(-15deg);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--game-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 15px var(--game-color)33;
}

.game-card:hover .game-card-overlay {
    opacity: 0.25;
}

.game-card:hover .game-card-bg-accent {
    opacity: 0.4;
    transform: rotate(0deg) scale(1.1);
    filter: blur(4px);
}

/* Efek Cahaya Diagonal ala Oura */
.game-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
    z-index: 2;
}

.game-card:hover::after {
    left: 150%;
}

body.light-mode .game-card::before {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px);
}

.game-img { width: 70px; height: 70px; border-radius: 16px; object-fit: cover; }
.game-info { flex: 1; }
.game-info h4 { font-size: 16px; margin-bottom: 5px; }
.game-info p { font-size: 12px; color: var(--text-grey); }

.game-action {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.3s;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.game-card:hover .game-action {
    background: var(--game-color);
    color: #fff;
    transform: scale(1.1);
}

.status-badge { font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.dot { height: 8px; width: 8px; border-radius: 50%; }
.dot-available { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-empty { background: var(--danger); }

.brand-content { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.brand-info { flex: 2; }
.brand-info h2 { font-size: 20px; font-weight: 900; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.brand-info p { color: var(--text-dim); line-height: 1.6; font-size: 14px; margin-bottom: 20px; }
.brand-links { display: flex; gap: 10px; }
.brand-link { padding: 10px 18px; background: rgba(255,255,255,0.05); color: var(--text-main); border-radius: 10px; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid var(--border); transition: 0.3s; }
.brand-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    width: fit-content;
    margin-left: auto;
}
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--text-main); }
.feature-item i { width: 32px; height: 32px; background: rgba(255,255,255,0.05); color: var(--text-main); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.copyright-text { color: var(--text-dim); font-size: 12px; margin-top: 10px; opacity: 0.8; }

/* --- INVOICE PAGE STYLES --- */
.invoice-page-wrapper { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.invoice-stepper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; position: relative; max-width: 800px; margin: 0 auto; }
.step-item { z-index: 3; text-align: center; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border: 4px solid var(--bg-dark); font-size: 12px; }
.step-dot.active { background: #00d4ff; color: #000; }
.step-item span { font-size: 10px; font-weight: 700; color: var(--text-grey); }

.invoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.invoice-product-card { display: flex; gap: 20px; align-items: center; padding: 25px; margin-bottom: 20px; }
.invoice-game-img { width: 80px; height: 80px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.invoice-game-title { font-size: 20px; margin-bottom: 5px; color: #fff; }
.invoice-badge-pkg { background: rgba(0,212,255,0.1); color: #00d4ff; border: 1px solid rgba(0,212,255,0.2); padding: 4px 10px; border-radius: 6px; font-size: 11px; }

.invoice-card-title { margin-bottom: 20px; font-size: 16px; border-bottom: 1px solid var(--border); padding-bottom: 15px; color: #fff; }
.invoice-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.invoice-row span { color: var(--text-grey); }
.invoice-row strong { font-weight: 600; color: #fff; }
.invoice-total-row { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--border); font-size: 16px; }
.invoice-total-row span { font-weight: 700; color: #fff; }
.invoice-total-row strong { color: #00d4ff; font-weight: 800; }

.invoice-ref-text { font-size: 18px; color: #fff; }
.status-pill { padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; color: #000; }
.status-unpaid { background: #ff4757; }
.status-paid { background: #2ed573; }
.status-expired { background: #aaa; }

.invoice-msg-box { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid var(--border); }
.invoice-timer-box { margin-top: 10px; padding: 10px; background: rgba(255,71,87,0.1); border-radius: 8px; border: 1px solid rgba(255,71,87,0.2); text-align: center; }
.timer-label { font-size: 10px; color: #ff4757; font-weight: 800; }
.timer-value { font-size: 18px; font-weight: 800; color: #ff4757; }

.invoice-pay-target { text-align: center; padding: 30px; border: 2px solid #00d4ff; }
.pay-target-title { color: #00d4ff; font-weight: 800; margin-bottom: 20px; }
.pay-target-box { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.pay-target-label { font-size: 11px; color: var(--text-grey); }
.pay-target-no { font-size: 28px; font-weight: 800; color: #00d4ff; margin: 10px 0; cursor: pointer; }
.btn-tele-proof { text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px; background: #24A1DE; color: #fff; border-radius: 15px; padding: 18px; font-weight: 800; transition: 0.3s; }

.invoice-license-card { padding: 30px; border: 2px solid #2ed573; text-align: center; }
.license-card-title { color: #2ed573; font-size: 18px; margin-bottom: 20px; font-weight: 800; }
.license-box { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 15px; margin-bottom: 20px; }
.license-code { font-size: 24px; color: #fff; font-weight: 800; }
.license-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.license-info-item { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; }
.btn-copy-key { margin-top: 25px; background: #2ed573 !important; color: #000 !important; }

.invoice-cancel-card { text-align: center; padding: 40px; }
.invoice-cancel-card i { font-size: 50px; color: var(--danger); margin-bottom: 20px; }

/* --- BUY PAGE STYLES (ALARA STYLE) --- */
.buy-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 25px;
    margin-top: 20px;
}

.buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.buy-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #00d4ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 12px; color: var(--text-grey); margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.input-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}
.input-control:focus { outline: none; border-color: #00d4ff; background: rgba(0, 212, 255, 0.05); }

/* Package Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.package-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.package-item:hover { border-color: #00d4ff; }
.package-item.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}
.package-item h5 { font-size: 13px; margin-bottom: 5px; color: var(--text-grey); }
.package-item .price { font-size: 15px; font-weight: 800; color: #fff; }

/* Payment Methods */
.payment-list { display: flex; flex-direction: column; gap: 10px; }
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-white);
}
.payment-item.active { border-color: #00d4ff; background: rgba(0, 212, 255, 0.05); }

/* Light Mode Adjustments for Buy Page */
body.light-mode .buy-card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
body.light-mode .input-control {
    background: #f9f9f9;
    color: #000;
}
body.light-mode .package-item {
    background: #f9f9f9;
    color: #333;
}
body.light-mode .package-item .price {
    color: #000;
}
body.light-mode .payment-item {
    background: #f9f9f9;
    color: #333;
}
body.light-mode .buy-card-title,
body.light-mode .buy-right h3,
body.light-mode .buy-right h2 {
    color: #000;
}
body.light-mode .desc-list li {
    color: #555;
}

/* Sidebar Info */
.desc-list { list-style: none; }
.desc-list li {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-grey);
}
.desc-list li i { color: #00d4ff; margin-top: 3px; }

.btn-order-full {
    width: 100%;
    padding: 18px;
    background: #00d4ff;
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-order-full:disabled { background: #333; color: #666; cursor: not-allowed; }

/* Preview Image Styles */
.preview-container {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    overflow: hidden;
}

.preview-img-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
}

.preview-img:hover {
    transform: scale(1.02);
}

/* --- MODERN ALERT & TOAST SYSTEM --- */
.starcool-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid #00d4ff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateX(120%);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.starcool-toast.active { transform: translateX(0); }

.starcool-toast i { font-size: 20px; color: #00d4ff; }
.starcool-toast p { font-size: 14px; font-weight: 500; color: var(--text-white); margin: 0; }

/* Global Overlay for Modals */
.starcool-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.starcool-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    padding: 35px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.starcool-modal button {
    background: linear-gradient(135deg, #00d4ff, #0088cc);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 15px;
    width: 100%;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 5px;
}

.starcool-modal button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.starcool-modal i { font-size: 50px; color: #00d4ff; margin-bottom: 20px; }
.starcool-modal h3 { margin-bottom: 10px; font-size: 20px; }
.starcool-modal p { color: var(--text-grey); font-size: 14px; margin-bottom: 25px; }

body.light-mode .starcool-toast, body.light-mode .starcool-modal {
    background: #fff;
    color: #000;
}
body.light-mode .starcool-modal p { color: #666; }


/* --- BRAND FOOTER --- */
.section-header { text-align: center; margin: 40px 0 30px 0; }
.section-header h2 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--text-white); }
.section-header p.subtitle { color: var(--text-grey); font-size: 14px; margin-top: 5px; }

.footer, .brand-section {
    width: 100%;
    background: #080808;
    border-top: 1px solid var(--border);
    padding: 60px 0 40px 0;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

/* Motif Modern Elegant: Subtle Mesh Grid + Radial Glow */
.footer::before, .brand-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.footer::after, .brand-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.05), transparent 70%);
    transform: translateX(-50%);
    z-index: 1;
}

.brand-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

body.light-mode .footer, body.light-mode .brand-section {
    background: #fdfdfd;
}

body.light-mode .footer::before, body.light-mode .brand-section::before {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

body.light-mode .footer::after, body.light-mode .brand-section::after {
    background: radial-gradient(circle at 50% 100%, rgba(0, 212, 255, 0.03), transparent 70%);
}

