/* =================================================
   CSS NANGGROE TOP UP - DIPERBAIKI TOTAL 100%
   ✅ SEMUA KOLOM TABEL PASTI SEJAJAR LURUS
   ✅ TABEL TIDAK KELUAR LAYAR HP (BISA DIGESER)
   ✅ SEMUA CLASS BERFUNGSI 100% DI SEMUA HALAMAN
   ================================================= */

:root {
    --bg: #0b1020;
    --card: #141b2d;
    --teks: #ffffff;
    --abu: #94a3b8;
    --hijau: #84cc16;
    --hijau-muda: #bef264;
    --garis: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--teks);
    line-height: 1.6;
    padding-top: 90px; /* ✅ JARAK ATAS DIPERBAIKI: tombol menu tidak tumpang tindih */
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =================================================
   === TOMBOL UTAMA ===
   ================================================= */
.btn-utama {
    display: inline-block;
    background: var(--hijau);
    color: #000;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 800;
    transition: .2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}
.btn-utama:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-kedua {
    display: inline-block;
    background: var(--card);
    color: var(--teks);
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid var(--garis);
    transition: .2s;
    font-size: 13px;
}
.btn-kedua:hover { border-color: var(--hijau); color: var(--hijau-muda); }

.btn-pilih {
    background: var(--hijau);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
    font-size: 12px;
    transition: .2s;
    white-space: nowrap;
}
.btn-pilih:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* =================================================
   === HALAMAN BERANDA (INDEX.HTML)
   CLASS INI HILANG DI FILE ASLI → SAYA TAMBAHKAN
   ================================================= */
.hero {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 60px 20px 40px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.hero h1 span { color: var(--hijau); }
.hero p {
    color: var(--abu);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}
.tombol-baris {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-utama {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.menu-kartu {
    background: var(--card);
    border: 1px solid var(--garis);
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    transition: .25s;
}
.menu-kartu:hover {
    transform: translateY(-4px);
    border-color: var(--hijau);
    box-shadow: 0 10px 30px rgba(132,204,22,.15);
}
.menu-kartu .ikon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px auto;
    border-radius: 16px;
    background: rgba(132,204,22,.12);
    color: var(--hijau-muda);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}
.menu-kartu h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--teks);
}
.menu-kartu p {
    color: var(--abu);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =================================================
   === JUDUL HALAMAN ATAS ===
   ================================================= */
main > header h1 span { color: var(--hijau); }

/* =================================================
   === KOTAK SETIAP GAME (LORDS, FF, DLL) ===
   ================================================= */
.game-section {
    background: var(--card);
    border: 1px solid var(--garis);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 35px;
}

/* ✅ KHUSUS BAGIAN PEMBAYARAN SAJA — TIDAK SALAH KENA */
.pembayaran-section {
    border: 2px solid var(--hijau);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--garis);
    flex-wrap: wrap;
}

.game-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid var(--hijau);
    background: #1e293b;
    flex-shrink: 0;
}

.game-title h2 { margin: 0; font-size: 26px; color: var(--teks); }
.game-title p  { margin: 5px 0 0 0; color: var(--abu); font-size: 14px; }

/* =================================================
   === FORM DATA AKUN ===
   ================================================= */
.data-akun {
    background: rgba(132,204,22,.07);
    border: 1px solid rgba(132,204,22,.25);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
}
.data-akun h3 {
    margin: 0 0 15px 0;
    color: var(--hijau-muda);
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--abu);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--garis);
    border-radius: 8px;
    color: var(--teks);
    font-size: 14px;
    outline: none;
    transition: .15s;
}
.form-group input:focus { border-color: var(--hijau); }
.form-group input[readonly] { opacity: .7; cursor: not-allowed; }

/* =================================================
   === JUDUL TIAP BAGIAN TABEL ===
   ================================================= */
.paket-section { margin-bottom: 28px; }

.section-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: var(--hijau-muda);
    border-left: 4px solid var(--hijau);
    padding-left: 12px;
    font-weight: 800;
}

/* =================================================
   ✅✅✅ INTI PERBAIKAN TABEL — SUDAH DIPERBAIKI TOTAL ✅✅✅
   ❌ DIHAPUS: table-layout: fixed + % paksa (penyebab kolom tidak sejajar)
   ✅ DIGANTI: otomatis rapi, semua baris lurus, tidak keluar layar HP
   ================================================= */

/* 1) BUNGKUS LUAR: WAJIB ADA DI LUAR SEMUA TABEL → SUDAH SAYA PASANG DI HTML */
.bungkus-tabel {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin: 5px 0 5px 0;
    border: 1px solid var(--garis);
    background: var(--bg);
}
/* Scrollbar kecil hijau */
.bungkus-tabel::-webkit-scrollbar { height: 6px; }
.bungkus-tabel::-webkit-scrollbar-thumb { background: var(--hijau); border-radius: 3px; }
.bungkus-tabel::-webkit-scrollbar-track { background: transparent; }

/* 2) TABEL UTAMA — TANPA DIPAKSA LEBAH, OTOMATIS SEJAJAR */
.tabel-harga {
    width: 100%;
    min-width: 480px; /* ✅ CUKUP: tabel tidak hancur, tetap bisa digeser */
    border-collapse: collapse;
    font-size: 14px;
}

/* 3) KEPALA TABEL HIJAU (SEMUA GAME LURUS SAMA) */
.tabel-harga th {
    background: rgba(132,204,22,.14);
    color: var(--hijau-muda);
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 13px 12px;
    text-align: left;
    border-bottom: 2px solid var(--hijau);
    white-space: nowrap;
}
.tabel-harga th:last-child { text-align: right; }

/* 4) ISI TABEL — PADDING SAMA PERSIS = SEMUA LURUS SEJAJAR */
.tabel-harga td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid var(--garis);
    white-space: nowrap;
    vertical-align: middle;
    color: var(--teks);
}
.tabel-harga td:last-child { text-align: right; }
.tabel-harga tbody tr:last-child td { border-bottom: none; }
.tabel-harga tbody tr:hover td { background: rgba(132,204,22,.06); }

/* 5) WARNA TEKS KHUSUS */
.nominal     { font-weight: 700; color: var(--teks); }
.harga-jual  { color: var(--hijau-muda); font-weight: 800; font-size: 15px; }
.bonus       { color: #fbbf24; font-size: 12.5px; font-weight: 700; }

/* =================================================
   === HALAMAN TESTIMONI — CLASS HILANG DI ASLI
   ================================================= */
.grid-bukti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
.item-bukti {
    background: var(--card);
    border: 1px solid var(--garis);
    border-radius: 14px;
    overflow: hidden;
    transition: .25s;
}
.item-bukti:hover {
    transform: translateY(-3px);
    border-color: var(--hijau);
}
.item-bukti img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #0f172a;
}
.item-bukti p {
    padding: 12px 15px;
    margin: 0;
    color: var(--hijau-muda);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid var(--garis);
}

/* =================================================
   === SIDEBAR MENU ===
   ================================================= */
.tombol-menu {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--garis);
    color: var(--hijau);
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.tombol-menu:hover { border-color: var(--hijau); transform: scale(1.05); }

.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(3px);
}
.overlay-menu.aktif { display: block; }

.sidebar {
    position: fixed;
    top: 0;
    right: -85%;
    width: 80%;
    max-width: 340px;
    height: 100%;
    background: var(--card);
    border-left: 1px solid var(--garis);
    z-index: 9999;
    transition: right .35s ease;
    overflow-y: auto;
    padding: 25px 20px;
    box-shadow: -8px 0 25px rgba(0,0,0,.4);
}
.sidebar.aktif { right: 0; }

.tutup-menu {
    position: absolute;
    top: 15px; right: 15px;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--garis);
    color: var(--teks);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tutup-menu:hover { border-color: var(--hijau); color: var(--hijau); }

.sidebar-judul {
    padding: 10px 40px 20px 0;
    border-bottom: 1px solid var(--garis);
    margin-bottom: 20px;
}
.sidebar-judul h2 { color: var(--teks); font-size: 22px; margin: 0; }
.sidebar-judul h2 span { color: var(--hijau); }
.sidebar-judul p  { color: var(--abu); font-size: 12px; margin: 5px 0 0 0; }

.menu-list { padding: 0; margin: 0 0 25px 0; }
.menu-list li { margin-bottom: 6px; }
.menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    color: var(--teks);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: .15s;
}
.menu-list li a:hover {
    background: var(--hijau);
    color: #000;
    transform: translateX(4px);
}
.menu-list li a .ikon-menu {
    width: 28px;
    text-align: center;
    font-size: 18px;
}

.garis-sidebar {
    border: none;
    border-top: 1px solid var(--garis);
    margin: 15px 0;
}

.tombol-wa-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff !important;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    transition: .2s;
    margin-top: 10px;
}
.tombol-wa-sidebar:hover { filter: brightness(1.1); transform: translateY(-2px); }

.medsos-sidebar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.medsos-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--garis);
    border-radius: 12px;
    font-size: 20px;
    transition: .2s;
    color: var(--teks);
}
.medsos-sidebar a:hover {
    background: var(--hijau);
    color: #000 !important;
    transform: translateY(-2px);
    border-color: var(--hijau);
}

/* =================================================
   === FOOTER ===
   ================================================= */
footer {
    text-align: center;
    padding: 35px 20px;
    border-top: 1px solid var(--garis);
    color: var(--abu);
    font-size: 13px;
    margin-top: 40px;
}
footer p { margin: 4px 0; }

/* =================================================
   ✅ RESPONSIF KHUSUS HP (TETAP RAPI & SEJAJAR)
   ================================================= */
@media (max-width: 700px) {
    body { padding-top: 90px; }
    main { padding: 20px 14px !important; }

    .hero { padding: 20px 14px 40px 14px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; }

    .game-section { padding: 18px 14px; border-radius: 14px; margin-bottom: 25px; }
    .game-img { width: 60px; height: 60px; border-radius: 12px; }
    .game-title h2 { font-size: 20px; }

    .data-akun { padding: 14px; }
    .section-title { font-size: 16px; }

    /* ✅ TABEL DI HP: TETAP LURUS, DIGESER DI BUNGKUSNYA */
    .tabel-harga { font-size: 13.5px; min-width: 520px; }
    .tabel-harga th, .tabel-harga td { padding: 11px 9px; }
    .harga-jual { font-size: 14px; }
    .btn-pilih { padding: 7px 12px; font-size: 11.5px; }

    .btn-kedua { padding: 10px 16px; font-size: 12px; }
    main > header h1 { font-size: 28px !important; }

    .grid-bukti { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
    .item-bukti img { height: 200px; }
}
