/*
 * SafePay (block-elements/safepay*.twig). Own file: public/v2/sass/safepay.scss → public/v2/css-src/safepay.css
 * (plain CSS, valid SCSS: copied as is). Royal blue #375bd2 on navy #0a1230, wide 1320px layout.
 * Dark mode: the generated twin (DarkAssets) handles colours; the navy bands stay dark.
 */
.sp {
  --sp-navy: #0a1230;
  --sp-navy-2: #111b45;
  --sp-blue: #375bd2;
  --sp-blue-2: #2a47b0;
  --sp-blue-soft: #eaf0ff;
  --sp-ink: #0e1730;
  --sp-text: #34405e;
  --sp-muted: #67728f;
  --sp-line: #e2e7f3;
  --sp-bg: #f5f7fc;
  --sp-card: #ffffff;
  --sp-green: #12a37b;
  --sp-green-soft: #e3f6ef;
  --sp-amber: #b77908;
  --sp-amber-soft: #fff3da;
  --sp-red: #d6455d;
  --sp-red-soft: #fde9ec;
  --sp-radius: 18px;
  --sp-shadow: 0 1px 2px rgba(14, 23, 48, .05), 0 12px 32px -12px rgba(14, 23, 48, .16);
  color: var(--sp-text);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  overflow-x: clip;
}
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp h1, .sp h2, .sp h3 { color: var(--sp-ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
.sp a { color: var(--sp-blue); }
.sp-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; position: relative; }
.sp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.sp-break { word-break: break-all; }
.sp-muted { color: var(--sp-muted); }
.sp-fine { color: var(--sp-muted); font-size: .84rem; }
.sp-logo { display: inline-block; vertical-align: middle; border-radius: 10px; }

/* buttons + pills */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 12px; border: 1px solid transparent; background: var(--sp-blue); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none !important; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.sp-btn:hover { background: var(--sp-blue-2); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(55, 91, 210, .7); }
.sp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.sp-btn--lg { padding: .95em 1.5em; font-size: 1.02rem; border-radius: 14px; }
.sp-btn--sm { padding: .45em .8em; font-size: .85rem; border-radius: 9px; }
.sp-btn--block { width: 100%; }
.sp-btn__chain { width: 20px; height: 20px; border-radius: 50%; }
.sp-btn--ghost { background: #fff; color: var(--sp-ink) !important; border-color: var(--sp-line); }
.sp-btn--ghost:hover { background: var(--sp-blue-soft); border-color: #c9d5fb; box-shadow: none; }
.sp-btn--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.sp-btn--glass:hover { background: rgba(255, 255, 255, .16); }
.sp-btn--danger { background: #fff; color: var(--sp-red) !important; border-color: #f3c6ce; }
.sp-btn--danger:hover { background: var(--sp-red-soft); box-shadow: none; }
.sp-linkbtn { background: none; border: 0; padding: 0; color: var(--sp-blue); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sp-linkbtn:hover { text-decoration: underline; }
.sp-iconbtn { background: none; border: 1px solid transparent; border-radius: 8px; width: 30px; height: 30px; color: var(--sp-muted); cursor: pointer; }
.sp-iconbtn:hover { background: var(--sp-blue-soft); color: var(--sp-blue); }
.sp-pill { display: inline-flex; align-items: center; gap: .35em; padding: .22em .7em; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sp-blue-soft); color: var(--sp-blue-2); white-space: nowrap; }
.sp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-pill--paid, .sp-pill--confirmed { background: var(--sp-green-soft); color: var(--sp-green); }
.sp-pill--partly_paid, .sp-pill--pending, .sp-pill--overdue { background: var(--sp-amber-soft); color: var(--sp-amber); }
.sp-pill--expired, .sp-pill--draft { background: #eef0f5; color: #69718a; }
.sp-pill--cancelled, .sp-pill--failed { background: var(--sp-red-soft); color: var(--sp-red); }
.sp-pill--test { background: #f2e9ff; color: #7b3fd9; }
.sp-eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-blue); margin-bottom: 1rem; }
.sp-eyebrow .sp-logo { width: 26px; height: 26px; border-radius: 8px; }
.sp-eyebrow em { font-style: normal; font-weight: 600; opacity: .7; text-transform: none; letter-spacing: 0; }
.sp-eyebrow--dark { color: #a9bcff; }
.sp-note { background: var(--sp-blue-soft); color: var(--sp-blue-2); border-radius: 12px; padding: .7em .9em; font-size: .9rem; margin: .6em 0; }
.sp-note.is-bad { background: var(--sp-red-soft); color: #a52b40; }
.sp-note.is-warn { background: var(--sp-amber-soft); color: #8a5a04; }

/* reveal */
.sp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.sp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================ landing */
.sp-hero { position: relative; background: radial-gradient(1200px 600px at 85% 20%, #1c2f7a 0%, rgba(28, 47, 122, 0) 60%), linear-gradient(160deg, #0a1230 0%, #0d1740 55%, #111e52 100%); color: #c9d3f2; padding: 72px 0 96px; overflow: hidden; }
.sp-hero__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.sp-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); margin-bottom: .45em; }
.sp-hero h1 span { background: linear-gradient(90deg, #8fa8ff, #6ee0bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-lead { font-size: 1.13rem; max-width: 620px; margin: 0 0 1.8rem; }
.sp-hero .sp-lead { color: #c3cdee; }
.sp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.sp-hero__facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.sp-hero__facts li { display: flex; flex-direction: column; max-width: 170px; }
.sp-hero__facts b { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.sp-hero__facts span { font-size: .86rem; color: #93a1cc; }

.sp-demo { position: relative; }
.sp-demo__card { position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: 22px; color: var(--sp-text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); max-width: 440px; margin-left: auto; transition: box-shadow .4s ease; }
.sp-demo.is-paid .sp-demo__card { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 3px rgba(18, 163, 123, .35); }
.sp-demo__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sp-demo__merchant { display: flex; gap: 10px; align-items: center; }
.sp-demo__merchant span { display: flex; flex-direction: column; line-height: 1.25; }
.sp-demo__merchant b { color: var(--sp-ink); }
.sp-demo__merchant small { color: var(--sp-muted); }
.sp-demo__avatar { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #ff9a62, #e0577b); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.sp-demo__amount { display: flex; flex-direction: column; padding: 8px 0 14px; border-bottom: 1px dashed var(--sp-line); }
.sp-demo__amount small, .sp-demo__pay > small { font-size: .78rem; color: var(--sp-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sp-demo__amount b { font-size: 2.2rem; color: var(--sp-ink); letter-spacing: -.03em; }
.sp-demo__pay { padding: 14px 0 6px; }
.sp-demo__token { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: 14px; background: var(--sp-bg); }
.sp-demo__token.is-in { animation: spIn .5s ease; }
.sp-demo__token span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.sp-demo__token b { color: var(--sp-ink); }
.sp-demo__token small { color: var(--sp-muted); font-size: .8rem; }
.sp-demo__ticon img { border-radius: 50%; display: block; }
.sp-demo__tamt { font-size: 1.15rem; }
.sp-demo__steps { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.sp-demo__steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #9aa3bd; transition: color .3s ease; }
.sp-demo__steps i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dbea; position: relative; flex: none; transition: all .3s ease; }
.sp-demo__steps li.is-done { color: var(--sp-ink); }
.sp-demo__steps li.is-done i { background: var(--sp-green); border-color: var(--sp-green); }
.sp-demo__steps li.is-done i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sp-demo__get { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--sp-green-soft); }
.sp-demo__get span { font-weight: 700; color: #0d6e53; font-size: .88rem; }
.sp-demo__get b { color: var(--sp-ink); font-size: 1.2rem; display: inline-flex; align-items: center; gap: 6px; }
.sp-demo__get b img { border-radius: 50%; }
.sp-demo__get small { grid-column: 1 / -1; color: #3f8c74; font-size: .78rem; }
.sp-demo__chips span { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #dfe6ff; font-weight: 700; font-size: .85rem; backdrop-filter: blur(6px); animation: spFloat 7s ease-in-out infinite; }
.sp-demo__chips img { width: 18px; height: 18px; border-radius: 50%; }
.sp-demo__chips [data-chip="0"] { left: 0; top: 8%; }
.sp-demo__chips [data-chip="1"] { left: -4%; top: 46%; animation-delay: -2s; }
.sp-demo__chips [data-chip="2"] { left: 6%; bottom: 6%; animation-delay: -4s; }
.sp-demo__chips [data-chip="3"] { right: -2%; top: -4%; animation-delay: -1s; }
@keyframes spFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sp-page { background: var(--sp-bg); }
.sp-band { padding: 88px 24px; }
.sp-band--tint { background: #fff; padding: 88px 0; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-band--navy { background: linear-gradient(160deg, #0a1230, #121d4d); color: #c3cdee; padding: 88px 0; }
.sp-band--navy h2 { color: #fff; }
.sp-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sp-head h2, .sp-split h2, .sp-final h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sp-head p { color: var(--sp-muted); font-size: 1.06rem; }

.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.sp-steps::before { content: ""; position: absolute; top: 112px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, #c7d3f7 0 10px, transparent 10px 18px); z-index: 0; }
.sp-step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 22px; box-shadow: var(--sp-shadow); }
.sp-step h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.sp-step h3 span { width: 30px; height: 30px; border-radius: 9px; background: var(--sp-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.sp-step p { margin: 0; color: var(--sp-muted); }
.sp-step__shot { height: 224px; border-radius: 14px; background: var(--sp-bg); border: 1px solid var(--sp-line); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sp-shot-form label { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sp-line); border-radius: 9px; padding: 3px 10px; }
.sp-shot-form small { font-size: .68rem; color: var(--sp-muted); font-weight: 600; }
.sp-shot-form span { font-size: .86rem; color: var(--sp-ink); display: flex; align-items: center; gap: 6px; }
.sp-shot-form img { width: 14px; height: 14px; border-radius: 50%; }
.sp-shot-form__btn { margin-top: auto; align-self: flex-start; background: var(--sp-blue); color: #fff; padding: 5px 12px; border-radius: 8px; font-size: .8rem; font-weight: 700; }
.sp-shot-tokens span { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--sp-line); font-size: .86rem; }
.sp-shot-tokens span.is-on { border-color: var(--sp-blue); box-shadow: 0 0 0 3px rgba(55, 91, 210, .14); }
.sp-shot-tokens img { width: 24px; height: 24px; border-radius: 50%; }
.sp-shot-tokens b { color: var(--sp-ink); }
.sp-shot-tokens small { color: var(--sp-muted); font-size: .74rem; }
.sp-shot-wallet { align-items: center; justify-content: center; text-align: center; background: linear-gradient(160deg, #0d1740, #182a6a); border: 0; color: #c3cdee; }
.sp-shot-wallet b { font-size: 1.9rem; color: #7ff0c8; letter-spacing: -.02em; }
.sp-shot-wallet span { font-size: .86rem; color: #e1e7ff; display: inline-flex; gap: 6px; align-items: center; }
.sp-shot-wallet span i { color: #7ff0c8; }

.sp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sp-defs { display: grid; gap: 14px; margin: 1.6rem 0 0; }
.sp-defs div { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--sp-line); background: var(--sp-bg); }
.sp-defs dt { font-weight: 800; color: var(--sp-ink); display: flex; gap: 10px; align-items: center; }
.sp-defs dt i { color: var(--sp-blue); width: 18px; }
.sp-defs dd { margin: 4px 0 0 28px; color: var(--sp-muted); font-size: .94rem; }
.sp-invoice-preview { position: relative; background: #fff; border-radius: 16px; border: 1px solid var(--sp-line); box-shadow: 0 30px 60px -28px rgba(14, 23, 48, .35); padding: 28px; transform: rotate(-1.2deg); }
.sp-ip__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.sp-ip__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--sp-ink); }
.sp-ip__no { text-align: right; font-size: .74rem; letter-spacing: .12em; color: var(--sp-muted); }
.sp-ip__no b { font-size: 1rem; color: var(--sp-ink); letter-spacing: 0; }
.sp-ip__meta { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 18px; }
.sp-ip__meta small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); font-weight: 700; }
.sp-invoice-preview table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sp-invoice-preview th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); border-bottom: 1px solid var(--sp-line); padding: 6px 0; }
.sp-invoice-preview td { padding: 8px 0; border-bottom: 1px solid #f0f2f8; }
.sp-invoice-preview th:last-child, .sp-invoice-preview td:last-child { text-align: right; }
.sp-ip__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-weight: 700; }
.sp-ip__total b { font-size: 1.5rem; color: var(--sp-ink); }
.sp-ip__stamp { position: absolute; left: 42%; bottom: 22px; border: 3px solid var(--sp-green); color: var(--sp-green); font-weight: 900; letter-spacing: .15em; padding: 4px 14px; border-radius: 8px; transform: rotate(-12deg); opacity: .85; }

.sp-flow { display: grid; grid-template-columns: 1fr 70px 1.1fr 1.6fr; align-items: center; gap: 0; margin-bottom: 48px; }
.sp-flow__node { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sp-shadow); display: flex; flex-direction: column; }
.sp-flow__node small { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); }
.sp-flow__node b { font-size: 1.3rem; color: var(--sp-ink); }
.sp-flow__node span { font-size: .86rem; color: var(--sp-muted); }
.sp-flow__node--route { background: linear-gradient(160deg, #0d1740, #1b2d74); border: 0; }
.sp-flow__node--route small, .sp-flow__node--route span { color: #9fb0e6; }
.sp-flow__node--route b { color: #fff; }
.sp-flow__node--get { border-color: #bfe8da; background: var(--sp-green-soft); }
.sp-flow__node--fee { padding: 12px 16px; }
.sp-flow__node--fee b { font-size: 1.05rem; }
.sp-flow__fork { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto; row-gap: 14px; align-items: center; }
.sp-flow__pipe { position: relative; height: 4px; background: #dbe3fa; border-radius: 4px; overflow: hidden; }
.sp-flow__pipe i { position: absolute; top: 0; width: 18px; height: 4px; border-radius: 4px; background: var(--sp-blue); animation: spPipe 1.8s linear infinite; }
.sp-flow__pipe i:nth-child(2) { animation-delay: -.6s; }
.sp-flow__pipe i:nth-child(3) { animation-delay: -1.2s; }
.sp-flow__pipe--thin { height: 2px; }
.sp-flow__pipe--thin i { height: 2px; background: #8a99c8; }
@keyframes spPipe { from { left: -20px; } to { left: 100%; } }
.sp-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sp-cards3 article { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 24px; }
.sp-cards3 h3 { font-size: 1.12rem; }
.sp-cards3 p { margin: 0; color: var(--sp-muted); }

.sp-split--dev { grid-template-columns: .9fr 1.1fr; }
.sp-ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: 10px; }
.sp-ticks li { padding-left: 30px; position: relative; color: #dfe6ff; }
.sp-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(110, 224, 191, .18); box-shadow: inset 0 0 0 1.5px #6ee0bf; }
.sp-ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px; border: solid #6ee0bf; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sp-code { background: #070d24; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.sp-code__tabs { display: flex; gap: 2px; padding: 8px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); flex-wrap: wrap; }
.sp-code__tabs button { background: none; border: 0; color: #93a1cc; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.sp-code__tabs button.is-on { background: rgba(77, 115, 240, .22); color: #fff; }
.sp-code pre { display: none; margin: 0; padding: 22px; color: #cfd8ff; font-size: .84rem; line-height: 1.6; overflow-x: auto; min-height: 330px; }
.sp-code pre.is-on { display: block; }

.sp-nets { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.sp-nets h3 { font-size: 1.05rem; }
.sp-chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--sp-line); font-weight: 700; color: var(--sp-ink); }
.sp-chips li img { border-radius: 50%; }
.sp-chips li small { color: var(--sp-muted); font-weight: 600; }
.sp-chips li.is-off { opacity: .45; }
.sp-chips--small li { padding: 6px 11px; font-size: .86rem; font-weight: 600; }

.sp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sp-faq__col { display: grid; gap: 12px; }
.sp-faq details { background: var(--sp-bg); border: 1px solid var(--sp-line); border-radius: 14px; padding: 4px 18px; }
.sp-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--sp-ink); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.sp-faq summary::after { content: "+"; font-weight: 800; color: var(--sp-blue); }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq p { margin: 0 0 16px; color: var(--sp-muted); }
.sp-final { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 88px auto 24px; padding: 40px 48px; border-radius: 24px; background: linear-gradient(120deg, #375bd2, #2a47b0 60%, #1d3592); color: #dbe4ff; }
.sp-final h2 { color: #fff; margin-bottom: .25em; }
.sp-final p { margin: 0; }
.sp-final .sp-btn { background: #fff; color: var(--sp-blue-2) !important; }
.sp-legal { padding-bottom: 48px; text-align: center; }

/* ============================================================ pay page */
.sp--pay { background: var(--sp-bg); padding: 0 0 48px; }
.sp-paybg { position: absolute; left: 0; right: 0; top: 0; height: 300px; background: linear-gradient(160deg, #0a1230, #142160); overflow: hidden; }
.sp-paybg canvas { width: 100%; height: 100%; display: block; }
.sp-paypage { padding-top: 40px; }
.sp-testbar { position: relative; background: #f2e9ff; color: #6a2fc4; border-radius: 12px; padding: 10px 16px; font-weight: 600; margin: 0 0 16px; }
.sp-paygrid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.sp-summary, .sp-paybox { background: var(--sp-card); border-radius: 22px; box-shadow: 0 30px 70px -36px rgba(10, 18, 48, .5), 0 0 0 1px rgba(14, 23, 48, .04); padding: 30px; }
.sp-summary__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.sp-merchant { display: flex; align-items: center; gap: 12px; }
.sp-merchant > span { display: flex; flex-direction: column; line-height: 1.25; }
.sp-merchant small { font-size: .76rem; color: var(--sp-muted); font-weight: 600; }
.sp-merchant b { color: var(--sp-ink); font-size: 1.05rem; }
.sp-merchant a { font-size: .82rem; text-decoration: none; }
.sp-merchant__logo { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--sp-line); }
.sp-merchant__logo--letter { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4d73f0, #2a47b0); color: #fff; font-weight: 800; font-size: 1.2rem; border: 0; }
.sp-summary__title { font-size: 1.7rem; margin-bottom: .2em; }
.sp-summary__no { color: var(--sp-muted); font-size: .92rem; margin: 0 0 12px; }
.sp-summary__amount { display: flex; flex-direction: column; margin: 18px 0; padding: 18px 20px; border-radius: 16px; background: var(--sp-bg); }
.sp-summary__amount small { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--sp-muted); }
.sp-summary__amount b { font-size: 2.5rem; color: var(--sp-ink); letter-spacing: -.03em; line-height: 1.1; }
.sp-summary__amount span { color: var(--sp-muted); font-size: .9rem; }
.sp-summary__memo { white-space: pre-line; background: #fbfcff; border-left: 3px solid var(--sp-blue); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--sp-text); }
.sp-lines { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: .94rem; }
.sp-lines th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); padding: 8px 6px; border-bottom: 1px solid var(--sp-line); }
.sp-lines td { padding: 10px 6px; border-bottom: 1px solid #f0f2f8; vertical-align: top; }
.sp-lines td small { color: var(--sp-muted); display: block; }
.sp-lines th:not(:first-child), .sp-lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.sp-lines tfoot td { border: 0; padding: 5px 6px; }
.sp-lines tfoot td:first-child { text-align: right; color: var(--sp-muted); }
.sp-lines tfoot .is-total td { font-weight: 800; color: var(--sp-ink); font-size: 1.05rem; border-top: 1px solid var(--sp-line); padding-top: 10px; }
.sp-summary__links { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 4px; font-weight: 600; font-size: .92rem; }
.sp-summary__links a { text-decoration: none; }
.sp-facts { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--sp-line); }
.sp-facts div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--sp-line); font-size: .92rem; }
.sp-facts dt { color: var(--sp-muted); }
.sp-facts dd { margin: 0; color: var(--sp-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.sp-facts dd img { border-radius: 50%; }
.sp-facts--grid { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.sp-trust { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #fbfcff; border: 1px solid var(--sp-line); font-size: .86rem; color: var(--sp-muted); }
.sp-trust p { margin: 0 0 8px; }
.sp-trust i { color: var(--sp-blue); }

.sp-paybox { position: sticky; top: 90px; }
.sp-paybox__loading { padding: 40px 0; text-align: center; color: var(--sp-muted); }
.sp-paybox__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sp-paybox__head h2 { margin: 0; font-size: 1.4rem; }
.sp-paybox__acct { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--sp-ink); background: var(--sp-bg); border-radius: 999px; padding: 5px 11px; }
.sp-paybox__acct i, .sp-who i { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-green); box-shadow: 0 0 0 3px rgba(18, 163, 123, .18); }
.sp-paybox__bal { font-size: .84rem; color: var(--sp-muted); margin-top: 6px; }
.sp-paybox__sum { min-height: 60px; margin: 16px 0; }
.sp-paybox__note { font-size: .9rem; margin: 10px 0 0; }
.sp-paybox__notice { font-size: .82rem; color: var(--sp-muted); background: #fbfcff; border: 1px solid var(--sp-line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.sp-paybox__notice b { color: var(--sp-ink); }
.sp-paybox__notice .sp-linkbtn { font-size: .82rem; }
.sp-paybox__note.is-bad { color: var(--sp-red); }
.sp-paybox__note.is-ok { color: var(--sp-green); }
.sp-paybox__more { margin: 16px 0 0; font-size: .92rem; }
.sp-paybox__more summary { cursor: pointer; color: var(--sp-blue); font-weight: 600; }
.sp-paybox__legal { font-size: .78rem; color: var(--sp-muted); margin: 14px 0 0; }
.sp-tokbtn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--sp-line); background: var(--sp-bg); cursor: pointer; text-align: left; font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.sp-tokbtn:hover { border-color: #b9c8f7; box-shadow: 0 0 0 4px rgba(55, 91, 210, .08); }
.sp-tokbtn > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.sp-tokbtn b { color: var(--sp-ink); font-size: 1.05rem; }
.sp-tokbtn small { color: var(--sp-muted); font-size: .82rem; }
.sp-tokbtn__logo { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sp-tokbtn__logo > img:first-child { width: 38px; height: 38px; border-radius: 50%; }
.sp-tokbtn__logo > b { font-size: 1.05rem; color: var(--sp-blue); }
.sp-tokbtn__chain { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #fff; }
.sp-quote { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #f7f9ff, #eef3ff); border: 1px solid #dbe4fb; position: relative; }
.sp-quote__pay, .sp-quote__get { display: flex; flex-direction: column; }
.sp-quote small { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--sp-muted); }
.sp-quote b { font-size: 1.45rem; color: var(--sp-ink); letter-spacing: -.02em; }
.sp-quote span { font-size: .84rem; color: var(--sp-muted); }
.sp-quote__get b { color: #0d6e53; }
.sp-quote__arrow { color: var(--sp-blue); font-size: .9rem; }
.sp-lines2 { margin: 12px 0 6px; display: grid; }
.sp-lines2 div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed var(--sp-line); }
.sp-lines2 dt { color: var(--sp-muted); }
.sp-lines2 dd { margin: 0; font-weight: 700; color: var(--sp-ink); text-align: right; }
.sp-lines2 dd small { font-weight: 500; color: var(--sp-muted); }
.sp-protect { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .84rem; color: var(--sp-muted); }
.sp-protect span { margin-right: auto; }
.sp-protect button { border: 1px solid var(--sp-line); background: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--sp-text); cursor: pointer; }
.sp-protect button.is-on { border-color: var(--sp-blue); color: var(--sp-blue); background: var(--sp-blue-soft); }
.sp-done { text-align: center; padding: 10px 0; display: grid; gap: 12px; justify-items: center; }
.sp-done h2 { margin: 0; }
.sp-done p { margin: 0; }
.sp-done .sp-btn { width: 100%; }
.sp-done__icon { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--sp-blue-soft); color: var(--sp-blue); }
.sp-done.is-confirmed .sp-done__icon { background: var(--sp-green-soft); color: var(--sp-green); animation: spPop .5s cubic-bezier(.2, 1.6, .4, 1); }
.sp-done.is-failed .sp-done__icon, .sp-done.is-blocked .sp-done__icon { background: var(--sp-amber-soft); color: var(--sp-amber); }
.sp-done__tx { font-weight: 600; font-size: .9rem; text-decoration: none; }
@keyframes spPop { from { transform: scale(.5); } to { transform: scale(1); } }
.sp-poweredby { text-align: center; margin: 28px 0 0; color: var(--sp-muted); font-size: .86rem; }
.sp-poweredby a { color: var(--sp-muted); text-decoration: none; }
.sp-poweredby .sp-logo { width: 18px; height: 18px; border-radius: 5px; margin-right: 4px; }

/* forms */
.sp-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; position: relative; }
.sp-field > span:first-child { font-size: .84rem; font-weight: 700; color: var(--sp-ink); }
.sp-field > small, .sp-field .sp-err { font-size: .8rem; color: var(--sp-muted); }
.sp-field .sp-err { color: var(--sp-red); font-weight: 600; }
.sp-field.is-bad input, .sp-field.is-bad select, .sp-field.is-bad textarea { border-color: var(--sp-red); }
.sp input:not([type=checkbox]):not([type=radio]):not([type=file]), .sp select, .sp textarea { width: 100%; border: 1px solid #d6ddee; border-radius: 11px; padding: .68em .85em; font: inherit; font-size: .95rem; color: var(--sp-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.sp input:focus, .sp select:focus, .sp textarea:focus { outline: none; border-color: var(--sp-blue); box-shadow: 0 0 0 4px rgba(55, 91, 210, .12); }
.sp-usd { display: flex; align-items: center; border: 1px solid #d6ddee; border-radius: 11px; background: #fff; padding-left: .85em; }
.sp-usd b { color: var(--sp-muted); }
.sp .sp-usd input { border: 0 !important; box-shadow: none !important; font-size: 1.1rem; font-weight: 700; }
.sp-field--amount .sp-usd input { font-size: 1.5rem; }
.sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-row2 > .sp-field:nth-child(3) { grid-column: 1 / -1; }
.sp-inline { display: flex; gap: 8px; align-items: center; }
.sp-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #eef1f8; border-radius: 12px; padding: 4px; }
.sp-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--sp-text); cursor: pointer; }
.sp-seg button.is-on { background: #fff; color: var(--sp-ink); box-shadow: 0 1px 3px rgba(14, 23, 48, .12); }
.sp-seg--wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sp-seg--wide label { cursor: pointer; }
.sp-seg--wide input { position: absolute; opacity: 0; pointer-events: none; }
.sp-seg--wide span { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 9px; line-height: 1.25; }
.sp-seg--wide span b { color: var(--sp-ink); font-size: .92rem; }
.sp-seg--wide span small { color: var(--sp-muted); font-size: .76rem; }
.sp-seg--wide input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(14, 23, 48, .12), inset 0 0 0 1.5px var(--sp-blue); }
.sp-seg--wide input:disabled + span { opacity: .6; }
.sp-nets2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.sp-netopt { cursor: pointer; }
.sp-netopt input { position: absolute; opacity: 0; pointer-events: none; }
.sp-netopt span { display: grid; grid-template-columns: 22px 1fr; column-gap: 9px; align-items: center; padding: 9px 11px; border: 1px solid var(--sp-line); border-radius: 11px; background: #fff; }
.sp-netopt img { grid-row: span 2; border-radius: 50%; }
.sp-netopt b { color: var(--sp-ink); font-size: .9rem; }
.sp-netopt small { color: var(--sp-muted); font-size: .74rem; }
.sp-netopt input:checked + span { border-color: var(--sp-blue); box-shadow: 0 0 0 3px rgba(55, 91, 210, .14); }
.sp-netopt.is-off { opacity: .45; cursor: not-allowed; }
.sp-more { margin: 4px 0 16px; }
.sp-more summary { cursor: pointer; font-weight: 700; color: var(--sp-blue); margin-bottom: 12px; }
.sp-checks { display: grid; gap: 6px; }
.sp-checks label { display: grid; grid-template-columns: 18px auto 1fr; gap: 8px; align-items: baseline; font-size: .9rem; }
.sp-checks small { color: var(--sp-muted); }
.sp-formfoot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.sp-formfoot--sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--sp-bg) 30%); padding: 22px 0 14px; z-index: 5; }
.sp-inlineform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.sp-inlineform input, .sp-inlineform select { flex: 1 1 180px; width: auto !important; }
.sp-form .sp-note { margin-top: 10px; }

/* dialog */
.sp-dialog { border: 0; border-radius: 20px; padding: 30px; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 40px 90px -30px rgba(10, 18, 48, .55); color: var(--sp-text); }
.sp-dialog::backdrop { background: rgba(10, 18, 48, .55); backdrop-filter: blur(3px); }
.sp-dialog h2 { margin-top: 0; font-size: 1.35rem; color: var(--sp-ink); }
.sp-dialog__x { position: absolute; right: 14px; top: 14px; border: 0; background: var(--sp-bg); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--sp-muted); }
.sp-custlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.sp-custlist button { width: 100%; text-align: left; display: flex; flex-direction: column; border: 1px solid var(--sp-line); background: #fff; border-radius: 11px; padding: 9px 12px; cursor: pointer; font: inherit; }
.sp-custlist button:hover { border-color: var(--sp-blue); }
.sp-custlist small { color: var(--sp-muted); }
.sp-share { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.sp-share img { border-radius: 12px; border: 1px solid var(--sp-line); }
.sp-sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sp-sharebtns a { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--sp-line); border-radius: 11px; text-decoration: none; color: var(--sp-ink); font-weight: 600; font-size: .9rem; }
.sp-sharebtns a:hover { background: var(--sp-blue-soft); }
.sp-linkrow { display: flex; gap: 8px; margin: 12px 0; }
.sp-mailform { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sp-line); }
.sp-mailform h3 { font-size: 1rem; margin-bottom: 10px; }
.sp-linkrow input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem !important; background: var(--sp-bg) !important; }

/* ============================================================ printable invoice + receipt */
.sp--invoice, .sp--receipt { background: #eef1f8; padding: 30px 0 60px; }
.sp-docbar { max-width: 860px; margin: 0 auto 16px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sp-docbar a { font-weight: 600; text-decoration: none; }
.sp-doc { max-width: 860px; margin: 0 auto; background: #fff; padding: 56px 60px; border-radius: 6px; box-shadow: 0 20px 50px -30px rgba(10, 18, 48, .45); color: #1f2740; font-size: 14.5px; }
.sp-doc__top { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.sp-doc__from { display: flex; flex-direction: column; gap: 2px; }
.sp-doc__from b { font-size: 1.15rem; color: var(--sp-ink); margin-bottom: 4px; }
.sp-doc__logo { max-width: 150px; max-height: 64px; object-fit: contain; margin-bottom: 10px; align-self: flex-start; }
.sp-doc__title { text-align: right; }
.sp-doc__title h1 { font-size: 2.2rem; letter-spacing: .02em; margin: 0 0 12px; }
.sp-doc__title dl { margin: 0; display: grid; gap: 3px; }
.sp-doc__title dl div { display: flex; justify-content: flex-end; gap: 14px; }
.sp-doc__title dt { color: var(--sp-muted); }
.sp-doc__title dd { margin: 0; font-weight: 700; min-width: 110px; }
.sp-doc__bill { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.sp-doc__bill small, .sp-doc__payments h2 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-muted); font-weight: 800; }
.sp-doc__bill b { font-size: 1.05rem; }
.sp-doc__lines, .sp-doc__payments table { width: 100%; border-collapse: collapse; }
.sp-doc__lines th, .sp-doc__payments th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); padding: 10px 8px; border-bottom: 2px solid #1f2740; }
.sp-doc__lines td, .sp-doc__payments td { padding: 11px 8px; border-bottom: 1px solid #e6e9f2; vertical-align: top; }
.sp-doc__lines th:not(:first-child), .sp-doc__lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.sp-doc__lines tfoot td { border: 0; padding: 6px 8px; }
.sp-doc__lines tfoot td:first-child { text-align: right; color: var(--sp-muted); }
.sp-doc__lines tfoot .is-total td { font-weight: 800; font-size: 1.1rem; color: #0e1730; border-top: 2px solid #1f2740; }
.sp-doc__notes { white-space: pre-line; margin: 24px 0; padding: 14px 16px; background: #f7f8fc; border-radius: 6px; }
.sp-doc__payments { margin-top: 28px; }
.sp-doc__payments h2 { margin-bottom: 8px; }
.sp-doc__pay { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; padding: 18px 20px; border: 1px solid #dfe4f2; border-radius: 10px; }
.sp-doc__pay > div { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; word-break: break-all; }
.sp-doc__pay b { font-size: 1rem; color: var(--sp-ink); }
.sp-doc__qr img { display: block; }
.sp-doc__fine { margin: 24px 0 0; font-size: .78rem; color: var(--sp-muted); }
@media print {
  @page { size: A4; margin: 14mm; }
  body * { visibility: hidden !important; }
  .sp-doc, .sp-doc * { visibility: visible !important; }
  .sp-doc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; padding: 0; border-radius: 0; }
  .sp-noprint { display: none !important; }
}

/* ============================================================ dashboard */
.sp--app { background: var(--sp-bg); padding-top: 0 !important; padding-bottom: 60px; }
.sp-apphead { background: linear-gradient(160deg, #0a1230, #142160); color: #c9d3f2; }
.sp-apphead__in { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.sp-apphead__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.sp-apphead__brand .sp-logo { width: 32px; height: 32px; }
.sp-apphead__right { display: flex; align-items: center; gap: 16px; }
.sp-apphead .sp-linkbtn { color: #a9bcff; }
.sp-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; font-size: .88rem; }
.sp-app { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding-top: 28px; align-items: start; }
.sp-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 3px; }
.sp-side a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 11px; color: var(--sp-text); text-decoration: none; font-weight: 600; }
.sp-side a i { width: 18px; text-align: center; color: #8a95b3; }
.sp-side a:hover { background: #fff; }
.sp-side a.is-on { background: #fff; color: var(--sp-blue-2); box-shadow: var(--sp-shadow); }
.sp-side a.is-on i { color: var(--sp-blue); }
.sp-modeswitch { margin-top: 14px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 11px; border: 1px dashed #c7b3ef; color: #6a2fc4; font-weight: 700; font-size: .88rem; cursor: pointer; }
.sp-app.is-test .sp-main { box-shadow: inset 0 3px 0 #9b6cf0; border-radius: 4px; }
.sp-main { min-width: 0; }
.sp-mainhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 4px 0 24px; flex-wrap: wrap; }
.sp-mainhead h1 { font-size: 1.9rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-mainhead p { margin: 0; color: var(--sp-muted); max-width: 680px; }
.sp-mainhead__act { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.sp-stats > div { background: #fff; border: 1px solid var(--sp-line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; }
.sp-stats small { font-size: .78rem; font-weight: 700; color: var(--sp-muted); }
.sp-stats b { font-size: 1.7rem; color: var(--sp-ink); letter-spacing: -.02em; }
.sp-stats span { font-size: .82rem; color: var(--sp-muted); }
.sp-tip { display: flex; gap: 14px; align-items: flex-start; background: var(--sp-blue-soft); border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; color: var(--sp-blue-2); }
.sp-tip > i { margin-top: 4px; }
.sp-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp-panel { background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; padding: 22px; margin-bottom: 20px; min-width: 0; }
.sp-panel h2 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.sp-panel h2 a { font-size: .86rem; font-weight: 600; text-decoration: none; }
.sp-panel h3 { font-size: 1rem; margin-top: 22px; }
.sp-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; padding: 26px; margin-bottom: 20px; }
.sp-card h2 { font-size: 1.15rem; margin-top: 6px; }
.sp-tablewrap { overflow-x: auto; margin: 0 -4px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); padding: 8px 10px; border-bottom: 1px solid var(--sp-line); white-space: nowrap; }
.sp-table td { padding: 11px 10px; border-bottom: 1px solid #f0f2f8; vertical-align: top; }
.sp-table td small { display: block; color: var(--sp-muted); font-size: .8rem; margin-top: 2px; }
.sp-table td small img { vertical-align: -2px; border-radius: 50%; }
.sp-table tr[data-href] { cursor: pointer; }
.sp-table tr[data-href]:hover td { background: #fafbff; }
.sp-table a { text-decoration: none; }
.sp-table .sp-actions { white-space: nowrap; }
.sp-table .sp-actions button { margin-right: 10px; }
.sp-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.sp-filters input[type=search] { max-width: 360px; }
.sp-filters input[type=date] { width: auto !important; }
.sp-empty { text-align: center; padding: 36px 16px; color: var(--sp-muted); }
.sp-empty p { margin: 0 0 12px; }
.sp-editor { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.sp-preview { position: sticky; top: 90px; }
.sp-preview__label { display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); margin-bottom: 8px; }
.sp-preview__card { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--sp-shadow); border: 1px solid var(--sp-line); }
.sp-preview__card h3 { margin: 16px 0 0; font-size: 1.25rem; word-break: break-word; }
.sp-preview__pay { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--sp-line); border-radius: 12px; color: var(--sp-muted); font-weight: 600; }
.sp-preview__get { font-size: .88rem; margin: 12px 0 0; color: var(--sp-text); }
.sp-preview__get img { vertical-align: -3px; border-radius: 50%; }
.sp-invoice-edit { max-width: 980px; }
.sp-inv-sheet__top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.sp-inv-from { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.sp-inv-from b { color: var(--sp-ink); font-size: 1.1rem; }
.sp-inv-from a { font-size: .86rem; font-weight: 600; margin-top: 6px; }
.sp-inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; max-width: 460px; }
.sp-billto { border: 1px solid var(--sp-line); border-radius: 14px; padding: 14px 18px 2px; margin: 0 0 18px; }
.sp-billto legend { font-weight: 800; color: var(--sp-ink); padding: 0 6px; display: flex; gap: 14px; align-items: center; }
.sp-items { width: 100%; border-collapse: collapse; }
.sp-items th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-muted); padding: 6px 6px; }
.sp-items td { padding: 4px 6px; vertical-align: middle; }
.sp-items td:nth-child(2), .sp-items td:nth-child(4) { width: 90px; }
.sp-items td:nth-child(3) { width: 150px; }
.sp-items td:nth-child(5) { width: 110px; text-align: right; font-weight: 700; color: var(--sp-ink); white-space: nowrap; }
.sp-items td:last-child { width: 40px; }
.sp-inv-totals { margin: 8px 0 20px auto; max-width: 340px; display: grid; gap: 4px; }
.sp-inv-totals div { display: flex; justify-content: space-between; }
.sp-inv-totals span { color: var(--sp-muted); }
.sp-inv-totals .is-total { border-top: 1px solid var(--sp-line); padding-top: 8px; font-size: 1.15rem; }
.sp-inv-totals .is-total b { color: var(--sp-ink); }
.sp-detail { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.sp-detail__amount { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--sp-line); }
.sp-detail__amount > div { display: flex; flex-direction: column; gap: 4px; }
.sp-detail__amount small { font-size: .76rem; font-weight: 700; color: var(--sp-muted); }
.sp-detail__amount b { font-size: 1.5rem; color: var(--sp-ink); }
.sp-detail__side { display: grid; gap: 10px; }
.sp-detail__side h2 { margin-bottom: 4px; }
.sp-secret { background: var(--sp-amber-soft); border: 1px solid #f1d394; border-radius: 16px; padding: 16px 20px; margin-bottom: 20px; }
.sp-secret p { margin: 4px 0 0; color: #8a5a04; }
.sp-pre { background: #0b1230; color: #cfd8ff; padding: 16px; border-radius: 12px; font-size: .84rem; overflow-x: auto; }
.sp-hookform { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sp-line); }
.sp-logoedit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-logoedit img, .sp-logoedit .sp-merchant__logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; border: 1px solid var(--sp-line); }
.sp-logoedit small { color: var(--sp-muted); width: 100%; }
.sp-receivers ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.sp-receivers li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--sp-line); border-radius: 12px; }
.sp-receivers li small { color: var(--sp-muted); flex: 1; }
.sp-gate { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 20px 0 40px; }
.sp-gate__card { background: #fff; border-radius: 22px; padding: 36px; box-shadow: var(--sp-shadow); border: 1px solid var(--sp-line); }
.sp-gate__card h1 { font-size: 1.9rem; }
.sp-gate__icon { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; background: var(--sp-blue-soft); color: var(--sp-blue); align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.sp-gate__addr { background: var(--sp-bg); border-radius: 12px; padding: 10px 14px; }
.sp-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: .9rem; cursor: pointer; }
.sp-consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--sp-blue); }
.sp-gate__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sp-gate__list li { display: flex; flex-direction: column; padding: 16px 18px; border-left: 3px solid var(--sp-blue); background: #fff; border-radius: 0 14px 14px 0; }
.sp-gate__list b { color: var(--sp-ink); }
.sp-gate__list span { color: var(--sp-muted); font-size: .92rem; }
.sp-missing { text-align: center; padding: 100px 24px; }
.sp-missing__mark .sp-logo { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 16px; }

/* ============================================================ responsive */
@media (max-width: 1100px) {
  .sp-hero__grid, .sp-split, .sp-split--dev, .sp-nets { grid-template-columns: 1fr; gap: 44px; }
  .sp-demo__card { margin: 0 auto; }
  .sp-flow { grid-template-columns: 1fr; gap: 14px; }
  .sp-flow > .sp-flow__pipe { height: 26px; width: 4px; margin: 0 auto; }
  .sp-flow > .sp-flow__pipe i { width: 4px; height: 10px; animation-name: spPipeV; }
  .sp-flow__fork { grid-template-columns: 30px 1fr; }
  .sp-paygrid, .sp-editor, .sp-detail { grid-template-columns: 1fr; }
  .sp-paybox, .sp-preview { position: static; }
  .sp-app { grid-template-columns: 1fr; gap: 16px; }
  .sp-side { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .sp-side a { white-space: nowrap; padding: 8px 12px; }
  .sp-modeswitch { margin-top: 0; white-space: nowrap; }
  .sp-stats { grid-template-columns: repeat(2, 1fr); }
  .sp-cols2, .sp-gate { grid-template-columns: 1fr; }
}
@keyframes spPipeV { from { top: -12px; left: 0; } to { top: 100%; left: 0; } }
@media (max-width: 760px) {
  .sp-wrap { padding: 0 16px; }
  .sp-hero { padding: 44px 0 64px; }
  .sp-band { padding: 60px 16px; }
  .sp-band--tint, .sp-band--navy { padding: 60px 0; }
  .sp-steps, .sp-cards3, .sp-faq { grid-template-columns: 1fr; }
  .sp-steps::before { display: none; }
  .sp-final { flex-direction: column; align-items: flex-start; padding: 28px; margin-top: 60px; }
  .sp-demo__chips { display: none; }
  .sp-summary, .sp-paybox { padding: 22px; border-radius: 18px; }
  .sp-summary__amount b { font-size: 2rem; }
  .sp-row2, .sp-inv-meta, .sp-facts--grid { grid-template-columns: 1fr; }
  .sp-seg--wide { grid-auto-flow: row; }
  .sp-inv-sheet__top { flex-direction: column; }
  .sp-items thead { display: none; }
  .sp-items tr { display: grid; grid-template-columns: 1fr 1fr 1fr 40px; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--sp-line); }
  .sp-items td { width: auto !important; padding: 0; }
  .sp-items td:first-child { grid-column: 1 / -1; }
  .sp-items td:nth-child(5) { grid-column: 1 / 4; text-align: left; }
  .sp-detail__amount { grid-template-columns: 1fr 1fr; }
  .sp-doc { padding: 28px 20px; }
  .sp-doc__top { flex-direction: column; }
  .sp-doc__title { text-align: left; }
  .sp-doc__title dl div { justify-content: flex-start; }
  .sp-doc__lines { font-size: 13px; }
  .sp-share { grid-template-columns: 1fr; justify-items: center; }
  .sp-stats { grid-template-columns: 1fr 1fr; }
  .sp-stats b { font-size: 1.3rem; }
}

/* Pay page order (2026-11-04): the button sits right under the quote; on narrow screens the request card splits
   around the pay box: who and how much first, then pay, then the details */
.sp-paybox__lines { margin-top: 16px; }
.sp-paybox__lines .sp-lines2 { margin-top: 0; }
.sp-paybox__notice i { color: var(--sp-blue); margin-right: 2px; }
.sp-paybox .sp-paybox__legal { margin-top: 10px; }
.sp-summary__more > :first-child { margin-top: 0; }
.sp-summary__top .sp-summary__amount { margin-bottom: 0; }
.sp-summary__more { margin-top: 18px; }
@media (max-width: 1100px) {
  .sp-paypage .sp-summary { display: contents; }
  .sp-paypage .sp-summary__top, .sp-paypage .sp-summary__more {
    background: var(--sp-card); border-radius: 22px; padding: 26px 30px;
    box-shadow: 0 30px 70px -36px rgba(10, 18, 48, .5), 0 0 0 1px rgba(14, 23, 48, .04);
  }
  .sp-paypage .sp-summary__top { order: 1; }
  .sp-paypage .sp-paybox { order: 2; }
  .sp-paypage .sp-summary__more { order: 3; margin-top: 0; }
  .sp-paygrid { gap: 18px; }
}
@media (max-width: 760px) {
  .sp-paypage { padding-top: 22px; }
  .sp-paypage .sp-summary__top, .sp-paypage .sp-summary__more { padding: 20px 22px; border-radius: 18px; }
  .sp-paypage .sp-summary__head { margin-bottom: 14px; }
  .sp-paypage .sp-summary__title { font-size: 1.35rem; }
  .sp-paypage .sp-summary__amount { margin-top: 12px; padding: 14px 16px; }
  .sp-paypage .sp-paybox__head { margin-bottom: 10px; }
}

.sp-paybox__more + .sp-paybox__notice { margin-top: 14px; }
