/* Buyer pages (kolabaja.com/pay, /akun): Kolabaja paper, ink and the mascot's red. Standalone, no site.css. */
:root {
  --bg: #ece6da;
  --panel: #fbf8f2;
  --panel-2: #f3eee4;
  --line: rgba(18, 17, 14, 0.1);
  --line-2: rgba(18, 17, 14, 0.18);
  --ink: #12110e;
  --muted: #5f594f;
  --dim: #7a7368;
  --red: #b52a2a;
  --red-hover: #c9332f;
  --red-press: #96211f;
  --red-soft: #f7e3df;
  --on-red: #fff4e1;
  --ok: #1a7f4b;
  --ok-soft: #dcf1e4;
  --font: 'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 28px;
  --r-sm: 16px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 48px -32px rgba(70, 40, 10, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kp {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, #f6f1e7 0%, rgba(246, 241, 231, 0) 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* frame */
.kp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 520px; width: 100%; margin: 0 auto; padding: 18px 16px 6px; }
.kp-logo img { display: block; height: 26px; width: auto; }
.kp-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px 5px 9px; }
.kp-secure svg { font-size: 14px; color: var(--ok); }
.kp-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 14px 16px 28px; }
.kp-legal { text-align: center; font-size: 12px; color: var(--dim); padding: 0 16px 28px; }
.kp-legal a { color: inherit; }

/* card */
.kp-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; box-shadow: var(--shadow); }
.kp-card + .kp-card { margin-top: 14px; }
.kp-card h1 { font-size: clamp(24px, 6.4vw, 30px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 6px 0 0; }
.kp-card h2 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 6px 0 4px; }
.kp-card h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.kp-muted { color: var(--muted); margin: 8px 0 0; }
.kp-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0; }
.kp-dot { width: 8px; height: 8px; border-radius: 50%; }
.kp-peek { position: absolute; top: -22px; right: 20px; width: 56px; height: 56px; transform: rotate(8deg); filter: drop-shadow(0 8px 12px rgba(120, 30, 20, 0.25)); }
.kp-test { font-size: 12.5px; font-weight: 600; background: #fdeccc; color: #8a5a00; border-radius: 10px; padding: 6px 10px; margin: 0 52px 14px 0; display: inline-block; }
.kp-empty { text-align: center; padding: 34px 22px 28px; }
.kp-empty .kp-btn { margin-top: 20px; }
.kp-mascot-lg { display: block; margin: 0 auto 10px; }
.kp-center { text-align: center; }

/* product */
.kp-product { padding-right: 48px; }
.kp-sub { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.kp-incl { color: var(--muted); margin: 10px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.kp-incl li + li { margin-top: 4px; }
.kp-price { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 0; font-variant-numeric: tabular-nums; line-height: 1; }
.kp-price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kp-note { font-size: 13.5px; color: var(--muted); background: var(--panel-2); border-radius: 12px; padding: 10px 12px; margin: 14px 0 0; }

/* buyer */
.kp-buyer { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.kp-buyer > div { display: grid; min-width: 0; flex: 1; }
.kp-buyer strong { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-buyer span:not(.kp-avatar) { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--red); color: var(--on-red); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; }
.kp-avatar-lg { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
.kp-link { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.kp-link:hover { color: var(--red); }

/* fields */
.kp-fields { display: grid; gap: 12px; margin-top: 22px; }
.kp-fields label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: #3a362f; }
.kp-fields input { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); min-width: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.kp-fields input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181, 42, 42, 0.14); }
.kp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* options */
.kp-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin: 24px 0 10px; }
.kp-options { display: grid; gap: 10px; }
.kp-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; transition: transform 0.12s, border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.kp-opt:hover { border-color: var(--ink); }
.kp-opt:active { transform: scale(0.985); }
.kp-opt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); font-size: 22px; flex: none; }
.kp-opt-txt { display: grid; flex: 1; min-width: 0; }
.kp-opt-txt strong { font-size: 16.5px; font-weight: 600; }
.kp-opt-txt small { font-size: 13px; color: var(--dim); line-height: 1.35; }
.kp-opt-main { background: var(--red); border-color: var(--red); color: var(--on-red); box-shadow: 0 14px 28px -18px rgba(150, 33, 31, 0.9); }
.kp-opt-main:hover { background: var(--red-hover); border-color: var(--red-hover); }
.kp-opt-main .kp-opt-ic { background: rgba(255, 244, 225, 0.16); }
.kp-opt-main .kp-opt-txt small { color: rgba(255, 244, 225, 0.78); }
.kp-badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; background: var(--on-red); color: var(--red); border-radius: 999px; padding: 4px 9px; flex: none; }
.kp-chev { font-size: 22px; color: var(--dim); transition: transform 0.2s; }
.kp-opt.open { border-color: var(--ink); }
.kp-opt.open .kp-chev { transform: rotate(180deg); }
.kp-banks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 0 2px; animation: kp-in 0.18s ease-out; }
.kp-bank { padding: 13px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s; }
.kp-bank:hover { border-color: var(--red); background: var(--red-soft); }
.kp-bank:active { transform: scale(0.97); }
@keyframes kp-in { from { opacity: 0; transform: translateY(-4px); } }

.is-busy .kp-opt, .is-busy .kp-bank { pointer-events: none; opacity: 0.55; }
.is-busy .is-loading { opacity: 1; position: relative; }
.is-loading .kp-opt-ic, .kp-bank.is-loading { color: transparent; }
.is-loading .kp-opt-ic::after, .kp-bank.is-loading::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: kp-spin 0.7s linear infinite; }
.is-loading .kp-opt-ic { position: relative; }
.is-loading .kp-opt-ic::after { color: var(--on-red); }
.kp-opt:not(.kp-opt-main).is-loading .kp-opt-ic::after { color: var(--ink); }
.kp-bank.is-loading::after { color: var(--red); left: calc(50% - 10px); top: calc(50% - 10px); }
.kp-bank.is-loading { position: relative; }
@keyframes kp-spin { to { transform: rotate(360deg); } }

.kp-error { font-size: 14px; font-weight: 500; color: var(--red-press); background: var(--red-soft); border-radius: 12px; padding: 9px 12px; margin: 14px 0 0; }
.kp-fine { font-size: 12.5px; color: var(--dim); margin: 16px 0 0; line-height: 1.5; }
.kp-fine a, .kp-fine .kp-link { color: inherit; font-size: inherit; }

/* buttons */
.kp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 999px; padding: 15px 18px; font-size: 16px; font-weight: 600; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; margin-top: 18px; transition: background 0.15s, transform 0.12s; }
.kp-btn:hover { background: var(--red); }
.kp-btn:active { transform: translateY(1px); }
.kp-btn-soft { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.kp-btn-soft:hover { background: #ebe4d6; }
.kp-btn + .kp-btn { margin-top: 10px; }

/* paying */
.kp-sum { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.kp-sum h1 { font-size: 20px; }
.kp-amount { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 20px 0 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kp-qr { display: grid; justify-items: center; gap: 12px; padding-top: 22px; }
.kp-qr-frame { position: relative; width: min(300px, 100%); padding: 18px 18px 14px; border-radius: 24px; background: #fff; border: 2px solid var(--red); box-shadow: 0 18px 36px -24px rgba(150, 33, 31, 0.7); }
.kp-qr-mascot { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); }
.kp-qr-code { aspect-ratio: 1; margin-top: 8px; }
.kp-qr-code svg { display: block; width: 100%; height: 100%; fill: initial; stroke: initial; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.kp-qr-tag { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.kp-qr-tag strong { color: var(--red); letter-spacing: 0.04em; }
.kp-qr .kp-btn { width: auto; margin-top: 4px; padding: 11px 20px; font-size: 14.5px; }
.kp-hint { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0; max-width: 34ch; }
.kp-va { padding-top: 22px; }
.kp-va .kp-label { margin-top: 0; }
.kp-va-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 14px 14px 16px; margin-bottom: 10px; }
.kp-va-num { font-family: inherit; font-size: clamp(17px, 5vw, 24px); font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.kp-va-amt { display: grid; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kp-va-amt small { font-size: 12px; font-weight: 500; color: var(--dim); }
.kp-va .kp-hint { text-align: left; max-width: none; margin-top: 6px; }
.kp-copy { border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 15px; cursor: pointer; flex: none; transition: background 0.15s; }
.kp-copy:hover { background: var(--red); }
.kp-copy.is-done { background: var(--ok); }
.kp-wait { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--red-soft); font-size: 13.5px; color: var(--red-press); }
.is-paid .kp-wait { background: var(--ok-soft); color: var(--ok); }
.kp-pulse { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; animation: kp-pulse 1.4s ease-in-out infinite; }
@keyframes kp-pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.kp-spinner { display: block; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--red-soft); border-top-color: var(--red); animation: kp-spin 0.9s linear infinite; }

/* done */
.kp-hero-ok { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kp-hero-ok img { flex: none; animation: kp-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.kp-hero-ok h1 { margin-top: 4px; }
.kp-badge-ok { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 3px 10px; margin: 0; }
@keyframes kp-pop { from { transform: scale(0.4) rotate(-12deg); opacity: 0; } }

/* ticket */
.kp-ticket { display: grid; grid-template-columns: 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.kp-ticket-main { padding: 18px 18px 16px; min-width: 0; }
.kp-ticket-main h3 { font-size: 18px; letter-spacing: -0.01em; text-transform: none; color: var(--ink); margin: 6px 0 12px; line-height: 1.25; }
.kp-meta { display: grid; gap: 8px; margin: 0; }
.kp-meta div { display: grid; gap: 1px; }
.kp-meta dt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.kp-meta dt svg { font-size: 13px; color: var(--red); }
.kp-meta dd { margin: 0; font-size: 14.5px; font-weight: 500; }
.kp-ticket-stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; min-width: 104px; padding: 16px 14px; background: var(--red); color: var(--on-red); text-align: center; }
.kp-ticket-stub::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; border-left: 2px dashed rgba(255, 244, 225, 0.45); }
.kp-ticket-stub::after { content: ''; position: absolute; left: -10px; top: -10px; width: 20px; height: calc(100% + 20px); background: radial-gradient(circle at 10px 10px, var(--panel) 9px, transparent 10px) top / 20px 100% no-repeat, radial-gradient(circle at 10px calc(100% - 10px), var(--panel) 9px, transparent 10px) bottom / 20px 100% no-repeat; }
.kp-stub-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.kp-seat { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kp-seat-sm { font-size: 20px; }
.kp-stub-of { font-size: 12px; opacity: 0.8; }
.kp-code { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; background: rgba(0, 0, 0, 0.18); border-radius: 6px; padding: 3px 6px; }

/* account */
.kp-hello { display: flex; align-items: center; gap: 14px; padding: 6px 4px 18px; }
.kp-hello h1 { font-size: 28px; letter-spacing: -0.025em; font-weight: 600; margin: 2px 0 0; line-height: 1.1; }
.kp-hello .kp-muted { margin-top: 2px; font-size: 14px; }
.kp-item { padding: 16px; }
.kp-item .kp-product { padding: 6px 6px 0; }
.kp-materials { padding: 18px 6px 4px; }
.kp-materials ul, .kp-history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kp-materials a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s; }
.kp-materials a:hover { border-color: var(--red); }
.kp-materials a svg { font-size: 22px; color: var(--red); }
.kp-materials a span { display: grid; font-weight: 500; }
.kp-materials small, .kp-history small { font-size: 12.5px; color: var(--dim); font-weight: 400; }
.kp-materials .kp-muted { margin: 0; font-size: 14px; background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.kp-history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kp-history li:first-child { border-top: 0; }
.kp-history li span { display: grid; }
.kp-history strong { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

@media (max-width: 380px) {
  .kp-card { padding: 24px 16px 18px; }
  .kp-banks { grid-template-columns: repeat(2, 1fr); }
  .kp-ticket-stub { min-width: 88px; }
  .kp-seat { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* discount on the payment page */
.kp-amount-box { display: grid; justify-items: end; gap: 2px; margin-top: 20px; }
.kp-amount-box .kp-amount { margin: 0; }
.kp-was { font-size: 13px; color: var(--dim); }
.kp-save { font-size: 11.5px; font-weight: 600; background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: 2px 8px; }
/* the same discount carried to /pay/<slug>?o= ("ganti cara bayar") */
.kp-product > .kp-was { display: block; margin: 14px 0 -10px; }
.kp-product > .kp-save { display: inline-block; margin-top: 8px; }
.kp-offer-strip { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff4e1; border: 1px dashed var(--red); font-size: 13.5px; }
.kp-offer-strip span { flex: 1; }
.kp-offer-strip strong { color: var(--red); }

/* the mascot's haggle popup */
body.kp-locked { overflow: hidden; }
.kp-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; padding: 16px; background: rgba(18, 17, 14, 0.45); animation: kp-fade 0.2s ease-out; }
@media (min-width: 560px) { .kp-modal { place-items: center; } }
.kp-modal-card { position: relative; width: 100%; max-width: 420px; background: var(--panel); border-radius: var(--r); padding: 58px 22px 20px; box-shadow: 0 30px 60px -20px rgba(40, 20, 10, 0.5); animation: kp-rise 0.35s cubic-bezier(0.2, 1.3, 0.4, 1); text-align: center; }
.kp-modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel-2); display: grid; place-items: center; cursor: pointer; font-size: 16px; color: var(--muted); }
.kp-haggle-mascot { position: absolute; top: -44px; left: 50%; width: 84px; height: 84px; margin-left: -42px; }
.kp-haggle-mascot img { display: block; width: 84px; height: 84px; filter: drop-shadow(0 10px 14px rgba(120, 30, 20, 0.3)); transform-origin: 50% 90%; }
.kp-haggle-mascot.is-pout img { animation: kp-pout 2.4s ease-in-out infinite; }
.kp-haggle-mascot.is-wink img { animation: kp-bob 1.6s ease-in-out infinite; }
.kp-haggle-mascot.is-think img { animation: kp-tilt 1.8s ease-in-out infinite; }
.kp-haggle-mascot.is-shake img { animation: kp-shake 0.35s linear infinite; }
.kp-haggle-mascot.is-happy img { animation: kp-jump 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) 2; }
.kp-stamp { position: absolute; top: 46px; right: -46px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--on-red); background: var(--red); border: 3px solid var(--on-red); border-radius: 12px; padding: 4px 10px; box-shadow: 0 8px 16px -8px rgba(120, 30, 20, 0.7); transform: rotate(12deg); }
.kp-stamp.is-in { animation: kp-stamp 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.kp-bubble { position: relative; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.kp-bubble::before { content: ''; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.kp-deal { display: grid; gap: 2px; margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.kp-deal s { color: var(--dim); font-size: 15px; }
.kp-deal strong { font-size: 32px; letter-spacing: -0.03em; color: var(--red); line-height: 1.1; }
.kp-deal small { font-size: 12.5px; color: var(--dim); }
.kp-modal-actions { display: grid; gap: 8px; margin-top: 16px; }
.kp-modal-actions .kp-btn { margin: 0; }
.kp-modal-actions .kp-btn:first-child:not(.kp-btn-soft) { background: var(--red); }
.kp-modal-actions .kp-btn:first-child:not(.kp-btn-soft):hover { background: var(--red-hover); }
.kp-modal-actions .kp-btn[disabled] { opacity: 0.7; cursor: progress; }
@keyframes kp-fade { from { opacity: 0; } }
@keyframes kp-rise { from { transform: translateY(40px) scale(0.96); opacity: 0; } }
@keyframes kp-pout { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
@keyframes kp-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes kp-tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes kp-shake { 25% { transform: translateX(-3px) rotate(-3deg); } 75% { transform: translateX(3px) rotate(3deg); } }
@keyframes kp-jump { 40% { transform: translateY(-18px) scale(1.06, 0.94); } 70% { transform: translateY(0) scale(0.95, 1.05); } }
@keyframes kp-stamp { from { transform: rotate(-20deg) scale(2.2); opacity: 0; } to { transform: rotate(12deg) scale(1); opacity: 1; } }
.kp-resume { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 14px; border-radius: 20px; background: #fff4e1; border: 1.5px solid var(--red); text-decoration: none; animation: kp-nudge 2.8s ease-in-out 0.6s 2; }
.kp-resume img { flex: none; animation: kp-pout 2.4s ease-in-out infinite; }
.kp-resume span:not(.kp-resume-go) { display: grid; flex: 1; min-width: 0; }
.kp-resume strong { font-size: 15px; color: var(--red-press); }
.kp-resume small { font-size: 12.5px; color: var(--muted); }
.kp-resume-go { width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; font-size: 18px; flex: none; }
@keyframes kp-nudge { 0%, 20%, 100% { transform: none; } 5%, 15% { transform: translateX(-4px); } 10% { transform: translateX(4px); } }

/* QRIS only: straight to the QR when the buyer's details are known (pay.js data-auto) */
.kp-auto { display: grid; justify-items: center; text-align: center; margin-top: 22px; padding: 22px 16px 16px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.kp-auto .kp-spinner { margin-bottom: 10px; }
.kp-auto-title { margin: 0; font-size: 17px; font-weight: 600; }
.kp-auto .kp-fine { margin-top: 10px; max-width: 36ch; }
.kp-go { margin-top: 22px; }
.kp-btn-go { margin-top: 0; min-height: 52px; background: var(--red); color: var(--on-red); }
.kp-btn-go:hover { background: var(--red-hover); }
.kp-btn[disabled] { opacity: 0.8; cursor: progress; }
.kp-go-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }

/* the QR page: QR first, amount and a live countdown under it */
.kp-qr-for { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; }
.kp-qr-for span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kp-renewed { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; font-weight: 500; text-align: center; }
.kp-paying .kp-qr { padding-top: 34px; }
.kp-paying .kp-qr-frame { width: min(340px, 100%); }
.kp-qr-meta { display: grid; justify-items: center; gap: 4px; }
.kp-qr-meta .kp-amount { margin: 2px 0 0; font-size: 30px; line-height: 1.1; }
.kp-qr-disc { display: flex; align-items: center; gap: 8px; margin: 0; }
.kp-timer { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.kp-timer.is-low { color: var(--red-press); }
.kp-qr .kp-btn.kp-btn-save { width: min(340px, 100%); min-height: 48px; margin-top: 6px; padding: 13px 20px; font-size: 16px; }
.is-renewing .kp-qr-code { opacity: 0.25; filter: blur(2px); transition: opacity 0.2s; }
.kp-renew { display: grid; gap: 4px; width: min(340px, 100%); }
.kp-qr .kp-renew .kp-btn { width: 100%; min-height: 48px; margin-top: 8px; font-size: 16px; }
.kp-tap { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.is-dead-qr .kp-qr-code { opacity: 0.2; filter: blur(3px); }
.is-dead-qr [data-qr-save], .is-dead-qr .kp-qr > .kp-hint { display: none; }

/* Komunitas Kolabaja: link the app sign-in (akun page). */
.kp-app h2 { margin-bottom: 6px; }
.kp-ok { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #e3efe5; color: #1a6e43; font-size: 14px; }
.kp-connect { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.kp-connect li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); min-height: 56px; }
.kp-connect li span { display: grid; gap: 2px; }
.kp-connect li small { color: var(--muted); font-size: 13px; }
.kp-connect form { margin: 0; }
.kp-btn-sm { width: auto; margin: 0; padding: 10px 16px; font-size: 14px; min-height: 44px; }
.kp-connect .kp-link { min-height: 44px; }
.kp-ref { display: grid; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: #3a362f; }
.kp-ref small { font-weight: 400; color: var(--muted, #857b70); }
.kp-ref input { font: inherit; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 14px; border: 1.5px dashed var(--red); border-radius: 14px; background: #fff; color: var(--ink); min-width: 0; }
.kp-ref input:focus { outline: none; box-shadow: 0 0 0 3px rgba(181, 42, 42, 0.14); }
.kp-fields .kp-hint { text-align: left; max-width: none; font-size: 12.5px; font-weight: 400; }
