:root {
  --blue: #364fa3;
  --blue-dark: #2a3d80;
  --yellow: #fdc70d;
  --gray: #a7a9ac;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f4f6fb;
  --line: #d9deea;
  --ok: #17803d;
  --warn: #a15c07;
  --bad: #b42318;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1240px; }

.top { background: #fff; }
.topin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { height: 52px; width: auto; display: block; }
.stripe { height: 5px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--yellow) 70% 100%); }

.lang { display: flex; gap: 6px; }
.lang button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lang button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

main { padding-top: 24px; padding-bottom: 48px; }

h1 { margin: 0 0 4px; font-size: 26px; color: var(--blue); line-height: 1.25; }
h2.sub { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--text); }
h3 { margin: 0 0 12px; font-size: 17px; color: var(--blue); }
p { margin: 0 0 12px; }
.steps { color: var(--muted); font-size: 15px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.card.narrow { max-width: 380px; margin-left: auto; margin-right: auto; }

.notice {
  background: #fff8e1;
  border: 1px solid #f1d98a;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 2px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=date], select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #b8c0d4;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea { resize: vertical; }
input:disabled { background: #eef0f5; color: var(--muted); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

.radios { display: flex; gap: 24px; }
.radios label, .check { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.check { align-items: flex-start; }
.check input, .radios input { width: 18px; height: 18px; margin-top: 3px; }

.terms { background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 12px 36px; margin-bottom: 12px; font-size: 15px; }
.terms li { margin-bottom: 4px; }
.terms ol { margin: 0; padding: 0; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: #eef1fa; }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.bad { background: var(--bad); border-color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 14px; }

.msg { margin-top: 12px; font-weight: 600; }
.msg.err { color: var(--bad); }
.msg.good { color: var(--ok); }

.code-box {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue);
  background: #eef1fa;
  border: 2px dashed var(--blue);
  border-radius: 10px;
  text-align: center;
  padding: 14px;
  margin: 8px 0 16px;
}

.linkline { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.linkline input { flex: 1; min-width: 0; font-size: 14px; }

dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted); font-size: 14px; }
dl.kv dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.menunggu_bayar { background: #eef0f5; color: #374151; }
.badge.menunggu_verifikasi { background: #fff3d6; color: var(--warn); }
.badge.disetujui { background: #dcf5e4; color: var(--ok); }
.badge.ditolak { background: #fde4e1; color: var(--bad); }

.bank { background: #f8f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.bank dl.kv { margin: 0; grid-template-columns: 120px 1fr; }
.total { font-size: 24px; font-weight: 700; color: var(--blue); margin: 4px 0 12px; }

.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 16px 0 32px; }
a { color: var(--blue); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }

/* ---------- admin ---------- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.stat b { display: block; font-size: 26px; color: var(--blue); line-height: 1.2; }
.stat span { color: var(--muted); font-size: 14px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabs button {
  font: inherit; font-weight: 600; background: none; border: 0; padding: 10px 18px; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs button.on { color: var(--blue); border-bottom-color: var(--yellow); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar input[type=text] { max-width: 260px; }
.toolbar select { max-width: 220px; width: auto; }
.toolbar .grow { flex: 1; }

.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; background: #eef1fa; color: var(--blue); padding: 10px 12px; white-space: nowrap; }
table.list td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.list tr.row { cursor: pointer; }
table.list tr.row:hover { background: #f6f8fd; }
td.num, th.num { text-align: right; }
.empty { padding: 24px; text-align: center; color: var(--muted); }

.modal { position: fixed; inset: 0; background: rgba(17, 24, 39, .55); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; z-index: 10; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 720px; padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.proof img { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.reasonbox { margin-top: 12px; }
