/* Buyer and account pages in the app's dark theme (4 Des 2026, Riski: "selaraskan semuanya dengan tema di apps"):
   /masuk, /profil, /pay/<slug>, /pay/o/<order>, /pay/done/<order>, /akun, /bantuan. PayShell is dark by default now
   (body.kp-dark); creator-signin-dark.css carries the tokens, cards, sign-in fields and buttons, this file turns the
   rest of pay.css, akun-wa.css and bantuan.css dark: white boxes, ink buttons, hard black shadows, cream notes.
   Same values as the app (apps/kolabaja/src/lib/theme.ts) and the creator portal. Linked in <body> after
   creator-signin-dark.css, so plain selectors win over the head stylesheets. */
body.kp-dark {
  --line-2: rgba(255, 255, 255, 0.14);
  --paper: #f4f4f6;
  --field: #111114;
}
body.kp-dark ::selection { background: #f0465e; color: #fff; }
body.kp-dark .kp-secure { color: #a0a0ab; }
body.kp-dark .kp-secure svg { stroke: #4bdb91; }

/* ---------- pay.css: checkout, order, done, akun ---------- */
body.kp-dark .kp-card { border-radius: 24px !important; }
body.kp-dark .kp-peek { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.6)); }
body.kp-dark .kp-test { background: rgba(245, 195, 91, 0.14); color: #f5c35b; }
body.kp-dark .kp-note,
body.kp-dark .kp-materials .kp-muted { background: #1c1c21; color: #a0a0ab; }
body.kp-dark :is(.kp-buyer, .kp-va-row, .kp-materials a, .kp-auto, .kp-ticket, .kp-bubble, .kp-connect li) { background: #1c1c21; border-color: rgba(255, 255, 255, 0.08); color: #f4f4f6; }
body.kp-dark .kp-bubble::before { background: #1c1c21; border-color: rgba(255, 255, 255, 0.08); }
body.kp-dark .kp-materials a:hover { border-color: rgba(240, 70, 94, 0.55); }
body.kp-dark :is(.kp-fields label, .kp-ref) { color: #d9d9de; }
body.kp-dark :is(.kp-fields input, .kp-ref input) { background: #111114; color: #f4f4f6; border-color: rgba(255, 255, 255, 0.14); }
body.kp-dark :is(.kp-fields input, .kp-ref input)::placeholder { color: #6e6e78; }
body.kp-dark :is(.kp-fields input, .kp-ref input):focus { border-color: #f0465e; box-shadow: 0 0 0 3px rgba(240, 70, 94, 0.2); }
body.kp-dark .kp-ref input { border-color: rgba(240, 70, 94, 0.6); }
body.kp-dark .kp-opt { background: #1c1c21; border-color: rgba(255, 255, 255, 0.1); color: #f4f4f6; }
body.kp-dark .kp-opt:hover { border-color: rgba(255, 255, 255, 0.22); }
body.kp-dark .kp-opt-ic { background: #26262c; }
body.kp-dark .kp-opt-main { background: #f0465e; border-color: #f0465e; color: #fff; box-shadow: 0 14px 28px -18px rgba(240, 70, 94, 0.9); }
body.kp-dark .kp-opt-main .kp-opt-ic { background: rgba(255, 255, 255, 0.18); }
body.kp-dark .kp-opt-main .kp-opt-txt small { color: rgba(255, 255, 255, 0.82); }
body.kp-dark .kp-badge { background: #fff; color: #d63650; }
body.kp-dark .kp-bank { background: #1c1c21; border-color: rgba(255, 255, 255, 0.1); color: #f4f4f6; }
body.kp-dark .kp-btn { background: #f0465e; color: #fff; box-shadow: 0 12px 24px -14px rgba(240, 70, 94, 0.9); }
body.kp-dark .kp-btn:hover { background: #d63650; }
body.kp-dark .kp-btn-soft { background: #1c1c21; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: none; }
body.kp-dark .kp-btn-soft:hover { background: #26262c; }
body.kp-dark .kp-copy { background: #f4f4f6; color: #08080a; }
body.kp-dark .kp-copy:hover { background: #fff; }
/* the QR stays on white so every banking app can scan it */
body.kp-dark .kp-qr-frame { background: #fff; color: #111114; border-color: #f0465e; box-shadow: 0 18px 36px -24px rgba(240, 70, 94, 0.7); }
body.kp-dark .kp-ticket-stub { background: #f0465e; color: #fff; }
body.kp-dark .kp-ticket-stub::before { border-left-color: rgba(255, 255, 255, 0.45); }
body.kp-dark :is(.kp-offer-strip, .kp-resume) { background: rgba(240, 70, 94, 0.1); color: #f4f4f6; }
body.kp-dark .kp-resume-go { background: #f0465e; color: #fff; }
body.kp-dark .kp-modal { background: rgba(0, 0, 0, 0.66); }
body.kp-dark .kp-modal-card { box-shadow: 0 30px 60px -20px #000; border: 1px solid rgba(255, 255, 255, 0.08); }
body.kp-dark .kp-modal-x { background: #1c1c21; color: #fff; }
body.kp-dark .kp-stamp { color: #fff; border-color: #fff; background: #f0465e; }
body.kp-dark .kp-ok { background: rgba(75, 219, 145, 0.12); color: #b9f3d3; }
body.kp-dark .kp-avatar { color: #fff; }

/* ---------- akun-wa.css: /masuk steps, /profil ---------- */
body.kp-dark .kw-card :is(h2, h3) { color: #fff; }
body.kp-dark .kw-step { color: #a0a0ab; }
body.kp-dark .kw-btn-soft { background: #1c1c21 !important; }
body.kp-dark .kw-btn-danger { background: transparent !important; color: #ff8a9b !important; border-color: rgba(240, 70, 94, 0.55) !important; }
body.kp-dark .kw-btn-danger:hover { background: rgba(240, 70, 94, 0.12) !important; }
body.kp-dark .kw-link { color: #a0a0ab; }
body.kp-dark .kw-link-go { color: #fff; }
body.kp-dark .kw-pill { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
body.kp-dark .kw-member-top .kw-pill { background: rgba(255, 255, 255, 0.06); }
body.kp-dark .kw-avatar { border: 0; box-shadow: 0 0 0 4px rgba(240, 70, 94, 0.18); color: #fff; }
body.kp-dark .kw-chip { background: #1c1c21; border-color: rgba(255, 255, 255, 0.16); color: #f4f4f6; }
body.kp-dark .kw-chip-ok { background: rgba(75, 219, 145, 0.12); border-color: rgba(75, 219, 145, 0.4); color: #4bdb91; }
body.kp-dark .kw-benefits li { background: #1c1c21; border-color: rgba(255, 255, 255, 0.08); }
body.kp-dark .kw-benefits li span:not(.kw-check) { color: #a0a0ab; }
body.kp-dark .kw-check { border-color: rgba(75, 219, 145, 0.5); background: rgba(75, 219, 145, 0.14); color: #4bdb91; }
body.kp-dark .is-off .kw-check { border-color: rgba(255, 255, 255, 0.2); background: #111114; color: #6e6e78; }
body.kp-dark .kw-schedule li { border-bottom-color: rgba(255, 255, 255, 0.08); }
/* wallet = the app's red points pocket */
body.kp-dark .kw-wallet-hero { background: linear-gradient(135deg, #e8435a, #f0465e); color: #fff; box-shadow: 0 16px 30px -22px rgba(240, 70, 94, 0.9); }
body.kp-dark .kw-ref { border-color: rgba(240, 70, 94, 0.6); }
body.kp-dark .kw-ref code { color: #fff; }
/* QR to scan keeps a white tile */
body.kp-dark .kw-qr-img { background: #fff; border: 0; }
body.kp-dark .kw-site { background: #1c1c21; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: none; }
body.kp-dark .kw-site:hover { border-color: rgba(240, 70, 94, 0.55); box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.9); }
body.kp-dark .kw-site-bar i { background: #3a3a42; }
body.kp-dark .kw-site-bar i:first-child { background: #f0465e; }
body.kp-dark .kw-struck { color: #6e6e78; }

/* ---------- bantuan.css: /bantuan and a ticket ---------- */
body.kp-dark :is(.bt-note, .bt-meta, .bt-who, .bt-wait) { color: #a0a0ab; }
body.kp-dark .bt-time { color: #8a8a95; }
body.kp-dark .bt-form label small { color: #a0a0ab; }
body.kp-dark .bt-flash.ok { background: rgba(75, 219, 145, 0.12); color: #b9f3d3; }
body.kp-dark .bt-flash.bad { background: rgba(240, 70, 94, 0.12); color: #ffc2cb; }
body.kp-dark .bt-tips .bt-ic { background: #1c1c21; border-color: rgba(255, 255, 255, 0.08); }
body.kp-dark .bt-chip[data-s='baru'] { color: #f5c35b; }
body.kp-dark .bt-chip[data-s='diproses'] { color: #7fb0ff; }
body.kp-dark .bt-chip[data-s='selesai'] { color: #4bdb91; }
body.kp-dark .bt-msg.me .bt-bubble { background: #f0465e; color: #fff; }
body.kp-dark .bt-msg.team .bt-bubble { background: #1c1c21; border-color: rgba(255, 255, 255, 0.1); color: #f4f4f6; }

/* ---------- UI kit fields (kb-ui.css): the kit's light gradients become the app's dark fields ---------- */
body.kp-dark.kb-ui :is(input, select, textarea):not([type='checkbox']):not([type='radio']):not([type='file']):not([data-kb-plain]) { background-color: #111114 !important; border-color: rgba(255, 255, 255, 0.12) !important; color: #f4f4f6 !important; }
body.kp-dark.kb-ui :is(input, select, textarea):not([type='checkbox']):not([type='radio']):not([type='file']):not([data-kb-plain]):hover { border-color: rgba(255, 255, 255, 0.22) !important; }
body.kp-dark.kb-ui :is(input, select, textarea):not([data-kb-plain]):focus { background-color: #141417 !important; border-color: #f0465e !important; }
body.kp-dark.kb-ui :is(input, select, textarea):not([type='checkbox']):not([type='radio']):not([data-kb-plain]):not(:focus) { box-shadow: none !important; }
body.kp-dark.kb-ui :is(input, textarea)::placeholder { color: #6e6e78 !important; }
body.kp-dark.kb-ui select:not([multiple]):not([size]):not([data-kb-plain]) { background-color: #111114 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0465e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), none !important; background-repeat: no-repeat !important; background-position: right 16px center !important; background-size: 18px 18px !important; padding-right: 44px !important; }
body.kp-dark.kb-ui select.ks-open:not([data-kb-plain]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0465e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"), none !important; }
body.kp-dark.kb-ui :is(input[type='checkbox'], input[type='radio']):not([data-kb-plain]):not(:checked) { background: #111114 !important; border-color: rgba(255, 255, 255, 0.25) !important; box-shadow: none !important; }
body.kp-dark.kb-ui input[type='file']:not([data-kb-plain]) { background: #111114 !important; color: #a0a0ab !important; border-color: rgba(255, 255, 255, 0.16) !important; }
body.kp-dark .kb-list { background: #1c1c21 !important; border-color: rgba(255, 255, 255, 0.12) !important; color: #f4f4f6 !important; box-shadow: 0 20px 40px -16px #000 !important; }
body.kp-dark .kb-list .kb-search { background: #1c1c21 !important; border-color: rgba(255, 255, 255, 0.08) !important; }
body.kp-dark .kb-list .kb-search input { background-color: #111114 !important; color: #f4f4f6 !important; border-color: rgba(255, 255, 255, 0.12) !important; }
body.kp-dark .kb-list [role='option'].ks-active,
body.kp-dark .kb-list [role='option'][aria-selected='true'] { background: rgba(240, 70, 94, 0.16) !important; color: #fff !important; }
/* creator sign-in (M1): the number field sits inside its own +62 frame, keep it see-through */
body.kp-dark.kb-ui.kp-split .cm-field input.kw-input { background: transparent !important; }
/* member card: the dark title bar runs edge to edge (the sign-in card padding must not apply here) */
body.kp-dark .kw-member { padding: 0 !important; overflow: hidden; }
body.kp-dark .kw-member-top { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
/* the kit's "Choose file" button and plain textareas/inputs without a background image */
body.kp-dark.kb-ui input[type='file']:not([data-kb-plain])::file-selector-button { background: #26262c; color: #fff; box-shadow: none; }
body.kp-dark.kb-ui input[type='file']:not([data-kb-plain]):hover::file-selector-button { background: #f0465e; }
body.kp-dark.kb-ui :is(input, textarea):not([type='checkbox']):not([type='radio']):not([type='file']):not([data-kb-plain]) { background-image: none !important; }
/* checkout notices */
body.kp-dark .kp-error { background: rgba(240, 70, 94, 0.12); color: #ffc2cb; }
/* help form: two equal columns, whatever the dropdown text */
@media (min-width: 560px) { body.kp-dark .bt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
body.kp-dark .bt-row > * { min-width: 0; }
body.kp-dark .bt-row :is(select, input) { width: 100%; }
