@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --card: #fff;
  --ink: #14213d;
  --muted: #55607a;
  --line: #e4e6ec;
  --field: #f6f7f9;
  --primary: #1f5fd6;
  --onprimary: #fff;
  --primarysoft: #e6eefc;
  --primaryink: #1a4fb5;
  --ok: #1c7f4b;
  --oksoft: #e2f3e9;
  --wait: #9a5f0a;
  --waitsoft: #fbf0dc;
  --bad: #b9342a;
  --badsoft: #fbe7e4;
  --skel: #ecedf1;
  --skel2: #f7f8fa;
  --shadow: 0 1px 2px rgba(20,33,61,.04), 0 10px 28px rgba(20,33,61,.07);
  --segment-shadow: 0 1px 3px rgba(20,33,61,.12);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1e21;
  --card: #26292d;
  --ink: #f3f1ec;
  --muted: #aaafb8;
  --line: #383c42;
  --field: #202326;
  --primary: #73a3ff;
  --onprimary: #0b1633;
  --primarysoft: #25334d;
  --primaryink: #a3c3ff;
  --ok: #64cf92;
  --oksoft: #1e3a2b;
  --wait: #f1ba5c;
  --waitsoft: #3a3022;
  --bad: #ff8c80;
  --badsoft: #45282a;
  --skel: #30343a;
  --skel2: #3b3f46;
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 10px 28px rgba(0,0,0,.25);
  --segment-shadow: 0 1px 3px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body {
  padding: 0 16px max(40px, env(safe-area-inset-bottom));
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .65; }
h1, h2, p, dl, dd { margin: 0; }
svg { flex-shrink: 0; }
.checkout { width: 100%; max-width: 480px; margin-inline: auto; display: grid; gap: 12px; }
.checkout-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 4px; }
.checkout-header h1 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.domain { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.theme-switch { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.theme-switch button {
  display: grid; place-items: center;
  width: 40px; height: 36px; border: 0; border-radius: 9px; color: var(--muted); background: transparent;
}
.theme-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--segment-shadow); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow); transition: background-color .2s, border-color .2s;
  min-width: 0;
}
.form, .result { animation: appear .22s ease-out; }
.amount-section { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.amount-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.label { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.amount-heading .label { font-size: .875rem; }
.amount { font-size: 2.625rem; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.time { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--field); font-weight: 600; font-size: .8125rem; }
.time.low { color: var(--wait); background: var(--waitsoft); }
.time-value, [data-amount], [data-original-amount] { font-variant-numeric: tabular-nums; }
.ref-value { font-family: var(--mono); }
.field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.holder-row, .ref-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; }
.holder-detail { flex: 1 1 12rem; min-width: 0; display: grid; gap: 4px; }
.holder-name { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; text-wrap: pretty; overflow-wrap: anywhere; }
.bank { color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.iban { display: flex; flex-wrap: wrap; gap: 2px .55em; font: 600 1.1875rem/1.4 var(--mono); letter-spacing: .01em; margin-top: 6px; }
.copy, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.copy { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--primaryink); font-size: .875rem; }
.iban-copy { width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--primarysoft); font-size: 1rem; margin-top: 10px; gap: 8px; }
.copy[data-copied="true"] { background: var(--oksoft); color: var(--ok); }
.ref-row { padding: 6px 0; }
.ref-row .ref-value { font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.ref-row .ref-label { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ref-copy { min-width: 44px; padding: 0 8px; border-color: transparent; }
.instructions, .result p { color: var(--muted); font-size: .9375rem; line-height: 1.55; text-wrap: pretty; }
.instructions { margin-top: 18px; }
.instructions strong { color: var(--ink); font-weight: 600; }
.primary { width: 100%; min-height: 56px; padding: 8px 20px; border: 0; border-radius: 14px; background: var(--primary); color: var(--onprimary); font-size: 1.0625rem; gap: 10px; }
.primary:not(:disabled):active { transform: scale(.99); }
.form .primary { margin-top: 16px; }
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.result h2 { font-size: 1.375rem; line-height: 1.25; font-weight: 700; margin-top: 4px; text-wrap: balance; }
.result h2:focus { outline: none; }
.result p { max-width: 22rem; }
.result .primary { margin-top: 4px; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--muted); }
.status-icon.wait { color: var(--wait); background: var(--waitsoft); }
.status-icon.checking { color: var(--primaryink); background: var(--primarysoft); }
.status-icon .spinner { width: 28px; height: 28px; border-width: 3px; }
.status-icon.good { color: var(--ok); background: var(--oksoft); animation: pop .38s cubic-bezier(.2,.8,.3,1); }
.status-icon.bad, .reason { color: var(--bad); background: var(--badsoft); }
.status-icon.neutral { border: 1px solid var(--line); }
.summary, .reason { width: 100%; text-align: left; border-radius: 14px; }
.summary { margin-top: 4px; padding: 2px 16px; background: var(--field); }
.summary div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0; }
.summary div + div { padding-top: 0; }
.summary dt { color: var(--muted); font-size: .875rem; }
.summary dd { font-weight: 600; overflow-wrap: anywhere; }
.success-amount { font-size: 1.25rem; }
.summary .reference { font-size: .8125rem; font-family: var(--mono); }
.reason { padding: 14px 16px; }
.reason strong { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 4px; }
.reason span { color: var(--ink); overflow-wrap: anywhere; font-size: .9375rem; line-height: 1.55; }
.countdown strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.notice { border-radius: 12px; padding: 10px 14px; font-size: .875rem; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.offline { display: flex; align-items: center; gap: 10px; color: var(--bg); background: var(--ink); }
.offline::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--wait); animation: pulse 1.2s ease-in-out infinite; }
.notice.message { color: var(--wait); background: var(--waitsoft); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid; border-right-color: transparent; animation: spin .7s linear infinite; }
.skeleton .line { display: block; border-radius: 6px; background: linear-gradient(90deg,var(--skel) 25%,var(--skel2) 50%,var(--skel) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton .line + .line { margin-top: 8px; }
.skeleton .label-line { height: .75rem; width: 25%; }
.skeleton .value-line { height: 1.125rem; width: 76%; }
.skeleton .total { height: 2.875rem; width: 68%; }
.skeleton .field:first-child { padding-top: 0; }
.skeleton .field:nth-child(2) .value-line { width: 56%; }
.skeleton .field:nth-child(4) .value-line { width: 40%; }
.skeleton .button-line { height: 56px; margin-top: 18px; border-radius: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 65% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media (max-width: 350px) { body { padding-inline: 10px; } .card { padding: 16px; } }
.cancel-request {justify-self:center; background:transparent; border:0; color:var(--muted); font:inherit; padding:.6rem; cursor:pointer; text-decoration:underline;}
