/* lisensi.sr12.id — gaya "Minimal Premium": maroon #800000, hijau hanya untuk sukses, amber untuk peringatan. */
:root {
  --m: #800000; --m-dark: #6B0000; --m-soft: #F9EDED; --m-line: #D9A3A3; --m-text: #5C0000;
  --bg: #F4F6F9; --card: #fff; --line: #E3E7EE; --line2: #EEF1F5; --in-line: #D5DBE5;
  --tx: #111827; --tx2: #374151; --mut: #5B6472; --th: #FBF7F7;
  --ok: #15803D; --ok-soft: #E8F5EC; --ok-dark: #14532D; --ok-line: #CDE9D6;
  --warn: #B45309; --warn-soft: #FEF3E2; --warn-dark: #92400E;
  --err: #B42318; --err-soft: #FDECEA; --err-dark: #7A1B12; --err-line: #F5B7B1;
  --side-tx: #EFCACA; --mono: ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tx); background: var(--bg); font-size: 14px; line-height: 1.4; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--m); }
img { max-width: 100%; }
h1 { margin: 0; font-size: 22px; }
h2 { margin: 0; font-size: 15px; }
small { font-size: 12px; }
.grow { flex-grow: 1; }
.mono { font-family: var(--mono); }
.mut { color: var(--mut); }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .err-t { color: var(--err); } .m-t { color: var(--m); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.wide { width: 100%; }
.inline-form { display: inline; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------ shell (sidebar PC / header HP) */
.shell { display: flex; min-height: 100vh; }
.side { width: 220px; flex-shrink: 0; background: var(--m); color: #fff; display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 18px; }
.side-brand b { display: block; font-size: 15px; }
.side-brand small { display: block; color: var(--side-tx); }
.logo-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: block; object-fit: cover; }
/* logo lengkap KASIR12 (teks merah) → di atas latar maroon diberi pelat putih */
.logo-plate { display: inline-flex; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.logo-plate img { width: 148px; height: 148px; display: block; }
.logo-full { width: 132px; height: 132px; align-self: center; display: block; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { height: 40px; padding: 0 12px; border-radius: 8px; display: flex; align-items: center; font-size: 14px; text-decoration: none; color: var(--side-tx); }
.side-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-nav a.on { background: #fff; color: var(--m); font-weight: 700; }
.side-foot, .side-foot-form button { min-height: 36px; padding: 0 12px; display: flex; align-items: center; font-size: 13px; color: var(--side-tx); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.side-foot:hover { color: #fff; }
.side-foot-form { margin: 0; }
.mwrap { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.mhead { display: none; background: var(--m); color: #fff; padding: 10px 12px 0; }
.mhead-top { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.mhead-title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.mhead-title b { font-size: 16px; }
.mhead-title small { font-size: 11px; color: var(--side-tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mhead form { margin: 0; }
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: #fff; color: var(--m); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.link-light { background: none; border: 0; color: var(--side-tx); font-size: 13px; cursor: pointer; padding: 8px 4px; }
.mtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 6px -12px 0; padding: 0 8px; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs a { flex-shrink: 0; height: 40px; padding: 0 12px; display: flex; align-items: center; font-size: 13px; text-decoration: none; color: var(--side-tx); border-bottom: 3px solid transparent; }
.mtabs a.on { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.drawer { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 50; }
.drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; gap: 10px; }
.drawer-head small { display: block; color: var(--mut); }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a { height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--tx2); font-size: 15px; }
.drawer nav a.on { background: var(--m-soft); color: var(--m); font-weight: 700; }

.main { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 32px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head h1 { flex-grow: 1; }
.page-head .tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------ komponen */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card.pad { padding: 16px; gap: 12px; }
.card-h { padding: 14px 16px 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-h h2 { flex-grow: 1; }
.card-h a { font-size: 13px; font-weight: 700; text-decoration: none; }
.card.hl { border: 2px solid var(--m); }
.rw { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--tx); text-decoration: none; min-width: 0; }
a.rw:hover { background: #FCFAFA; }
.rw .col { display: flex; flex-direction: column; min-width: 0; flex: 1 1 150px; }
.rw .col b { font-weight: 600; overflow-wrap: anywhere; }
.rw .col span { font-size: 12px; color: var(--mut); overflow-wrap: anywhere; }
.rw .end { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; background: var(--warn); }
.dot.err { background: var(--err); }
.empty { padding: 18px 16px; color: var(--mut); font-size: 13px; border-top: 1px solid var(--line2); }
.note { font-size: 12px; color: var(--mut); line-height: 1.5; }
.box { border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.box-m { background: var(--m-soft); color: var(--m-text); }
.box-err { background: var(--err-soft); color: var(--err-dark); }
.box-ok { background: var(--ok-soft); color: var(--ok-dark); }
.box-grey { background: var(--bg); color: var(--tx2); }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpis.aff { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi > span:first-child { font-size: 12px; color: var(--mut); }
.kpi b, .kpi .v { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.kpi small { color: var(--mut); }
.kpi.good { background: var(--ok-soft); border-color: var(--ok-line); }
.kpi.good > span:first-child, .kpi.good small { color: var(--ok-dark); }
.kpi.good b { color: var(--ok); }
.kpi.code { background: var(--m); color: #fff; border-color: var(--m); gap: 6px; }
.kpi.code > span:first-child { color: var(--side-tx); }
.kpi.code .code-v { font-family: var(--mono); font-size: 26px; font-weight: 800; letter-spacing: .06em; overflow-wrap: anywhere; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }

.bd { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--line2); color: var(--tx2); }
.bd-trial { background: var(--m-soft); color: var(--m-dark); }
.bd-expired, .bd-warn, .bd-pending, .bd-requested { background: var(--warn-soft); color: var(--warn-dark); }
.bd-active, .bd-ok, .bd-paid, .bd-transferred { background: var(--ok-soft); color: var(--ok-dark); }
.bd-clock, .bd-err, .bd-rejected { background: var(--err-soft); color: var(--err); }
.bd-approved { background: var(--m-soft); color: var(--m); }
.bd-blocked, .bd-grey, .bd-expired-inv { background: var(--line2); color: var(--tx2); }
.bd-exp { background: var(--err-soft); color: var(--err); }
.bd-solid { background: var(--m); color: #fff; }

.btn { height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--in-line); background: #fff; color: var(--tx); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #B9C1CE; }
.btn-pri { background: var(--m); border-color: var(--m); color: #fff; font-weight: 700; }
.btn-pri:hover { background: var(--m-dark); border-color: var(--m-dark); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 700; }
.btn-out { color: var(--m); }
.btn-danger { color: var(--err); border-color: var(--err-line); }
.btn-ghost-light { background: transparent; border-color: #A33A3A; color: #fff; }
.btn-white-ok { background: #fff; border-color: #fff; color: var(--ok); font-weight: 700; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 50px; font-size: 15px; border-radius: 12px; font-weight: 700; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* formulir */
.form { display: flex; flex-direction: column; gap: 12px; }
.lb { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--mut); min-width: 0; }
.in { height: 40px; border-radius: 8px; border: 1px solid var(--in-line); padding: 0 10px; font-size: 14px; color: var(--tx); background: #fff; width: 100%; min-width: 0; }
.in:focus, textarea:focus, select:focus { outline: 2px solid var(--m); outline-offset: -1px; border-color: var(--m); }
textarea.in { height: auto; padding: 8px 10px; resize: vertical; font-size: 13px; line-height: 1.45; }
.in.b { font-weight: 700; }
.in[disabled], .in[readonly] { background: var(--bg); color: var(--mut); }
.in.bad { border-color: var(--err); }
.ferr { color: var(--err); font-size: 12px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.op { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--tx2); line-height: 1.4; }
.op input { width: 18px; height: 18px; accent-color: var(--m); flex-shrink: 0; margin: 0; }
.row { display: flex; gap: 8px; align-items: center; min-width: 0; }
.row > .in { flex-grow: 1; }
.row > svg { flex-shrink: 0; }
.sg { display: inline-flex; border: 1px solid var(--in-line); border-radius: 8px; overflow: hidden; height: 40px; flex-shrink: 0; }
.sg label { display: flex; }
.sg input { position: absolute; opacity: 0; pointer-events: none; }
.sg span { display: flex; align-items: center; padding: 0 12px; font-size: 13px; background: #fff; color: var(--tx2); cursor: pointer; }
.sg input:checked + span { background: var(--m); color: #fff; font-weight: 700; }
.sg input:focus-visible + span { outline: 2px solid var(--m); outline-offset: -3px; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.choice label { display: flex; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { flex-grow: 1; height: 44px; border-radius: 10px; border: 1px solid var(--in-line); background: #fff; color: var(--tx2); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.choice input:checked + span { border: 2px solid var(--m); background: var(--m-soft); color: var(--m); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--m); }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--in-line); font-size: 13px; cursor: pointer; min-width: 0; }
.radio-card input { width: 18px; height: 18px; accent-color: var(--m); margin: 0; flex-shrink: 0; }
.radio-card:has(input:checked) { border: 2px solid var(--m); background: var(--m-soft); }
.radio-card .col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radio-card b { font-size: 14px; }
.sv { align-self: flex-start; }
.search { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--in-line); border-radius: 8px; background: #fff; color: var(--mut); min-width: 0; }
.search input { border: 0; outline: none; font-size: 13px; flex-grow: 1; min-width: 0; background: transparent; }
.search:focus-within { border-color: var(--m); }
.sel { height: 36px; border-radius: 8px; border: 1px solid var(--in-line); background: #fff; font-size: 13px; padding: 0 8px; max-width: 100%; }

/* pesan */
.flash { border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.flash-ok { background: var(--ok-soft); color: var(--ok-dark); border: 1px solid var(--ok-line); }
.flash-err { background: var(--err-soft); color: var(--err-dark); border: 1px solid var(--err-line); }
.flash-info { background: var(--m-soft); color: var(--m-text); }

/* chip filter */
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--in-line); background: #fff; color: var(--tx2); font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; }
.pill.on { background: var(--m); border-color: var(--m); color: #fff; font-weight: 600; }

/* tabel → kartu di HP */
.tbl { display: flex; flex-direction: column; min-width: 0; }
.th, .tr { display: grid; gap: 8px; align-items: center; padding: 0 16px; }
.th { height: 38px; background: var(--th); font-size: 11px; font-weight: 700; color: var(--mut); letter-spacing: .03em; text-transform: uppercase; }
.tr { min-height: 50px; padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--tx); text-decoration: none; }
a.tr:hover { background: #FCFAFA; }
.tr.is-sel { background: var(--m-soft); }
.tr.warnrow { background: #FFF7F6; }
.tr > * { min-width: 0; overflow-wrap: anywhere; }
.tr .stack { display: flex; flex-direction: column; min-width: 0; }
.tr .stack b { font-weight: 600; }
.tr .stack small { color: var(--mut); }
.tr .bd { justify-self: start; }
.t-dev { grid-template-columns: 140px minmax(0, 1fr) 120px 150px; }
.rel-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.t-rel { grid-template-columns: 130px 140px minmax(0, 1fr) 110px 80px; }
.t-pay { grid-template-columns: 150px minmax(0, 1fr) 100px 110px 110px 120px 64px; }
.t-aff { grid-template-columns: minmax(0, 1fr) 110px 70px 100px 100px 80px; }
.t-use { grid-template-columns: minmax(0, 1fr) 140px 110px 150px; }
.t-use-admin { grid-template-columns: minmax(0, 1fr) 110px 130px 110px; }
.t-payout { grid-template-columns: 130px 120px minmax(0, 1fr) 170px; }

/* persetujuan lisensi (aktivasi manual) */
.nb { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; margin-left: 6px; flex-shrink: 0; }
.side-nav a.on .nb { background: #DC2626; color: #fff; }
.has-dot { position: relative; }
.ndot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 999px; background: #F87171; border: 2px solid var(--m); }
.t-mnl { grid-template-columns: 138px minmax(0, 1.1fr) minmax(0, 1fr) 150px 96px 64px 216px; align-items: start; }
.t-mnl.th { align-items: center; }
.tr.mmrow { background: #FFFBF3; }
.mm { background: var(--warn-soft); border-radius: 8px; padding: 4px 8px; }
.mm small { color: var(--warn-dark) !important; }
.mnl-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--bg); }
.mnl-proof a { display: inline-block; cursor: zoom-in; }
.mnl-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.mnl-act .inline-form { display: inline-flex; }
.mnl-rj { width: auto; }
.mnl-rj[open] { width: 100%; }
.mnl-rj summary { list-style: none; display: inline-flex; }
.mnl-rj summary::-webkit-details-marker { display: none; }
.mnl-rj[open] summary { margin-bottom: 8px; }
.mnl-rj .form { gap: 8px; }
.acc-set { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 0; min-width: 0; }
.acc-set legend { font-size: 12px; font-weight: 700; color: var(--tx2); padding: 0 4px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(17, 24, 39, .82); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .4); }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #fff; color: var(--tx); font-size: 22px; font-weight: 700; cursor: pointer; }

/* grafik batang */
.chart { height: 190px; display: flex; align-items: flex-end; gap: 8px; padding: 0 16px 6px; }
.chart .day { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; gap: 2px; height: 170px; }
.chart .bar { flex: 1 1 0; min-width: 2px; border-radius: 3px 3px 0 0; background: var(--m-line); }
.chart .bar.p { background: var(--m); }
.chart-x { display: flex; justify-content: space-between; padding: 0 16px 12px; font-size: 11px; color: var(--mut); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--m-line); display: inline-block; }
.legend i.p { background: var(--m); }

/* tata letak */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.two-340 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.two-eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stackc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line2); }
.kv:first-child { border-top: 0; }
.kv > span:first-child { color: var(--mut); flex-shrink: 0; }
.kv > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions .g2 form, .actions .g2 .btn, .actions form .btn { width: 100%; }
.detail-close { display: none; }
.steps { display: flex; align-items: center; gap: 6px; }
.steps .dt { width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; background: var(--line2); color: var(--mut); }
.steps .dt.on { background: var(--ok); color: #fff; }
.steps .dt.x { background: var(--err); color: #fff; }
.steps .ln { flex-grow: 1; height: 2px; background: var(--line2); }
.steps .ln.on { background: var(--ok); }
.steps-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); }
.big-code { font-family: var(--mono); font-size: 34px; font-weight: 800; letter-spacing: .08em; color: var(--m); overflow-wrap: anywhere; text-align: center; }
.amount-in { height: 52px; border-radius: 10px; border: 2px solid var(--m); padding: 0 12px; font-size: 22px; font-weight: 800; width: 100%; }
.code-in { height: 52px; border-radius: 10px; border: 2px solid var(--in-line); padding: 0 12px; font-family: var(--mono); font-size: 20px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; width: 100%; }
.code-in.good { border-color: var(--ok); }
.code-in.bad { border-color: var(--err); }
.avail { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-height: 20px; }
.avail.good { color: var(--ok); }
.avail.bad { color: var(--err); }
.pay-hero { display: none; }
.proof img { max-height: 320px; border-radius: 8px; border: 1px solid var(--line); }

/* ------------------------------------------------ halaman login / daftar */
.auth { display: flex; min-height: 100vh; }
.auth-hero { width: 560px; flex-shrink: 0; background: var(--m); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; color: #F6D9D9; font-size: 14px; text-decoration: none; }
.auth-copy { display: flex; flex-direction: column; gap: 12px; }
.auth-h { font-size: 36px; font-weight: 800; line-height: 1.15; }
.auth-sub { font-size: 16px; color: #F6D9D9; line-height: 1.5; }
.auth-sub b { color: #fff; }
.auth-pts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #fff; }
.auth-pts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.auth-pts li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.promo-txt { white-space: pre-line; font-size: 13px; line-height: 1.5; background: var(--bg, #F6F7F9); border: 1px solid var(--line2, #E5E7EB); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.auth-domain { font-size: 13px; color: var(--side-tx); }
.auth-body { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 32px 24px; min-width: 0; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-wide .auth-card { max-width: 560px; }
.auth-card .in { height: 46px; border-radius: 10px; font-size: 15px; }
.auth-card .t { font-size: 22px; font-weight: 800; }
.auth-card .sc { font-size: 12px; font-weight: 700; color: var(--mut); letter-spacing: .04em; padding-top: 6px; text-transform: uppercase; }
.auth-foot { border-top: 1px solid var(--line2); padding-top: 14px; font-size: 14px; text-align: center; }
.otp { display: flex; justify-content: space-between; gap: 6px; }
.otp input { width: 46px; height: 56px; border-radius: 10px; border: 1px solid var(--in-line); background: #fff; text-align: center; font-size: 22px; font-weight: 800; min-width: 0; flex: 1 1 0; max-width: 56px; padding: 0; }
.otp input:focus { border: 2px solid var(--m); outline: none; }
.otp-single { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 800; }
.okcircle { width: 56px; height: 56px; border-radius: 999px; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; align-self: center; }
.stepn { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.stepn .n { width: 26px; height: 26px; border-radius: 999px; background: var(--m-soft); color: var(--m); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.coupon-box { background: #fff; border: 2px dashed var(--m); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ------------------------------------------------ responsif */
@media (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.aff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.aff .kpi.code { grid-column: 1 / -1; }
  .two, .two-340 { grid-template-columns: minmax(0, 1fr) 320px; }
  .t-pay { grid-template-columns: 140px minmax(0, 1fr) 90px 90px 100px 110px 60px; }
}
@media (max-width: 1279px) {
  .tbl-mnl .th { display: none; }
  .tbl-mnl .tr { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; align-items: flex-start; }
  .tbl-mnl .tr > * { flex: 0 1 auto; }
  .tbl-mnl .tr > .stack:first-child { flex: 1 1 100%; order: -2; flex-direction: row; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .tbl-mnl .tr > .c-main { flex: 1 1 100%; order: -1; }
  .tbl-mnl .tr [data-label]::before { content: attr(data-label); display: block; color: var(--mut); font-weight: 400; font-size: 11px; }
  .tbl-mnl .tr > .mnl-act, .tbl-mnl .tr > .stack:last-child { flex: 1 1 100%; order: 1; }
}
@media (max-width: 1100px) {
  .auth-hero { width: 42%; padding: 40px; }
  .auth-h { font-size: 28px; }
  .two, .two-340 { grid-template-columns: minmax(0, 1fr); }
  .cat-layout.has-sel .cat-side { order: -1; } /* HP: panel edit di atas daftar */
  .detail-first { order: -1; }
  .detail-close { display: inline-flex; }
}
@media (max-width: 1023px) {
  .side { display: none; }
  .mhead { display: block; position: sticky; top: 0; z-index: 20; }
  .main { padding: 14px 16px 28px; gap: 12px; }
  .page-head h1 { font-size: 19px; }
  .two-eq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .kpis, .kpis.k4, .kpis.aff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 10px 12px; gap: 2px; }
  .kpi b, .kpi .v { font-size: 19px; }
  .kpi.code { grid-column: 1 / -1; }
  .th { display: none; }
  .tr { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; }
  .tr > * { flex: 0 1 auto; }
  .tr > .stack, .tr > .c-main { flex: 1 1 100%; order: -1; }
  .tbl-mnl .tr > .stack:not(:first-child):not(.c-main):not(:last-child) { flex: 1 1 40%; order: 0; }
  .tr [data-label]::before { content: attr(data-label) ": "; color: var(--mut); font-weight: 400; font-size: 12px; }
  .tr .c-act { margin-left: auto; }
  .chart { gap: 3px; padding: 0 10px 6px; height: 150px; }
  .chart .day { height: 130px; gap: 1px; }
  .chart-x { padding: 0 10px 10px; }
  .page-head .tools { width: 100%; }
  .page-head .tools .search { flex: 1 1 100%; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .auth { flex-direction: column; }
  .auth-hero { width: auto; padding: 20px 20px 56px; gap: 10px; justify-content: flex-start; }
  .logo-plate { border-radius: 14px; padding: 4px; }
  .logo-plate img { width: 84px; height: 84px; }
  .auth-h { font-size: 22px; }
  .auth-sub { font-size: 14px; }
  .auth-pts { font-size: 13px; gap: 5px; margin-top: 2px; }
  .auth-pts li::before { flex-basis: 18px; height: 18px; font-size: 11px; }
  .auth-domain { display: none; }
  .auth-body { padding: 0 16px 24px; margin-top: -40px; align-items: flex-start; }
  .auth-card { padding: 18px; border-radius: 16px; box-shadow: 0 4px 16px rgba(80, 0, 0, .08); }
  .pay-hero { display: flex; }
  .rw { flex-wrap: wrap; row-gap: 6px; }
  .rw .inline-form { margin-left: auto; }
  .hide-m { display: none !important; }
}
@media (max-width: 380px) {
  .g2.st { grid-template-columns: minmax(0, 1fr); }
  .kpi b, .kpi .v { font-size: 17px; }
  .otp input { height: 50px; font-size: 20px; }
  .big-code { font-size: 28px; }
}
@media (min-width: 768px) { .show-m { display: none !important; } }

/* ------------------------------------------------ kredensial, promo, kunci publik (Harga & Pengaturan) */
.cred-st { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; min-height: 30px; }
.cred-ok { color: var(--ok-dark); font-weight: 600; overflow-wrap: anywhere; }
.cred-ch summary { cursor: pointer; color: var(--m); font-weight: 700; font-size: 13px; width: max-content; list-style: none; padding: 2px 0; }
.cred-ch summary::-webkit-details-marker { display: none; }
.cred-ch summary::before { content: '✎ '; }
.cred-ch[open] summary { margin-bottom: 6px; }
.cred-ch small { display: block; margin-top: 4px; }
.acc-set legend { font-size: 13px; font-weight: 700; color: var(--tx2); padding: 0 4px; }
.acc-set > .lb, .acc-set > .g2, .acc-set > .qris-up { margin-top: 10px; }
.qris-up { display: flex; flex-direction: column; gap: 6px; border: 1px dashed var(--m-line); background: var(--m-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.qris-row { flex-wrap: wrap; }
.qris-row > * { flex: 1 1 180px; }
.qris-row > .btn { flex: 0 0 auto; }
.in-file { font-size: 13px; min-width: 0; max-width: 100%; }
.nowrap-row { flex-wrap: nowrap; }
.pubkey { height: auto; min-height: 92px; padding: 8px 10px; font-size: 12px; line-height: 1.45; resize: vertical; word-break: break-all; overflow-wrap: anywhere; color: var(--tx); }
.steps-ol { margin: 0; padding-left: 20px; font-size: 13px; color: var(--tx2); line-height: 1.6; }
.steps-ol b { overflow-wrap: anywhere; }
.promo-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; background: var(--card); border: 2px solid var(--m); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.promo-bar a { font-weight: 700; }
.promo-bar s { color: var(--mut); }

/* status upload QRIS & pesan flash tetap terlihat saat halaman melompat ke bagian tertentu */
.qris-status{font-size:13px;margin-top:8px;line-height:1.5;word-break:break-word}
.qris-status.busy{color:#92400E}
.qris-status.ok{color:#15803D;font-weight:600}
.qris-status.err{color:#B42318;font-weight:600}
.flash{position:sticky;top:8px;z-index:20;box-shadow:0 4px 14px rgba(0,0,0,.08)}

/* ------------------------------------------------ Komerce Payment (Payment Gateway & Log Komerce) */
.gw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.k-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; margin-top: 10px; }
.acc-set > .k-info, .acc-set > .k-methods, .acc-set > .k-warn, .acc-set > .note { margin-top: 10px; }
.k-url { display: block; margin-top: 4px; font-size: 11px; overflow-wrap: anywhere; }
.k-methods { display: flex; flex-direction: column; gap: 6px; font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.chips-k { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-k { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }
.chip-k small { color: var(--mut); }
.k-warn { font-size: 13px; line-height: 1.45; }
.klog { border-top: 1px solid var(--line2); padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; }
.klog-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.klog-p { font-size: 12px; overflow-wrap: anywhere; min-width: 0; }
.klog-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--tx2); background: var(--bg); border-radius: 8px; padding: 6px 8px; }
.klog-d summary { cursor: pointer; color: var(--m); font-weight: 700; font-size: 13px; padding: 2px 0; }
.klog-d .row { margin-top: 6px; flex-wrap: wrap; }
pre.raw { margin: 6px 0 0; max-height: 360px; overflow: auto; background: #1F1A1A; color: #F3EDED; border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; max-width: 100%; }
.actions .g2 { grid-template-columns: minmax(0, 1fr); }
.kv .stack { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.kv .stack small { color: var(--mut); }
.same-box { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line, #e5e7eb); }
.same-hp { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line, #e5e7eb); }
.same-hp .stack { display: flex; flex-direction: column; min-width: 0; }
.same-hp small { color: var(--mut); overflow-wrap: anywhere; }
.same-hp .inline-form, .same-hp .btn { width: 100%; }
/* Katalog Produk */
.t-cat { grid-template-columns: 22px 52px 70px minmax(0, 1fr) 104px 88px 138px; align-items: center; }
.tr.t-cat[data-href] { cursor: pointer; }
.tr.t-cat[data-href]:hover { background: #FCFAFA; }
.tr.t-cat.is-sel:hover { background: var(--m-soft); }
.t-cat input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--m, #800000); margin: 0; }
.cat-th { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line2); display: block; }
.cat-th.nophoto { display: grid; place-items: center; background: #FFF7ED; border: 1px dashed #F3C98B; color: #B45309; }
.cat-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.cat-bar .pills { flex: 1 1 auto; min-width: 0; }
.cat-sort select { height: 36px; padding: 0 10px; width: auto; }
.cat-photo { display: flex; flex-direction: column; gap: 8px; }
.cat-photo.drag .cat-photo-prev { outline: 3px dashed var(--m); outline-offset: 2px; }
.cat-photo-prev { width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line2); background: #fff; display: grid; place-items: center; overflow: hidden; align-self: center; }
.cat-photo-prev img { width: 100%; height: 100%; object-fit: contain; }
.cat-photo-prev.empty { background: #FFFBF5; border: 2px dashed #F3C98B; }
.cat-photo-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #B45309; text-align: center; padding: 12px; }
.cat-photo-ph small { color: var(--mut); font-size: 12px; }
.crop { display: flex; flex-direction: column; gap: 8px; background: var(--bg, #F6F7F9); border: 1px solid var(--line2); border-radius: 14px; padding: 10px; }
.crop-box { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; align-self: center; border-radius: 10px; overflow: hidden; background: #fff; touch-action: none; cursor: grab; box-shadow: 0 0 0 2px var(--m); }
.crop-box:active { cursor: grabbing; }
.crop-box canvas { width: 100%; height: 100%; display: block; }
.crop-box::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(128,0,0,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(128,0,0,.25) 1px, transparent 1px);
  background-size: 33.333% 33.333%; background-position: -1px -1px; }
.crop input[type=range] { width: 100%; accent-color: var(--m); }
a.kpi:hover { border-color: var(--m); }
.cat-edit { scroll-margin-top: 80px; }
.cat-img { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-img img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #F1E6E6; }
@media (max-width: 900px) {
  .t-cat { grid-template-columns: 22px 48px minmax(0, 1fr) 96px; }
  .t-cat > :nth-child(3), .t-cat > :nth-child(5), .t-cat > :nth-child(7) { display: none; }
  .tr.t-cat { display: grid; gap: 8px 10px; padding: 8px 14px; }
  .tr.t-cat > * { order: 0; }
}
@media (max-width: 760px) {
  .t-rel { grid-template-columns: 90px 110px minmax(0, 1fr); }
  .t-rel > :nth-child(4), .t-rel > :nth-child(5) { display: none; }
  .tr.t-rel { display: grid; }
  .kpis.k3 { grid-template-columns: 1fr !important; }
  .rel-g { grid-template-columns: 1fr; }
}
