/* ============================================================================
   public/escrow/send/css/send.css
   BBscrow Send: the whole look of the Send pages (send, pay, receipt, your sends, receiver share page, admin).

   MADE TO MATCH THE BBSCROW DASHBOARD. The colours, the glass header with its blue-to-amber hairline, the blue
   blue header bar, the blue greeting card, the blue panels, the flat blue buttons, the pills and the field style are copied from
   css/style.css and the dashboard's own page styles (the "mt-" rules in escrow/index.html). Nothing here loads
   style.css; the values are copied into the --sd-* tokens below, so if the dashboard theme changes, change them here too.

   RULES
   - Every class starts with "sd-". Nothing here touches, or depends on, style.css.
   - The only thing loaded from outside is the Inter font, exactly as the dashboard does it.
   - Layout classes are flat (one class per rule). State classes: .is-loading .is-done .is-valid .is-invalid.
     Use [hidden] to hide a screen.

   CLASS MAP (the names index.html, status.html, send.js and status.js use)
   Page      sd-body sd-shell sd-header sd-brand(__mark __name __tag) sd-iconbtn sd-main sd-footer sd-screen
             sd-banner sd-toast(--error) sd-stack
   Hero      sd-hero(__title __sub) sd-facts sd-fact(__k __v)      sd-tabs sd-tab(--on --done __n)
   Cards     sd-card(--flush --raise) sd-card__title sd-split sd-label sd-hint(--warn)
   Route     sd-routecard sd-route(__rail __spark __link __arrow) sd-orb(--open __eyebrow __coinwrap __coin __chain __name __chev __net)
             sd-pick(--from --to __label __coins __nets) sd-tile(--on __coin) sd-netchip(--on __mark __text __label __std)   data-coin / data-net set the colours
   Amount    sd-amount sd-amount__input sd-amount__unit sd-amount__meta sd-chips sd-chip(--on) sd-tag(--go)
   Receiver  sd-receivers sd-receiver(--on) sd-receiver__name sd-avatar(--1..--5 --new)
   Fields    sd-field sd-field__label sd-field__msg(--ok --error) sd-input(--mono --area) sd-switch
             (sd-switch__input sd-switch__track sd-switch__text)
   Send to   sd-sendto(__head) sd-netpill(__mark __text) sd-inputbox(--next __badge __icon) sd-paste(--clear)
             sd-disclose(--open __icon __text __title __sub(--ok --error) __chev __body) sd-note(__icon) sd-btn__icon
   Notices   sd-notice(--warn --danger --info --ok) sd-notice__icon sd-notice__title
   Rows      sd-rows sd-row(--total) sd-row__k sd-row__v sd-hash
   Buttons   sd-btn(--primary --ghost --accent --block --sm) sd-link   (+ .is-loading .is-done)
   Pay       sd-wait(__dot __text __title __order __time) sd-timer(--low --up) sd-timer__note
             sd-pay(__label __amount __chips) sd-qr sd-address(__text)
   Progress  sd-steps sd-step(--done --active --bad) sd-step__dot sd-step__body sd-step__label sd-step__detail
   Receipt   sd-delivered(__check __label __amount __to) sd-tracker sd-tracker__step(--done)
             sd-invite(__title __text) sd-actions
   History   sd-list sd-item(__main __title __sub __amount) sd-empty
             sd-pill + --waiting (created, waiting_deposit) --working (deposit_detected, converting, sent)
                     --done (completed) --bad (expired) --muted (refunded)
   Share     sd-live
   Admin     sd-scroll sd-table
   Utility   sd-sr sd-muted sd-mono sd-center sd-skel
   Loading   sd-loader(__sr __sky __cloud--1..4 __core __mark __ring--outer --mid __word __bar __note)   html.sd-is-loading
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Copied from css/style.css (:root). */
  --sd-bg-start: #050B1F;
  --sd-bg-mid: #0A1B42;
  --sd-surface: rgba(255, 255, 255, 0.06);
  --sd-surface-soft: rgba(255, 255, 255, 0.04);
  --sd-surface-strong: rgba(255, 255, 255, 0.12);
  --sd-border: rgba(255, 255, 255, 0.16);
  --sd-border-strong: rgba(255, 255, 255, 0.26);
  --sd-text: #F5F8FF;
  --sd-muted: #A9BAE0;
  --sd-faint: #7C8FC2;
  --sd-blue: #2F6FED;
  --sd-blue-hi: #2A63D8; /* hover: a touch darker than the dashboard's, so white text stays readable */
  --sd-sky: #6FA0FF;
  --sd-sky-text: #9CC0FF;
  --sd-green: #7BE8C4;
  --sd-green-solid: #5EE0B0;
  --sd-green-bg: rgba(52, 211, 153, 0.16);
  --sd-green-line: rgba(52, 211, 153, 0.45);
  --sd-amber: #FFB74A;
  --sd-amber-text: #FFCB7A;
  --sd-amber-bg: rgba(255, 183, 74, 0.16);
  --sd-amber-line: rgba(255, 183, 74, 0.45);
  --sd-red: #FF7A7A;
  --sd-red-bg: rgba(255, 122, 122, 0.16);
  --sd-red-line: rgba(255, 122, 122, 0.45);
  --sd-violet: #7A4FD6;
  --sd-shadow-card: 0 8px 32px rgba(4, 6, 20, 0.45), 0 1.5px 0 rgba(255, 255, 255, 0.06) inset;
  --sd-ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Copied from the dashboard page (escrow/index.html): the blue panel and the field inside it. */
  --sd-panel: linear-gradient(180deg, rgba(47, 111, 237, 0.22), rgba(18, 50, 122, 0.35));
  --sd-panel-line: rgba(111, 160, 255, 0.28);
  --sd-inset: rgba(5, 11, 31, 0.32);
  --sd-field: rgba(5, 11, 31, 0.45);
  --sd-field-line: rgba(255, 255, 255, 0.14);
  --sd-mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;
  --sd-w: 460px; /* the width of the page column; the header lines up with it */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--sd-blue) transparent; }

.sd-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip; /* the full-width header must never make the page wobble sideways */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sd-text);
  background-color: var(--sd-bg-mid);
  background-image:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(75, 132, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 800px 700px at 100% 10%, rgba(122, 79, 214, 0.22), transparent 55%),
    radial-gradient(ellipse 1000px 800px at 50% 120%, rgba(5, 11, 31, 0.9), transparent 60%),
    linear-gradient(160deg, var(--sd-bg-start) 0%, var(--sd-bg-mid) 45%, var(--sd-bg-start) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.sd-body button, .sd-body input, .sd-body select, .sd-body textarea { font-family: inherit; }
.sd-body :focus-visible { outline: 2px solid var(--sd-sky); outline-offset: 2px; }
.sd-header :focus-visible { outline-color: #fff; }

/* ---------- Page frame ---------- */
.sd-shell { max-width: var(--sd-w); margin: 0 auto; padding: 0 14px calc(28px + env(safe-area-inset-bottom)); }
.sd-shell--wide { --sd-w: 980px; }
.sd-header {
  /* The dashboard's blue bar (colours and shape measured from the live dashboard): full width, a blue gradient,
     rounded bottom corners, a fine light line along the bottom edge and a soft blue glow under it. */
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100vw; min-height: 58px; margin: 0 0 18px calc(50% - 50vw);
  padding: calc(8px + env(safe-area-inset-top)) max(18px, calc((100vw - var(--sd-w)) / 2 + 18px)) 8px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, #2F6FED, #12327A);
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.22);
}
.sd-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; min-width: 0; text-decoration: none; color: #fff; }
/* The logo: the BBscrow emblem on its dark navy tile. The page holds a small lock drawing as a stand-in; it is
   hidden here and the real logo picture is shown instead. */
.sd-brand__mark { flex: none; width: 36px; height: 36px; border-radius: 12px; overflow: hidden; color: transparent;
  background: #0A1B42 url("/icons/icon-192.png") center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 4px 12px rgba(5, 11, 31, 0.45); }
.sd-brand__mark svg { display: none; }
.sd-brand__name { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.sd-brand__tag { padding: 3px 10px; border-radius: 999px; background: rgba(5, 11, 31, 0.35); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; }
/* The round-cornered blue button on the right (the dashboard's wallet button; here it opens "Your sends"). */
.sd-iconbtn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 14px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #4B84FF, #3470EE); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 6px 16px rgba(18, 50, 122, 0.5);
  transition: filter 0.2s var(--sd-ease), transform 0.2s var(--sd-ease); }
.sd-iconbtn:hover { filter: brightness(1.08); }
.sd-iconbtn:active { transform: scale(0.97); }
/* Back to the dashboard: the same round-cornered shape as the button on the right, but glass instead of solid blue,
   so the right-hand button stays the main one. It sits in a group with the logo so the header's two ends do not move. */
.sd-header__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sd-backbtn { width: 38px; height: 38px; border-radius: 12px; text-decoration: none;
  background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.sd-backbtn:hover { background: rgba(255, 255, 255, 0.22); filter: none; }
.sd-backbtn svg { margin-inline-end: 1px; } /* the arrow's weight sits to the right; this centres it by eye */
[dir="rtl"] .sd-backbtn svg { transform: scaleX(-1); }
.sd-main > * + *, .sd-stack > * + *, .sd-screen > * + * { margin-top: 14px; }
/* A stack with nothing in it yet (the form's warning area, the estimate) takes no room, so it adds no extra gap. */
.sd-stack:empty { display: none; }
.sd-footer { margin-top: 20px; text-align: center; color: var(--sd-faint); font-size: 12px; }

.sd-banner { padding: 11px 14px; border-radius: 14px; background: var(--sd-amber-bg); border: 1px solid var(--sd-amber-line); color: var(--sd-amber-text); font-size: 13px; font-weight: 500; }
.sd-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: min(92vw, 420px);
  padding: 12px 18px; border-radius: 16px; background: rgba(22, 36, 76, 0.92); border: 1px solid var(--sd-border-strong); color: var(--sd-text);
  font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: 0 12px 40px rgba(4, 6, 20, 0.55);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.sd-toast--error { background: rgba(82, 26, 36, 0.95); border-color: var(--sd-red-line); color: #FFD2D2; }

/* ---------- Hero: the dashboard's blue greeting card ---------- */
.sd-hero { position: relative; overflow: hidden; padding: 22px 22px 18px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #2F6FED, #12327A 75%); box-shadow: 0 14px 30px rgba(47, 111, 237, 0.35); }
.sd-hero::after { content: ""; position: absolute; right: -36px; top: -36px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.sd-hero__title { position: relative; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.sd-hero__sub { position: relative; margin: 8px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.45; color: #fff; }
.sd-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.sd-fact { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sd-fact + .sd-fact { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, 0.18); }
.sd-fact__k { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.sd-fact__v { font-size: 15px; font-weight: 700; line-height: 1.25; }

/* the three steps: Route, Receiver, Pay (the dashboard's "Start a protected trade" strip) */
.sd-tabs { display: flex; gap: 6px; padding: 8px; border-radius: 20px; background: var(--sd-panel); border: 1px solid var(--sd-panel-line); }
.sd-tab { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 6px; border-radius: 11px;
  background: var(--sd-inset); color: #DCE6FF; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center; }
.sd-tab__n { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); font-size: 11px; font-weight: 700; color: #fff; }
.sd-tab--on { color: #fff; box-shadow: inset 0 0 0 1px rgba(111, 160, 255, 0.55); background: rgba(5, 11, 31, 0.5); }
.sd-tab--on .sd-tab__n { background: var(--sd-blue); }
.sd-tab--done { color: #fff; }
.sd-tab--done .sd-tab__n { background: var(--sd-green-solid); color: #04241A; }

/* ---------- Cards and small text (the dashboard's blue panels) ---------- */
.sd-card { padding: 16px; background: var(--sd-panel); border: 1px solid var(--sd-panel-line); border-radius: 20px; }
.sd-card--flush { padding: 0; overflow: hidden; }
.sd-card--raise { background: linear-gradient(135deg, rgba(47, 111, 237, 0.3), rgba(18, 50, 122, 0.5)); border-color: rgba(255, 255, 255, 0.1); }
.sd-card__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--sd-text); }
.sd-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-label { font-size: 13px; color: var(--sd-muted); }
.sd-hint { font-size: 12.5px; color: var(--sd-muted); }
.sd-hint--warn { color: var(--sd-amber-text); }
.sd-muted { color: var(--sd-muted); }
.sd-mono { font-family: var(--sd-mono); }
.sd-center { text-align: center; }
.sd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Route picker: a little journey, from -> to ----------
   Two coin "orbs" (the coin, with a small badge for its network) joined by a dashed rail with a spark running along it.
   Tap an orb and its picker opens underneath: the coins, then the networks that coin lives on. No dropdowns, nothing said twice.
   Coin and network colours are plain CSS variables (--c1 --c2 --n) set by data-coin / data-net. */
.sd-body [data-coin] { --c1: #4B84FF; --c2: #1E4FBF; }
.sd-body [data-coin="USDT"]  { --c1: #3ED0A0; --c2: #14866A; }
.sd-body [data-coin="USDC"]  { --c1: #4C9BFF; --c2: #1F5FC4; }
.sd-body [data-coin="DAI"]   { --c1: #FFC857; --c2: #E08E12; }
.sd-body [data-coin="PYUSD"] { --c1: #38BDF8; --c2: #0B6FB8; }
.sd-body [data-coin="USDS"]  { --c1: #FF8A5B; --c2: #D6402F; }
.sd-body [data-coin="RLUSD"] { --c1: #8B9CFF; --c2: #4A58D6; }
.sd-body [data-coin="USDG"]  { --c1: #A78BFA; --c2: #6B3FD0; }
.sd-body [data-coin="USD1"]  { --c1: #F6B73C; --c2: #B8741A; }
.sd-body [data-coin="FDUSD"] { --c1: #86E05B; --c2: #3C9A2D; }
.sd-body [data-coin="USDP"]  { --c1: #5EEAD4; --c2: #0E8A8F; }
.sd-body [data-coin="TUSD"]  { --c1: #A9B8CC; --c2: #53647C; }
.sd-body [data-coin="USDT0"] { --c1: #FB7185; --c2: #BE123C; }
.sd-body [data-net] { --n: #3A5BC7; }
.sd-body [data-net="ethereum"] { --n: #627EEA; }
.sd-body [data-net="bsc"]      { --n: #F0B90B; }
.sd-body [data-net="tron"]     { --n: #E5484D; }
.sd-body [data-net="polygon"]  { --n: #8247E5; }
.sd-body [data-net="solana"]   { --n: linear-gradient(135deg, #9945FF, #19D8A0); }
.sd-body [data-net="base"]     { --n: #0052FF; }

.sd-routecard { position: relative; overflow: hidden; padding: 18px 14px 14px; border-radius: 22px; border: 1px solid var(--sd-panel-line);
  background: radial-gradient(120% 80% at 50% -10%, rgba(111, 160, 255, 0.24), transparent 62%), var(--sd-panel); }
.sd-routecard::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(111, 160, 255, 0.85), rgba(255, 183, 74, 0.85), transparent); }

.sd-route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: start; }
.sd-route__rail { position: absolute; left: calc((100% - 40px) / 4); right: calc((100% - 40px) / 4); top: 56px; height: 2px; margin-top: -1px; overflow: hidden; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(156, 192, 255, 0.5) 0 6px, transparent 6px 12px); }
.sd-route__spark { position: absolute; top: -2px; left: -14%; width: 28px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, transparent, var(--sd-amber) 70%, #fff); animation: sd-spark 2.6s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
@keyframes sd-spark { 0% { left: -14%; opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.sd-route__link { position: relative; z-index: 2; display: grid; place-items: start center; padding-top: 39px; }
.sd-route__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #4B84FF, #2F6FED); box-shadow: 0 6px 16px rgba(47, 111, 237, 0.5), 0 0 0 4px #0F2862; }

.sd-orb { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 0 2px 8px; color: var(--sd-text);
  background: none; border: 0; border-radius: 16px; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sd-orb__eyebrow { margin-bottom: 3px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sd-sky-text); }
.sd-orb__coinwrap { position: relative; width: 64px; height: 64px; transition: transform 0.25s var(--sd-ease); }
.sd-orb:hover .sd-orb__coinwrap { transform: translateY(-2px); }
.sd-orb:active .sd-orb__coinwrap { transform: scale(0.96); }
.sd-orb__coin, .sd-tile__coin { display: grid; place-items: center; border-radius: 50%; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 46%), linear-gradient(150deg, var(--c1), var(--c2)); }
.sd-orb__coin { width: 64px; height: 64px; font-size: 26px; transition: box-shadow 0.25s var(--sd-ease);
  box-shadow: inset 0 -7px 14px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.07), 0 12px 26px -8px var(--c2); }
.sd-orb--open .sd-orb__coin { box-shadow: inset 0 -7px 14px rgba(0, 0, 0, 0.2), 0 0 0 3px #0F2862, 0 0 0 5px var(--sd-sky), 0 12px 26px -8px var(--c2); }
.sd-orb__chain, .sd-netchip__mark, .sd-netpill__mark, .sd-inputbox__badge { display: grid; place-items: center; border-radius: 50%; background: var(--n); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.sd-orb__chain { position: absolute; right: -7px; bottom: -3px; width: 26px; height: 26px; border: 2.5px solid #12306E; }
.sd-orb__chain svg { width: 15px; height: 15px; }
.sd-orb__name { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
/* The "tap to change" arrow. It used to be a small faint circle that was easy to miss. Now it is a solid blue button-sized
   circle with a white arrow and a glow, and it bobs down three times when the page opens to catch the eye. */
.sd-orb__chev { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: #fff;
  background: linear-gradient(180deg, #4B84FF, #2F6FED); box-shadow: 0 4px 12px rgba(47, 111, 237, 0.55), 0 0 0 3px rgba(111, 160, 255, 0.28);
  animation: sd-chev-nudge 1.6s ease-in-out 0.6s 3; transition: transform 0.25s var(--sd-ease), background 0.2s, box-shadow 0.2s; }
.sd-orb__chev svg { width: 14px; height: 9px; }
.sd-orb:hover .sd-orb__chev { box-shadow: 0 6px 16px rgba(47, 111, 237, 0.7), 0 0 0 4px rgba(111, 160, 255, 0.4); }
.sd-orb--open .sd-orb__chev { transform: rotate(180deg); animation: none; background: rgba(111, 160, 255, 0.3); box-shadow: 0 0 0 3px rgba(111, 160, 255, 0.45); }
@keyframes sd-chev-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .sd-orb__chev { animation: none; } }
.sd-orb__net { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; max-width: 100%; font-size: 12.5px; line-height: 1.35; text-align: center; }
.sd-orb__netname { font-weight: 600; color: var(--sd-text); opacity: 0.88; }
.sd-orb__std { color: var(--sd-faint); font-weight: 600; }

.sd-pick { position: relative; margin-top: 14px; padding: 14px 12px 12px; border-radius: 18px; background: #091A45; border: 1px solid var(--sd-panel-line);
  animation: sd-pick-in 0.3s var(--sd-ease); }
.sd-pick::before { content: ""; position: absolute; top: -7px; width: 12px; height: 12px; transform: rotate(45deg); background: #091A45;
  border-top: 1px solid var(--sd-panel-line); border-left: 1px solid var(--sd-panel-line); }
.sd-pick--from::before { left: calc((100% - 40px) / 4 - 6px); }
.sd-pick--to::before { right: calc((100% - 40px) / 4 - 6px); }
@keyframes sd-pick-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sd-pick__label { margin: 0 0 8px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sd-faint); }
.sd-pick__label--net { margin-top: 14px; }
.sd-pick__coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.sd-tile { display: grid; justify-items: center; gap: 5px; min-width: 0; padding: 8px 2px 7px; border-radius: 14px; background: transparent; border: 1px solid transparent;
  color: var(--sd-muted); font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1.2; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background 0.2s var(--sd-ease), border-color 0.2s var(--sd-ease), transform 0.2s var(--sd-ease); }
.sd-tile:hover { background: rgba(255, 255, 255, 0.07); }
.sd-tile:active { transform: scale(0.96); }
.sd-tile__coin { width: 38px; height: 38px; font-size: 15px; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.2); }
.sd-tile--on { background: rgba(47, 111, 237, 0.24); border-color: rgba(111, 160, 255, 0.65); color: #fff; }
.sd-pick__nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sd-netchip { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 6px 10px 6px 8px; text-align: start; border-radius: 999px; background: var(--sd-field); border: 1px solid var(--sd-field-line);
  color: var(--sd-text); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background 0.2s var(--sd-ease), border-color 0.2s var(--sd-ease); }
.sd-netchip:hover { border-color: rgba(255, 255, 255, 0.34); }
.sd-netchip__text { display: grid; gap: 1px; min-width: 0; }
.sd-netchip__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-netchip__mark { width: 28px; height: 28px; flex: none; }
.sd-netchip__mark svg { width: 16px; height: 16px; }
.sd-netchip__std { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--sd-faint); }
.sd-netchip--on { background: rgba(47, 111, 237, 0.3); border-color: var(--sd-sky); }
.sd-netchip--on .sd-netchip__std { color: var(--sd-sky-text); }
@media (prefers-reduced-motion: reduce) { .sd-route__spark, .sd-pick { animation: none; } .sd-orb__coinwrap, .sd-orb__chev, .sd-orb__coin { transition: none; } }
@media (max-width: 360px) { .sd-orb__coinwrap, .sd-orb__coin { width: 56px; height: 56px; } .sd-orb__coin { font-size: 22px; } .sd-route__rail { top: 52px; } .sd-route__link { padding-top: 35px; } .sd-orb__name { font-size: 17px; } .sd-netchip { gap: 7px; padding: 6px 8px 6px 6px; font-size: 13px; } .sd-netchip__mark { width: 24px; height: 24px; } .sd-netchip__mark svg { width: 14px; height: 14px; } }
.sd-coin { display: grid; justify-items: center; gap: 4px; text-align: center; }
.sd-coin__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-blue); color: #fff; font-size: 18px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.sd-coin__icon[data-coin="USDT"] { background: #26a17b; }
.sd-coin__icon[data-coin="USDC"] { background: #2775ca; }
.sd-coin__icon[data-coin="DAI"] { background: #f5ac37; color: #2a1b00; }
.sd-coin__name { font-size: 18px; font-weight: 700; line-height: 1.15; }
.sd-coin__net { max-width: 100%; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 11.5px; font-weight: 600; color: var(--sd-text); }

.sd-select { position: relative; display: block; }
.sd-select__control { -webkit-appearance: none; appearance: none; width: 100%; min-height: 44px; padding: 10px 32px 10px 12px; text-overflow: ellipsis;
  background: var(--sd-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A9BAE0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  border: 1px solid var(--sd-field-line); border-radius: 12px; color: var(--sd-text); font-size: 15px; font-weight: 600; line-height: 1.2; }
.sd-select__control:focus { border-color: var(--sd-sky); outline: none; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.28); }
.sd-select__control option { background: #0A1B42; color: #F5F8FF; }

/* ---------- Amount ---------- */
.sd-amount { text-align: center; }
.sd-amount__input { width: 100%; max-width: 260px; padding: 4px 0; background: transparent; border: 0; outline: 0; text-align: center; color: var(--sd-text);
  font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sd-amount__input::placeholder { color: var(--sd-faint); }
.sd-amount__unit { font-size: 15px; font-weight: 600; color: var(--sd-muted); }
.sd-amount__meta { margin-top: 6px; }
.sd-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.sd-chip { min-height: 38px; padding: 0 18px; border-radius: 999px; background: var(--sd-field); border: 1px solid var(--sd-field-line); color: var(--sd-text); font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--sd-ease), border-color 0.2s var(--sd-ease); }
.sd-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.sd-chip--on { background: var(--sd-blue); border-color: var(--sd-blue); color: #fff; font-weight: 700; }
.sd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(75, 132, 255, 0.16); border: 1px solid rgba(75, 132, 255, 0.45); color: var(--sd-sky-text); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.sd-tag--go { background: rgba(62, 216, 160, 0.22); border-color: var(--sd-green-line); color: #7DF0C4; }

/* ---------- Receivers ---------- */
.sd-receivers { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sd-receivers::-webkit-scrollbar { display: none; }
.sd-receiver { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; min-width: 62px; padding: 4px; background: none; border: 0; border-radius: 14px; color: var(--sd-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.sd-receiver__name { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-blue); color: #fff; font-size: 18px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.sd-avatar--1 { background: #2F6FED; }
.sd-avatar--2 { background: #7A4FD6; }
.sd-avatar--3 { background: #D6457F; }
.sd-avatar--4 { background: #0E9F9A; }
.sd-avatar--5 { background: #D9821A; }
.sd-avatar--new { background: transparent; border: 2px dashed rgba(156, 192, 255, 0.55); color: var(--sd-sky-text); font-size: 22px; box-shadow: none; }
.sd-receiver--on { color: var(--sd-text); }
.sd-receiver--on .sd-avatar { box-shadow: 0 0 0 3px #12327A, 0 0 0 5px var(--sd-sky); }

/* ---------- Fields ---------- */
.sd-field + .sd-field { margin-top: 14px; }
.sd-field__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--sd-text); }
.sd-field__msg { margin-top: 6px; font-size: 12.5px; color: var(--sd-muted); }
.sd-field__msg--ok { color: var(--sd-green); }
.sd-field__msg--error { color: var(--sd-red); }
.sd-input { display: block; width: 100%; min-height: 46px; padding: 12px 14px; background: var(--sd-field); border: 1px solid var(--sd-field-line); border-radius: 12px; color: var(--sd-text); font-size: 16px; font-weight: 500; line-height: 1.3;
  transition: border-color 0.2s var(--sd-ease), box-shadow 0.2s var(--sd-ease); }
.sd-input::placeholder { color: var(--sd-faint); }
.sd-input:focus { border-color: var(--sd-sky); outline: none; box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.28); }
.sd-input--mono { font-family: var(--sd-mono); font-size: 15px; overflow-wrap: anywhere; }
.sd-input--area { min-height: 76px; resize: vertical; }
.sd-input.is-valid { border-color: var(--sd-green-line); }
.sd-input.is-invalid { border-color: var(--sd-red); }

.sd-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.sd-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sd-switch__text { font-size: 14px; font-weight: 500; }
.sd-switch__track { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: var(--sd-field); border: 1px solid rgba(255, 255, 255, 0.22); transition: background-color 0.15s ease, border-color 0.15s ease; }
.sd-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.sd-switch__input:checked + .sd-switch__track { background: var(--sd-blue); border-color: var(--sd-blue); }
.sd-switch__input:checked + .sd-switch__track::after { transform: translateX(18px); }
.sd-switch__input:focus-visible + .sd-switch__track { outline: 2px solid var(--sd-sky); outline-offset: 2px; }

/* ---------- "Send to": the receiver and the optional refund address in one compact card ----------
   Head: the title and a small pill with the receiver's network (so no label has to say it).
   Inputs: .sd-inputbox is the field itself (border, focus ring, green/red edge); the network badge, the Paste/Clear
   button and the bare <input> sit inside it. A good address turns the edge green and puts a tick on the badge.
   Refund: .sd-disclose is one quiet row that opens when tapped; its body holds the saved-address switch or the box. */
.sd-field__msg:empty { display: none; }
.sd-sendto__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sd-sendto__head .sd-card__title { margin: 0; }
.sd-netpill { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 62%; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--sd-inset); border: 1px solid var(--sd-field-line); color: var(--sd-text); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.sd-netpill__mark { flex: none; width: 20px; height: 20px; }
.sd-netpill__mark svg { width: 12px; height: 12px; }
.sd-netpill__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sd-inputbox { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 10px; background: var(--sd-field); border: 1px solid var(--sd-field-line); border-radius: 14px;
  transition: border-color 0.2s var(--sd-ease), box-shadow 0.2s var(--sd-ease); }
.sd-inputbox:focus-within { border-color: var(--sd-sky); box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.28); }
.sd-inputbox.is-valid { border-color: var(--sd-green-line); }
.sd-inputbox.is-invalid { border-color: var(--sd-red); }
.sd-inputbox--next { margin-top: 10px; }
.sd-inputbox .sd-input { flex: 1; min-width: 0; min-height: 50px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.sd-inputbox .sd-input:focus, .sd-inputbox .sd-input:focus-visible { outline: none; box-shadow: none; }
.sd-inputbox__badge { position: relative; flex: none; width: 30px; height: 30px; }
.sd-inputbox__badge svg { width: 16px; height: 16px; }
.sd-inputbox.is-valid .sd-inputbox__badge::after { content: "\2713"; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sd-green-solid); color: #04241A; border: 2px solid #0E2557; font-size: 8px; font-weight: 800; line-height: 1; box-sizing: content-box; transform: scale(0.85); transform-origin: 100% 100%; }
.sd-inputbox__icon { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--sd-sky-text); }
.sd-inputbox__icon svg { width: 16px; height: 16px; }
.sd-paste { flex: none; min-height: 32px; padding: 0 13px; border-radius: 999px; background: rgba(47, 111, 237, 0.3); border: 1px solid rgba(111, 160, 255, 0.5); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--sd-ease), border-color 0.2s var(--sd-ease); }
.sd-paste:hover { background: rgba(47, 111, 237, 0.5); }
.sd-paste--clear { background: transparent; border-color: transparent; color: var(--sd-muted); }
.sd-paste--clear:hover { background: rgba(255, 255, 255, 0.08); color: var(--sd-text); }

.sd-disclose { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 9px 10px; background: var(--sd-inset); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; color: inherit; font: inherit; text-align: start; cursor: pointer;
  transition: border-color 0.2s var(--sd-ease), background 0.2s var(--sd-ease); }
.sd-disclose:hover { border-color: rgba(255, 255, 255, 0.24); }
.sd-disclose--open { border-color: rgba(111, 160, 255, 0.45); }
.sd-disclose__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(111, 160, 255, 0.16); color: var(--sd-sky-text); }
.sd-disclose__icon svg { width: 18px; height: 18px; }
.sd-disclose__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sd-disclose__title { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--sd-text); }
.sd-disclose__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 1.35; color: var(--sd-muted); }
.sd-disclose__sub--ok { color: var(--sd-green); font-family: var(--sd-mono); font-size: 12px; }
.sd-disclose__sub--error { color: var(--sd-red); }
.sd-disclose__chev { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--sd-sky-text); transition: transform 0.25s var(--sd-ease), background 0.2s; }
.sd-disclose__chev svg { width: 11px; height: 7px; }
.sd-disclose--open .sd-disclose__chev { transform: rotate(180deg); background: rgba(111, 160, 255, 0.26); }
.sd-disclose__body { padding: 12px 2px 2px; animation: sd-pick-in 0.3s var(--sd-ease); }
.sd-disclose__body > * + * { margin-top: 10px; }
.sd-disclose__body .sd-address { margin-bottom: 0; }
.sd-disclose__body .sd-switch { min-height: 40px; }

/* The network reminder: one slim line instead of a boxed warning. */
.sd-note { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 183, 74, 0.1); border: 1px solid rgba(255, 183, 74, 0.28); color: var(--sd-amber-text); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.sd-note__icon { flex: none; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--sd-amber); color: #2B1A00; font-size: 10px; font-weight: 800; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .sd-disclose__body { animation: none; } .sd-disclose__chev { transition: none; } }

/* ---------- Notices (network warnings, issues): the dashboard's four status colours ---------- */
.sd-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(75, 132, 255, 0.16); border: 1px solid rgba(75, 132, 255, 0.45); font-size: 13px; line-height: 1.45; color: var(--sd-text); }
.sd-notice__icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--sd-sky); color: #050B1F; font-size: 12px; font-weight: 800; line-height: 1; }
.sd-notice__title { display: block; font-weight: 700; }
.sd-notice--warn { background: var(--sd-amber-bg); border-color: var(--sd-amber-line); }
.sd-notice--warn .sd-notice__icon { background: var(--sd-amber); color: #2B1A00; }
.sd-notice--danger { background: var(--sd-red-bg); border-color: var(--sd-red-line); }
.sd-notice--danger .sd-notice__icon { background: var(--sd-red); color: #2A0A0A; }
.sd-notice--ok { background: var(--sd-green-bg); border-color: var(--sd-green-line); }
.sd-notice--ok .sd-notice__icon { background: var(--sd-green-solid); color: #04241A; }

/* ---------- Rows (summaries, receipts) ---------- */
.sd-rows { min-width: 0; }
.sd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.sd-row:first-child { border-top: 0; padding-top: 0; }
.sd-row:last-child { padding-bottom: 0; }
.sd-row__k { flex: 0 0 auto; color: var(--sd-muted); }
.sd-row__v { min-width: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sd-row--total .sd-row__v { font-size: 17px; font-weight: 700; color: var(--sd-green); }
.sd-hash { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; color: #DCE7FF; font: 700 12.5px/1.2 var(--sd-mono); letter-spacing: 0.03em; cursor: pointer; }
.sd-hash:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Buttons: flat blue, like the dashboard ---------- */
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 13px; background: none; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--sd-ease), border-color 0.2s var(--sd-ease), transform 0.2s var(--sd-ease); }
.sd-btn:active { transform: scale(0.98); }
.sd-btn--primary { background: var(--sd-blue); border-color: var(--sd-blue); }
.sd-btn--primary:hover { background: var(--sd-blue-hi); border-color: var(--sd-blue-hi); }
.sd-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.sd-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.38); }
.sd-btn--accent { background: var(--sd-amber); border-color: var(--sd-amber); color: #2B1A00; }
.sd-btn--accent:hover { filter: brightness(1.06); }
.sd-btn--block { display: flex; width: 100%; }
.sd-btn--sm { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.sd-btn:disabled, .sd-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
/* The main button when it can't be pressed yet: a calm, dimmed blue with soft white text (not a muddy grey-on-blue). */
.sd-btn--primary:disabled { opacity: 1; background: rgba(47, 111, 237, 0.34); border-color: rgba(111, 160, 255, 0.22); color: rgba(255, 255, 255, 0.62); }
.sd-btn--primary.is-loading:disabled { background: var(--sd-blue); border-color: var(--sd-blue); } /* busy, not "not ready yet" */
.sd-btn__icon { display: inline-grid; place-items: center; }
.sd-btn__icon svg { width: 18px; height: 18px; }
.sd-btn.is-done { background: var(--sd-green-solid); border-color: var(--sd-green-solid); color: #04241A; }
.sd-btn.is-loading { position: relative; color: transparent; pointer-events: none; }
.sd-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: sd-spin 0.7s linear infinite; }
.sd-btn--accent.is-loading::after { border-color: rgba(43, 26, 0, 0.3); border-top-color: #2B1A00; }
.sd-link { padding: 0; background: none; border: 0; color: var(--sd-sky-text); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Pay screen ---------- */
.sd-wait { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--sd-panel); border: 1px solid var(--sd-panel-line); border-radius: 16px; }
.sd-wait__dot { position: relative; flex: 0 0 auto; width: 12px; height: 12px; margin: 0 4px; border-radius: 50%; background: var(--sd-sky); }
.sd-wait__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--sd-sky); animation: sd-pulse 1.8s ease-out infinite; }
.sd-wait__text { flex: 1; min-width: 0; }
.sd-wait__title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.sd-wait__order { font-size: 12px; color: var(--sd-muted); overflow-wrap: anywhere; }
.sd-wait__time { text-align: end; }
.sd-timer { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.sd-timer--low { color: var(--sd-amber-text); }
.sd-timer--up { color: var(--sd-red); }
.sd-timer__note { margin-top: 3px; font-size: 11px; color: var(--sd-muted); }

.sd-pay { text-align: center; }
.sd-pay__label { font-size: 13px; color: var(--sd-muted); }
.sd-pay__amount { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sd-pay__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.sd-qr { width: min(46vw, 176px); aspect-ratio: 1; margin: 4px auto; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(4, 6, 20, 0.45); }
.sd-qr > * { display: block; width: 100%; height: 100%; }
/* Pay card, compact: tighter rows, amount with a copy icon beside it, one-line address, short warnings */
.sd-pay.sd-stack > * + * { margin-top: 10px; }
.sd-pay__line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.sd-copybtn { width: 36px; min-height: 36px; flex: none; padding: 0; border-radius: 10px; }
.sd-copybtn svg { width: 18px; height: 18px; }
.sd-address--pay { margin-bottom: 0; padding: 6px 6px 6px 12px; }
.sd-address__text--tap { padding: 0; background: none; border: 0; color: inherit; text-align: start; cursor: pointer; user-select: auto; }
.sd-pay .sd-notice { padding: 9px 12px; gap: 8px; align-items: center; border-radius: 12px; font-size: 12.5px; line-height: 1.35; text-align: start; }
.sd-pay .sd-notice__icon { width: 18px; height: 18px; margin-top: 0; font-size: 11px; }
.sd-qr canvas { image-rendering: pixelated; }
.sd-address { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px 10px 10px 14px; text-align: start; background: var(--sd-field); border: 1px solid var(--sd-field-line); border-radius: 12px; }
.sd-address__text { flex: 1; min-width: 0; font: 500 13px/1.4 var(--sd-mono); overflow-wrap: anywhere; user-select: all; }

/* ---------- Progress list ---------- */
.sd-steps { margin: 0; padding: 0; list-style: none; }
.sd-step { position: relative; display: flex; gap: 12px; padding-bottom: 14px; color: var(--sd-faint); }
.sd-step:last-child { padding-bottom: 0; }
.sd-step::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.14); }
.sd-step:last-child::before { display: none; }
.sd-step__dot { position: relative; z-index: 1; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.26); background: #0E2557; }
.sd-step__body { min-width: 0; padding-top: 1px; }
.sd-step__label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sd-step__detail { margin-top: 2px; font-size: 12.5px; color: var(--sd-muted); }
.sd-step--done { color: var(--sd-text); }
.sd-step--done::before { background: var(--sd-green-solid); }
.sd-step--done .sd-step__dot { background: var(--sd-green-solid); border-color: var(--sd-green-solid); }
.sd-step--done .sd-step__dot::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #04241A; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.sd-step--active { color: var(--sd-text); }
.sd-step--active .sd-step__dot { background: var(--sd-blue); border-color: var(--sd-blue); box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.3); }
.sd-step--bad { color: var(--sd-text); }
.sd-step--bad .sd-step__dot { background: var(--sd-red); border-color: var(--sd-red); }

/* ---------- Receipt ---------- */
.sd-delivered { position: relative; overflow: hidden; padding: 24px 16px; text-align: center; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #0D7A5A, #12327A 85%); box-shadow: 0 14px 30px rgba(13, 122, 90, 0.35); }
.sd-delivered::after { content: ""; position: absolute; right: -36px; top: -36px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.sd-delivered > * { position: relative; z-index: 1; }
.sd-delivered__check { position: relative; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); animation: sd-pop 0.45s ease-out both; }
.sd-delivered__check::after { content: ""; position: absolute; left: 17px; top: 9px; width: 11px; height: 21px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.sd-delivered__label { font-size: 14px; color: #fff; }
.sd-delivered__amount { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sd-delivered__to { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }

.sd-tracker { display: flex; margin: 0; padding: 0; list-style: none; }
.sd-tracker__step { position: relative; flex: 1; padding-top: 26px; text-align: center; font-size: 11.5px; color: var(--sd-faint); }
.sd-tracker__step::before { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: rgba(255, 255, 255, 0.2); }
.sd-tracker__step:first-child::before { display: none; }
.sd-tracker__step::after { content: ""; position: absolute; top: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #0E2557; border: 2px solid rgba(255, 255, 255, 0.26); }
.sd-tracker__step--done { color: var(--sd-text); }
.sd-tracker__step--done::before { background: var(--sd-green-solid); }
.sd-tracker__step--done::after { background: var(--sd-green-solid); border-color: var(--sd-green-solid); }

/* The invite card: amber, like the dashboard's Rewards link. */
.sd-invite { padding: 16px; border-radius: 20px; border: 1px solid rgba(255, 183, 74, 0.35); background: linear-gradient(180deg, rgba(255, 183, 74, 0.16), rgba(255, 183, 74, 0.05)); }
.sd-invite__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--sd-amber-text); }
.sd-invite__text { margin: 4px 0 12px; font-size: 13px; color: var(--sd-muted); }

/* ---------- Your sends (history): the dashboard's trade rows ---------- */
.sd-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sd-item { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; width: 100%; padding: 11px 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.3), rgba(18, 50, 122, 0.5)); transition: border-color 0.2s var(--sd-ease); }
.sd-item:hover { border-color: rgba(156, 192, 255, 0.4); }
/* Flex children default to a min-width equal to their own content, so text
   that doesn't fit spills past the card instead of shrinking or wrapping.
   This line overrides that for anything sitting directly in a row (here and
   in a few other rows below), whatever that child turns out to be. */
.sd-item > * { min-width: 0; }
.sd-item__main { flex: 1 1 140px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sd-item__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-item__sub { font-size: 12px; color: var(--sd-muted); overflow: hidden; text-overflow: ellipsis; }
.sd-item__amount { flex: 0 1 auto; max-width: 100%; text-align: end; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-empty { padding: 28px 16px; text-align: center; font-size: 14px; color: var(--sd-muted); }

/* status pills: the dashboard's .mt-pill colours */
.sd-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: rgba(75, 132, 255, 0.22); color: var(--sd-sky-text); font-size: 11.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-pill--working { background: rgba(75, 132, 255, 0.22); color: var(--sd-sky-text); }
.sd-pill--waiting { background: var(--sd-amber); color: #2B1A00; }
.sd-pill--done { background: rgba(62, 216, 160, 0.22); color: #7DF0C4; }
.sd-pill--bad { background: rgba(255, 122, 122, 0.22); color: #FFB3B3; }
.sd-pill--muted { background: rgba(255, 255, 255, 0.1); color: #C9D6F5; }

/* ---------- Receiver share page ---------- */
.sd-live { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--sd-muted); }
.sd-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sd-green-solid); animation: sd-pulse-soft 1.8s ease-in-out infinite; }

/* ---------- Admin ---------- */
.sd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sd-table th { padding: 8px 10px; text-align: start; font-weight: 600; color: var(--sd-muted); white-space: nowrap; border-bottom: 1px solid var(--sd-border); }
.sd-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

/* ---------- Loading placeholder (the dashboard's shimmer) ---------- */
.sd-skel { min-height: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 220% 100%; animation: sd-shimmer 1.3s linear infinite; }
.sd-skel + .sd-skel { margin-top: 12px; }

/* ---------- Loading screen: the BBscrow boot animation, the same one the dashboard opens with ----------
   Drifting clouds, the sealing rings around the BBscrow mark, the wordmark settling in letter by letter and a
   sliding bar, over the WHOLE window (so on a desktop it is not a small phone column). send.js builds it inside
   #sdLoading as soon as it starts, moves it to the top level of the page, holds it for at least 0.9 seconds and
   fades it out when the form is ready. The colours are this file's own tokens plus the dashboard's cloud blues. */
html.sd-is-loading,
html.sd-is-loading body { overflow: hidden; height: 100%; }
/* On the Send page the grey placeholder boxes are never shown: the animation replaces them at once. */
.sd-body[data-sd-page="send"] #sdLoading:not(.sd-loader) { display: none; }

.sd-loader {
  position: fixed; inset: 0; z-index: 3000; margin: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: var(--sd-bg-mid);
  background-image:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(75, 132, 255, 0.24), transparent 60%),
    radial-gradient(ellipse 800px 700px at 100% 10%, rgba(47, 111, 237, 0.24), transparent 55%),
    radial-gradient(ellipse 1000px 800px at 50% 120%, rgba(5, 11, 31, 0.9), transparent 60%),
    linear-gradient(160deg, var(--sd-bg-start) 0%, var(--sd-bg-mid) 45%, var(--sd-bg-start) 100%);
  transition: opacity 0.6s var(--sd-ease), visibility 0.6s var(--sd-ease);
}
.sd-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.sd-loader__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Clouds: soft blurred shapes drifting left to right at different speeds */
.sd-loader__sky { position: absolute; inset: 0; overflow: hidden; }
.sd-loader__cloud { position: absolute; border-radius: 50%; filter: blur(26px); opacity: 0;
  animation: sd-cloud-drift linear infinite, sd-cloud-in 1.4s var(--sd-ease) forwards; }
.sd-loader__cloud--1 { width: 340px; height: 120px; top: 18%; left: -30%; background: radial-gradient(closest-side, rgba(159, 188, 250, 0.5), rgba(159, 188, 250, 0) 72%); animation-duration: 22s; }
.sd-loader__cloud--2 { width: 260px; height: 90px; top: 62%; left: -25%; background: radial-gradient(closest-side, rgba(47, 111, 237, 0.45), rgba(47, 111, 237, 0) 72%); animation-duration: 30s; animation-delay: -6s, 0.3s; }
.sd-loader__cloud--3 { width: 420px; height: 150px; top: 40%; left: -35%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 72%); animation-duration: 38s; animation-delay: -14s, 0.6s; }
.sd-loader__cloud--4 { width: 200px; height: 70px; top: 78%; left: -20%; background: radial-gradient(closest-side, rgba(75, 132, 255, 0.4), rgba(75, 132, 255, 0) 72%); animation-duration: 26s; animation-delay: -10s, 0.9s; }
@keyframes sd-cloud-drift { from { transform: translateX(0); } to { transform: translateX(160vw); } }
@keyframes sd-cloud-in { to { opacity: 1; } }

/* The mark with its two rings, the wordmark, the bar and the calm "still connecting" line */
.sd-loader__core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 24px; text-align: center; }
.sd-loader__mark { position: relative; display: block; width: 96px; height: 96px; color: #4B84FF; animation: sd-mark-in 0.7s var(--sd-ease) both; }
.sd-loader__mark svg { display: block; width: 100%; height: 100%; }
.sd-loader__mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px;
  background: #2F6FED url("/icons/bbscrow-mark-light.svg") center / 38px 38px no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(47, 111, 237, 0.45); }
.sd-loader__ring--outer { transform-box: fill-box; transform-origin: center; color: #2F6FED; opacity: 0.55; animation: sd-ring-spin 5s linear infinite; }
.sd-loader__ring--mid { color: #4B84FF; stroke-dasharray: 120; stroke-dashoffset: 120; animation: sd-ring-draw 1.6s var(--sd-ease) 0.3s infinite; }
@keyframes sd-mark-in { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes sd-ring-spin { to { transform: rotate(360deg); } }
@keyframes sd-ring-draw { 0% { stroke-dashoffset: 120; } 45% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -120; } }

.sd-loader__word { display: flex; margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.04em; color: var(--sd-text); }
.sd-loader__word span { display: inline-block; opacity: 0; transform: translateY(8px); animation: sd-letter-in 0.5s var(--sd-ease) both; animation-delay: calc(0.5s + var(--i, 0) * 0.035s); }
@keyframes sd-letter-in { to { opacity: 1; transform: translateY(0); } }

.sd-loader__bar { width: 120px; height: 3px; border-radius: 999px; background: var(--sd-surface-strong); overflow: hidden; }
.sd-loader__bar span { display: block; width: 40%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2F6FED 0%, #4B84FF 50%, #9CC0FF 100%); animation: sd-bar-slide 1.4s var(--sd-ease) infinite; }
@keyframes sd-bar-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

.sd-loader__note { max-width: 30ch; margin: 0; font-size: 13px; line-height: 1.45; color: var(--sd-muted); animation: sd-note-in 0.5s ease-out both; }
@keyframes sd-note-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .sd-loader__cloud--1, .sd-loader__cloud--3 { display: none; } }
/* Less motion asked for: a still picture */
@media (prefers-reduced-motion: reduce) {
  .sd-loader__cloud, .sd-loader__ring--outer, .sd-loader__ring--mid, .sd-loader__bar span, .sd-loader__mark { animation: none; }
  .sd-loader__cloud { opacity: 1; left: 20%; }
  .sd-loader__ring--mid { stroke-dashoffset: 0; }
  .sd-loader__word span { animation: none; opacity: 1; transform: none; }
  .sd-loader__bar span { width: 100%; }
}

/* ---------- Motion (only where it answers something) ---------- */
@keyframes sd-spin { to { transform: rotate(360deg); } }
@keyframes sd-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sd-pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sd-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sd-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Send form: one column on a phone, two on a wide screen ---------- */
.sd-form { display: grid; gap: 14px; }
.sd-form > .sd-stack { min-width: 0; }

@media (min-width: 940px) {
  /* The Send page gets a wider frame. Every screen except the form stays a centred 460px column
     (pay, receipt and history read better narrow); the header lines up with the frame it sits over. */
  .sd-body[data-sd-page="send"] { --sd-w: 980px; }
  .sd-body[data-sd-page="send"] .sd-main > *,
  .sd-body[data-sd-page="send"] .sd-screen > .sd-stack { max-width: 460px; margin-left: auto; margin-right: auto; }
  .sd-body[data-sd-page="send"] .sd-main > .sd-screen[data-screen="form"] { max-width: none; }
  .sd-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
}
/* The right-hand column stays in view while the left one is scrolled, but only when the screen is tall
   enough to show all of it; on a short laptop screen it scrolls normally so nothing is cut off. */
@media (min-width: 940px) and (min-height: 760px) {
  .sd-form__side { position: sticky; top: 84px; }
}

/* ---------- Screen sizes ---------- */
@media (min-width: 721px) {
  .sd-hero { padding: 26px 28px 22px; }
  .sd-hero__title { font-size: 27px; }
  .sd-fact__k { font-size: 12.5px; }
}
/* Phones: the "You send" card is more compact (smaller amount, smaller buttons, tighter spacing). */
@media (max-width: 600px) {
  .sd-amount__input { font-size: 34px; padding: 0; }
  .sd-amount__unit { font-size: 13px; }
  .sd-amount__meta { margin-top: 2px; }
  .sd-chips { gap: 6px; margin: 8px 0 4px; }
  .sd-chip { min-height: 34px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 400px) {
  .sd-hero { padding: 18px 16px 16px; }
  .sd-fact + .sd-fact { padding-inline-start: 10px; }
  .sd-tab { font-size: 12px; padding-inline: 4px; }
}
@media (max-width: 360px) {
  .sd-header { padding-inline: 12px; }
  .sd-header__left, .sd-brand { gap: 8px; }
  .sd-brand__name { font-size: 16px; }
  .sd-amount__input { font-size: 30px; }
  .sd-pay__amount { font-size: 33px; }
  .sd-coin__name { font-size: 16px; }
  .sd-hero__title { font-size: 21px; }
  .sd-fact__v { font-size: 13.5px; }
  .sd-tab__n { display: none; }
}

/* ---------- Print: "Save receipt" can use the browser's Print / Save as PDF ---------- */
@media print {
  .sd-body { background: #fff; color: #000; }
  .sd-header, .sd-footer, .sd-actions, .sd-invite, .sd-toast, .sd-banner, .sd-iconbtn, .sd-btn { display: none !important; }
  .sd-shell { max-width: none; padding: 0; }
  .sd-card, .sd-delivered { background: #fff; color: #000; border: 1px solid #bbb; box-shadow: none; }
  .sd-row { border-color: #ddd; }
  .sd-row__k, .sd-delivered__label, .sd-delivered__to, .sd-muted { color: #444; }
  .sd-row--total .sd-row__v { color: #000; }
  .sd-tracker__step, .sd-tracker__step--done { color: #000; }
}
/* ============================================================================
   STATUS PAGE REFRESH — public/escrow/send/status.html (the receiver's page)
   Visual-only polish, scoped entirely to .sd-body[data-sd-page="status"], so
   nothing below changes how send, pay, receipt, history or admin look. No
   selector above this line is edited and no class is renamed, so every
   element status.js, send-text.js and send-api.js already write still works
   exactly as before — this section only adds weight on top of it.
   ========================================================================== */

.sd-body[data-sd-page="status"] {
  --sd-glass: rgba(13, 26, 58, 0.55);
  --sd-glass-strong: rgba(15, 30, 66, 0.82);
  --sd-hairline: rgba(255, 255, 255, 0.10);
}

/* Header: the same blue bar, with a little more depth under it */
.sd-body[data-sd-page="status"] .sd-header {
  background: linear-gradient(140deg, #3978f4 0%, #2F6FED 42%, #122D72 100%);
  box-shadow: 0 14px 36px rgba(15, 35, 90, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.24);
}

/* Cards: a softer, deeper glass panel instead of the flat blue fill.
   Applied to the loading skeleton too, so the page doesn't change shape when
   the real content replaces it. */
.sd-body[data-sd-page="status"] .sd-card {
  background: linear-gradient(165deg, var(--sd-glass-strong), var(--sd-glass));
  border: 1px solid var(--sd-hairline);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(3, 7, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sd-body[data-sd-page="status"] .sd-card + .sd-card { margin-top: 16px; }
.sd-body[data-sd-page="status"] .sd-card > * + * { margin-top: 14px; }
.sd-body[data-sd-page="status"] .sd-card__title {
  font-size: 19px;
  letter-spacing: -0.015em;
}
/* Whatever line status.js puts right after the title (the amount and
   destination) is the lede, so give it a little more air to read. */
.sd-body[data-sd-page="status"] .sd-card__title + * {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sd-muted);
}

/* One settled entrance for the whole status card once it is filled in — not
   a separate animation on every line inside it. */
.sd-body[data-sd-page="status"] #sdScreenStatus:not([hidden]) {
  animation: sd-status-in 0.6s var(--sd-ease) both;
}
@keyframes sd-status-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* The status pill, standing alone rather than tucked into a history row */
.sd-body[data-sd-page="status"] .sd-pill {
  gap: 7px;
  padding: 7px 14px 7px 11px;
  font-size: 12.5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.sd-body[data-sd-page="status"] .sd-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.sd-body[data-sd-page="status"] .sd-pill--waiting::before,
.sd-body[data-sd-page="status"] .sd-pill--working::before {
  animation: sd-pulse-soft 1.6s ease-in-out infinite;
}

/* Tracker: a smoother rail, a checkmark on finished steps, and a quiet glow
   on whichever step is next — so the row reads at a glance. */
.sd-body[data-sd-page="status"] .sd-tracker { margin-top: 18px; }
.sd-body[data-sd-page="status"] .sd-tracker__step {
  font-size: 11px;
  font-weight: 600;
  padding-top: 30px;
}
.sd-body[data-sd-page="status"] .sd-tracker__step::before {
  top: 11px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.sd-body[data-sd-page="status"] .sd-tracker__step::after {
  top: 2px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-width: 2px;
  transition: background 0.3s var(--sd-ease), border-color 0.3s var(--sd-ease), box-shadow 0.3s var(--sd-ease);
}
.sd-body[data-sd-page="status"] .sd-tracker__step--done::after {
  background-color: var(--sd-green-solid);
  border-color: var(--sd-green-solid);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2304241A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  box-shadow: 0 0 0 4px rgba(94, 224, 176, 0.22);
}
.sd-body[data-sd-page="status"] .sd-tracker__step--done + .sd-tracker__step::after,
.sd-body[data-sd-page="status"] .sd-tracker__step:first-child:not(.sd-tracker__step--done)::after {
  background-color: var(--sd-blue);
  border-color: var(--sd-blue);
  box-shadow: 0 0 0 5px rgba(47, 111, 237, 0.28);
  animation: sd-pulse-soft 1.8s ease-in-out infinite;
}

/* Wallet address: a quieter field instead of the same blue as everything else */
.sd-body[data-sd-page="status"] .sd-address {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 11, 31, 0.5);
  border-color: var(--sd-hairline);
}
.sd-body[data-sd-page="status"] .sd-address__text {
  font-size: 13.5px;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* "This page updates by itself" live line */
.sd-body[data-sd-page="status"] .sd-live { font-size: 12.5px; }

/* Footer */
.sd-body[data-sd-page="status"] .sd-footer {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* ---------- Optional "create an account" row (new, status page only) ----------
   The markup lives in status.html as #sdAcctPromo, hidden until a small
   inline script there reveals it (once #sdScreenStatus is filled in) and
   remembers a dismissal ("Not now") in localStorage. It reuses .sd-invite —
   the dashboard's own amber upsell look — and the existing .sd-btn
   component, so it already matches the rest of the site; the only new
   classes are the text and button-row wrappers. One line, one small ask,
   nothing to read before deciding. */
.sd-body[data-sd-page="status"] .sd-acct .sd-invite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 13px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}
.sd-body[data-sd-page="status"] .sd-acct__text {
  flex: 1 1 190px;
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--sd-text);
}
.sd-body[data-sd-page="status"] .sd-acct__btns {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.sd-body[data-sd-page="status"] #sdAcctPromo:not([hidden]) { animation: sd-status-in 0.5s var(--sd-ease) both; }

/* ============================================================================
   RECENT SENDS — public/escrow/send/index.html, under the form screen only.
   Scoped to .sd-body[data-sd-page="send"], so send/pay/receipt/history/admin
   elsewhere are untouched. Reuses .sd-list / .sd-item / .sd-pill / .sd-empty
   as they already are — the only new classes are the small head row above
   the list. See index.html for the markup and window.BBRecentSends.
   ========================================================================== */
.sd-body[data-sd-page="send"] .sd-recent { margin-top: 18px; }
.sd-body[data-sd-page="send"] .sd-recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
}
.sd-body[data-sd-page="send"] .sd-recent__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sd-text);
}
.sd-body[data-sd-page="send"] .sd-recent .sd-link { font-size: 13px; }
.sd-body[data-sd-page="send"] .sd-recent .sd-item { width: 100%; }

/* ============================================================================
   SCREEN POLISH: "Your sends", Pay and Receipt (the Send page only)
   Added at the end of send.css. Nothing above is edited, no class is renamed, and everything is scoped to
   .sd-body[data-sd-page=send], so the header, the form, the loading screen and the receiver's status page stay as they are.
   Look: the same deep glass as the status page, the coin orbs from the route picker, a coloured edge on each send
   that shows where it stands, a scanning frame on the QR code and a receipt that feels like a ticket.
   ========================================================================== */
.sd-body[data-sd-page=send] { --sd-glass-a: rgba(18, 40, 92, 0.86); --sd-glass-b: rgba(13, 26, 58, 0.62); --sd-hair: rgba(255, 255, 255, 0.1); }

/* ---- Deep glass for the Pay and Receipt cards ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-card,
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-card,
.sd-body[data-sd-page=send] .sd-wait {
  background: linear-gradient(165deg, var(--sd-glass-a), var(--sd-glass-b)); border: 1px solid var(--sd-hair); border-radius: 24px;
  box-shadow: 0 18px 40px rgba(3, 7, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ---- Your sends ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=history] .sd-card__title { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.sd-body[data-sd-page=send] .sd-list { gap: 10px; }
.sd-body[data-sd-page=send] .sd-item {
  position: relative; overflow: hidden; flex-wrap: nowrap; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; border: 1px solid var(--sd-hair);
  background: linear-gradient(165deg, var(--sd-glass-a), var(--sd-glass-b)); box-shadow: 0 14px 30px rgba(3, 7, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s var(--sd-ease), border-color 0.25s var(--sd-ease), box-shadow 0.25s var(--sd-ease);
}
.sd-body[data-sd-page=send] .sd-item:hover { transform: translateY(-2px); border-color: rgba(156, 192, 255, 0.45); box-shadow: 0 18px 36px rgba(3, 7, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.sd-body[data-sd-page=send] .sd-item:active { transform: scale(0.99); }
/* the coloured edge: amber waiting for you, blue working, green delivered, red cancelled */
.sd-body[data-sd-page=send] .sd-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, 0.18); }
.sd-body[data-sd-page=send] .sd-item--waiting::before { background: var(--sd-amber); box-shadow: 0 0 12px rgba(255, 183, 74, 0.6); }
.sd-body[data-sd-page=send] .sd-item--working::before { background: var(--sd-sky); box-shadow: 0 0 12px rgba(111, 160, 255, 0.6); }
.sd-body[data-sd-page=send] .sd-item--done::before { background: var(--sd-green-solid); box-shadow: 0 0 12px rgba(94, 224, 176, 0.55); }
.sd-body[data-sd-page=send] .sd-item--bad::before { background: var(--sd-red); }
/* two overlapping coin orbs: what was sent, what arrives */
.sd-item__orbs { display: flex; flex: none; }
.sd-miniorb { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 46%), linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.2), 0 0 0 2.5px #12306E; }
.sd-miniorb + .sd-miniorb { margin-inline-start: -12px; }
.sd-miniorb[data-coin=DAI], .sd-miniorb[data-coin=USD1] { color: #2A1B00; text-shadow: none; }
.sd-body[data-sd-page=send] .sd-item__title { font-size: 15.5px; letter-spacing: -0.01em; }
.sd-body[data-sd-page=send] .sd-item__sub { white-space: nowrap; }
.sd-item__side { display: grid; justify-items: end; gap: 6px; flex: none; max-width: 46%; text-align: end; }
.sd-body[data-sd-page=send] .sd-item > .sd-stack { display: grid; justify-items: end; gap: 6px; margin: 0; flex: none; }
.sd-body[data-sd-page=send] .sd-item > .sd-stack > * + * { margin-top: 0; }
.sd-body[data-sd-page=send] .sd-empty { padding: 36px 16px; }
.sd-body[data-sd-page=send] .sd-empty::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  border: 2px dashed rgba(156, 192, 255, 0.45); background: radial-gradient(circle, rgba(47, 111, 237, 0.28), transparent 70%); }

/* ---- Pay: the exact amount first, then a QR code in a scanning frame ---- */
.sd-body[data-sd-page=send] .sd-pay__label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sd-sky-text); }
.sd-body[data-sd-page=send] .sd-pay__amount { font-size: 40px; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff 30%, #BFD4FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sd-body[data-sd-page=send] .sd-qr { position: relative; box-shadow: 0 0 0 6px rgba(111, 160, 255, 0.16), 0 0 0 7px rgba(111, 160, 255, 0.4), 0 20px 44px rgba(4, 6, 20, 0.55); }
.sd-body[data-sd-page=send] .sd-qr::after { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #2F6FED 30%, #6FA0FF 70%, transparent); box-shadow: 0 0 12px 1px rgba(47, 111, 237, 0.85); animation: sd-scan 3s ease-in-out infinite; }
@keyframes sd-scan { 0% { top: 10px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
.sd-body[data-sd-page=send] .sd-address { background: rgba(5, 11, 31, 0.5); border-color: var(--sd-hair); border-radius: 16px; }
.sd-body[data-sd-page=send] .sd-wait__title { font-size: 16px; }
.sd-body[data-sd-page=send] .sd-step--active .sd-step__dot { animation: sd-pulse-soft 1.8s ease-in-out infinite; }
.sd-body[data-sd-page=send] .sd-step--done::before { background: linear-gradient(180deg, var(--sd-green-solid), rgba(94, 224, 176, 0.35)); }

/* ---- Receipt: a delivered card with a little celebration, then a ticket ---- */
.sd-body[data-sd-page=send] .sd-delivered { padding: 30px 18px 26px; box-shadow: 0 20px 44px rgba(13, 122, 90, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.sd-body[data-sd-page=send] .sd-delivered::before { content: ""; position: absolute; inset: 0; pointer-events: none; animation: sd-confetti 1.8s var(--sd-ease) both;
  background:
    radial-gradient(circle, #FFB74A 0 3px, transparent 3.5px) 10% 16% / 8px 8px no-repeat, radial-gradient(circle, #fff 0 2px, transparent 2.5px) 22% 70% / 8px 8px no-repeat,
    radial-gradient(circle, #6FA0FF 0 3px, transparent 3.5px) 32% 12% / 8px 8px no-repeat, radial-gradient(circle, #5EE0B0 0 3px, transparent 3.5px) 6% 48% / 8px 8px no-repeat,
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) 64% 10% / 8px 8px no-repeat, radial-gradient(circle, #FFB74A 0 2.5px, transparent 3px) 78% 62% / 8px 8px no-repeat,
    radial-gradient(circle, #5EE0B0 0 3px, transparent 3.5px) 90% 30% / 8px 8px no-repeat, radial-gradient(circle, #6FA0FF 0 2.5px, transparent 3px) 84% 84% / 8px 8px no-repeat,
    radial-gradient(circle, #fff 0 2px, transparent 2.5px) 14% 88% / 8px 8px no-repeat, radial-gradient(circle, #FFB74A 0 3px, transparent 3.5px) 50% 6% / 8px 8px no-repeat; }
@keyframes sd-confetti { 0% { opacity: 0; transform: translateY(-16px) scale(0.9); } 35% { opacity: 1; } 100% { opacity: 0.75; transform: none; } }
.sd-body[data-sd-page=send] .sd-delivered__check { width: 56px; height: 56px; animation: sd-pop 0.45s ease-out both, sd-ripple 2.4s ease-out 0.5s 3; }
.sd-body[data-sd-page=send] .sd-delivered__check::after { left: 20px; top: 10px; }
@keyframes sd-ripple { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 100% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }
.sd-body[data-sd-page=send] .sd-delivered__label { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sd-body[data-sd-page=send] .sd-delivered__amount { font-size: 40px; letter-spacing: -0.03em; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-tracker__step--done::after { background: var(--sd-green-solid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2304241A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  border-color: var(--sd-green-solid); box-shadow: 0 0 0 4px rgba(94, 224, 176, 0.22); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-rows { margin-top: 14px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, 0.2); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-row { border-top-style: dashed; border-top-color: rgba(255, 255, 255, 0.14); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-row--total { margin: 8px -10px 0; padding: 13px 10px; border: 1px solid var(--sd-green-line); border-radius: 14px; background: var(--sd-green-bg); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=receipt] .sd-row--total .sd-row__v { font-size: 18px; }
.sd-body[data-sd-page=send] .sd-hash { border-radius: 999px; padding: 5px 11px; }

/* ---- Your sends: the header row (title + Back) now has room below it, and Back is smaller ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=history] .sd-split { align-items: center; margin-bottom: 18px; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=history] .sd-split .sd-btn { min-height: 36px; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }

/* ============================================================================
   PAY SCREEN: progress ring, share ticket and the bottom pill (the Send page only)
   Added at the end of send.css; nothing above is edited.
   Ring: one segment per step (green = done, blue = now, dim = still to come), the step number in the middle.
   Ticket: the share card, with a tear line, two cut-outs at the edges and a Copy button.
   Dock: "New send" and "Your sends" in a pill that stays at the bottom of the screen.
   ========================================================================== */

/* ---- Progress ring ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ringcard { position: relative; overflow: hidden; padding: 28px 18px 24px; text-align: center; border-radius: 26px; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ringcard::before { content: ""; position: absolute; left: 50%; top: 18px; width: 240px; height: 240px; margin-left: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.26), transparent 68%); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring { position: relative; width: 176px; height: 176px; margin: 0 auto 18px; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__seg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 8; stroke-linecap: round; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__seg--done { stroke: #3DDC97; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__seg--active { stroke: #4B84FF; filter: drop-shadow(0 0 6px rgba(75, 132, 255, 0.8)); animation: sd-seg-glow 2.2s ease-in-out infinite; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__seg--bad { stroke: #FF6B6B; filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.6)); }
@keyframes sd-seg-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(75, 132, 255, 0.55)); } 50% { filter: drop-shadow(0 0 11px rgba(75, 132, 255, 0.95)); } }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__num { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__num small { margin-left: 1px; font-size: 22px; font-weight: 700; letter-spacing: 0; color: #8DA1D3; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__num--bad { font-size: 64px; color: #FF8A8A; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ring__cap { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #9CB0E0; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ringcard__title { position: relative; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ringcard__sub { position: relative; max-width: 30ch; margin: 6px auto 0; font-size: 14px; line-height: 1.45; color: #B7C6EA; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ringcard__hashes { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---- Share ticket ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket { position: relative; filter: drop-shadow(0 16px 28px rgba(3, 7, 20, 0.45)); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__top, .sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__bottom { position: relative; border: 1px solid var(--sd-hair); background: linear-gradient(165deg, var(--sd-glass-a), var(--sd-glass-b)); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__top { padding: 20px 18px 18px; border-bottom: 0; border-radius: 24px 24px 0 0;
  -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__top::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; border-top: 2px dashed rgba(156, 192, 255, 0.34); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__bottom { display: flex; align-items: center; gap: 12px; padding: 16px 18px 18px; border-top: 0; border-radius: 0 0 24px 24px;
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__head { display: flex; align-items: center; gap: 10px; color: #9CC0FF; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__head svg { flex: none; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: #B7C6EA; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #C9D7F5; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-ticket__copy { flex: none; min-height: 48px; padding: 0 26px; border-radius: 14px; font-size: 16px; box-shadow: 0 8px 20px rgba(47, 111, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }

/* ---- The bottom pill: New send / Your sends ---- */
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock { position: sticky; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15; display: flex; gap: 6px; padding: 6px; border-radius: 32px;
  background: rgba(9, 22, 56, 0.82); border: 1px solid rgba(111, 160, 255, 0.3); box-shadow: 0 14px 36px rgba(2, 6, 20, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; height: 52px; padding: 0 14px; border: 0; border-radius: 26px; background: transparent;
  color: #fff; font-size: 15.5px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: background 0.2s var(--sd-ease), transform 0.2s var(--sd-ease); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn:hover { background: rgba(255, 255, 255, 0.08); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn:active { transform: scale(0.97); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn svg { flex: none; }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn--primary { background: linear-gradient(180deg, #2F6FED, #2A63D8); box-shadow: 0 8px 20px rgba(47, 111, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.sd-body[data-sd-page=send] .sd-screen[data-screen=pay] .sd-dock__btn--primary:hover { background: linear-gradient(180deg, #2A63D8, #2459D6); }
@media print { .sd-dock { display: none !important; } }

/* Pay screen: address with its ends emphasised, and the "Before you send" checklist */
.sd-body[data-sd-page="send"] .sd-pay .sd-address--pay { gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; }
.sd-pay__addrbody { flex: 1; min-width: 0; text-align: start; }
.sd-pay__addrlabel { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-faint); }
.sd-body[data-sd-page="send"] .sd-pay .sd-address__text--tap { display: block; width: 100%; margin-top: 3px; font: 600 15px/1.35 var(--sd-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-body[data-sd-page="send"] .sd-pay .sd-address__text--tap[aria-expanded="true"] { white-space: normal; overflow-wrap: anywhere; font-weight: 500; font-size: 13px; }
.sd-address__mid { color: var(--sd-faint); font-weight: 500; letter-spacing: 0.1em; }
.sd-body[data-sd-page="send"] .sd-pay .sd-address--pay .sd-copybtn { width: 44px; min-height: 44px; border-radius: 14px; }
.sd-check { overflow: hidden; text-align: start; border-radius: 16px; background: var(--sd-surface-soft); border: 1px solid rgba(255, 255, 255, 0.10); }
.sd-check__head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); font-size: 13px; font-weight: 700; color: var(--sd-text); }
.sd-check__head svg { flex: none; width: 18px; height: 18px; color: var(--sd-green); }
.sd-check__row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; }
.sd-check__row + .sd-check__row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sd-check__ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }
.sd-check__ic svg { width: 18px; height: 18px; }
.sd-check__ic--red { background: var(--sd-red-bg); color: var(--sd-red); }
.sd-check__ic--blue { background: rgba(75, 132, 255, 0.18); color: var(--sd-sky-text); }
.sd-check__ic--amber { background: var(--sd-amber-bg); color: var(--sd-amber-text); }
.sd-check__txt { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.sd-check__side { flex: none; font-size: 12px; font-weight: 600; color: var(--sd-muted); font-variant-numeric: tabular-nums; }
.sd-check__side--red { color: var(--sd-red); }
.sd-check__side--amber { color: var(--sd-amber-text); }

/* Pay card in the dashboard's blue: same gradient (top-left to bottom-right) and the same soft circle in the corner.
   The small panels inside it (address, checklist, chips, copy buttons) are dark glass so every word stays easy to read. */
/* Same recipe as the dashboard's greeting card (.mt-hello): gradient, shadow and corner circle.
   The selector is long on purpose: the "Deep glass" rule for the Pay card above is more specific than a short one and would win. */
.sd-body[data-sd-page="send"] .sd-screen[data-screen="pay"] .sd-card.sd-pay { position: relative; overflow: hidden; background: linear-gradient(135deg, #2F6FED, #12327A 75%); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 14px 30px rgba(47, 111, 237, 0.35); }
.sd-body[data-sd-page="send"] .sd-screen[data-screen="pay"] .sd-card.sd-pay::before { content: ""; position: absolute; top: -36px; right: -36px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.sd-body[data-sd-page="send"] .sd-card.sd-pay > * { position: relative; }
.sd-body[data-sd-page="send"] .sd-pay .sd-pay__label { color: #fff; }
.sd-body[data-sd-page="send"] .sd-pay .sd-pay__amount { background: linear-gradient(180deg, #fff 30%, #DCE8FF); -webkit-background-clip: text; background-clip: text; }
.sd-body[data-sd-page="send"] .sd-pay .sd-tag { background: rgba(5, 11, 31, 0.35); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.sd-body[data-sd-page="send"] .sd-pay .sd-copybtn { background: rgba(5, 11, 31, 0.35); border-color: rgba(255, 255, 255, 0.30); color: #fff; }
.sd-body[data-sd-page="send"] .sd-pay .sd-address--pay { background: rgba(5, 11, 31, 0.42); border-color: rgba(255, 255, 255, 0.18); }
.sd-body[data-sd-page="send"] .sd-pay .sd-pay__addrlabel { color: var(--sd-muted); }
.sd-body[data-sd-page="send"] .sd-pay .sd-check { background: rgba(5, 11, 31, 0.38); border-color: rgba(255, 255, 255, 0.16); }
.sd-body[data-sd-page="send"] .sd-pay .sd-check__head { border-bottom-color: rgba(255, 255, 255, 0.14); }

/* "Waiting for deposit" bar: the same dashboard blue as the pay card (the selector is long to beat the "Deep glass" rule) */
.sd-body[data-sd-page="send"] .sd-screen .sd-wait { position: relative; overflow: hidden; background: linear-gradient(135deg, #2F6FED, #12327A 75%); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 14px 30px rgba(47, 111, 237, 0.35); }
.sd-body[data-sd-page="send"] .sd-screen .sd-wait::before { content: ""; position: absolute; top: -36px; right: -36px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.sd-body[data-sd-page="send"] .sd-wait > * { position: relative; }
.sd-body[data-sd-page="send"] .sd-wait__order { color: rgba(255, 255, 255, 0.88); }
.sd-body[data-sd-page="send"] .sd-wait__dot { background: #fff; }
.sd-body[data-sd-page="send"] .sd-wait__dot::after { border-color: rgba(255, 255, 255, 0.7); }

/* Your sends: rows in the dashboard's blue (same gradient as its trade rows), and room above the "See more" button */
.sd-body[data-sd-page="send"] .sd-screen[data-screen="history"] .sd-item { background: linear-gradient(135deg, rgba(47, 111, 237, 0.30), rgba(18, 50, 122, 0.50)); border-color: rgba(111, 160, 255, 0.28); }
.sd-body[data-sd-page="send"] .sd-screen[data-screen="history"] .sd-item:hover { border-color: rgba(156, 192, 255, 0.5); }
.sd-body[data-sd-page="send"] .sd-more { margin-top: 4px; }

/* Receiver wallet check (status.js checkCard): the two things to check, and the field for the last characters */
.sd-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--sd-text); }
.sd-checklist li { position: relative; padding-left: 22px; }
.sd-checklist li::before { content: ""; position: absolute; left: 6px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sd-sky); }
.sd-input--chars { text-align: center; font-size: 20px; letter-spacing: 0.18em; }
.sd-input--chars::placeholder { font-size: 15px; letter-spacing: 0; }
/* ============================================================================
   WALLET CHECK CARD — status.html, the receiver's optional confirmation
   before the sender pays. The form card is found by :has(.sd-checklist)
   rather than a new class, since status.js already gives it nothing more
   specific than .sd-card.sd-stack (shared with the hero card above it) —
   this way nothing else on the page is touched. Goal: same glass look as
   the rest of the page, but tighter, with one clear primary action and
   everything else quieter.
   ========================================================================== */
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) { padding: 20px; }
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) > * + * { margin-top: 12px; }
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) > .sd-card__title { font-size: 17px; }
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) > .sd-muted { font-size: 13px; }

.sd-body[data-sd-page="status"] .sd-checklist { gap: 6px; font-size: 13px; color: var(--sd-muted); }
.sd-body[data-sd-page="status"] .sd-checklist li::before { background: var(--sd-sky); }

.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) .sd-field__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-sky-text);
}
/* the 4-character box: bigger and centred — the one thing on this card meant to be typed */
.sd-body[data-sd-page="status"] .sd-input--chars { min-height: 56px; background: rgba(5, 11, 31, 0.6); border-width: 1.5px; font-size: 24px; }
.sd-body[data-sd-page="status"] .sd-input--chars:focus { box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.24); }
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) .sd-field__msg { font-size: 11.5px; }

.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) .sd-btn--primary {
  background: linear-gradient(135deg, #3978F4, #2F6FED); box-shadow: 0 10px 26px rgba(47, 111, 237, 0.4);
}
.sd-body[data-sd-page="status"] .sd-card:has(.sd-checklist) .sd-hint { font-size: 11.5px; text-align: center; }

/* the two secondary actions, side by side instead of two stacked full-width lines (status.js checkCard) */
.sd-check__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sd-check__foot .sd-btn--ghost { flex: 0 0 auto; }
.sd-check__foot .sd-link { font-size: 12.5px; }

/* once answered: just a notice and a link to change it — give it the same tightness */
.sd-body[data-sd-page="status"] .sd-card:has(> .sd-notice) { padding: 18px 20px; }