/* X-WORLD Pay — checkout. Rectangular, slightly rounded; light and dark. */
:root {
  --bg: #f4f6fb; --card: #ffffff; --text: #0f172a; --muted: #5b6577; --line: rgba(15, 23, 42, .09);
  --field: #f7f8fc; --hover: #eef2ff; --a1: #2f6bff; --a2: #7c3aed; --ok: #16a34a; --bad: #dc2626; --warn: #b45309;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .08);
  --r: 12px; --rs: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d14; --card: #141824; --text: #e8ecf5; --muted: #98a2b8; --line: rgba(255, 255, 255, .08);
    --field: #1a1f2e; --hover: #1f2740; --a1: #4c82ff; --a2: #8b5cf6; --ok: #22c55e; --bad: #f87171; --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35); color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--a1); }
.xp-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 40% at 15% 0%, color-mix(in srgb, var(--a1) 16%, transparent), transparent 70%),
              radial-gradient(50% 40% at 90% 10%, color-mix(in srgb, var(--a2) 14%, transparent), transparent 70%); }
.xp { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; min-height: 100vh;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.xp-top { display: flex; align-items: center; justify-content: center; padding-top: 8px; }
.xp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 17px; white-space: pre; letter-spacing: .01em; }
.xp-logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--a1), var(--a2)); position: relative; }
.xp-logo::before, .xp-logo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; border-radius: 2px; background: #fff; }
.xp-logo::before { transform: translate(-50%, -50%) rotate(45deg); }
.xp-logo::after { transform: translate(-50%, -50%) rotate(-45deg); }

.xp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 22px; position: relative; }
.xp-sbx { position: absolute; top: 12px; inset-inline-end: 12px; font: 700 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em;
  color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 4px 6px; }
.xp-to { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 13px; }
.xp-to b { color: var(--text); font-size: 15px; font-weight: 600; }
.xp-sum { font-size: 40px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.xp-sum small { font-size: 22px; color: var(--muted); font-weight: 600; }
.xp-sum em { font-style: normal; font-size: 28px; color: var(--muted); font-weight: 600; }
.xp-desc { margin: 0 0 4px; }
.xp-order { margin: 0; color: var(--muted); font-size: 13px; }
.xp-order code { font: 12px ui-monospace, Menlo, Consolas, monospace; background: var(--field); border-radius: 4px; padding: 2px 6px; }
.xp-err { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--rs); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); font-size: 14px; }

.xp-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.xp-methods h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.xp-m { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; font: inherit; color: var(--text); cursor: pointer;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--rs); padding: 12px 14px; transition: border-color .15s, background .15s, transform .05s; }
.xp-m:hover:not(:disabled) { border-color: var(--a1); background: var(--hover); }
.xp-m:active:not(:disabled) { transform: translateY(1px); }
.xp-m:focus-visible { outline: 2px solid var(--a1); outline-offset: 2px; }
.xp-m:disabled { cursor: default; opacity: .55; }
.xp-ico { flex: 0 0 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.xp-m-kaspi .xp-ico { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.xp-m-halyk .xp-ico { background: linear-gradient(135deg, #10b981, #047857); }
.xp-m-crypto .xp-ico { background: linear-gradient(135deg, #f59e0b, #0ea5e9); }
.xp-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xp-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.xp-mt b { font-weight: 600; }
.xp-mt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-soon { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; }
.xp-go { color: var(--a1); font-size: 20px; }
[dir="rtl"] .xp-go { transform: scaleX(-1); }
.xp-methods.is-busy .xp-m { pointer-events: none; opacity: .6; }

.xp-secure { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }
.xp-secure svg { flex: 0 0 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.xp-cancel { align-self: center; color: var(--muted); font-size: 14px; text-decoration: none; }
.xp-cancel:hover { color: var(--text); text-decoration: underline; }

.xp-msg { text-align: center; }
.xp-msg h1 { font-size: 21px; margin: 12px 0 6px; text-wrap: balance; }
.xp-muted { color: var(--muted); margin: 0; }
.xp-state { display: grid; place-items: center; height: 56px; }
.xp-state svg { width: 52px; height: 52px; fill: none; stroke: var(--bad); stroke-width: 1.6; stroke-linecap: round; }
.xp-spin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--a1); animation: xp-r .9s linear infinite; }
@keyframes xp-r { to { transform: rotate(360deg); } }
.xp-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.xp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--rs); border: 0; cursor: pointer;
  font: 600 15px/1 inherit; font-family: inherit; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.xp-btn-ghost { background: var(--field); color: var(--text); border: 1px solid var(--line); }

.xp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.xp-foot a { color: inherit; text-decoration: none; }
.xp-lang label { display: inline-flex; align-items: center; gap: 8px; }
.xp-lang select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
@media (max-width: 400px) { .xp-card { padding: 20px 16px; } .xp-sum { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .xp-spin { animation-duration: 3s; } }
