:root {
  color-scheme: light;
  --bg: #fff6f9;
  --white: #fff;
  --ink: #2a2026;
  --secondary: #7c6873;
  --line: #e9e1e6;
  --accent: #c73576;
  --accent-hover: #ac275f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; touch-action: manipulation; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, #receipt-heading:focus-visible { outline: 3px solid #c7357666; outline-offset: 4px; }
button svg { pointer-events: none; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.site-header { direction: ltr; max-width: 460px; margin: auto; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.language-switch { display: flex; direction: ltr; padding: 3px; background: #f4e6ed; border-radius: 11px; gap: 2px; }
.language-switch button { min-height: 34px; min-width: 57px; padding: 4px 10px; background: transparent; border-radius: 8px; font-size: 12px; font-weight: 550; color: var(--secondary); }
.language-switch [aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 4px #0000000d; }

.checkout-shell { max-width: 460px; margin: 20px auto 0; padding-bottom: 24px; }
.payment-summary { position: relative; isolation: isolate; overflow: hidden; display: flex; direction: ltr; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; margin-bottom: 12px; color: white; background: linear-gradient(120deg, #332a30 0%, #2b2329 58%, #211d20 100%); border: 1px solid transparent; border-radius: 22px; }
.payment-summary::before, .payment-summary::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.payment-summary::before { width: 250px; height: 250px; top: -125px; right: -80px; background: #f1bdd214; }
.payment-summary::after { width: 190px; height: 190px; bottom: -135px; right: -30px; background: #e3a2bf12; }
.method-image { display: flex; align-items: center; justify-content: center; width: 110px; height: 62px; flex-shrink: 0; background: white; border-radius: 12px; }
.method-image img { display: block; width: 104px; height: 52px; object-fit: contain; }
.method-name { padding: 8px; color: var(--ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; text-align: center; }
.amount-block { flex: 1; min-width: 0; text-align: right; }
.amount-label { color: #d8cad2; font-size: 12px; line-height: 18px; margin-bottom: 5px; }
.amount { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font-size: 52px; letter-spacing: -.052em; line-height: 1.05; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount > span { flex-shrink: 0; }
.currency { font-size: 16px; letter-spacing: -.3px; font-weight: 500; color: #e7dde3; }
/* Extremely long amounts get the full card width instead of tiny digits. */
.payment-summary.amount-stacked { flex-wrap: wrap; row-gap: 10px; }
.amount-stacked .amount-block { flex-basis: 100%; }

.payment-panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 4px 24px #00000003; overflow: hidden; }
.transfer-section { padding: 22px 24px 20px; }
.transaction-section { padding: 20px 24px; border-top: 1px solid #f2e8ed; }
.section-heading { display: flex; align-items: center; gap: 9px; }
.step-number { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #f9eaf1; color: #9a5976; font-size: 11px; font-weight: 600; }
.step-number .step-check { display: none; width: 14px; height: 14px; stroke-width: 2.4; }
.step-number.is-complete { color: var(--accent); }
.step-number.is-complete .step-value { display: none; }
.step-number.is-complete .step-check { display: block; }
.section-heading h2 { font-size: 15px; line-height: 22px; letter-spacing: -.25px; font-weight: 600; }
.section-hint { margin-top: 6px; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.account-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff7fa; border-radius: 12px; padding: 10px 12px; margin-top: 13px; }
.account-number { display: block; font-size: 22px; line-height: 1.2; letter-spacing: .2px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.copy-button { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--accent); background: white; min-height: 40px; padding: 0 11px; border-radius: 8px; box-shadow: 0 1px 2px #00000005; flex-shrink: 0; }
.copy-button .icon { height: 14px; width: 14px; }
.copy-button:hover { background: #fce8f1; }
.input-wrap { margin-top: 12px; }
.tid-entry { display: flex; justify-content: center; }
.tid-control { position: relative; width: 100%; max-width: 256px; min-width: 0; }
.tid-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tid-cell { display: grid; place-items: center; height: 52px; border: 1px solid #dfd3da; border-radius: 10px; background: #fffafd; color: var(--ink); font-size: 25px; font-weight: 650; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.tid-cell:empty::after { content: ''; width: 7px; height: 2px; border-radius: 1px; background: #d1bcc7; }
.tid-cell.is-filled { background: white; }
.tid-cell.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px #c735761a; }
#tid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; border: 0; font-size: 20px; cursor: text; }
.tid-control:has(input[aria-invalid=true]) .tid-cell { border-color: #c03636; }
.tid-control:has(input:disabled) .tid-cell { opacity: .65; }
.field-error { font-size: 12px; color: #b42318; margin-top: 7px; line-height: 1.5; }
.text-button { background: transparent; color: var(--accent); padding: 0; display: inline-flex; gap: 5px; align-items: center; font-size: 11px; min-height: 32px; line-height: 1.6; }
.text-button .icon { height: 13px; width: 13px; }
.submit-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 14px; background: var(--accent); border-radius: 11px; color: white; font-size: 14px; line-height: 1.5; font-weight: 550; margin-top: 7px; transition: background .15s, transform .15s; }
.submit-button .icon { width: 17px; height: 17px; }
.submit-button:hover:not(:disabled) { background: var(--accent-hover); }
.submit-button:active:not(:disabled) { transform: scale(.99); }
.submit-button:disabled { background: #e8c6d5; color: #765361; cursor: not-allowed; }
.submit-button .submit-spinner { display: none; }
.submit-button[aria-busy=true] { background: var(--accent); color: white; cursor: wait; }
.submit-button[aria-busy=true] .directional { display: none; }
.submit-button[aria-busy=true] .submit-spinner { display: block; animation: submit-spin .8s linear infinite; }
.submit-spinner circle { opacity: .25; }
.submit-spinner path { stroke-width: 2.2; }
@keyframes submit-spin { to { transform: rotate(360deg); } }

.receipt-guide { padding-top: 23px; scroll-margin-top: 16px; }
.receipt-guide > h2 { font-size: 14px; line-height: 1.5; font-weight: 600; margin-inline: 4px; }
.receipt-example { background: white; border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; padding: 18px; color: var(--secondary); }
.receipt-top { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 17px; }
.receipt-top .icon { width: 16px; height: 16px; }
.receipt-row, .receipt-tid { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; }
.receipt-row strong { font-weight: 500; color: var(--ink); }
.receipt-tid { margin-top: 14px; background: #fff1f7; color: #a32d63; padding: 12px 10px; border: 1px dashed #d48aa9; border-radius: 8px; flex-wrap: wrap; }
.receipt-tid strong { font-weight: 600; }
.receipt-tid mark { margin-left: 2px; padding: 3px 4px; border-radius: 4px; background: var(--accent); color: white; }
.receipt-disclaimer { font-size: 10px; line-height: 1.6; text-align: center; margin-top: 13px; }

.payment-timer { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); direction: ltr; white-space: nowrap; flex-shrink: 0; }
.payment-timer > .icon { width: 18px; height: 18px; }
#timer-value { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 19px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.payment-timer.is-expired { color: #9a335a; }
.copy-button:disabled { opacity: .45; cursor: not-allowed; }
.copy-button:disabled:hover { background: white; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); background: #252528; color: white; font-size: 13px; line-height: 1.5; padding: 12px 19px; border-radius: 12px; text-align: center; box-shadow: 0 4px 18px #0002; z-index: 2; }
.noscript-note { text-align: center; padding: 20px; background: #fff0d6; font-size: 14px; }

.order-state { width: calc(100% - 32px); max-width: 460px; margin: 36px auto 24px; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); text-align: center; }
.status-icon { display: block; width: 68px; height: 68px; margin: 0 auto 21px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.order-state h1 { font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.7px; overflow-wrap: break-word; }
#result-title:focus { outline: none; }
.order-state-body { max-width: 36ch; margin: 12px auto 0; color: var(--secondary); font-size: 14px; line-height: 1.7; }
.order-result { width: 100%; max-width: 460px; margin: 52px auto 24px; text-align: center; }
.order-result > .status-icon { width: 96px; height: 96px; margin-bottom: 32px; }
.order-result .payment-summary { margin-bottom: 0; }
.result-body { max-width: 40ch; margin: 18px auto 0; padding-inline: 12px; color: var(--secondary); font-size: 13px; line-height: 1.7; }
.result-retry { display: block; width: 100%; min-height: 48px; margin-top: 26px; padding: 12px 16px; border-radius: 11px; background: var(--accent); color: var(--white); font-size: 14px; line-height: 1.5; font-weight: 550; }
.result-retry:hover:not(:disabled) { background: var(--accent-hover); }
.result-retry:disabled { opacity: .6; cursor: wait; }
/* Match the JCB surface from the first paint, before the channel is known. */
html[data-screen="loading"] { background: #F5F5F7; }
html[data-screen="loading"] .site-header { display: none; }
.order-loading { position: fixed; inset: 0; display: grid; place-items: center; background: #F5F5F7; }
.order-loading .loading-spinner { display: block; width: 32px; height: 32px; fill: #86868B; animation: loading-spin 1s steps(12) infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .order-loading .loading-spinner { animation: none; }
}

html[lang=ur] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang=ur] h1, html[lang=ur] h2 { letter-spacing: 0; }
html[lang=ur] .section-heading h2 { font-size: 16px; line-height: 24px; }
html[lang=ur] .section-hint { font-size: 13px; line-height: 1.6; }
html[lang=ur] .amount-label { font-size: 13px; direction: rtl; }
html[lang=ur] .receipt-guide > h2 { font-size: 16px; line-height: 1.7; }
html[lang=ur] .amount, html[lang=ur] .account-number, html[lang=ur] .tid-cell { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
html[lang=ur] .submit-button { font-size: 15px; }
html[lang=ur] .find-tid { font-size: 12px; }
html[lang=ur] .order-state h1 { font-size: 28px; line-height: 1.55; }
html[lang=ur] .order-state-body { font-size: 16px; line-height: 1.9; }
html[lang=ur] .result-body { font-size: 14px; line-height: 1.9; }
html[lang=ur] .result-retry { font-size: 16px; }
html[dir=rtl] .directional { transform: scaleX(-1); }

@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .language-switch button { min-width: 51px; padding-inline: 8px; }
  .checkout-shell { margin: 0 auto; padding: 0 16px 20px; }
  .payment-summary { padding: 12px 20px; }
  .amount { font-size: 48px; }
  .transfer-section { padding: 18px 20px; }
  .transaction-section { padding: 17px 20px 18px; }
  .account-number { font-size: 21px; }
  .order-state { margin-top: 20px; padding: 28px 24px 24px; }
  .order-state h1 { font-size: 25px; }
  .order-result { margin-top: 32px; padding-inline: 16px; }
  .order-result > .status-icon { width: 88px; height: 88px; margin-bottom: 26px; }
}

@media (max-width: 360px) {
  .site-header { padding: 10px 12px; gap: 10px; }
  .language-switch button { min-width: 47px; font-size: 11px; }
  .checkout-shell { padding-inline: 12px; }
  .payment-summary { gap: 9px; padding: 10px 16px; margin-bottom: 10px; }
  .amount { font-size: 44px; gap: 5px; }
  .currency { font-size: 14px; }
  .method-image { width: 98px; }
  .method-image img { width: 94px; height: 48px; }
  .transfer-section { padding: 10px 16px; }
  .transaction-section { padding: 10px 16px; }
  .section-hint { margin-top: 4px; }
  html[lang=ur] .section-hint { font-size: 12px; line-height: 1.5; }
  .account-box { padding: 8px 10px; margin-top: 9px; gap: 7px; }
  .account-number { font-size: 20px; letter-spacing: -.15px; }
  .copy-button { padding-inline: 9px; gap: 5px; }
  .section-heading h2 { font-size: 14px; }
  .input-wrap { margin-top: 8px; }
  .order-state { width: calc(100% - 24px); margin-top: 16px; padding: 24px 20px; }
  .status-icon { width: 60px; height: 60px; margin-bottom: 18px; }
  .order-state h1 { font-size: 23px; }
  .order-state-body { font-size: 13px; }
  .order-result { margin-top: 28px; padding-inline: 12px; }
  .order-result > .status-icon { width: 80px; height: 80px; margin-bottom: 24px; }
  .result-body { padding-inline: 8px; font-size: 12px; }
  html[lang=ur] .order-state h1 { font-size: 26px; }
  html[lang=ur] .order-state-body { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .submit-button[aria-busy=true] .submit-spinner { animation: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Apple Black-Gold Cashier UI (payment_method === "JCB")
   Scheme A: Dynamic Island Glass Pill + Bottom Gold Progress
   ========================================================= */
/* Shared cashier surface also covers missing/invalid orders and channels
   without a dedicated flow. Only confirmed JC context uses the pink theme. */
html:not([data-channel="JC"]) {
  --bg: #F5F5F7;
  --ink: #1D1D1F;
  --secondary: #86868B;
  --line: rgba(0, 0, 0, 0.07);
  --accent: #F0B90B;
  --accent-hover: #D9A507;
}
html[data-channel="JCB"] {
  --jcb-black: #000000;
  --jcb-black-hover: #1D1D1F;
  --jcb-gold-light: #F0B90B;
  --jcb-gold: #F0B90B;
  --jcb-gold-warm: #F0B90B;
  --jcb-gold-deep: #F0B90B;
  --jcb-gold-50: rgba(240, 185, 11, 0.12);
  --jcb-gold-100: rgba(240, 185, 11, 0.22);
  --jcb-green: #0ECB81;
  --jcb-green-50: rgba(14, 203, 129, 0.12);
  --jcb-red: #F6465D;
}
html:not([data-channel="JC"]) .language-switch {
  background: rgba(118, 118, 128, 0.12);
  border-radius: 10px;
  padding: 2.5px;
}
html:not([data-channel="JC"]) .language-switch button {
  color: #424245;
  font-weight: 600;
  border-radius: 7.5px;
}
html:not([data-channel="JC"]) .language-switch [aria-pressed="true"] {
  background: #FFFFFF;
  color: #1D1D1F;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
}
html:not([data-channel="JC"]) button:focus-visible {
  outline-color: #F0B90B80;
}
html:not([data-channel="JC"]) .order-result {
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 30px 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 16px 40px rgba(0, 0, 0, 0.06);
}
html:not([data-channel="JC"]) .order-result > .status-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  stroke: #86868B;
}
html:not([data-channel="JC"]) .order-result[data-kind="failure"] > .status-icon { stroke: #F6465D; }
html:not([data-channel="JC"]) .order-result[data-kind="success"] > .status-icon { stroke: #0ECB81; }
html:not([data-channel="JC"]) .result-body { color: #424245; }
html:not([data-channel="JC"]) .result-retry { background: #000000; }
html:not([data-channel="JC"]) .result-retry:hover:not(:disabled) { background: #1D1D1F; }
.jcb-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #424245;
  font-size: 13.5px;
  font-weight: 600;
}
.jcb-secure-pill .icon {
  width: 21px;
  height: 21px;
  color: var(--jcb-gold);
  stroke-width: 2.2;
}
.jcb-shell {
  max-width: 440px;
  margin: 4px auto 0;
  padding: 0 0 32px;
}
.jcb-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px 16px 22px;
  color: #FFFFFF;
  background: #000000;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), 0 4px 10px rgba(0, 0, 0, 0.14);
}
.jcb-hero::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -130px;
  inset-inline-end: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 55%, transparent 72%);
  pointer-events: none;
}
.jcb-hero::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -115px;
  inset-inline-start: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.jcb-card-map {
  position: absolute;
  inset-inline-end: -8px;
  top: 8px;
  width: 310px;
  height: 155px;
  color: rgba(255, 255, 255, 0.13);
  pointer-events: none;
}
.jcb-hero-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.jcb-brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.jcb-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}
.jcb-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.jcb-brand-text {
  display: flex;
  align-items: center;
}
.jcb-brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #FFFFFF;
}
.jcb-order-chip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
}
.jcb-order-chip b {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #FFFFFF;
}
.jcb-card-mid {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jcb-emv-chip {
  display: inline-flex;
  width: 40px;
  height: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.jcb-emv-chip svg {
  width: 40px;
  height: 30px;
}
.jcb-card-circles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jcb-card-circles svg {
  width: 42px;
  height: 26px;
  display: block;
}
.jcb-hero-label {
  position: relative;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.56);
  text-transform: uppercase;
}
html[lang="ur"] .jcb-hero-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}
.jcb-hero-body {
  position: relative;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}
.jcb-amount {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 34px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
.jcb-cur {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.jcb-num {
  font-size: 1em;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.jcb-timer-island {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(240, 185, 11, 0.14);
  border: 1.5px solid #F0B90B;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #F0B90B;
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(240, 185, 11, 0.22), 0 0 18px rgba(240, 185, 11, 0.18), 0 4px 14px rgba(0, 0, 0, 0.3);
}
.jcb-timer-label {
  font-size: 12px;
  font-weight: 600;
  color: #F0B90B;
}
.jcb-timer-val {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #F0B90B;
  letter-spacing: 0.3px;
}
.jcb-ring-svg {
  width: 17px;
  height: 17px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.jcb-ring-track {
  fill: none;
  stroke: rgba(240, 185, 11, 0.24);
  stroke-width: 2.5;
}
.jcb-ring-progress {
  fill: none;
  stroke: #F0B90B;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 37.7;
  stroke-dashoffset: 37.7;
  transition: stroke .3s ease;
}
.jcb-timer-island.is-low {
  background: rgba(255, 69, 58, 0.18);
  border-color: rgba(255, 69, 58, 0.6);
  color: #FF8A80;
  box-shadow: 0 0 18px rgba(255, 69, 58, 0.25);
  animation: jcb-pulse 1.2s ease-in-out infinite;
}
.jcb-timer-island.is-low .jcb-timer-label,
.jcb-timer-island.is-low .jcb-timer-val {
  color: #FF8A80;
}
.jcb-timer-island.is-low .jcb-ring-progress {
  stroke: #FF453A;
}
.jcb-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.jcb-progress-fill {
  height: 100%;
  width: 0;
  background: #F0B90B;
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.85);
  border-radius: 0 2px 2px 0;
  transition: background .3s ease;
}
.jcb-progress-track.is-low .jcb-progress-fill {
  background: linear-gradient(90deg, #C81E1E 0%, #FF453A 60%, #FF8A80 100%);
  box-shadow: 0 0 10px rgba(255, 69, 58, 0.7);
}
@keyframes jcb-pulse {
  50% { opacity: 0.68; }
}

/* Stepper */
.jcb-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 4px 0;
}
.jcb-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  padding: 4px 2px;
  color: #86868B;
  font-size: 13px;
  font-weight: 600;
}
.jcb-step:not(.on):not(.done) {
  opacity: 0.55;
}
.jcb-step-n {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: #86868B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: all .2s ease;
}
.jcb-step-n svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jcb-step.on {
  color: #1D1D1F;
}
.jcb-step.on .jcb-step-n {
  background: #000000;
  color: #FFFFFF;
  box-shadow: 0 0 0 3.5px var(--jcb-gold-100);
}
.jcb-step.done {
  color: #1D1D1F;
}
.jcb-step.done .jcb-step-n {
  background: var(--jcb-gold);
  color: #000000;
}
.jcb-step-line {
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.jcb-step-line i {
  position: absolute;
  inset: 0;
  background: var(--jcb-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
html[dir="rtl"] .jcb-step-line i {
  transform-origin: right;
}
.jcb-step-line.full i {
  transform: scaleX(1);
}

/* Main Card */
.jcb-card {
  margin-top: 14px;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 16px 40px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
}
.jcb-s1-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.jcb-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #000000;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.jcb-badge-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.jcb-card h1 {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1D1D1F;
}
.jcb-card h2 {
  font-size: 15px;
  margin: 22px 0 12px;
  font-weight: 700;
  color: #1D1D1F;
}
.jcb-muted {
  color: #86868B;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}
.jcb-field-label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #424245;
}
.jcb-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  height: 58px;
  background: #F9F9FB;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.jcb-field:focus-within {
  border-color: var(--jcb-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.22);
}
.jcb-field.is-invalid {
  border-color: #FF453A;
  box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.14);
}
.jcb-pre {
  font-weight: 700;
  color: #86868B;
  font-size: 13px;
  padding-right: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.jcb-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #1D1D1F;
  font-variant-numeric: tabular-nums;
}
.jcb-field input::placeholder {
  color: #C7C7CC;
  font-weight: 600;
}
.jcb-field .icon {
  width: 18px;
  height: 18px;
  color: #86868B;
}
.jcb-field-note {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: #86868B;
}
.jcb-field-error {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: #D92D20;
  font-weight: 600;
}
.jcb-callout {
  display: flex;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 16px;
}
.jcb-callout .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.jcb-callout-gold {
  background: rgba(240, 185, 11, 0.06);
  color: #8A6D1B;
  border: 1px solid rgba(240, 185, 11, 0.25);
}
.jcb-callout-gold .icon {
  color: #F0B90B;
}
.jcb-callout-danger {
  display: block;
  background: #FAF9F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #424245;
  padding: 14px 16px;
}
.jcb-callout-danger .t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: 6px;
}
.jcb-callout-danger .t .icon {
  color: var(--jcb-red);
}
.jcb-callout-danger ul {
  margin: 0;
  padding-inline-start: 18px;
}
.jcb-callout-danger li {
  margin: 4px 0;
  font-size: 13px;
}
.jcb-callout-danger li.key {
  font-weight: 650;
  color: #1D1D1F;
}
.jcb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  border: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .1s ease, background .18s ease;
}
.jcb-btn:active:not(:disabled) {
  transform: scale(0.985);
}
.jcb-btn .icon {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}
.jcb-btn-primary {
  margin-top: 18px;
  background: #000000;
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.jcb-btn-primary:hover:not(:disabled) {
  background: #1D1D1F;
}
.jcb-btn-line {
  background: #F5F5F7;
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.14);
}
.jcb-btn-line:hover:not(:disabled) {
  background: #EAEAEF;
}
.jcb-btn:disabled,
.jcb-btn-primary:disabled,
.jcb-btn-primary:disabled:hover {
  background: #E5E5EA;
  color: #AEAEB2;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
#jcb-confirm-btn[aria-busy="true"] {
  background: #000000;
  color: #FFFFFF;
  cursor: wait;
}
.jcb-confirm-spinner {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #F0B90B;
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: jcb-confirm-spin .8s linear infinite;
}
@keyframes jcb-confirm-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .jcb-confirm-spinner { animation: none; }
}

/* Step 2 QR & Instructions */
.jcb-qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
}
.jcb-qr-frame {
  position: relative;
  width: 244px;
  height: 244px;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
}
.jcb-qr-border-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.jcb-qr-frame img {
  width: 204px;
  height: 204px;
  image-rendering: pixelated;
  display: block;
  -webkit-touch-callout: default;
}
.jcb-qr-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: #424245;
  font-weight: 600;
}
.jcb-qr-tip .icon {
  width: 15px;
  height: 15px;
  color: var(--jcb-gold-warm);
}
.jcb-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.jcb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(14, 203, 129, 0.06);
  color: #1A7F58;
  border: 1px solid rgba(14, 203, 129, 0.25);
}
.jcb-chip .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
  color: var(--jcb-green);
}
.jcb-chip-gold {
  background: rgba(240, 185, 11, 0.06);
  color: #8A6D1B;
  border: 1px solid rgba(240, 185, 11, 0.25);
}
.jcb-chip-gold .icon {
  color: #F0B90B;
}
.jcb-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.jcb-actions .jcb-btn-primary {
  margin-top: 0;
}
.jcb-how {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: jcb-how;
}
.jcb-how li {
  counter-increment: jcb-how;
  position: relative;
  padding-inline-start: 38px;
  padding-bottom: 16px;
  margin: 0;
  font-size: 13.5px;
  color: #424245;
  min-height: 26px;
  line-height: 1.45;
}
.jcb-how li:last-child {
  padding-bottom: 0;
}
.jcb-how li::before {
  content: counter(jcb-how);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000000;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.jcb-how li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: #D1D1D6;
}
.jcb-how b {
  color: #1D1D1F;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.jcb-amount-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(240, 185, 11, 0.06);
  border: 1px solid rgba(240, 185, 11, 0.25);
  color: #8A6D1B;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.jcb-amount-note strong {
  color: #6E5611;
  font-weight: 700;
}
.jcb-s2-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  text-align: center;
  font-size: 13px;
  color: #86868B;
}
.jcb-link {
  background: none;
  padding: 0;
  margin-inline-start: 4px;
  color: #B88A14;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* JCB Result Card (Success & Failed) */
.jcb-result {
  text-align: center;
  padding: 30px 22px 24px;
}
.jcb-r-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}
.jcb-r-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jcb-r-icon.is-ok {
  background: rgba(14, 203, 129, 0.08);
  color: #0ECB81;
  border: 1px solid rgba(14, 203, 129, 0.28);
}
.jcb-r-icon.is-bad {
  background: rgba(246, 70, 93, 0.08);
  color: #F6465D;
  border: 1px solid rgba(246, 70, 93, 0.26);
}
.jcb-r-title {
  font-size: 21px !important;
  font-weight: 750;
  color: #1D1D1F;
}
.jcb-r-sub {
  max-width: 34ch;
  margin: 8px auto 0;
}
.jcb-details {
  margin: 20px 0 0;
  padding: 12px 16px;
  background: #F9F9FB;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: start;
}
.jcb-details > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
}
.jcb-details > div + div:not([hidden]) {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.jcb-details dt {
  color: #86868B;
  font-weight: 500;
  flex-shrink: 0;
}
.jcb-details dd {
  margin: 0;
  font-weight: 700;
  color: #1D1D1F;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: end;
}
.jcb-r-warn {
  text-align: start;
  margin-top: 16px;
}
.jcb-r-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #86868B;
}

.jcb-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  color: #86868B;
}
.jcb-foot .icon {
  width: 14px;
  height: 14px;
  color: var(--jcb-gold-warm);
}
@media (max-width: 600px) {
  .jcb-shell { padding: 0 16px 24px; }
}
@media (max-width: 360px) {
  .jcb-shell { padding: 0 12px 20px; }
  .jcb-hero { padding: 16px 16px 20px; }
  .jcb-amount { font-size: 28px; }
  .jcb-card { padding: 20px 16px; }
}

.jcb-r-icon.is-checking { background: #ECECF0; color: #86868B; }
.jcb-verification-spinner { animation: jcb-verification-spin 1s linear infinite; }
@keyframes jcb-verification-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jcb-verification-spinner { animation: none; } }
