/* Dashboard NGID. Warna dan font mengikuti aplikasi (app/lib/theme.dart); mockup disetujui pemilik 2026-10-07. */
@font-face { font-family: "Sora"; src: url("fonts/Sora.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #080D18; --side: #0C1322; --panel: #121A2B; --panel2: #19233A; --field: #0C1322;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #EAF0FA; --soft: #B8C2D6; --muted: #8B96AD; --dim: #6B778F;
  --accent: #3E9BFF; --accent2: #5AB4FF; --accent-soft: #8FCBFF; --on-accent: #04122A;
  --gold: #F5A623; --gold2: #FFC24B; --ok: #35D08A; --ok2: #5BE3A5; --bad: #FF6B6B; --bad2: #FF9A9A;
  --ok-bg: rgba(53,208,138,.14); --bad-bg: rgba(255,107,107,.14); --warn-bg: rgba(245,166,35,.14);
  --info-bg: rgba(62,155,255,.14); --muted-bg: rgba(139,150,173,.14);
  --radius: 16px; --radius-sm: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; font: 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--accent-soft); }
h1, h2, h3 { font-family: "Sora", "Plus Jakarta Sans", sans-serif; }
h1 { font-size: 26px; font-weight: 700; margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
h2 { font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.panel > h2:first-child { margin-top: 0; }
p { margin: 0 0 12px; }
strong, b { font-weight: 700; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------- kerangka: menu samping + isi */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 240px; max-width: 260px; min-width: 220px; padding: 24px 16px; background: var(--side);
        border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.side .brand img { height: 36px; width: auto; display: block; }
.chip { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 2px 8px; }
.side .group { display: flex; flex-direction: column; gap: 4px; }
.side .group-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--dim); padding: 0 12px 6px; }
.side a.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--soft); }
.side a.nav:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side a.nav.active { background: rgba(62,155,255,.14); color: var(--text); font-weight: 600; }
.side a.nav.active svg { stroke: var(--accent2); }
.side a.nav span.label { flex: 1; }
.count { font-size: 12px; font-weight: 700; background: var(--gold); color: #1A1203; border-radius: 99px; padding: 1px 8px; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px;
            background: var(--panel); border: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 99px; background: var(--panel2); display: flex; align-items: center;
          justify-content: center; font-weight: 700; color: var(--accent2); flex: none; }
.side .me .who { flex: 1; line-height: 1.3; min-width: 0; }
.side .me .who div:first-child { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .me .who div + div { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.icon-btn { background: none; border: none; color: var(--muted); padding: 6px; min-width: 36px; min-height: 36px; cursor: pointer;
            display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
main.content { flex: 999 1 560px; min-width: 0; padding: 28px 36px 60px; max-width: 1480px; }
main.bare { max-width: 440px; margin: 0 auto; padding: 72px 16px; }
@media (max-width: 760px) {
  .side { max-width: none; padding: 16px; gap: 14px; }
  .side .group { flex-direction: row; flex-wrap: wrap; }
  .side .group-title { width: 100%; padding-bottom: 0; }
  main.content { padding: 20px 16px 48px; }
}

/* ------------------------------------------------------------- kartu, statistik */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel.focus { border-color: rgba(62,155,255,.35); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid > .panel { margin-bottom: 0; }
.stat { display: block; color: var(--text); }
a.stat:hover { color: var(--text); border-color: var(--line2); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-family: "Sora", sans-serif; font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat.warn { border-color: rgba(245,166,35,.45); }
.stat.warn .label { color: var(--gold2); font-weight: 600; }
.stat.hero { background: linear-gradient(160deg, #1A2A47, var(--panel) 70%); }
.stat.hero.warn .value { color: var(--gold2); }
.stat.bad { border-color: rgba(255,107,107,.45); }
.stat.bad .label { color: #FF8F8F; font-weight: 600; }
.value.pos { color: var(--ok); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; min-height: 36px; }
.pill .n { background: rgba(0,0,0,.25); border-radius: 99px; padding: 1px 8px; color: var(--text); }

/* ------------------------------------------------------------- tabel */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, table tr:hover td { background: rgba(255,255,255,.015); }
td.num, th.num { text-align: right; white-space: nowrap; }
td .sub { font-size: 12px; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------- badge status */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-family: "Plus Jakarta Sans", sans-serif;
         font-size: 11px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; background: var(--muted-bg); color: var(--soft); vertical-align: middle; }
.b-sukses, .b-selesai, .b-aktif { background: var(--ok-bg); color: var(--ok2); }
.b-gagal, .b-ditolak { background: var(--bad-bg); color: var(--bad2); }
.b-perlu_cek, .b-layak, .b-diajukan { background: var(--warn-bg); color: var(--gold2); }
.b-diproses, .b-dibayar, .b-diproses_cs { background: var(--info-bg); color: var(--accent-soft); }
.b-kedaluwarsa, .b-nonaktif { background: rgba(139,150,173,.08); color: var(--muted); }

/* ------------------------------------------------------------- pesan */
.flash, .alert { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 14px; margin-bottom: 20px; border: 1px solid; }
.flash.ok { background: rgba(53,208,138,.12); border-color: rgba(53,208,138,.35); color: var(--ok2); }
.flash.err { background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.4); color: var(--bad2); }
.alert { background: rgba(245,166,35,.12); border-color: rgba(245,166,35,.35); color: var(--gold2); font-weight: 600; }

/* ------------------------------------------------------------- formulir */
form.inline { display: inline; }
form.stack { display: grid; gap: 14px; max-width: 520px; }
form.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
form.row label { flex: 0 1 200px; }
form.row label.grow { flex: 1 1 300px; }
form.row label.check { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 14px; font-weight: 400; padding: 0 12px; min-height: 44px; border: 1px solid var(--line2);
                          border-radius: var(--radius-sm); background: var(--field); color: var(--text); width: 100%; }
textarea { padding: 10px 12px; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(62,155,255,.55); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
input[type=file] { padding: 9px 12px; color: var(--soft); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 4px 12px; border-radius: 8px;
                                          border: 1px dashed rgba(90,180,255,.6); background: transparent; color: var(--accent-soft); cursor: pointer; }
::placeholder { color: var(--dim); }
button, .btn { font: inherit; font-weight: 700; min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); border-radius: var(--radius-sm);
               background: var(--accent); color: var(--on-accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover, .btn:hover { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); }
button.secondary, .btn.secondary { background: transparent; color: var(--text); border-color: var(--line2); }
button.secondary:hover, .btn.secondary:hover { background: rgba(255,255,255,.05); color: var(--text); }
button.danger { background: var(--bad); border-color: var(--bad); color: #2A0606; }
button.link { background: none; border: none; color: var(--accent2); padding: 0; min-height: 0; font-weight: 600; }
button.link:hover { color: var(--accent-soft); background: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
details { margin: 4px 0; }
details > summary { cursor: pointer; color: var(--accent2); font-weight: 600; list-style: none; padding: 4px 0; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--muted); }
details[open] > summary::before { content: "▾ "; }
details > form { margin: 10px 0 14px; }

/* ------------------------------------------------------------- lain-lain */
.sla-warn { color: var(--gold2); font-weight: 600; }
.sla-bad { color: var(--bad2); font-weight: 700; }
ul.check { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; }
ul.check li::before { content: "✗ "; color: var(--bad); font-weight: 700; }
ul.check li.ok::before { content: "✓ "; color: var(--ok); }
.login { text-align: left; }
img.logo { display: block; height: 44px; width: auto; margin: 0 auto 28px; }
.login h1 { font-size: 22px; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 12px; }
.thumb { width: 100%; max-height: 180px; object-fit: contain; background: var(--bg); border-radius: 10px; }
.thumb-sm { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--field); }
.thumb-cover { width: 33px; height: 44px; object-fit: cover; border-radius: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two > .panel { margin-bottom: 0; }
.two + * { margin-top: 16px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } }
.page-head { margin-bottom: 22px; }
.page-head .eyebrow { font-size: 13px; color: var(--muted); }
.page-head h1 { margin: 4px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--soft); font-weight: 600; font-size: 13px; }
.tabs a.on { background: rgba(62,155,255,.14); border-color: transparent; color: var(--text); }

/* ------------------------------------------------------------- konten game: daftar + panel ubah */
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .list { flex: 999 1 420px; min-width: 0; padding: 0; overflow: hidden; }
.split > .editor { flex: 1 1 400px; max-width: 480px; }
.game-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.game-row:last-child { border-bottom: none; }
.game-row.on { background: rgba(62,155,255,.10); }
.game-row .name { flex: 1; min-width: 0; }
.game-row .name div:first-child { font-weight: 600; }
.game-row .name div + div { font-size: 12px; color: var(--muted); }
.tag-baru { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--on-accent); background: var(--accent); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.panel-baru { border-left: 3px solid var(--accent); }
.tag-gold { font-size: 12px; font-weight: 700; color: var(--gold2); background: var(--warn-bg); border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.editor-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.editor-head img { width: 40px; height: 40px; object-fit: contain; }
.editor-head h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--text); }
.editor-head .sub { font-size: 12px; color: var(--muted); }
.slots { display: grid; grid-template-columns: 1fr 1fr .75fr; gap: 12px; }
.slot { display: flex; flex-direction: column; gap: 8px; }
.slot .t { font-size: 12px; font-weight: 600; color: var(--muted); }
.slot .img { border-radius: 12px; background: var(--field); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--dim); font-size: 12px; }
.slot .img.sq { aspect-ratio: 1 / 1; }
.slot .img.tall { aspect-ratio: 3 / 4; }
.slot .img img { width: 100%; height: 100%; object-fit: cover; }
.slot .img.logo img { width: 80%; height: 80%; object-fit: contain; }
.slot input[type=file] { font-size: 12px; padding: 6px 8px; min-height: 38px; }
.slot input[type=file]::file-selector-button { padding: 2px 8px; margin-right: 6px; }
.fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack-inner { display: grid; gap: 12px; margin-top: 10px; }
span.thumb-sm, span.thumb-cover { display: inline-block; background: var(--field); border: 1px dashed var(--line2); flex: none; }
.editor .name { flex: 1; min-width: 0; }
.editor > .note { margin: 16px 0 0; }
.split > .editor { position: sticky; top: 20px; }
@media (max-width: 900px) { .split > .editor { position: static; } }
.list-search { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-search .grow { flex: 1 1 200px; }
label.ganti { flex-direction: row; align-items: center; justify-content: center; min-height: 36px; border-radius: 8px;
              border: 1px dashed rgba(90,180,255,.6); color: var(--accent-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
label.ganti:hover { background: rgba(62,155,255,.08); }
label.ganti:focus-within { outline: 2px solid rgba(62,155,255,.55); outline-offset: 1px; }
.slot .img { position: relative; }
.slot .img.baru { outline: 2px solid var(--ok); outline-offset: 2px; }
.slot .img.baru::after { content: "BARU"; position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700;
                         background: var(--ok); color: var(--on-accent); border-radius: 99px; padding: 2px 7px; }
.slot .img.logo.baru img { width: 80%; height: 80%; object-fit: contain; }
.nowrap { white-space: nowrap; }
table.pesanan { min-width: 1040px; }
table.pesanan td .sub a { color: var(--ok2); }
a.back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: 6px; color: var(--muted); font-weight: 600; }
a.back:hover { color: var(--text); }

/* Baris tabel yang bisa diklik (data-href, lihat admin.js) */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(62,155,255,.06); }
.cell-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.btn.chip-btn { min-height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; border-radius: 8px; }
.btn.chip-btn.wa { color: var(--ok2); border-color: rgba(53,208,138,.35); }
.btn.chip-btn.wa:hover { background: rgba(53,208,138,.08); color: var(--ok2); }

/* Badge status versi pengguna (warna sama dengan aplikasi: gayaStatus/gayaPesanan) */
.badge.u-hijau { background: var(--ok-bg); color: var(--ok2); }
.badge.u-merah { background: var(--bad-bg); color: var(--bad2); }
.badge.u-emas { background: var(--warn-bg); color: var(--gold2); }
.badge.u-biru { background: var(--info-bg); color: var(--accent-soft); }
.badge.u-netral { background: rgba(184,194,214,.12); color: #B8C2D6; }
h1 .sys { font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Status per tahap (D-24) */
tr.aksi td { background: rgba(245,166,35,.06); }
tr.aksi:hover td { background: rgba(245,166,35,.10); }
.dash { color: var(--dim); }
.tabs { margin-bottom: 16px; }
.tabs a .n { font-size: 12px; opacity: .75; margin-left: 4px; }
.tabs a.gold { color: var(--gold2); border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.10); }
table.pesanan { min-width: 1080px; }

p.lead { color: var(--muted); margin: -8px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tahap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tahap-grid > .panel { margin-bottom: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tahap-grid h2 { margin: 0; }
.panel.tahap.u-hijau { border-color: rgba(53,208,138,.35); }
.panel.tahap.u-merah { border-color: rgba(255,107,107,.4); }
.panel.tahap.u-emas { border-color: rgba(245,166,35,.45); }
.panel.tahap.u-biru { border-color: rgba(62,155,255,.35); }
.panel.tahap.kosong { opacity: .7; }
dl.kv.mini { grid-template-columns: 110px 1fr; gap: 4px 12px; font-size: 13px; margin: 0; width: 100%; }
h2.gold { color: var(--gold2); }
tr.telat td { background: rgba(255,107,107,.05); }
td.note-cell { font-size: 13px; color: var(--soft); }
button.small { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ------------------------------------------------------------- Banner: form berkelompok + pratinjau */
[hidden] { display: none !important; }
.banner-split > .banner-form { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.banner-split > .pratinjau { flex: 1 1 380px; max-width: 420px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .banner-split > .pratinjau { position: static; } }
.panel.langkah { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.panel.langkah h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.panel.langkah h2 .note { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 500; }
.gambar-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
@media (max-width: 600px) { .gambar-grid { grid-template-columns: 1fr; } }
.slot .img.lebar { aspect-ratio: 2 / 1; }
.slot .img.karakter { aspect-ratio: 960 / 1000; max-height: 170px; background: repeating-conic-gradient(#19233A 0% 25%, #121A2B 0% 50%) 50% / 16px 16px; text-align: center; color: var(--accent-soft); font-weight: 600; }
.slot .img.karakter img { object-fit: contain; object-position: bottom; }
.slot .img.karakter small { color: var(--muted); font-weight: 400; }
.baris-tombol { display: flex; gap: 8px; }
.baris-tombol label.ganti { flex: 1; }
button.hapus { min-height: 36px; padding: 0 12px; font-size: 12px; background: transparent; color: var(--bad2); border: 1px solid rgba(255,107,107,.4); }
button.hapus:hover { background: rgba(255,107,107,.08); color: var(--bad2); border-color: rgba(255,107,107,.6); }
label.cek-baris { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); font-weight: 500; cursor: pointer; }
.fields2 .span2 { grid-column: 1 / -1; }
.pil { display: flex; flex-wrap: wrap; gap: 8px; }
.pil label { flex-direction: row; cursor: pointer; }
.pil input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pil span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--soft); font-size: 13px; font-weight: 600; }
.pil input:checked + span { background: rgba(62,155,255,.16); border-color: rgba(62,155,255,.6); color: var(--text); }
.pil input:focus-visible + span { outline: 2px solid rgba(62,155,255,.55); outline-offset: 2px; }
.jadwal { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 12px; }
@media (max-width: 600px) { .jadwal { grid-template-columns: 1fr; } }
input[type=datetime-local] { color-scheme: dark; }
.actions.kanan { justify-content: flex-end; margin-top: 0; }
.pratinjau > h2 { margin: 0; font-family: "Sora", sans-serif; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--text); }
.hp { width: 100%; max-width: 390px; box-sizing: border-box; padding: 18px 16px 22px; border-radius: 28px; border: 1px solid var(--line2); background: radial-gradient(120% 60% at 30% 0%, #16264A 0%, #080D18 70%); }
.hp-atas { display: flex; justify-content: space-between; align-items: center; }
.hp-atas img { height: 26px; }
.hp-avatar { width: 30px; height: 30px; border-radius: 99px; background: var(--panel2); }
.hp-sapa { margin-top: 14px; font-size: 12px; color: var(--muted); }
.hp-tanya { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; }
/* Bingkai 2:1 + luapan 25% di atas: tinggi total = lebar/2 × 1,25 → rasio 358:224. */
.bn { position: relative; margin-top: 14px; width: 100%; aspect-ratio: 358 / 224; }
.bn-bingkai { position: absolute; left: 0; right: 0; top: 20%; bottom: 0; border-radius: 20px; overflow: hidden; background: #19233A; }
.bn-bingkai img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,24,.85) 0%, rgba(8,13,24,.4) 55%, rgba(8,13,24,0) 85%); }
.bn-teks { position: absolute; left: 5%; top: calc(20% + 14px); bottom: 14px; width: 62%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.bn-kicker { font-family: "Sora", sans-serif; font-weight: 800; font-style: italic; font-size: 13px; letter-spacing: .6px; color: #fff; }
.bn-judul { font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.1; color: var(--gold2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-sub { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,.87); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-tombol { margin-top: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 10px; border: 1.2px solid var(--gold2); background: rgba(8,13,24,.2); color: var(--gold2); font-family: "Sora", sans-serif; font-weight: 700; font-size: 12px; }
.bn-karakter { position: absolute; right: 0; bottom: 0; width: 60%; height: 100%; object-fit: contain; object-position: right bottom; border-bottom-right-radius: 20px; }
.bn-titik { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.bn-titik span { width: 6px; height: 6px; border-radius: 99px; background: #3A4762; }
.bn-titik span.on { width: 18px; background: var(--accent); }
.cek-otomatis { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cek-otomatis h2 { margin: 0; }
.cek-otomatis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.cek-otomatis li.ok { color: var(--ok2); }
.cek-otomatis li.warn { color: var(--gold2); }
.cek-otomatis li.info { color: var(--muted); }
.banner-daftar { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.banner-kartu { margin: 0; display: flex; gap: 12px; align-items: center; padding: 12px; }
.banner-kartu img { width: 120px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; flex: none; }
.banner-kartu .isi { flex: 1; min-width: 0; display: grid; gap: 2px; }
.banner-kartu .aksi-kartu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.banner-kartu.nonaktif { opacity: .6; }
.banner-kartu.on { border-color: rgba(62,155,255,.45); }

/* ------------------------------------------------------------- Katalog: dropdown "Gabung ke game" */
.daftar-game { position: absolute; z-index: 50; max-height: 280px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
               background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm);
               box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.daftar-game li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.daftar-game li .mono { color: var(--dim); font-size: 12px; }
.daftar-game li.aktif, .daftar-game li:hover { background: rgba(62,155,255,.18); }
.daftar-game li.kosong { color: var(--muted); font-style: italic; }
.daftar-game li.info { color: var(--muted); cursor: default; background: none; }

/* ------------------------------------------------------------- Katalog: bilah "Simpan semua" + baris berubah */
tr.berubah td { background: rgba(245,166,35,.08); }
tr.berubah td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.bar-simpan { position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center;
              gap: 12px; padding: 10px 12px 10px 18px; background: var(--panel2); border: 1px solid rgba(245,166,35,.45);
              border-radius: 99px; box-shadow: 0 12px 40px rgba(0,0,0,.55); max-width: calc(100vw - 32px); }
.bar-simpan[hidden] { display: none; }
.bar-simpan form { margin: 0; }
#jumlah-ubah { color: var(--gold2); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .bar-simpan { border-radius: var(--radius); flex-wrap: wrap; justify-content: center; } }
.ruang-bar-simpan { height: 96px; }

/* ------------------------------------------------------------- Katalog: tab Isi Ulang & Voucher (2026-10-13) */
.hasil-app { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hasil-menu { background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.hasil-menu .judul { font-weight: 700; margin-bottom: 8px; }
.hasil-menu .isi { display: flex; flex-wrap: wrap; gap: 6px; }
.kecil { font-size: 12px; }
td select[name="menu"] { min-width: 160px; }
td input[name="brand"] { min-width: 130px; }
.ringkas-daftar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.ringkas-daftar p { margin: 0 auto 0 0; }

/* ------------------------------------------------------------- Sakelar on/off (Ikon Layanan, 2026-10-13) */
.form-sakelar { display: inline-block; }
.sakelar { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-size: 13px;
           font-weight: 600; color: var(--text); }
.sakelar input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sakelar .geser { position: relative; width: 44px; height: 24px; border-radius: 99px; background: var(--panel2);
                  border: 1px solid var(--line2); transition: background .15s, border-color .15s; flex: none; }
.sakelar .geser::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
                         background: var(--muted); transition: transform .15s, background .15s; }
.sakelar input:checked + .geser { background: var(--accent); border-color: var(--accent); }
.sakelar input:checked + .geser::after { transform: translateX(20px); background: #fff; }
.sakelar input:focus-visible + .geser { outline: 2px solid rgba(62,155,255,.55); outline-offset: 2px; }
.sakelar .teks { min-width: 104px; }
.sakelar input:not(:checked) ~ .teks { color: var(--muted); }

/* Kotak cari di atas dropdown panjang (select[data-cari], admin.js) */
.cari-pilihan { width: 100%; }
select[size] { padding: 4px 0; min-height: 0; }
select[size] option { padding: 6px 12px; }

/* Rekap (finance): sel "harus direfund" yang berisi, baris total, tombol rentang cepat yang aktif. */
td.gold strong { color: var(--gold2); }
tr.total td { border-top: 2px solid var(--line, rgba(255,255,255,.14)); background: rgba(91,192,240,.05); }
.chip-btn.on { border-color: var(--accent, #3E9BFF); color: var(--accent, #3E9BFF); }

/* Atur event spin (event_atur.html) */
.event-atur .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.event-atur label.check { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--soft); }
.event-atur input[type=checkbox], .event-atur input[type=radio] { width: auto; min-height: 0; }
.event-atur input.kecil { width: 56px; min-height: 28px; padding: 0 6px; display: inline-block; }
.event-atur details > .fields2 { margin-top: 14px; }
.event-atur details summary { cursor: pointer; }
.atur-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.atur-utama { display: grid; gap: 16px; min-width: 0; }
.atur-utama > .panel, .atur-samping .panel { margin: 0; }
.atur-samping { position: sticky; top: 16px; }
.atur-samping .panel { display: grid; gap: 10px; }
.atur-samping .btn, .atur-samping button { width: 100%; justify-content: center; }
@media (max-width: 1100px) { .atur-grid { grid-template-columns: 1fr; } .atur-samping { position: static; } }
span.langkah { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-right: 6px;
           background: var(--info-bg); color: var(--accent-soft); font-size: 12px; vertical-align: 2px; }
.ringkas-baris { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--soft); }
.ringkas-baris strong { color: var(--text); }
.ringkas-baris strong.sla-bad { color: var(--bad2); }
.meter { height: 8px; border-radius: 99px; background: var(--field); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--gold); transition: width .2s; }
.meter span.pas { background: var(--ok); }
.meter span.lebih { background: var(--bad); }
.hd-game { margin-top: 0; }
.hd-game > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.hd-daftar { display: grid; gap: 10px; margin: 6px 0 12px; }
.hd-kartu { border: 1px solid var(--line2); border-radius: var(--radius-sm); background: var(--panel2); padding: 12px; }
.hd-kartu.nol { opacity: .6; }
.hd-kepala { display: flex; align-items: center; gap: 12px; }
.hd-ikon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; }
.hd-ikon img { width: 30px; height: 30px; }
.hd-judul { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hd-judul strong { font-size: 15px; }
.hd-peluang { flex: none; flex-direction: row; align-items: center; gap: 8px; }
.hd-persen { display: inline-flex; align-items: center; gap: 6px; }
.hd-persen input { width: 92px; text-align: right; font-weight: 700; }
.hd-hapus { flex: none; }
.hd-isi { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hd-isi > label { flex: 0 1 150px; }
.hd-isi > label.grow { flex: 1 1 280px; }
.hd-isi > label[hidden] { display: none; }
.hd-isi .hd-utama { margin-left: auto; }
.roda-atur { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 760px) { .roda-atur { grid-template-columns: 1fr; } }
.roda-pratinjau { position: relative; aspect-ratio: 1; width: 100%; }
.roda-pratinjau svg { width: 100%; height: 100%; display: block; }
.roda-penunjuk { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0;
                 border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid #fff;
                 filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.roda-juring { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 12px; margin: 0; padding-left: 22px; }
.roda-juring li { color: var(--muted); font-size: 12px; }
@font-face { font-family: "Sora"; src: url("/event-static/font/Sora.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
.ci-tabel td { vertical-align: middle; }
.ci-tabel .ci-pasang { white-space: nowrap; }
.ci-tabel .ci-pasang input:not(.kecil) { width: 92px; min-height: 28px; padding: 0 6px; display: inline-block; }
/* Pop-up (Konten -> Pop-up): form berkelompok + pratinjau, pola sama dengan Banner */
.pil-kartu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .pil-kartu { grid-template-columns: 1fr; } }
.pil-kartu span { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; height: 100%; padding: 12px 14px;
  border-radius: 12px; box-sizing: border-box; width: 100%; }
.pil-kartu label { display: flex; }
.pil-kartu strong { color: var(--text); font-size: 14px; }
.pil-kartu small { color: var(--muted); font-weight: 500; font-size: 12px; line-height: 1.4; }
#form-popup label > span:first-child .note { font-weight: 500; margin-left: 4px; }
#form-popup .popup-img { aspect-ratio: 4 / 5; max-width: 240px; }
#form-popup .slot .img img { object-fit: contain; }
.petunjuk { margin: 0; padding-left: 18px; color: var(--soft); font-size: 13px; line-height: 1.6; align-self: center; }
.slide-baris { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.slide-baris .slot .img { aspect-ratio: 16 / 10; }
.stack-inner.rapat { margin-top: 0; gap: 8px; }
.subgrup { display: flex; flex-direction: column; gap: 10px; }
.subgrup + .subgrup { padding-top: 14px; border-top: 1px solid var(--line); }
.subjudul { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.subjudul .note { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.pratinjau h2.kecil { font-size: 14px; margin: 0 0 8px; }
.tabel-ringkas { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabel-ringkas td { padding: 5px 8px 5px 0; vertical-align: top; border-top: 1px solid var(--line); color: var(--soft); }
.tabel-ringkas td.mono { white-space: nowrap; color: var(--accent-soft); }
.banner-kartu .img-kosong { display: flex; align-items: center; justify-content: center; background: var(--field);
  border-radius: 8px; color: var(--dim); font-size: 12px; width: 120px; aspect-ratio: 2 / 1; flex: none; }
/* Pratinjau pop-up: meniru app/lib/widgets/dialog_popup.dart */
.hp-popup { min-height: 560px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 60% at 30% 0%, #16264A 0%, #080D18 70%); position: relative; }
.hp-popup::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.45); }
.pp { position: relative; width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid rgba(201,168,255,.33);
  background: linear-gradient(#2A1450, #111A2E); box-shadow: 0 0 30px rgba(154,107,255,.4); text-align: center; color: #fff; }
.pp-gambar { position: relative; background: #0B1222; }
.pp-gambar img { display: block; width: 100%; max-height: 380px; object-fit: contain; }
.pp-kosong { padding: 60px 16px; color: var(--dim); font-size: 12px; }
.pp-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); line-height: 26px; font-size: 14px; }
.pp-isi { padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 6px; }
.pp-ikon { width: 52px; height: 52px; margin: 0 auto 2px; border-radius: 14px; background: linear-gradient(135deg, #FF5FB8, #9A6BFF 50%, #42D9FF); transform: rotate(45deg) scale(.75); }
.pp-kicker { font-size: 10.5px; font-weight: 800; color: #FFD27A; letter-spacing: .03em; }
.pp-judul { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; }
.pp-teks { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.45; }
.pp-tombol { margin-top: 8px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: "Sora", sans-serif;
  font-weight: 700; font-size: 14px; background: linear-gradient(90deg, #FF5FB8, #9A6BFF, #42D9FF); }
.pp-bawah { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px 4px; font-size: 12px; color: var(--muted); }
.pp-titik { display: flex; justify-content: center; gap: 5px; margin-top: 6px; }
.pp-titik i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; }
.pp-titik i.on { width: 18px; background: #3E9BFF; }
.pp-slide-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Daftar berurutan (Banner, Pop-up): satu baris per item, tombol naik/turun (pemilik 2026-11-02) */
.kecil-bawah { margin: -6px 0 14px; font-size: 13px; }
.urut-daftar { display: flex; flex-direction: column; gap: 12px; }
.urut-baris { margin: 0; display: grid; grid-template-columns: 44px 358px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; }
.urut-baris.on { border-color: rgba(62,155,255,.55); }
.urut-baris.redup .bn-mini, .urut-baris.redup .pp-mini { opacity: .5; }
@media (max-width: 1100px) { .urut-baris { grid-template-columns: 44px minmax(0, 1fr); } .urut-baris > .urut-info, .urut-baris > .urut-aksi { grid-column: 2; } }
.urut-geser { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.urut-geser form { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.urut-geser .icon-btn { font-size: 16px; min-height: 30px; border: 1px solid var(--line2); }
.urut-geser .icon-btn:disabled { opacity: .3; cursor: default; }
.urut-no { font-family: "Sora", sans-serif; font-weight: 700; font-size: 15px; color: var(--muted); }
.bn.bn-mini { margin: 0; width: 358px; }
.urut-info { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; min-width: 0; }
.urut-info > div { display: flex; gap: 10px; }
.urut-info dt { flex: none; width: 92px; color: var(--muted); }
.urut-info dd { margin: 0; color: var(--soft); min-width: 0; overflow-wrap: anywhere; }
.urut-judul { flex-wrap: wrap; align-items: center; font-size: 15px; margin-bottom: 2px; }
.st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.st-tayang { background: rgba(46,204,113,.15); color: #5BE39A; }
.st-terjadwal { background: rgba(62,155,255,.15); color: var(--accent-soft); }
.st-berakhir { background: rgba(255,170,60,.15); color: var(--gold2); }
.st-uji { background: rgba(255,210,122,.14); color: #FFD27A; }
.urut-aksi { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.urut-aksi form { margin: 0; }
.urut-aksi .btn, .urut-aksi button { width: 100%; justify-content: center; }
.urut-popup { grid-template-columns: 44px 120px minmax(0, 1fr) auto; }
.pp-mini { width: 120px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; border: 1px solid rgba(201,168,255,.33);
  background: linear-gradient(#2A1450, #111A2E); display: flex; align-items: center; justify-content: center; }
.pp-mini img { width: 100%; height: 100%; object-fit: cover; }
.pp-mini-teks { padding: 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pp-mini-teks .pp-judul { font-size: 12px; line-height: 1.25; color: #fff; }
.pp-mini-teks .pp-kicker { font-size: 8.5px; }
.pp-gradasi { position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to bottom, rgba(8,13,24,0) 0%, rgba(8,13,24,.55) 45%, rgba(8,13,24,.9) 100%); }
.pp-atas-gambar { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: left; display: flex; flex-direction: column; gap: 3px; }
.pp-atas-gambar .pp-judul { font-size: 20px; line-height: 1.15; }
.pp-atas-gambar .pp-teks { color: rgba(255,255,255,.85); }
