/* style.css — Tema FANTASI GAME (dark).
   Nuansa UI game RPG: background gelap, aksen kristal cyan, angka emas. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c1220;
  --card: #141d30;
  --line: #263349;
  --ink: #e9f0fa;
  --muted: #8fa0b8;
  --cyan: #4fd8e8;
  --gold: #e8b84f;
  --red: #e87878;
  --radius: 18px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #18263f 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--ink);
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 238px; flex: none;
  background: linear-gradient(180deg, #0a0f1a, #0d1526);
  color: #c8d6e8; border-right: 1px solid var(--line);
  padding: 22px 14px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(79, 216, 232, .35) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(79, 216, 232, .3); border-radius: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar nav { flex: 1; }
.made-by {
  padding: 12px 10px 2px; font-size: 11px; letter-spacing: .1em;
  color: var(--muted); border-top: 1px solid var(--line);
}
.made-by strong { color: var(--cyan); font-weight: 700; letter-spacing: .1em; }
.brand { padding: 8px 8px 0; }
.brand-logo {
  width: 76%; height: auto; display: block; margin: 0 auto; border-radius: 12px;
}
.brand::after {
  content: ''; display: block; height: 2px; margin: 12px 8px 0;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
}
.sidebar nav { flex: 1; padding-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: #a9bcd8; text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(79, 216, 232, .07); color: #d5e0f2; }
.nav-item.active {
  background: rgba(79, 216, 232, .10);
  border-color: rgba(79, 216, 232, .35);
  color: #fff; font-weight: 700;
}
.nav-cta {
  margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(79, 216, 232, .5);
  color: var(--cyan); font-size: 14px; font-weight: 700; font-family: inherit;
}
.nav-cta:hover { background: rgba(79, 216, 232, .10); }
.nav-cta span { font-size: 18px; line-height: 1; }

/* ===== Main ===== */
main { flex: 1; padding: 26px 30px 46px; position: relative; min-width: 0; }
.band {
  position: absolute; top: 0; left: 0; right: 0; height: 118px; z-index: -1;
  background: linear-gradient(180deg, rgba(79, 216, 232, .10), transparent);
  border-radius: 0 0 28px 28px;
}
.page-head { margin-bottom: 20px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.eyebrow.green { color: var(--cyan); }
.farm-name {
  font-family: Georgia, 'Palatino Linotype', 'Times New Roman', serif;
  font-size: 15px; font-weight: 600; letter-spacing: .08em;
  margin-top: 6px; color: #fff;
}
h2 { font-size: 20px; margin: 4px 0 12px; color: #fff; }

/* ===== Kartu KPI ===== */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1250px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  border-radius: var(--radius); padding: 20px;
  background: var(--card); border: 1px solid var(--line);
}
.kpi.dark {
  background: linear-gradient(135deg, #101a30, #0c1424);
  border: 1px solid rgba(79, 216, 232, .35);
  box-shadow: 0 0 24px rgba(79, 216, 232, .08);
}
.kpi.green {
  background: linear-gradient(135deg, rgba(79, 216, 232, .14), rgba(79, 216, 232, .03));
  border: 1px solid rgba(79, 216, 232, .25);
}
.kpi-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.arrow { font-size: 16px; }
.kpi-value { font-size: 30px; font-weight: 800; margin: 10px 0 4px; color: var(--gold); }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* ===== Kartu umum ===== */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.total { text-align: right; }
.total .trend { display: block; font-size: 11px; color: var(--cyan); font-weight: 700; letter-spacing: .08em; }
.total strong { font-size: 20px; color: var(--gold); }
#chart svg { width: 100%; height: auto; display: block; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.assets { list-style: none; margin-top: 8px; }
.assets li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.assets li:last-child { border: none; }
.assets li.empty { justify-content: center; color: var(--muted); font-size: 13px; }
.assets em { color: var(--muted); font-style: normal; margin-left: 6px; font-size: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot.warn { background: var(--gold); }
.dot.off { background: #5a6b85; }

.donut-row { display: flex; align-items: center; gap: 18px; }
.legend { list-style: none; font-size: 13px; }
.legend li { margin: 6px 0; }
.legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; }

/* ===== Tabel ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 6px; border-bottom: 1px solid #1b2740; }
.tbl tr:last-child td { border: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* Nomor urut + judul kolom bisa diklik untuk sort (tabel character) */
.tbl .th-no, .tbl .td-no { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tbl .th-cbx { width: 36px; }
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable:hover { color: var(--cyan); }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge.masuk { background: rgba(79, 216, 232, .15); color: var(--cyan); }
.badge.keluar { background: rgba(232, 120, 120, .15); color: var(--red); }
.badge.netral { background: #22304a; color: #a9bcd8; }
.badge.aktif { background: rgba(79, 216, 232, .18); color: var(--cyan); border: 1px solid rgba(79, 216, 232, .5); }

/* ===== List game (sidebar) — klik untuk ganti game aktif ===== */
.side-games { margin: 14px 0 6px; }
.side-games .eyebrow { margin-bottom: 8px; }
#game-list { display: flex; flex-direction: column; gap: 6px; }
.game-list-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; color: inherit; font: inherit;
}
.game-list-item:hover { border-color: rgba(79, 216, 232, .45); }
.game-list-item.aktif { background: rgba(79, 216, 232, .08); border-color: rgba(79, 216, 232, .55); }
.gli-nama { display: block; font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gli-item { display: block; font-size: 11px; color: var(--cyan); margin-top: 1px; }

/* ===== Profil (chip kanan atas + modal) ===== */
/* Avatar profil: foto bila ada, kalau tidak huruf awal di atas gradasi warna profil */
.profil-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  background: rgba(79, 216, 232, .15);
}
.profil-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Bar atas: chip profil + menu (pojok kanan atas) ===== */
.topbar-user { position: sticky; top: 0; z-index: 40; display: flex; justify-content: flex-end; padding: 0 0 12px; }
.user-chip-wrap { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 9px; cursor: pointer; color: #fff; font: inherit;
  background: rgba(13, 21, 38, .88); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px;
}
.user-chip:hover { border-color: rgba(79, 216, 232, .45); }
.user-chip .profil-avatar { width: 30px; height: 30px; font-size: 13px; }
.user-chip-nama { font-weight: 700; font-size: 14px; }
.user-chip-panah { color: var(--muted); font-size: 11px; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 215px;
  background: #131e33; border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}
.user-menu-item {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: #dbe6f5; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 8px;
}
.user-menu-item:hover { background: rgba(79, 216, 232, .09); }
.user-menu-item.bahaya:hover { background: rgba(248, 113, 113, .13); color: #fca5a5; }

/* ===== Foto di form profil ===== */
.foto-profil-row { display: flex; gap: 14px; align-items: center; }
.foto-profil-preview {
  width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  background: rgba(79, 216, 232, .15); border: 1px solid var(--line);
}
.foto-profil-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-profil-aksi .btn { margin-right: 6px; }

/* Foto profil di tile layar pembuka: menutupi tile, gembok tetap di atasnya */
.gate-tile { overflow: hidden; }
.gate-tile-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-tile-gembok { z-index: 1; }
#profil-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.profil-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px;
}
.profil-row.aktif { border-color: rgba(79, 216, 232, .55); background: rgba(79, 216, 232, .06); }
.profil-pilih {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  background: none; border: none; cursor: pointer; color: inherit; font: inherit; text-align: left; padding: 6px 0;
}
.profil-row-nama { font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tombol kecil + status aktif tombol privacy */
#btn-privacy { background: transparent; border: 1px solid var(--line); }
#btn-privacy:hover { border-color: rgba(79, 216, 232, .45); }
.btn.sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
#btn-privacy.aktif { border-color: rgba(79, 216, 232, .6); color: var(--cyan); background: rgba(79, 216, 232, .1); }

/* ===== Kartu game (halaman Pilih Game) ===== */
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.game-card {
  background: rgba(79, 216, 232, .04); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.game-card.aktif { border-color: rgba(79, 216, 232, .55); box-shadow: 0 0 0 1px rgba(79, 216, 232, .25); }
.game-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; min-height: 62px; }
.game-card-nama { font-weight: 800; font-size: 16px; color: #fff; }
.game-card-item { font-size: 13px; color: var(--cyan); margin-top: 4px; }
.game-card-stats { display: flex; flex-direction: column; gap: 7px; }
.game-card-stats .stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.game-card-stats small { font-size: 12px; color: var(--muted); }
.game-card-stats strong { font-size: 15px; color: #f4c95d; white-space: nowrap; }
.game-card-actions { display: flex; align-items: center; gap: 4px; margin-top: auto; }
.game-card-actions .btn { padding: 8px 18px; font-size: 13px; }
.game-card.tambah {
  align-items: center; justify-content: center; cursor: pointer; color: var(--cyan);
  border-style: dashed; font-weight: 700; font-size: 15px; min-height: 180px;
  font-family: inherit; width: 100%;
}
.game-card.tambah:hover { border-color: rgba(79, 216, 232, .6); background: rgba(79, 216, 232, .08); }
.tambah-plus { font-size: 34px; line-height: 1; }

/* ===== Modal (tambah/ubah game) ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 8, 16, .72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-card {
  width: 100%; max-width: 420px; background: #0d1526;
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.modal-card h2 { margin: 6px 0 16px; font-size: 22px; color: #fff; }
.row-actions { text-align: right; white-space: nowrap; }
.link { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 13px; margin-left: 8px; }
.link.danger { color: var(--red); }
.link:hover { text-decoration: underline; }

/* Baris input password + tombol Lihat di form character */
.password-wrap { display: flex; gap: 10px; align-items: center; }
.password-wrap input { flex: 1; min-width: 0; }
.password-wrap .link { margin-left: 0; white-space: nowrap; }
.pw-cell { display: inline-flex; align-items: center; gap: 7px; }
.pw-cell .pw-lihat { margin-left: 0; padding: 0 2px; font-size: 14px; line-height: 1; }

/* ===== Halaman Stok Diamond (seperti aplikasi privat) ===== */
.serif-title {
  font-family: Georgia, 'Palatino Linotype', 'Times New Roman', serif;
  color: #fff; font-weight: 700; font-size: 34px; margin: 6px 0 0; letter-spacing: .01em;
}
.serif-title.sm { font-size: 22px; }
.page-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head-right { font-size: 12px; color: var(--muted); white-space: nowrap; padding-bottom: 6px; }
.stok-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.stok-topbar-value { font-size: 15px; font-weight: 700; color: #fff; margin-top: 4px; }
.stok-topbar-value strong { color: var(--gold); }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.stat-card { margin: 0; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--gold); margin-top: 8px; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.link-btn {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--cyan); font-weight: 700; font-size: 13px; font-family: inherit; white-space: nowrap;
}
.link-btn:hover { text-decoration: underline; }
/* Kartu per character */
.char-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.char-card {
  background: rgba(79, 216, 232, .05);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.char-card-name { font-size: 12px; color: #c8d6e8; }
.char-card-value { font-size: 24px; font-weight: 800; color: var(--gold); margin: 8px 0 4px; }
.char-card-sub { font-size: 11px; color: var(--muted); }
/* Kartu riwayat */
.history-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hist-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(79, 216, 232, .04);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.hist-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(79, 216, 232, .12); color: var(--cyan);
}
.hist-main { flex: 1; min-width: 0; }
.hist-name { font-size: 13px; font-weight: 700; color: #fff; }
.hist-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hist-amount { font-size: 16px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: #8fa0b8; font-size: 15px; line-height: 1;
}
.icon-btn:hover { color: #fff; }
.icon-btn.danger:hover { color: #ff7a7a; }
@media (max-width: 640px) { .stat-cards { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
.empty { text-align: center; color: var(--muted); padding: 14px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.hint strong { color: var(--cyan); }

/* ===== Form ===== */
.form-card { max-width: 560px; }
/* Dua panel form sejajar (Stok Diamond): kiri = Diamond Masuk Hari Ini, kanan = Catat Stok Diamond */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 560px)); gap: 14px; justify-content: start; align-items: stretch; }
.form-card { display: flex; flex-direction: column; }
.form-card form { display: flex; flex-direction: column; flex: 1; }
.form-card .form-actions { margin-top: auto; padding-top: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #d5e0f2; }
.field input[type="text"], .field input[type="date"], .field input[type="number"],
.field input[type="email"], .field input[type="password"], .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; background: #0e1626; color: var(--ink);
  color-scheme: dark;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); }
.field select option { background: #141d30; }
.radio-row { display: flex; gap: 22px; font-size: 14px; }
.radio-row input { margin-right: 6px; accent-color: var(--cyan); }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }
.btn { padding: 11px 26px; border-radius: 12px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, #37b6d0, #1f7fa8); color: #04222b; }
.btn.primary:hover { filter: brightness(1.1); }
.btn:not(.primary) { background: #22304a; color: var(--ink); }
.btn.danger { background: rgba(255,92,92,.14); color: #ff9a9a; border: 1px solid rgba(255,92,92,.45); }
.btn.danger:hover { filter: brightness(1.15); }
.tbl input[type="checkbox"] { width: 16px; height: 16px; accent-color: #37b6d0; cursor: pointer; }

.filters { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.filters select, .filters input {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px;
  background: #0e1626; color: var(--ink); color-scheme: dark;
}
.filters input { flex: 1; }
/* Label + input tanggal di baris filter (jangan ikut melar) */
.filter-tgl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-tgl input[type="date"] { flex: none; width: auto; }

/* ===== Util ===== */
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: #182236; color: #fff; padding: 12px 22px; border-radius: 30px;
  font-size: 14px; border: 1px solid rgba(79, 216, 232, .4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); z-index: 200;
}

/* ===== Layar pembuka: Pilih Profil (gaya Netflix) ===== */
.gate {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background: radial-gradient(1000px 600px at 50% -10%, rgba(79, 216, 232, .12), transparent 60%), linear-gradient(180deg, #0a1120, #070b14);
  padding: 26px 20px 48px;
}
.gate-brand { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; font-weight: 700; letter-spacing: .16em; color: #f4c95d; }
.gate-brand span { color: #4fd8e8; }
.gate-tengah { max-width: 880px; margin: 5vh auto 0; text-align: center; }
.gate-perisai { width: 84px; margin: 0 auto 12px; filter: drop-shadow(0 0 16px rgba(53, 182, 234, .35)); }
.gate-perisai svg { width: 100%; height: auto; display: block; }
.gate-catatan { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.gate-judul { font-size: 40px; color: #fff; margin: 0 0 34px; font-weight: 700; }
.gate-tiles { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.gate-tile-wrap { width: 128px; }
.gate-tile {
  position: relative; width: 128px; height: 128px; padding: 0; cursor: pointer;
  border: 3px solid transparent; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, border-color .15s;
}
.gate-tile:hover, .gate-tile:focus-visible { transform: translateY(-4px) scale(1.03); border-color: #fff; outline: none; }
.gate-tile-huruf { font-size: 56px; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.gate-tile-gembok { position: absolute; left: 8px; bottom: 6px; font-size: 15px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.gate-tile-nama { margin-top: 10px; color: #c8d3e4; font-size: 15px; }
.gate-ingat { margin-top: 44px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.gate-discord {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: #5865F2; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; box-shadow: 0 6px 22px rgba(88, 101, 242, .45);
  animation: discord-melayang 2.6s ease-in-out infinite;
}
.gate-discord:hover { background: #4752d9; }
.gate-discord img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
@keyframes discord-melayang { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 640px) {
  .gate-judul { font-size: 30px; }
  .gate-tile-wrap { width: 104px; }
  .gate-tile { width: 104px; height: 104px; }
  .gate-tile-huruf { font-size: 44px; }
}

/* ===== Responsif (HP) ===== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .kpis, .grid2 { grid-template-columns: 1fr; }
  main { padding: 18px 14px 108px; } /* ruang ekstra di bawah utk bottom bar */
}

/* ===== Navigasi bawah khusus HP (PC tidak terpengaruh) ===== */
.nav-bawah { display: none; }
@media (max-width: 900px) {
  .nav-bawah {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: rgba(9, 14, 25, .97); border-top: 1px solid var(--line);
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .nav-bawah-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; cursor: pointer; color: #8fa0b8;
    font: inherit; font-size: 10.5px; padding: 5px 0 3px; border-radius: 10px;
  }
  .nav-bawah-item svg { width: 22px; height: 22px; }
  .nav-bawah-item.active { color: #4fd8e8; }
}
