@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --brand: #635bff;
  --brand-light: #7a73ff;
  --brand-soft: #f0eeff;
  --brand-ring: rgba(99, 91, 255, 0.18);
  --ink: #0a2540;
  --ink-2: #1a3a5c;
  --muted: #576b82;
  --muted-2: #8898aa;
  --line: #eef1f6;
  --bg: #ffffff;
  --card: #ffffff;
  --surface: #f8f9fb;
  --success: #30b566;
  --success-soft: #eafaf1;
  --warn: #e5a100;
  --warn-soft: #fff9e6;
  --danger: #df1b41;
  --danger-soft: #fde8ec;
  --pay-action: var(--ink);
  --pay-action-hover: #000000;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }

button {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─────────────── Page ─────────────── */
.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes popIn {
  0%   { transform: scale(0.3); opacity: 0; }
  70%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes ring {
  0%   { box-shadow: 0 0 0 0 var(--brand-ring); }
  100% { box-shadow: 0 0 0 20px rgba(99, 91, 255, 0); }
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@keyframes wave {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40%           { transform: scale(1);   opacity: 1; }
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────── Wrap + Card ─────────────── */
.wrap {
  width: 420px;
  max-width: 100%;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(10, 37, 64, 0.06),
    0 20px 48px -12px rgba(10, 37, 64, 0.1);
}

/* ─────────────── Tabs ─────────────── */
.tabs {
  display: flex;
  padding: 14px 20px 0;
  gap: 4px;
}

.tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  background: transparent;
  transition: all 0.15s ease;
}

.tab:hover { color: var(--ink-2); background: var(--surface); }

.tab.on {
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
}

.tab-label { display: inline-flex; align-items: center; }

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface);
  border-radius: 100px;
  line-height: 1;
}

.tab-pill-dot {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: breathe 2.6s ease-in-out infinite;
}

.tab.on .tab-pill { color: var(--muted); }
.tab.on .tab-pill-dot { background: var(--muted); }

.tab-soon { opacity: 0.45; }
.tab-soon:hover { opacity: 0.7; }

/* ─────────────── Header ─────────────── */
.mn { display: flex; flex-direction: column; }

.hd {
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.av {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--pay-action);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
}

.av-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  position: absolute;
  inset: 0;
  background: var(--pay-action);
}

.av-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
}

.av-img-hidden {
  display: none;
}

.hd-info { flex: 1; min-width: 0; }

.hd-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hd-email { display: none; }

.env-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a5b00;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Timer */
.tmr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--surface);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}

.tmr-d {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  animation: breathe 2s ease-in-out infinite;
}

.tmr-l { color: var(--muted-2); font-weight: 500; }

.tmr-v {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 10px;
  color: var(--ink);
}

.tmr.xx { background: var(--danger-soft); color: var(--danger); }
.tmr.xx .tmr-d { background: var(--danger); animation: none; }
.tmr.xx .tmr-v { color: var(--danger); }

/* ─────────────── Amount ─────────────── */
.amt-hero {
  padding: 12px 20px 28px;
  text-align: center;
}

.amt-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.amt-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1.5px;
  line-height: 1;
}

.amt-value .cur {
  font-size: 0.48em;
  font-weight: 500;
  color: var(--muted);
  margin-right: 3px;
  vertical-align: 0.15em;
}

/* ─────────────── Body ─────────────── */
.bd {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}

.bd-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* ─────────────── Bank selector (inside Bank Transfer view) ─────────────── */
.bnk-sel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 380px) {
  .bnk-sel { grid-template-columns: 1fr; }
}

.bnk-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.bnk-opt:hover {
  border-color: rgba(10, 37, 64, 0.18);
  background: var(--surface);
}

.bnk-opt.on {
  border-color: var(--ink);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.06);
}

.bnk-opt-ic {
  width: 34px;
  height: 30px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(10, 37, 64, 0.05);
}

.bnk-opt.on .bnk-opt-ic {
  background: #ffffff;
  border-color: rgba(10, 37, 64, 0.26);
  color: var(--ink);
}

.bnk-opt-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bnk-opt-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bnk-opt-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bnk-opt-demo {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 100px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bnk-opt-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bnk-opt-check svg {
  width: 11px;
  height: 11px;
}

.bnk-opt.on .bnk-opt-check {
  opacity: 1;
  transform: scale(1);
}

.blurb {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: 10px;
}

/* ─────────────── Account card ─────────────── */
.acc {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
}

.acc-bank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px;
}

.acc-bank-ic {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 5px;
  box-shadow:
    0 6px 16px rgba(10, 37, 64, 0.07),
    inset 0 0 0 1px rgba(255,255,255,0.65);
}

.acc-bank-info { flex: 1; min-width: 0; }

.bank-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-soft);
  color: var(--brand);
}

.bank-logo-no-img .bank-logo-fallback,
.bank-logo-failed .bank-logo-fallback {
  display: flex;
}

.bank-logo-failed .bank-logo-img {
  display: none;
}

.bank-logo-9psb {
  padding: 3px;
}

.bank-logo-safehaven {
  background: #050505;
}

.bank-logo-globus {
  background: #ff0040;
  padding: 0;
}

.acc-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.acc-bank-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.acc-bank-sub {
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 1px;
  font-weight: 400;
}

.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.acc-badge-d {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: var(--success);
}

/* Demo / alt bank badge tone */
.acc-badge.acc-badge-alt {
  color: var(--warn);
  background: var(--warn-soft);
}
.acc-badge.acc-badge-alt .acc-badge-d {
  background: var(--warn);
}

.rg {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.rg:hover:not(:disabled) {
  background: var(--brand-soft);
  color: var(--brand);
}

.rg:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rg svg {
  width: 14px;
  height: 14px;
}

.rg-spn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rg-spin {
  animation: spin 0.8s linear infinite;
}

.acc-row {
  padding: 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.acc-row + .acc-row { border-top: 1px solid var(--line); }

.acc-row-l { flex: 1; min-width: 0; }

.acc-row-k {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.acc-row-v {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.acc-row-v.mono {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* ─────────────── Copy button ─────────────── */
.cp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.cp:hover { color: var(--brand); background: var(--brand-soft); }

.cp-ok { background: var(--brand); color: #fff; }
.cp-ok:hover { background: var(--brand); color: #fff; }

/* ─────────────── Reference ─────────────── */
.ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 10px;
}

.ref-l { min-width: 0; }

.ref-k {
  font-size: 9px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.ref-v {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  word-break: break-all;
}

/* ─────────────── CTA ─────────────── */
.cta-area { margin-top: 20px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: var(--pay-action);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cta:hover:not(:disabled) {
  background: var(--pay-action-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.18);
}

.cta:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.cta:disabled {
  background: #e4e7ec;
  color: var(--muted-2);
  cursor: not-allowed;
}

.cta svg { width: 14px; height: 14px; }

/* ─────────────── Pending ─────────────── */
.pnd {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--brand-soft);
  border-radius: 10px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}

.pnd-ds { display: flex; gap: 4px; }

.pnd-d {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  animation: wave 1.4s ease-in-out infinite;
}

.pnd-d:nth-child(2) { animation-delay: 0.16s; }
.pnd-d:nth-child(3) { animation-delay: 0.32s; }

/* ─────────────── Boldswitch Pay ─────────────── */
.mono {
  font-family: "Space Grotesk", sans-serif;
}

.bp-form {
  gap: 12px;
}

.bp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 4px 0 2px;
}

.bp-card .bp-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin: 0;
  flex-shrink: 0;
  animation: none;
}

.bp-card .bp-mark svg {
  width: 18px;
  height: 18px;
}

.bp-card .bp-h {
  font-size: 15px;
  text-align: left;
}

.bp-card .bp-p {
  max-width: none;
  margin-top: 3px;
  text-align: left;
}

.bp-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bp-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bp-phone:focus-within {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.06);
}

.bp-phone-locked {
  opacity: 0.85;
}

.bp-flag {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.bp-prefix {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-right: 8px;
  border-right: 1px solid #dde3ea;
}

.bp-input,
.bp-otp {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.bp-input::placeholder,
.bp-otp::placeholder {
  color: #a9b3c0;
  font-weight: 600;
}

.bp-input:disabled,
.bp-otp:disabled {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  opacity: 1;
}

.bp-help {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

.bp-otp-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bp-summary {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.bp-otp {
  height: 54px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  text-align: center;
  font-size: 22px;
  letter-spacing: 3px;
}

.bp-otp:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.06);
}

.bp-attempts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.bp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.bp-cta {
  margin-top: 0;
}

.bp-link-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.bp-link-btn:hover:not(:disabled) {
  background: var(--brand-soft);
  color: var(--brand);
}

.bp-link-btn:disabled {
  cursor: not-allowed;
  color: var(--muted-2);
}

/* ─────────────── Footer ─────────────── */
.sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 20px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  transition: color 0.15s ease;
}

.sec:hover { color: var(--ink-2); }
.sec:hover .sec-brand { color: var(--brand); }

.sec-brand {
  color: var(--ink);
  font-weight: 600;
}

.sec svg { color: var(--muted-2); }

/* ─────────────── States ─────────────── */
.bp, .ok, .state, .home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 40px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.bp-mark, .home-mark {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  animation: hover 3s ease-in-out infinite;
  color: var(--brand);
}

.bp-mark svg, .home-mark svg { width: 22px; height: 22px; }

.bp-h, .home-h, .ok-t, .state-t {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bp-p, .home-p, .ok-s, .state-p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 260px;
  margin-top: 8px;
  font-weight: 400;
}

.bp-badge, .home-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding: 7px 12px;
  background: var(--surface);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.bp-badge-d, .home-tag .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.home-tag .dot {
  background: var(--brand);
  animation: breathe 2s ease-in-out infinite;
}

/* ─────────────── Success ─────────────── */
.ok { padding: 48px 28px 36px; }

.ok-c {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--success);
  animation:
    popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    ring 1.2s ease-out 0.4s;
}

.ok-c svg { width: 24px; height: 24px; }

.ok-a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 14px;
  letter-spacing: -0.8px;
}

.ok-r, .state-r {
  font-size: 10px;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  word-break: break-all;
  text-align: center;
  max-width: 260px;
}

/* ─────────────── State ─────────────── */
.state-c {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 800;
  background: var(--surface);
  color: var(--muted);
}

.state-c.state-danger { background: var(--danger-soft); color: var(--danger); }
.state-c.state-warn   { background: var(--warn-soft);   color: var(--warn); }

.state-a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
}

.state-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.6;
}

.msg {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.msg.msg-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.msg.msg-success {
  color: var(--success);
  background: var(--success-soft);
}

.msg.msg-sandbox {
  color: #6b4b00;
  background: #fff7df;
}

/* ─────────────── Skeleton ─────────────── */
.sk {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.15s ease;
}

.sk-b {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface) 25%, #fff 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.sk-head   { height: 32px; width: 70%; margin-bottom: 6px; }
.sk-row    { height: 52px; width: 100%; }
.sk-row.short { width: 78%; }
.sk-btn    { height: 46px; width: 100%; margin-top: 4px; }

/* ─────────────── Mobile ─────────────── */
@media (max-width: 480px) {
  .page {
    padding: 0;
    align-items: stretch;
  }

  .wrap {
    width: 100%;
    max-width: 100%;
    animation: none;
  }

  .card {
    border-radius: 0;
    min-height: 100dvh;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .mn { flex: 1; }

  .tabs { padding: 10px 16px 0; gap: 3px; }

  .tab { padding: 9px 10px; font-size: 12px; border-radius: 8px; }

  .hd { padding: 16px 16px 10px; gap: 8px; }

  .av { width: 26px; height: 26px; font-size: 10px; border-radius: 7px; }

  .hd-name { font-size: 12px; }

  .tmr { padding: 4px 8px; font-size: 9px; gap: 4px; }
  .tmr-d { width: 3.5px; height: 3.5px; }
  .tmr-v { font-size: 9px; }

  .amt-hero { padding: 8px 16px 22px; }
  .amt-label { font-size: 9px; margin-bottom: 6px; }
  .amt-value { font-size: 30px; letter-spacing: -1px; }

  .bd { padding: 0 16px 16px; }
  .bd-label { font-size: 9px; margin-bottom: 10px; }

  .blurb { font-size: 11px; padding: 10px 12px; margin-bottom: 12px; }

  .acc { border-radius: 12px; }

  .acc-bank { padding: 14px 14px; gap: 8px; }
  .bnk-opt-ic { width: 30px; height: 28px; border-radius: 9px; padding: 4px; }
  .acc-bank-ic { width: 34px; height: 34px; font-size: 10px; border-radius: 10px; padding: 5px; }
  .acc-bank-name { font-size: 11px; }
  .acc-bank-sub { font-size: 9px; }

  .acc-tools { gap: 4px; }
  .acc-badge { padding: 2px 6px; font-size: 8px; }
  .acc-badge-d { width: 3px; height: 3px; }
  .rg { width: 26px; height: 26px; border-radius: 7px; }
  .rg svg { width: 13px; height: 13px; }

  .acc-row { padding: 14px 14px; gap: 10px; }
  .acc-row-k { font-size: 9px; margin-bottom: 4px; }
  .acc-row-v { font-size: 12px; }
  .acc-row-v.mono { font-size: 17px; letter-spacing: 1px; }

  .cp { padding: 5px 8px; font-size: 9px; border-radius: 5px; }

  .ref { padding: 12px 14px; margin-top: 12px; }
  .ref-k { font-size: 8px; margin-bottom: 2px; }
  .ref-v { font-size: 10px; }

  .cta-area { margin-top: 16px; }
  .cta { height: 44px; font-size: 13px; border-radius: 10px; }
  .cta svg { width: 13px; height: 13px; }

  .pnd { padding: 12px; font-size: 11px; margin-top: 16px; }
  .pnd-d { width: 4px; height: 4px; }

  .sec { padding: 14px 16px; font-size: 9px; margin-top: auto; }

  .ok, .state, .bp, .home { padding: 36px 20px 28px; }

  .ok-c { width: 44px; height: 44px; }
  .ok-c svg { width: 20px; height: 20px; }

  .ok-a { font-size: 22px; margin: 12px 0 10px; }
  .state-a { font-size: 20px; margin: 10px 0 10px; }

  .bp-h, .home-h, .ok-t, .state-t { font-size: 14px; }
  .bp-p, .home-p, .ok-s, .state-p { font-size: 11px; max-width: 230px; }

	  .bp-badge, .home-tag { font-size: 9px; padding: 6px 10px; margin-top: 14px; }
	  .bp-mark, .home-mark { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px; }
	  .bp-mark svg, .home-mark svg { width: 18px; height: 18px; }
	  .bp-card .bp-mark { width: 34px; height: 34px; margin: 0; }
	  .bp-head { gap: 10px; }
	  .bp-phone, .bp-otp { min-height: 50px; }
	  .bp-input { font-size: 16px; }
	  .bp-otp { height: 50px; font-size: 20px; }
	  .bp-attempts { font-size: 9px; }

	  .ok-r, .state-r { font-size: 9px; padding: 6px 10px; max-width: 220px; }

  .state-c { width: 40px; height: 40px; font-size: 16px; margin-bottom: 12px; }
  .state-meta { font-size: 10px; }
  .msg { font-size: 11px; padding: 8px 10px; }
}

@media (max-width: 360px) {
  .tabs { padding: 8px 12px 0; }
  .tab { padding: 8px 8px; font-size: 11px; }

  .hd { padding: 14px 12px 8px; }
  .av { width: 22px; height: 22px; font-size: 9px; border-radius: 6px; }
  .hd-name { font-size: 11px; }

  .tmr { padding: 3px 6px; font-size: 8px; }

  .amt-hero { padding: 6px 12px 18px; }
  .amt-value { font-size: 26px; }

  .bd { padding: 0 12px 14px; }

  .acc-bank { padding: 12px 12px; }
  .bnk-opt-ic { width: 28px; height: 26px; border-radius: 8px; padding: 3px; }
  .acc-bank-ic { width: 30px; height: 30px; border-radius: 9px; padding: 4px; }
  .acc-row { padding: 12px 12px; }
  .acc-row-v.mono { font-size: 15px; letter-spacing: 0.5px; }

  .ref { padding: 10px 12px; }

  .cta { height: 42px; font-size: 12px; }

	  .ok, .state, .bp, .home { padding: 28px 16px 22px; }
	  .ok-a { font-size: 20px; }
	  .state-a { font-size: 18px; }
	  .bp-h, .home-h, .ok-t, .state-t { font-size: 13px; }
	  .bp-p, .home-p, .ok-s, .state-p { font-size: 10px; }
	  .bp-phone { padding: 0 12px; gap: 6px; }
	  .bp-prefix { font-size: 13px; padding-right: 6px; }
	  .bp-input { font-size: 15px; }
	  .bp-otp { font-size: 18px; letter-spacing: 2px; }
	}
