/* ════════════════════════════════════════════════════════════════════════
   GAS TOPUP - MAIN CSS (DNDseo Style)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tokens & Variables ─────────────────────────────── */
:root {
    --bg:    #f5f6fa;
    --surf:  #ffffff;
    --surf2: #f0f2f8;
    --bdr:   rgba(0,0,0,.08);
    --bdr2:  rgba(0,0,0,.04);
    --t1: #0d0d1a;
    --t2: #3a3a5c;
    --t3: #6868a0;
    --t4: #9898c0;
    --nav-bg: rgba(245,246,250,.92);
    --sh:  0 2px 16px rgba(0,0,0,.04);
    --shl: 0 8px 40px rgba(0,0,0,.08);
}

[data-theme="dark"] {
    --bg:    #07070d;
    --surf:  #0d0d16;
    --surf2: #12121e;
    --bdr:   rgba(255,255,255,.06);
    --bdr2:  rgba(255,255,255,.03);
    --t1: #f0f0fc;
    --t2: #b8b8d8;
    --t3: #7070a0;
    --t4: #404060;
    --nav-bg: rgba(7,7,13,.88);
    --sh:  0 2px 16px rgba(0,0,0,.5);
    --shl: 0 8px 40px rgba(0,0,0,.7);
}

:root, [data-theme="dark"] {
    --acc:   #0d9f76;
    --acc2:  #0a7a5a;
    --green: #00c896;
    --blue:  #4f8ef7;
    --pur:   #a78bfa;
    --ff:    'Sora', sans-serif;
    --mono:  'JetBrains Mono', monospace;
    --nav-h: 66px;
    --r:  14px;
    --rs: 10px;
    --rx: 50px;
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff); 
    background: var(--bg); 
    color: var(--t1);
    font-size: 14px; 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    transition: background .35s ease, color .35s ease;
    padding-bottom: 90px; /* Ruang untuk Mobile Nav */
}

@media(min-width: 992px) { 
    body { padding-bottom: 0; } 
}

a { text-decoration: none; color: inherit; }

/* ── BG Grid Effect ────────────────────────── */
.bg-grid {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 20%, transparent 100%);
}

[data-theme="dark"] .bg-grid { 
    background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); 
}

/* ── Top Navbar ────────────────────────────── */
.navbar-custom {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); background: var(--nav-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; display: flex; align-items: center; z-index: 1000;
    transition: all .3s var(--ease-out);
}
.navbar-custom.scrolled { 
    border-bottom-color: var(--bdr); 
    box-shadow: var(--sh); 
}
.nav-inner { 
    display: flex; justify-content: space-between; align-items: center; 
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); 
}
.brand-logo { 
    display: flex; align-items: center; gap: 10px; font-weight: 800; 
    font-size: 16px; color: var(--t1); letter-spacing: -0.5px; 
}
.brand-ico {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; box-shadow: 0 4px 12px rgba(13,159,118,.3);
}
.nav-links { display: none; align-items: center; gap: 8px; }

@media(min-width: 992px) { 
    .nav-links { display: flex; } 
}

.n-link { 
    font-size: 13px; font-weight: 600; color: var(--t3); 
    padding: 8px 16px; border-radius: var(--rx); transition: all .2s; 
}
.n-link:hover, .n-link.active { 
    background: rgba(13,159,118,.08); color: var(--acc); 
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-icon { 
    width: 38px; height: 38px; border-radius: 50%; background: var(--surf); 
    border: 1px solid var(--bdr); color: var(--t2); display: flex; 
    align-items: center; justify-content: center; cursor: pointer; transition: all .2s; 
}
.btn-icon:hover { border-color: var(--acc); color: var(--acc); }

.btn-primary-custom {
    display: none; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--rs);
    background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 13px; 
    font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 4px 18px rgba(13,159,118,.35); transition: all .25s var(--ease-spring);
}
@media(min-width: 992px) { 
    .btn-primary-custom { display: flex; } 
}
.btn-primary-custom:hover { 
    box-shadow: 0 6px 22px rgba(13,159,118,.5); transform: translateY(-2px); color: #fff; 
}

/* ── Hero Section ──────────────────────────── */
.hero-section { position: relative; z-index: 1; padding: calc(var(--nav-h) + 50px) 0 40px; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: var(--rx);
    background: rgba(13,159,118,.08); border: 1px solid rgba(13,159,118,.2);
    font-size: 10px; font-weight: 800; color: var(--acc); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(28px, 6vw, 56px); font-weight: 900; letter-spacing: -1.5px; color: var(--t1); margin-bottom: 16px; line-height: 1.1; }
.hero-title span { background: linear-gradient(135deg, var(--acc), var(--green)); -webkit-background-clip: text; color: transparent; }
.hero-sub { font-size: 14px; color: var(--t3); max-width: 500px; margin: 0 auto 30px; line-height: 1.8; }

/* ── Search Box ────────────────────────────── */
.search-wrap { max-width: 600px; margin: 0 auto 50px; padding: 0 16px; }
.search-box {
    display: flex; align-items: center; background: var(--surf); border: 1.5px solid var(--bdr);
    border-radius: var(--r); padding: 12px 16px; gap: 12px; box-shadow: var(--shl); transition: all .25s;
}
.search-box:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(13,159,118,.1), var(--shl); }
.search-box i { color: var(--t4); font-size: 16px; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--t1); font-size: 14px; font-family: var(--ff); }
.search-box input::placeholder { color: var(--t4); }

/* ── Game Card (Grid) ──────────────────────── */
.section-title { 
    font-size: 20px; font-weight: 800; color: var(--t1); letter-spacing: -0.5px; 
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px; 
}
.section-title::after { 
    content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--bdr), transparent); 
}

.game-card {
    background: var(--surf); border: 1px solid var(--bdr); border-radius: var(--r);
    padding: 24px 16px; text-align: center; display: block; height: 100%;
    box-shadow: var(--sh); transition: all .3s var(--ease-spring);
    position: relative; overflow: hidden; text-decoration: none;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shl); border-color: var(--acc); }

/* Garis aksen dinamis di atas kartu */
.game-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--acc); transform: scaleX(0); transition: transform .3s var(--ease-out); transform-origin: left;
}
.game-card:hover::before { transform: scaleX(1); }

.gc-ico {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: var(--surf2); border: 1px solid var(--bdr2);
    color: var(--acc); transition: transform .3s var(--ease-spring);
}
.game-card:hover .gc-ico { 
    transform: scale(1.15) rotate(-5deg); background: rgba(13,159,118,.1); 
    color: var(--acc); border-color: rgba(13,159,118,.2); 
}
.gc-title { font-size: 14px; font-weight: 800; color: var(--t1); letter-spacing: -0.2px; margin-bottom: 4px; }
.gc-desc { font-size: 11px; color: var(--t3); font-weight: 600; }

/* ── Features Box ──────────────────────────── */
.features-box { 
    background: var(--surf); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); 
    padding: 40px 0; margin-top: 60px; position: relative; z-index: 1; 
}
.feat-item { display: flex; align-items: center; gap: 12px; }
.feat-ico { 
    width: 42px; height: 42px; border-radius: 10px; background: rgba(13,159,118,.08); 
    color: var(--acc); display: flex; align-items: center; justify-content: center; 
    font-size: 16px; flex-shrink: 0; 
}
.feat-title { font-size: 13px; font-weight: 800; color: var(--t1); margin-bottom: 2px; }
.feat-desc { font-size: 11px; color: var(--t3); }

/* ── Footer ────────────────────────────────── */
.footer { 
    background: var(--surf); padding: 40px 0 20px; position: relative; 
    z-index: 1; border-top: 1px solid var(--bdr); 
}
.ft-brand { font-size: 16px; font-weight: 800; color: var(--t1); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft-brand i { color: var(--acc); }
.ft-text { font-size: 12px; color: var(--t3); line-height: 1.8; }
.ft-bottom { 
    border-top: 1px solid var(--bdr2); margin-top: 30px; padding-top: 20px; 
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; 
}
@media(min-width: 768px) { .ft-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.ft-copy { font-size: 11px; color: var(--t4); }

/* ── Empty State ───────────────────────────── */
.empty-state { padding: 60px 20px; text-align: center; background: var(--surf); border: 1px dashed var(--bdr); border-radius: var(--r); }
.empty-state i { font-size: 32px; color: var(--t4); margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.empty-state p { font-size: 12px; color: var(--t3); }
.d-none-custom { display: none !important; }

/* ── Mobile Nav (Fix Dempet) ───────────────── */
.mob-nav {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 380px;
    background: var(--surf); border: 1px solid var(--bdr);
    box-shadow: var(--shl); border-radius: 20px;
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px; z-index: 1000;
}
@media(min-width: 992px) { .mob-nav { display: none; } }

.m-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; flex: 1; padding: 8px 0; border-radius: 14px;
    color: var(--t4); transition: all 0.2s var(--ease-out); text-decoration: none;
}
.m-item i { font-size: 16px; transition: transform 0.2s; }
.m-item span { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; display: block; }
.m-item:hover, .m-item.active { color: var(--acc); background: rgba(13,159,118,.08); }
.m-item.active i { transform: scale(1.1); }