/* The merchant's store. Their colour drives --brand (set from the store's settings); everything else
   is neutral, so any brand colour looks at home. The buy/sell form is a "trade ticket": one card with a
   torn line between what you're trading and what happens next, carried through to the payment screen. */
:root {
  --brand: #0d0d59;
  --on-brand: #fff;
  --on-brand-auto: #fff;
  --brand-soft: #f1f1f8;
  --brand-line: #c6c6dd;
  --brand-ring: rgba(13, 13, 89, .16);

  --ink: #15151f;
  --ink-2: #44465a;
  --muted: #6f7186;
  --faint: #a3a5b5;
  --line: #e6e5dd;
  --line-soft: #f0efe8;
  --card: #fff;
  --page: #f6f5f0;

  /* Anything sitting directly on the page rather than on the ticket. */
  --on-page: var(--ink);
  --on-page-2: var(--ink-2);
  --on-page-3: var(--muted);
  --line-page: var(--line);
  --accent-page: var(--brand);

  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: 22px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --brand-soft: color-mix(in srgb, var(--brand) 7%, #fff);
    --brand-line: color-mix(in srgb, var(--brand) 30%, #fff);
    --brand-ring: color-mix(in srgb, var(--brand) 18%, transparent);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, p, ol, ul, dl { margin: 0; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#s-app { min-height: 100vh; display: flex; flex-direction: column; }

.s-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.s-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); padding: 32px; }
.s-center h1 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.s-center a { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--ink); }
.s-spinner { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: s-spin .8s linear infinite; }
@keyframes s-spin { to { transform: rotate(360deg); } }
.s-preview { background: #fff7e6; color: #8a4b06; font-size: 13px; font-weight: 600; text-align: center; padding: 7px 16px; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--on-brand); font-weight: 700; border-radius: 12px; transition: filter .15s; }
.s-btn:hover { filter: brightness(1.08); }
.s-btn:active { filter: brightness(.95); }
.s-btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.s-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.s-go { width: 100%; padding: 15px 18px; font-size: 16px; }
.s-toplink { padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--on-page-2); white-space: nowrap; }
.s-toplink:hover { color: var(--on-page); }

/* Top bar */
.s-top { position: relative; z-index: 50; border-bottom: 1px solid var(--line-page); }
.s-top-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.s-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--on-page); }
.s-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--brand) center / cover no-repeat; color: var(--on-brand-auto); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.s-logo.has-img { background-color: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.s-logo-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 20px; }
.s-account { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.s-me { position: relative; display: flex; align-items: center; gap: 14px; }
.s-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--on-page); color: var(--page); font-weight: 700; font-size: 14px; }
.s-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 100; min-width: 230px; padding: 6px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(20, 20, 40, .3); }
.s-menu p { padding: 8px 10px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.s-menu button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; text-align: left; }
.s-menu button:hover { background: var(--line-soft); }
.s-menu-soon { color: var(--muted); }
.s-menu-soon em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }

/* Page */
.s-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.s-intro { min-width: 0; }
.s-intro h1 { font-family: var(--display); font-size: clamp(40px, 5.2vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: var(--on-page); overflow-wrap: anywhere; }
.s-lede { margin-top: 16px; max-width: 32em; font-size: 18px; line-height: 1.5; color: var(--on-page-2); }

.s-intro h2 { font-size: 14px; font-weight: 700; color: var(--on-page); margin: 0; }
.s-intro h2 small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--on-page-3); }

/* Today's rates: one thin board. Tap a coin to trade it. */
.s-rates { margin-top: 44px; scroll-margin-top: 20px; }
.s-rates-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 12px; border-top: 1px solid var(--line-page); border-bottom: 1px solid var(--line-page); }
.s-rate { position: relative; display: block; padding: 12px 12px 13px; text-align: left; color: var(--on-page-2); border-left: 1px solid var(--line-page); transition: color .15s; }
.s-rate:first-child { border-left: 0; padding-left: 0; }
.s-rate:hover { color: var(--on-page); }
.s-rate span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.s-rate img { width: 18px; height: 18px; border-radius: 50%; }
.s-rate b { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--on-page); }
.s-rate.is-on::after { content: ''; position: absolute; left: 0; right: 12px; bottom: -1px; height: 2px; background: var(--accent-page); }
.s-rate:not(:first-child).is-on::after { left: 12px; }
.s-rates-empty { padding: 14px 0; font-size: 14px; color: var(--on-page-3); }

/* How a trade works: three short steps, no boxes. */
.s-how { margin-top: 36px; scroll-margin-top: 20px; }
.s-how ol { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.s-how li { counter-increment: how; font-size: 13.5px; line-height: 1.45; color: var(--on-page-3); }
.s-how li::before { content: counter(how); display: block; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1; color: var(--accent-page); margin-bottom: 8px; }
.s-how b { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; color: var(--on-page); }
.s-how span { display: block; }

/* Naira account: a quiet line until it exists. */
.s-ngn { display: flex; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-page); color: var(--on-page-3); }
.s-ngn svg { margin-top: 1px; color: var(--on-page-2); }
.s-ngn p { font-size: 14px; }
.s-ngn b { font-weight: 700; color: var(--on-page); }
.s-ngn em { margin-left: 4px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--line-page); color: var(--on-page-2); white-space: nowrap; }
.s-ngn small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; }

/* The ticket */
.s-side { min-width: 0; }
.s-trade { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 8px var(--pad) var(--pad); box-shadow: 0 2px 4px rgba(25, 20, 15, .03), 0 20px 48px -12px rgba(25, 20, 15, .1), 0 0 0 1px rgba(0, 0, 0, .02); }
.s-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 18px; padding: 4px; background: #eeede7; border: 0; border-radius: 13px; }
.s-tabs button { position: relative; padding: 10px 0; border-radius: 10px; font-size: 15px; font-weight: 600; color: #71727d; transition: all .15s ease; }
.s-tabs button:hover { color: var(--ink); }
.s-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04); }

/* Coin + amounts: one stack with hairlines between. */
.s-stack { border: 1px solid #e4e3da; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .02); }
.s-select { position: relative; }
.s-select-btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; text-align: left; border-radius: 15px 15px 0 0; transition: background .15s; }
.s-select-btn:hover { background: #fafaf7; }
.s-select-btn img { width: 34px; height: 34px; border-radius: 50%; }
.s-select-btn span { flex: 1; min-width: 0; }
.s-select-btn b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.s-select-btn small { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-select-btn > svg { color: var(--faint); }
.s-select-list { position: absolute; z-index: 20; left: -1px; right: -1px; top: calc(100% + 4px); padding: 5px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(20, 20, 40, .32); }
.s-select-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 9px; border-radius: 10px; text-align: left; }
.s-select-list button:hover, .s-select-list button[aria-selected="true"] { background: var(--brand-soft); }
.s-select-list img { width: 28px; height: 28px; border-radius: 50%; }
.s-select-list span { flex: 1; min-width: 0; }
.s-select-list b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.s-select-list small { display: block; font-size: 12px; color: var(--muted); }
.s-select-list em { font-style: normal; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.s-field { padding: 11px 14px 13px; border-top: 1px solid #efeee7; transition: box-shadow .15s, background .15s; }
.s-field:focus-within { box-shadow: inset 0 0 0 2px var(--brand-line); background: #ffffff !important; }
.s-field:last-child { border-radius: 0 0 15px 15px; }
.s-field-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; font-size: 13px; font-weight: 500; color: var(--muted); }
.s-field-top label { cursor: pointer; }
.s-field-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.s-field-row input, .s-field-row output { flex: 1; display: block; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.s-field-row input::placeholder { color: var(--faint); opacity: 1; }
.s-field-row output.is-empty { color: var(--faint); }
.s-field-row b { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.s-field-out { background: #f8f8f4; }
.s-chips { display: flex; gap: 2px; }
.s-chips button { padding: 3px 7px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.s-chips button:hover { background: var(--brand-soft); color: var(--brand); }
.s-any { padding: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.s-any b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 700; color: var(--ink); }

/* The tear: a dashed line with a punched notch at each edge of the ticket. */
.s-tear { position: relative; height: 0; margin: 20px calc(var(--pad) * -1); border-top: 2px dashed #deddd4; }
.s-tear::before, .s-tear::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--page); border: 1px solid #deddd4; }
.s-tear::before { left: -11px; clip-path: inset(-2px -2px -2px calc(50% - 1px)); }
.s-tear::after { right: -11px; clip-path: inset(-2px calc(50% - 1px) -2px -2px); }

.s-summary { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 14px; }
.s-note { font-size: 13.5px; color: #b42318; text-align: center; margin-bottom: 10px; }
.s-note:empty { display: none; }
.s-trust { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.s-trust svg { width: 14px; height: 14px; margin-top: 2px; }
.s-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--on-page-2);
  text-decoration: none;
  transition: all .15s ease;
}
.s-support:hover {
  background: rgba(0, 0, 0, .06);
  color: var(--on-page);
  text-decoration: none;
}
.s-support svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.s-support.is-wa {
  background: rgba(37, 211, 102, .08);
  border-color: rgba(37, 211, 102, .25);
  color: #128c7e;
}
.s-support.is-wa:hover {
  background: rgba(37, 211, 102, .15);
  border-color: rgba(37, 211, 102, .4);
  color: #075e54;
}
.s-support.is-wa svg {
  color: #25d366;
  fill: currentColor;
}
.s-layout-card .s-support {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
  color: var(--on-page);
}
.s-layout-card .s-support:hover {
  background: rgba(255, 255, 255, .18);
}
.s-layout-card .s-support.is-wa {
  background: rgba(37, 211, 102, .18);
  border-color: rgba(37, 211, 102, .35);
  color: #ffffff;
}
.s-layout-minimal .s-support {
  background: #fafafb;
  border-color: #ededf1;
}
.s-layout-minimal .s-support.is-wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.s-help-link {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
}

/* Footer */
.s-foot { border-top: 1px solid var(--line-page); font-size: 13px; color: var(--on-page-3); }
.s-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 18px; }
.s-foot-links { display: flex; gap: 16px; }

/* Forms */
.s-label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.s-label-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.s-input { display: block; width: 100%; padding: 12px 13px; border: 1px solid #dcdcd6; border-radius: 12px; background: #fff; font-size: 16px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.s-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.s-code { letter-spacing: .4em; font-weight: 700; }
.s-mono { font-family: var(--mono); font-size: 14.5px; }
.s-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.s-error { margin-top: 10px; font-size: 13.5px; color: #b42318; }
.s-mini { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.s-mini:hover { color: var(--ink); }

/* Checkout: the same ticket, one step on */
.s-checkout { padding-top: 14px; }
.s-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: -6px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  min-height: 40px;
  touch-action: manipulation;
  transition: color .15s, background .15s;
}
.s-back:hover, .s-back:active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}
.s-back svg { width: 16px; height: 16px; }
.s-co-title { margin-top: 6px; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.s-co-lede { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.s-co-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; }
.s-co-sum span { display: block; font-size: 12.5px; color: var(--muted); }
.s-co-sum b { display: block; margin-top: 1px; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

.s-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.s-seg[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 600; min-height: 44px; touch-action: manipulation; transition: border-color .15s, background .15s; }
.s-seg button:hover { border-color: var(--brand-line); }
.s-seg button[aria-pressed="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.s-seg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-net-icon { width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; }
.s-checkout .s-go { margin-top: 16px; min-height: 52px; font-size: 16.5px; font-weight: 700; border-radius: 14px; touch-action: manipulation; }
.s-checkout .s-trust { justify-content: flex-start; }

/* Bank picker */
.s-bank-select { position: relative; }
.s-bank-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #dcdcd6; border-radius: 12px; background: #fff; font-size: 16px; text-align: left; touch-action: manipulation; }
.s-bank-trigger:hover { border-color: var(--brand-line); }
.s-bank-trigger .is-empty { color: var(--muted); }
.s-bank-trigger svg { width: 16px; height: 16px; color: var(--faint); }
.s-bank-dropdown { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(20, 20, 40, .32); overflow: hidden; }
.s-bank-search-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.s-bank-search-bar svg { width: 16px; height: 16px; color: var(--faint); }
.s-bank-search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.s-bank-search-clear { font-size: 13px; color: var(--faint); padding: 2px 4px; }
.s-bank-list { max-height: 240px; overflow-y: auto; padding: 5px; -webkit-overflow-scrolling: touch; }
.s-bank-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 10px; min-height: 44px; border-radius: 9px; font-size: 14.5px; font-weight: 500; text-align: left; touch-action: manipulation; }
.s-bank-item:hover, .s-bank-item.is-selected { background: var(--brand-soft); }
.s-bank-item svg { width: 15px; height: 15px; color: var(--brand); }
.s-bank-empty { padding: 16px 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.s-bank-backdrop { display: none; }

/* The name on the account */
.s-name-box { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.s-name-ok { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 10px; background: #eef7e9; color: #2c6a1d; font-weight: 700; }
.s-name-ok svg { width: 15px; height: 15px; stroke-width: 3; }
.s-name-wait { display: flex; align-items: center; gap: 8px; }
.s-name-bad { color: #b42318; }
.s-name-bad small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* What to pay or send */
.s-bank { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.s-bank > div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line-soft); }
.s-bank > div:first-child { border-top: 0; }
.s-bank-k { flex: 1; min-width: 0; }
.s-bank-k span { display: block; font-size: 12.5px; color: var(--muted); }
.s-bank-k b { display: block; margin-top: 1px; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.s-bank-k b.is-big { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.s-bank-k b.s-mono { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.s-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  min-width: 68px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  touch-action: manipulation;
  transition: border-color .15s, background .15s, transform .1s;
}
.s-copy:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.s-copy:active { transform: scale(0.96); }
.s-copy svg { width: 13px; height: 13px; }
.s-expiry { margin-top: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-expiry:empty { display: none; }
.s-link-btn { display: inline-flex; align-items: center; justify-content: center; margin: 12px auto 0; padding: 8px 12px; min-height: 38px; font-size: 13.5px; font-weight: 600; color: var(--brand); touch-action: manipulation; }
.s-link-btn:hover { text-decoration: underline; }
.s-center-text { text-align: center; }

.s-checking { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--brand-soft); }
.s-checking b { display: block; font-size: 15.5px; font-weight: 700; }
.s-checking p { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.s-checking-time { font-size: 12.5px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.s-checking-ring { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; border: 2.5px solid var(--brand-line); border-top-color: var(--brand); animation: s-spin .9s linear infinite; }
.s-ended { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--line-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.s-ended b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }

/* Progress */
.s-progress { list-style: none; }
.s-progress li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.s-progress li:last-child { padding-bottom: 0; }
.s-progress li::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.s-progress li:last-child::before { display: none; }
.s-progress i { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d9d9d3; background: #fff; }
.s-progress i svg { width: 12px; height: 12px; stroke-width: 3.5; }
.s-progress .is-done i { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.s-progress .is-done::before { background: var(--brand); }
.s-progress .is-now i { border-color: var(--brand); }
.s-progress .is-now i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: s-blink 1.2s ease-in-out infinite; }
.s-progress .is-warn i { border-color: #d97706; background: #fff7e6; }
@keyframes s-blink { 50% { opacity: .25; } }
.s-progress b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.s-progress .is-next b { color: var(--muted); font-weight: 500; }
.s-progress span { display: block; font-size: 13px; color: var(--muted); }
.s-progress a { color: var(--brand); font-weight: 600; }
.s-order-ref { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.s-order-ref code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* My orders */
.s-orders { list-style: none; margin-top: 12px; border-top: 1px solid var(--line-soft); }
.s-orders li { border-bottom: 1px solid var(--line-soft); }
.s-orders button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; text-align: left; }
.s-orders button:hover b { text-decoration: underline; }
.s-orders img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.s-orders-l { flex: 1; min-width: 0; }
.s-orders b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.s-orders small { display: block; font-size: 12.5px; color: var(--muted); }
.s-orders-r { text-align: right; flex-shrink: 0; }
.s-pill { display: inline-block; margin-top: 2px; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--line-soft); color: var(--ink-2); }
.s-pill.is-ok { background: #e8f5e4; color: #2c6a1d; }
.s-pill.is-busy, .s-pill.is-wait { background: var(--brand-soft); color: var(--brand); }
.s-pill.is-warn { background: #fff2e0; color: #a5530a; }

/* Sign in / create account */
.s-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.s-modal-bg { position: fixed; inset: 0; background: rgba(15, 15, 30, .55); }
.s-card { position: relative; width: 100%; max-width: 400px; margin: auto; padding: 28px; background: #fff; color: var(--ink); border-radius: 20px; }
.s-card h2 { margin-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.s-card > p#auth-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.s-x { position: absolute; top: 14px; right: 14px; display: inline-flex; padding: 6px; border-radius: 50%; color: var(--muted); }
.s-x:hover { background: var(--line-soft); color: var(--ink); }
.s-google { display: flex; justify-content: center; margin-top: 16px; min-height: 44px; }
.s-or { position: relative; margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }
.s-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.s-or span { position: relative; padding: 0 10px; background: #fff; }
#auth-form .s-go { margin-top: 16px; }
.s-switch { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.s-switch button { font-weight: 700; color: var(--ink); }
.s-fine { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }
.s-fine a { color: var(--muted); }

.s-toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s; }
.s-toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Layouts the merchant picks in Customize. Classic is base above. */
.s-layout-card {
  --page: #080c18;
  --on-page: #ffffff;
  --on-page-2: #cbd5e1;
  --on-page-3: #94a3b8;
  --line-page: rgba(255, 255, 255, .12);
  --accent-page: var(--brand);
  background-color: #070a14;
  background-image: 
    radial-gradient(900px circle at 15% 10%, color-mix(in srgb, var(--brand) 28%, transparent) 0%, transparent 65%),
    radial-gradient(900px circle at 85% 35%, color-mix(in srgb, var(--brand) 20%, transparent) 0%, transparent 65%),
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 80%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .s-layout-card {
    --on-page-2: #cbd5e1;
    --on-page-3: #94a3b8;
    --line-page: rgba(255, 255, 255, .12);
  }
}
.s-layout-card .s-top { 
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08); 
  background: rgba(7, 10, 20, 0.78); 
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px); 
}
.s-layout-card .s-toplink { color: #cbd5e1; }
.s-layout-card .s-toplink:hover { color: #fff; }
.s-layout-card .s-btn-sm { 
  background: rgba(255, 255, 255, .1); 
  color: #fff; 
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); 
}
.s-layout-card .s-btn-sm:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
}
.s-layout-card .s-trade { 
  background: #ffffff; 
  border-radius: 26px; 
  border: 1px solid rgba(255, 255, 255, .25); 
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .5), 0 32px 72px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08); 
  padding: 14px 24px 24px; 
  color: #0f172a;
}
.s-layout-card .s-tabs { background: #f1f4f9; border-radius: 14px; padding: 4px; margin: 4px 0 18px; border: 0; gap: 4px; }
.s-layout-card .s-tabs button { padding: 10px 0; border-radius: 10px; font-size: 15px; font-weight: 600; color: #64748b; }
.s-layout-card .s-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.s-layout-card .s-stack { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .02); }
.s-layout-card .s-field { border-top: 1px solid #f1f5f9; }
.s-layout-card .s-field-out { background: #f8fafc; }
.s-layout-card .s-select-btn:hover { background: #f8fafc; }
.s-layout-card .s-tear { border-top: 1.5px dashed #cbd5e1; margin: 20px -24px; }
.s-layout-card .s-tear::before, .s-layout-card .s-tear::after { background: #070a14; border-color: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.s-layout-card .s-logo:not(.has-img) { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--on-brand-auto); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--brand) 40%, transparent); }
.s-card .s-logo:not(.has-img), .s-layout-card .s-card .s-logo:not(.has-img) { background-color: var(--brand); color: var(--on-brand-auto); }
.s-layout-card .s-rates-list { background: rgba(255, 255, 255, .04); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; overflow: hidden; }
.s-layout-card .s-rate { border-left: 1px solid rgba(255, 255, 255, .08); padding: 13px 15px; color: #cbd5e1; }
.s-layout-card .s-rate:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.s-layout-card .s-rate.is-on::after { background: var(--brand); left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 2px 2px 0 0; box-shadow: 0 0 10px var(--brand); }
.s-layout-card .s-how li::before { color: var(--brand); text-shadow: 0 0 14px color-mix(in srgb, var(--brand) 50%, transparent); }
.s-layout-card .s-ngn { background: rgba(255, 255, 255, .04); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 16px 18px; margin-top: 28px; }
.s-layout-card .s-ngn em { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .16); }
.s-layout-card .s-go { 
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 85%, #000));
  box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--brand) 45%, transparent); 
}
.s-layout-card .s-go:hover { filter: brightness(1.1); transform: translateY(-1px); }
.s-layout-card .s-go:active { transform: translateY(0); filter: brightness(0.95); }

.s-layout-minimal {
  --page: #fff;
  --line-page: #eaebee;
  --line: #eaebee;
  --line-soft: #f4f4f6;
  background: #fff;
}
.s-layout-minimal .s-top { border-bottom: 1px solid #eaebee; }
.s-layout-minimal .s-trade { background: #fff; border: 1px solid #e4e4e7; border-radius: 20px; box-shadow: none; padding: 8px 22px 22px; }
.s-layout-minimal .s-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -22px 18px; padding: 0 22px; border-bottom: 1px solid #ededf1; background: transparent; gap: 0; border-radius: 0; }
.s-layout-minimal .s-tabs button { position: relative; padding: 14px 0; border-radius: 0; font-size: 15px; font-weight: 600; color: #92939f; background: transparent; box-shadow: none; }
.s-layout-minimal .s-tabs button:hover { color: var(--ink); }
.s-layout-minimal .s-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; background: transparent; box-shadow: none; }
.s-layout-minimal .s-tabs button[aria-selected="true"]::after { content: ''; display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.s-layout-minimal .s-stack { border: 1px solid #ededf1; border-radius: 14px; background: #fafafb; box-shadow: none; }
.s-layout-minimal .s-field { border-top: 1px solid #ededf1; }
.s-layout-minimal .s-field-out { background: #f4f4f7; }
.s-layout-minimal .s-select-btn:hover { background: #f4f4f7; }
.s-layout-minimal .s-chips button { background: #eeeff3; color: var(--ink-2); }
.s-layout-minimal .s-chips button:hover { background: var(--brand-soft); color: var(--brand); }
.s-layout-minimal .s-tear { border-top: 1px solid #ededf1; margin: 18px 0; height: 0; }
.s-layout-minimal .s-tear::before, .s-layout-minimal .s-tear::after { display: none !important; }
.s-layout-minimal .s-rates-list { border-top: 1px solid #ededf1; border-bottom: 1px solid #ededf1; }
.s-layout-minimal .s-rate { border-left: 1px solid #ededf1; }
.s-layout-minimal .s-rate.is-on::after { background: var(--brand); }
.s-layout-minimal .s-how li::before { color: var(--brand); }
.s-layout-minimal .s-ngn { border-top: 1px solid #ededf1; }
.s-layout-minimal .s-ngn em { background: #f0f0f3; color: var(--ink-2); }
.s-layout-minimal .s-co-sum { background: #f8f8fa; border: 1px solid #ededf1; }
.s-layout-minimal .s-receipt-box { background: #fafafb; border: 1px solid #ededf1; }

/* Order receipt summary */
.s-receipt-box { margin: 14px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafaf8; }
.s-receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.s-receipt-item small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.s-receipt-item b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-receipt-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; padding: 5px 0; font-size: 12.5px; }
.s-receipt-row small { color: var(--muted); }
.s-receipt-val { display: flex; align-items: center; gap: 6px; }
.s-receipt-val code { font-family: monospace; font-size: 12px; }
.s-copy-sm, .s-exp-sm { padding: 2px 7px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer; color: var(--ink); text-decoration: none; }
.s-copy-sm:hover, .s-exp-sm:hover { background: #f3f4f6; }

/* Focused checkout mode: prioritize payment action on mobile & desktop */
body.s-in-checkout .s-intro {
  display: none !important;
}

body.s-in-checkout .s-main {
  padding-top: 16px;
  min-height: calc(100vh - 120px);
  justify-content: flex-start;
}

/* ═══════════ Mobile Priority Styles (Phones & Small Tablets) ═══════════ */
@media (max-width: 959px) {
  :root { --pad: 14px; }
  -webkit-tap-highlight-color: transparent;

  /* When checking out on mobile: maximum clean focus on payment instructions */
  body.s-in-checkout .s-side {
    max-width: 100%;
    margin: 0;
  }
  body.s-in-checkout .s-trade {
    border-radius: 18px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  /* Top bar with safe-area support */
  .s-top { padding-top: env(safe-area-inset-top); }
  .s-top-in { height: 56px; }
  .s-brand { font-size: 15px; gap: 8px; }
  .s-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
  .s-toplink { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
  #s-join { display: none; }

  /* Page layout: ticket hero first */
  .s-main { display: flex; flex-direction: column; gap: 0; padding-top: 10px; padding-bottom: 36px; }
  .s-intro { display: contents; }
  .s-intro h1 { display: none; }
  .s-lede { display: none; order: 1; margin: 0 0 10px; font-size: 14px; text-align: center; }
  .s-lede.has-welcome { display: block; }
  .s-side { order: 2; width: 100%; max-width: 440px; margin: 0 auto; }
  .s-rates { order: 3; margin-top: 24px; width: 100%; }
  .s-how { order: 4; margin-top: 22px; width: 100%; }
  .s-ngn { order: 5; margin-top: 18px; width: 100%; }

  /* Trade ticket: ergonomically tuned for thumbs */
  .s-trade { border-radius: 20px; padding: 6px 14px 16px; }
  .s-tabs { margin: 2px 0 12px; padding: 3px; gap: 3px; }
  .s-tabs button { min-height: 44px; font-size: 15.5px; font-weight: 700; border-radius: 10px; padding: 10px 0; }
  .s-select-btn { padding: 10px 12px; }
  .s-select-btn img { width: 32px; height: 32px; }
  .s-select-btn b { font-size: 15.5px; }
  .s-select-btn small { font-size: 12.5px; }
  .s-select-list { max-height: 270px; overflow-y: auto; }
  .s-select-list button { padding: 10px 11px; min-height: 44px; }
  .s-field { padding: 10px 12px 12px; }
  .s-field-row input, .s-field-row output { font-size: 28px; font-weight: 800; }
  .s-chips button { padding: 4px 8px; font-size: 12px; min-height: 28px; }
  .s-tear { margin: 16px -14px; }
  .s-go { min-height: 50px; font-size: 16px; border-radius: 13px; padding: 14px 16px; }
  .s-go:active { transform: scale(0.985); }
  .s-trust { font-size: 12px; line-height: 1.4; margin-top: 10px; }

  /* Card layout on mobile */
  .s-layout-card .s-trade { padding: 8px 14px 16px; border-radius: 22px; box-shadow: 0 10px 24px -4px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .15); }
  .s-layout-card .s-tabs { margin: 2px 0 12px; padding: 3px; gap: 3px; }
  .s-layout-card .s-tabs button { min-height: 44px; }
  .s-layout-card .s-tear { margin: 16px -14px; }

  /* Minimal layout on mobile */
  .s-layout-minimal .s-trade { padding: 6px 14px 16px; border-radius: 18px; }
  .s-layout-minimal .s-tabs { margin: 0 -14px 12px; padding: 0 14px; }
  .s-layout-minimal .s-tabs button { min-height: 44px; padding: 11px 0; }
  .s-layout-minimal .s-tear { margin: 14px 0; }

  /* Rates: horizontal swipeable card carousel on mobile */
  .s-rates-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 4px;
    border-top: 0;
    border-bottom: 0;
  }
  .s-rates-list::-webkit-scrollbar { display: none; }
  .s-rate {
    flex: 0 0 auto;
    width: 116px;
    padding: 10px 12px 11px;
    background: #ffffff;
    border: 1px solid var(--line-page);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    text-align: left;
    transition: transform .1s ease, border-color .15s;
  }
  .s-rate:first-child { border-left: 1px solid var(--line-page); padding-left: 12px; }
  .s-rate:active { transform: scale(0.97); }
  .s-rate.is-on {
    border-color: var(--brand);
    box-shadow: 0 0 0 1.5px var(--brand);
  }
  .s-rate.is-on::after { display: none; }

  .s-layout-card .s-rates-list {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow-x: auto;
    padding: 0 20px 4px;
  }
  .s-layout-card .s-rate {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: none;
  }
  .s-layout-card .s-rate.is-on {
    border-color: var(--on-brand-auto);
    box-shadow: 0 0 0 1.5px var(--on-brand-auto);
    background: rgba(255, 255, 255, .22);
  }

  .s-layout-minimal .s-rates-list {
    background: transparent;
    border: 0;
    overflow-x: auto;
    padding: 0 20px 4px;
  }
  .s-layout-minimal .s-rate {
    background: #fafafb;
    border: 1px solid #ededf1;
    box-shadow: none;
  }
  .s-layout-minimal .s-rate.is-on {
    border-color: var(--brand);
    box-shadow: 0 0 0 1.5px var(--brand);
  }

  /* How a trade works: clean mobile cards */
  .s-how ol { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .s-how li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid var(--line-page);
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
  }
  .s-how li::before {
    position: static;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 0;
  }
  .s-layout-card .s-how li {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: var(--on-page-2);
  }
  .s-layout-card .s-how li::before {
    background: rgba(255, 255, 255, .2);
    color: var(--on-brand-auto);
    text-shadow: none;
  }
  .s-layout-minimal .s-how li {
    background: #fafafb;
    border-color: #ededf1;
  }

  /* Naira account feature card on mobile */
  .s-ngn {
    border: 1px solid var(--line-page);
    border-radius: 14px;
    background: #ffffff;
    padding: 14px 16px;
    margin-top: 20px;
  }
  .s-layout-card .s-ngn {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    margin-top: 20px;
    padding: 14px 16px;
  }
  .s-layout-minimal .s-ngn {
    background: #fafafb;
    border-color: #ededf1;
    margin-top: 20px;
    padding: 14px 16px;
  }

  /* Checkout on mobile */
  .s-seg button { min-height: 44px; padding: 10px 6px; font-size: 13.5px; }
  .s-bank > div { padding: 12px 14px; }
  .s-copy { min-height: 36px; padding: 7px 11px; font-size: 13px; }
  .s-bank-k b.is-big { font-size: 22px; }
  .s-receipt-box { padding: 12px 14px; }
}

/* Scan to pay QR barcode */
.s-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}
.s-qr-wrap,
.s-layout-card .s-qr-wrap {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
.s-layout-minimal .s-qr-wrap {
  background: #fafafb !important;
  border-color: #ededf1 !important;
}
.s-qr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  margin-bottom: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.s-qr-pill svg {
  width: 13px;
  height: 13px;
}
.s-qr-code {
  width: 172px;
  height: 172px;
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.s-qr-code canvas {
  display: none !important;
}
.s-qr-code img {
  display: block !important;
  width: 152px !important;
  height: 152px !important;
  border-radius: 6px;
  margin: 0 auto;
}
.s-qr-caption,
.s-layout-card .s-qr-caption {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b !important;
}
.s-qr-caption b,
.s-layout-card .s-qr-caption b {
  color: #0f172a !important;
  font-weight: 700;
}

/* Network caution alert */
.s-net-alert,
.s-layout-card .s-net-alert,
.s-layout-minimal .s-net-alert {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: #fffbeb !important;
  border: 1.5px solid #f59e0b !important;
  border-radius: 14px;
  text-align: left;
  color: #78350f !important;
}
.s-net-badge,
.s-layout-card .s-net-badge,
.s-layout-minimal .s-net-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: #fde68a !important;
  border: 1px solid #f59e0b !important;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f !important;
  margin-bottom: 6px;
}
.s-net-badge span,
.s-net-badge b,
.s-layout-card .s-net-badge span,
.s-layout-card .s-net-badge b {
  color: #78350f !important;
  font-weight: 700;
}
.s-net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  display: inline-block;
}
.s-net-desc,
.s-layout-card .s-net-desc,
.s-layout-minimal .s-net-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #92400e !important;
  font-weight: 600;
}
.s-net-desc b,
.s-layout-card .s-net-desc b,
.s-layout-minimal .s-net-desc b {
  color: #451a03 !important;
  font-weight: 800;
}

/* Offline / online floating banner */
.s-net-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s ease;
}
.s-net-banner.is-offline {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}
.s-net-banner.is-online {
  background: #f0fdf4;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
}

/* PWA install button */
.s-pwa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-page);
  background: rgba(255, 255, 255, .15);
  color: var(--on-page);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.s-pwa-btn:hover {
  background: rgba(255, 255, 255, .25);
}
.s-pwa-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 480px) {
  :root { --pad: 14px; }
  .s-wrap { padding-left: 12px; padding-right: 12px; }
  .s-rates-list { margin-left: -12px; margin-right: -12px; padding: 0 12px 4px; }
  .s-layout-card .s-rates-list, .s-layout-minimal .s-rates-list { padding: 0 12px 4px; }

  /* Auth bottom sheet */
  .s-modal { align-items: flex-end; padding: 0; }
  .s-card {
    max-width: none;
    width: 100%;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .24);
  }
  .s-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #dcdce2;
    margin: 0 auto 16px;
  }
  .s-x { width: 36px; height: 36px; top: 12px; right: 12px; }
  .s-card .s-go { min-height: 50px; }
  .s-foot-in { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .s-spinner, .s-checking-ring { animation-duration: 3s; }
  .s-progress .is-now i::after { animation: none; }
}
