/* bantai-pages.css — tata letak menu dashboard BantaiWS (Perangkat, Withdraw, Leaderboard, Referral, Bantuan, Profil, Keamanan).
   Memakai kelas .pg-* (baru). Dimuat setelah bantai-theme.css. Fungsi render lama tetap ada sebagai ...Classic di index.html. */
.pg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.pg-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.pg-head p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.pg-load { padding: 40px; text-align: center; color: var(--text-2); }
.pg-go, .pg-stop, .pg-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 13px; text-decoration: none; transition: transform .15s; }
.pg-go { background: linear-gradient(180deg, #3d8bff, #1456e0); color: #fff; box-shadow: 0 8px 18px rgba(31,107,255,.32); }
.pg-go:hover, .pg-stop:hover { transform: translateY(-2px); }
.pg-go.wide { width: 100%; }
.pg-go.green { background: linear-gradient(180deg, #34d27b, #16a34a); box-shadow: 0 8px 18px rgba(22,163,74,.3); }
.pg-stop { background: #fff; border: 1.5px solid #f3b4b4; color: #d93a3a; }
.pg-ghost { background: #fff; border: 1.5px solid #d3def5; color: var(--text); }
.pg-go svg, .pg-stop svg, .pg-ghost svg { width: 17px; height: 17px; }
.pg-go[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== Perangkat: ruang kendali (daftar + panel samping) ===== */
.pg-dev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.pg-dev-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-dev { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); border-left: 5px solid #1f6bff; }
.pg-dev-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-dev-id { flex: 1; min-width: 150px; }
.pg-dev-id b { display: block; font-size: 17px; word-break: break-all; }
.pg-dev-id small { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.pg-dev .blast-dot { width: 10px; height: 10px; border-radius: 50%; background: #aab6d3; display: inline-block; }
.pg-dev-act { display: flex; gap: 8px; }
.pg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 10px; }
.pg-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #f1f5fd; color: var(--text-2); }
.pg-chips span b { color: var(--text); font-size: 14px; }
.pg-chips .ok b { color: #16a34a; } .pg-chips .bad b { color: #d93a3a; } .pg-chips .rp b { color: #1456e0; }
.pg-dev .console-log { max-height: 130px; overflow: auto; border-radius: 14px; font-size: 12px; padding: 10px 12px; }
.pg-dev .pg-link { background: none; border: 0; margin-top: 10px; color: #d93a3a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 0; }
.pg-panel { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 14px; }
.pg-box { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.pg-box h4 { margin: 0 0 4px; font-size: 15px; } .pg-box > p { margin: 0 0 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.pg-box.dark { background: linear-gradient(135deg, #0d1f4a, #1a47a8); color: #fff; }
.pg-box.dark span { font-size: 13px; color: #b9ccf5; } .pg-box.dark b { display: block; font-size: 34px; font-weight: 800; margin: 4px 0 2px; } .pg-box.dark small { color: #b9ccf5; }
.pg-speed { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.pg-speed .speed-opt { display: flex; align-items: center; gap: 10px; text-align: left; background: #f1f5fd; border: 1.5px solid transparent; color: var(--text); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pg-speed .speed-opt::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #aab6d3; flex: none; }
.pg-speed .speed-opt.active { background: #e3edff; border-color: #3d8bff; color: #0f4fd6; box-shadow: none; }
.pg-speed .speed-opt.active::before { border-color: #1f6bff; background: radial-gradient(circle, #1f6bff 0 45%, #fff 50%); }
.pg-req { font-size: 13.5px; line-height: 1.6; } .pg-req img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid #22c55e; }
.pg-empty { background: #fff; border-radius: 22px; padding: 34px 20px; text-align: center; box-shadow: var(--shadow); }
.pg-empty img { width: 150px; } .pg-empty h3 { margin: 8px 0 4px; } .pg-empty p { color: var(--text-2); margin: 0 0 16px; }

/* ===== Withdraw: dompet + langkah + linimasa ===== */
.pg-wallet { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 26px; border-radius: 26px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(420px 200px at 100% 0, rgba(95,164,255,.5), transparent 70%), linear-gradient(135deg, #0d1f4a, #1a47a8); box-shadow: 0 16px 34px rgba(13,31,74,.3); }
.pg-ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(#5fd0ff calc(var(--p) * 1%), rgba(255,255,255,.18) 0); position: relative; }
.pg-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #11307a; }
.pg-ring b { position: relative; font-size: 18px; }
.pg-wallet-b { flex: 1; min-width: 180px; } .pg-wallet-b span { color: #b9ccf5; font-size: 13px; } .pg-wallet-b h2 { margin: 2px 0; font-size: 34px; font-weight: 800; color: #fff; } .pg-wallet-b small { color: #b9ccf5; }
.pg-dest { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 12px 16px; min-width: 220px; }
.pg-dest span { display: block; font-size: 12px; color: #b9ccf5; } .pg-dest b { font-size: 16px; } .pg-dest em { display: block; font-style: normal; font-size: 13px; color: #dbe7ff; }
.pg-dest a { color: #ffe27a; font-weight: 700; text-decoration: none; font-size: 14px; }
.pg-wd-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.pg-flow { background: #fff; border-radius: 22px; padding: 8px 22px; box-shadow: var(--shadow); position: relative; }
.pg-step { display: flex; gap: 14px; padding: 18px 0; position: relative; }
.pg-step + .pg-step { border-top: 1px dashed #d6e0f5; }
.pg-step > i { flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #3d8bff, #1456e0); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.pg-step > div { flex: 1; min-width: 0; } .pg-step h3 { margin: 4px 0 10px; font-size: 16px; }
.pg-opts { display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow-y: auto; padding: 2px; }
.pg-opts .wd-opt { padding: 9px 14px !important; border-radius: 99px !important; background: #f1f5fd; border: 1.5px solid #dbe5f8; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.pg-opts .wd-opt.sel { background: #1456e0 !important; border-color: #1456e0 !important; color: #fff; }
.pg-opts .wd-opt.wd-disabled { cursor: not-allowed; }
.pg-flow input#wdTyped { width: 100%; margin-top: 10px; height: 46px; border-radius: 13px; border: 1.5px solid #d6e0f5; padding: 0 14px; font: inherit; }
.pg-sum { background: #f1f5fd; border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.pg-hist { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); }
.pg-hist h3 { margin: 0 0 12px; } .pg-hist ul { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #dbe5f8; }
.pg-hist li { position: relative; padding: 0 0 16px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pg-hist li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #1f6bff; border: 3px solid #fff; box-shadow: 0 0 0 2px #1f6bff; }
.pg-hist li.done::before { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }
.pg-hist li b { display: block; font-size: 15px; } .pg-hist li small { color: var(--text-2); font-size: 12px; } .pg-hist .none { text-align: center; color: var(--text-2); padding: 18px 0; }

/* ===== Leaderboard: sorotan juara + bilah ===== */
.pg-lb { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.pg-lb-hero { text-align: center; padding: 26px 18px; border-radius: 26px; color: #fff; background: radial-gradient(300px 200px at 50% 0, rgba(255,214,90,.35), transparent 70%), linear-gradient(160deg, #0d1f4a, #1a47a8); box-shadow: 0 16px 34px rgba(13,31,74,.3); }
.pg-lb-hero .crown { font-size: 34px; } .pg-lb-hero .av { border: 3px solid #ffd45a; }
.pg-lb-hero h3 { margin: 10px 0 2px; color: #fff; font-size: 20px; } .pg-lb-hero b { display: block; font-size: 38px; font-weight: 800; } .pg-lb-hero span { color: #b9ccf5; font-size: 13px; }
.pg-lb-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.pg-lb-list li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #edf1fb; }
.pg-lb-list li:last-child { border: 0; } .pg-lb-list li.me { background: #eaf2ff; }
.pg-lb-list .rk { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #eef2fb; color: var(--text-2); }
.pg-lb-list .r1 { background: #ffd45a; color: #5a3d00; } .pg-lb-list .r2 { background: #d7dfec; color: #33415f; } .pg-lb-list .r3 { background: #f0b98a; color: #5a2d00; }
.pg-lb-b { flex: 1; min-width: 0; } .pg-lb-b .top { display: flex; justify-content: space-between; gap: 8px; } .pg-lb-b .top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pg-lb-b .top em { font-style: normal; font-weight: 800; color: #1456e0; }
.pg-lb-b .bar { height: 7px; border-radius: 9px; background: #e6edfb; margin: 6px 0 2px; overflow: hidden; } .pg-lb-b .bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #35c9ff, #1f6bff); }
.pg-lb-b small { color: var(--text-2); font-size: 12px; }

/* ===== Referral: tiket ===== */
.pg-ticket { display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 16px; position: relative; overflow: hidden; }
.pg-tk-l { padding: 24px 28px; background: linear-gradient(135deg, #0d1f4a, #1a47a8); color: #fff; }
.pg-tk-l span { font-size: 13px; color: #b9ccf5; } .pg-tk-l b { display: block; font-size: 38px; letter-spacing: 6px; margin-top: 6px; font-family: ui-monospace, Menlo, monospace; color: #ffe27a; word-break: break-all; }
.pg-tk-r { padding: 22px; display: flex; flex-direction: column; gap: 9px; justify-content: center; border-left: 3px dotted #c9d6f3; position: relative; min-width: 210px; }
.pg-tk-r::before, .pg-tk-r::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: #e9eefb; }
.pg-tk-r::before { top: -11px; } .pg-tk-r::after { bottom: -11px; }
.pg-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pg-stats3 div { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); } .pg-stats3 span { font-size: 12.5px; color: var(--text-2); font-weight: 600; } .pg-stats3 b { display: block; font-size: 22px; margin-top: 4px; color: #1456e0; }
.pg-people { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); } .pg-people h3 { margin: 0 0 12px; }
.pg-persons { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pg-person { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #f4f8ff; }
.pg-person i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #3d8bff, #1456e0); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.pg-person b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pg-person small { font-size: 12px; color: var(--text-2); }
.pg-person .st { font-size: 12px; font-weight: 700; } .pg-person .st.ok { color: #16a34a; } .pg-person .st.no { color: var(--text-2); }

/* ===== Bantuan: topik di kiri, obrolan di kanan ===== */
.pg-sup { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.pg-sup-side { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.pg-sup-side h4 { margin: 0 0 10px; } .pg-sup-side .sup-chip { display: block; width: 100%; text-align: left; margin: 0 0 8px; }
.pg-tip { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--text-2); background: #f1f5fd; padding: 12px; border-radius: 14px; }

/* ===== Profil: sampul + tab ===== */
.pg-cover { position: relative; display: flex; align-items: center; gap: 18px; padding: 56px 24px 20px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; flex-wrap: wrap; }
.pg-cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 74px; background: radial-gradient(300px 120px at 85% 0, rgba(95,164,255,.6), transparent 70%), linear-gradient(135deg, #0d1f4a, #1a47a8); }
.pg-cover > * { position: relative; } .pg-cover .av { border: 4px solid #fff; box-shadow: 0 6px 16px rgba(13,31,74,.25); }
.pg-cover h2 { margin: 0; font-size: 22px; } .pg-cover p { margin: 2px 0 8px; color: var(--text-2); }
.pg-badges { display: flex; gap: 8px; flex-wrap: wrap; } .pg-badges span { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; } .pg-badges .ok { background: #dcf7e6; color: #15803d; } .pg-badges .no { background: #fdeaea; color: #c43030; }
.pg-tabs { display: flex; gap: 6px; background: #dfe8fb; padding: 5px; border-radius: 16px; margin-bottom: 16px; width: fit-content; max-width: 100%; overflow-x: auto; }
.pg-tabs button { border: 0; background: none; padding: 10px 20px; border-radius: 12px; font: inherit; font-weight: 700; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.pg-tabs button.on { background: #fff; color: #1456e0; box-shadow: 0 4px 10px rgba(18,44,110,.12); }
.pg-pane { background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow); max-width: 720px; }
.pg-pane[hidden] { display: none; }
.pg-pane h3 { margin: 0 0 4px; } .pg-pane .sub { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; }
.pg-fld { margin-bottom: 14px; } .pg-fld label { display: block; font-size: 13px; font-weight: 700; color: #34456f; margin-bottom: 6px; }
.pg-fld input, .pg-fld select { width: 100%; height: 48px; border-radius: 13px; border: 1.5px solid #d6e0f5; background: #fff; color: var(--text); padding: 0 14px; font: inherit; }
.pg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid #edf1fb; } .pg-row:first-of-type { border: 0; }
.pg-row b { display: block; } .pg-row small { color: var(--text-2); }
.pg-av-up { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

/* ===== Keamanan (reset PIN / password) ===== */
.pg-wiz { max-width: 520px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.pg-wiz .pg-step { padding: 16px 0; } .pg-wiz .pg-step > i.done { background: #22c55e; }
.pg-wiz input { width: 100%; height: 48px; border-radius: 13px; border: 1.5px solid #d6e0f5; padding: 0 14px; font: inherit; margin-bottom: 10px; }
.pg-wiz label { display: block; font-size: 13px; font-weight: 700; color: #34456f; margin: 4px 0 6px; }
.pg-note { background: #f1f5fd; border-radius: 14px; padding: 14px; color: var(--text-2); font-size: 14px; text-align: center; }

@media (max-width: 900px) {
  .pg-dev-layout, .pg-wd-layout, .pg-lb, .pg-sup { grid-template-columns: 1fr; }
  .pg-panel { position: static; order: -1; }
  .pg-sup-side { display: flex; gap: 8px; overflow-x: auto; padding: 12px; } .pg-sup-side h4, .pg-tip { display: none; } .pg-sup-side .sup-chip { width: auto; white-space: nowrap; margin: 0; flex: none; }
  .pg-ticket { grid-template-columns: 1fr; } .pg-tk-r { border-left: 0; border-top: 3px dotted #c9d6f3; } .pg-tk-r::before, .pg-tk-r::after { display: none; }
  .pg-stats3 { grid-template-columns: 1fr; }
  .pg-tk-l b { font-size: 28px; }
}

/* perapihan */
.pg-cover { padding-top: 96px; } .pg-cover .av { margin-top: -50px; }
.pg-dev .console-log { min-height: 64px; max-height: 120px; height: auto; }
.pg-tk-l { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 600px) {
  .pg-wallet { padding: 18px; gap: 14px; } .pg-ring { width: 70px; height: 70px; } .pg-ring::before { inset: 7px; } .pg-ring b { font-size: 14px; }
  .pg-wallet-b h2 { font-size: 26px; white-space: nowrap; } .pg-dest { width: 100%; }
  .pg-head h2 { font-size: 22px; } .pg-flow { padding: 4px 16px; }
}
@media (max-width: 767px) { .pg-head h2 { color: #fff; } .pg-head p, .pg-head p b { color: #cddcff; } .pg-head .pg-go { box-shadow: 0 8px 18px rgba(0,0,0,.25); } }
