/* Hikari Fusion Commerce — gaya bersama (form publik + admin). Brand: merah #D40511, hitam #15151E. */
:root {
  --paper: #F6F5F8; --surface: #FFFFFF; --surface-2: #F1EFF4;
  --ink: #15151E; --ink-2: #484957; --muted: #74768A;
  --line: #E3E1E8; --line-2: #D2CFD9;
  --red: #D40511; --red-ink: #B80410; --red-soft: #FDEBED; --red-line: #F4B9BE;
  --ok: #15803D; --ok-soft: #E6F6EC; --warn: #B45309; --warn-soft: #FEF3E2;
  --band: #15151E; --band-ink: #FFFFFF; --band-muted: #A9ABB8; --focus: #D40511;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111118; --surface: #1B1B25; --surface-2: #23232F; --ink: #F3F3F6; --ink-2: #C5C7D1;
    --muted: #8D90A0; --line: #2D2D3B; --line-2: #3A3A4A; --red: #EF4444; --red-ink: #FF6B72;
    --red-soft: rgba(239,68,68,.13); --red-line: rgba(239,68,68,.45); --ok: #4ADE80; --ok-soft: rgba(34,197,94,.13);
    --warn: #FBBF24; --warn-soft: rgba(245,158,11,.13); --band: #0B0B10; --focus: #FF6B72;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--red-ink); }
.wrap { max-width: 780px; margin: 0 auto; padding-inline: 20px; }
.wrap.wide { max-width: 1180px; }
[hidden] { display: none !important; }

/* ---------- brand band ---------- */
.band { background: var(--band); color: var(--band-ink); border-top: 4px solid var(--red); }
.band .wrap { padding-block: 28px 30px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .wm { line-height: 1; }
.brand .wm b { display: block; font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.brand .wm span { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .5em; color: #FF6B72; }
.band h1 { margin: 26px 0 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.band h1 em { font-style: normal; color: #FF6B72; }
.band p { margin: 12px 0 0; color: var(--band-muted); max-width: 60ch; }
.meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; border: 1px solid #34343F; color: #D6D7DE; }
.meta span.hl { border-color: #FF6B72; color: #FF8A8F; }

/* ---------- sticky progress ---------- */
.bar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.prog { flex: 1; display: flex; align-items: center; gap: 10px; }
.prog .track { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.prog .fill { height: 100%; width: 0; background: var(--red); border-radius: 99px; transition: width .3s ease; }
.prog .pct { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- form ---------- */
form.lead { padding-block: 8px 64px; }
.alert { margin-top: 24px; padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.alert.err { background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-ink); }
.alert.ok { background: var(--ok-soft); border: 1px solid var(--ok); color: var(--ok); }
.sec { margin-top: 40px; }
.sec-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.sec-h .no { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--red); letter-spacing: .06em; }
.sec-h h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sec-h .hint { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sec-lead { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; max-width: 65ch; }
.q { margin-top: 24px; }
.q > label, .q > .ql { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.q .sub { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.req::after { content: ' *'; color: var(--red); }
.ferr { display: block; margin-top: 8px; color: var(--red-ink); font-size: 14px; font-weight: 600; }
.q.has-err input[type=text], .q.has-err input[type=tel], .q.has-err input[type=email], .q.has-err select { border-color: var(--red); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: 500 15px var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.opt span::before { content: ''; width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); }
.opt input[type=radio] + span::before { border-radius: 99px; }
.opt input:checked + span { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.opt input:checked + span::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2.5px var(--surface); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.opt input:disabled + span { opacity: .45; cursor: not-allowed; }
.opts.stack { flex-direction: column; align-items: stretch; }
.opts.stack .opt span { width: 100%; }
.counter { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend b { color: var(--ink-2); }
.mods { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.mod { display: flex; align-items: center; gap: 12px 16px; padding: 12px 16px; flex-wrap: wrap; }
.mod + .mod { border-top: 1px solid var(--line); }
.mod .mn { flex: 1 1 260px; min-width: 0; }
.mod .mn b { display: block; font-size: 15px; font-weight: 700; }
.mod .mn small { display: block; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: var(--surface); }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg input:checked + span { color: #fff; }
.seg input[value=wajib]:checked + span { background: var(--red); }
.seg input[value=penting]:checked + span { background: #B45309; }
.seg input[value=nanti]:checked + span { background: #4B5563; }
.seg input[value=tidak]:checked + span { background: var(--line-2); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--muted); }
.consent { margin-top: 28px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: 0 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { font: 800 16px var(--sans); color: #fff; background: var(--red); border: 0; border-radius: 12px; padding: 15px 24px; cursor: pointer; box-shadow: 0 8px 20px rgba(212,5,17,.25); text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.sm { font-size: 14px; padding: 9px 16px; border-radius: 10px; box-shadow: none; }
.ghost { font: 600 14px var(--sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.ghost:hover { border-color: var(--ink-2); }
.err-text { color: var(--red-ink); font-size: 14px; font-weight: 600; }

/* ---------- thanks / error ---------- */
.center-card { max-width: 560px; margin: 48px auto; padding: 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.center-card h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.center-card p { color: var(--ink-2); }
.code-pill { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); border: 1px solid var(--red-line); }
.site-foot { padding-block: 28px 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- admin ---------- */
.topbar { background: var(--band); color: var(--band-ink); border-top: 3px solid var(--red); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.topbar .brand img { height: 28px; }
.topbar nav { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.topbar nav a, .topbar nav button { color: #D6D7DE; font: 600 14px var(--sans); background: none; border: 1px solid #34343F; border-radius: 8px; padding: 7px 12px; text-decoration: none; cursor: pointer; }
.topbar nav a:hover, .topbar nav button:hover { border-color: #FF6B72; color: #fff; }
.page-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.page-h h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.page-h .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); padding: 6px 12px; border-radius: 999px; }
.tabs a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs a .n { font-family: var(--mono); color: var(--muted); margin-left: 4px; }
.tabs a.on .n { color: var(--paper); opacity: .7; }
.filters { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list small { display: block; color: var(--muted); }
.tier { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tier::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.tier.HOT { background: var(--red-soft); color: var(--red-ink); border: 1px solid var(--red-line); }
.tier.WARM { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.tier.COLD { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.st.NEW { background: var(--red-soft); color: var(--red-ink); border-color: var(--red-line); }
.st.WON { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.nf { font-size: 12px; font-weight: 700; }
.nf.SENT { color: var(--ok); } .nf.FAILED { color: var(--red-ink); } .nf.PENDING { color: var(--warn); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.pager { margin-top: 14px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.cols { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin: 0; padding: 12px 16px; font-size: 14px; font-weight: 800; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.panel .body { padding: 14px 16px; }
dl.kv { margin: 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; }
dl.kv dt, dl.kv dd { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 14px; }
dl.kv dt { color: var(--muted); font-weight: 600; }
dl.kv dd { font-weight: 600; white-space: pre-wrap; word-break: break-word; }
dl.kv > :nth-child(1), dl.kv > :nth-child(2) { border-top: 0; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { border-top: 0; padding-top: 0; } }
table.mx { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mx td { padding: 8px 16px; border-top: 1px solid var(--line); }
table.mx tr:first-child td { border-top: 0; }
table.mx td:last-child { text-align: right; }
.lv { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #fff; }
.lv.wajib { background: var(--red); } .lv.penting { background: #B45309; } .lv.nanti { background: #4B5563; } .lv.tidak { background: var(--line-2); color: var(--ink); } .lv.none { background: none; color: var(--muted); }
.breakdown { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
pre.wa { margin: 0; padding: 14px 16px; background: var(--paper); font: 500 12.5px/1.5 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.stack-form label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.login-card { max-width: 400px; margin: 64px auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.login-card h1 { margin: 0 0 18px; font-size: 22px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
