/* U.CASH design tokens (generated; do not edit). One --uc-* var per intent; themed tokens auto-flip
   via light-dark() against the active color-scheme. Source: tokens/*.json (W3C DTCG). */
:root{
  color-scheme: light dark;
  --uc-surface: light-dark(#ffffff, #0a0a0a);
  --uc-surface-2: light-dark(#f6f7f9, #141417);
  --uc-text: light-dark(#1a1a1a, #e6e8ec);
  --uc-text-dim: light-dark(#5b6470, #9aa3af);
  --uc-border: light-dark(rgba(0,0,0,.10), rgba(255,255,255,.10));
  --uc-accent: light-dark(#a37a29, #cc9933);
  --uc-accent-contrast: light-dark(#ffffff, #1a1300);
  --uc-accent-hover: light-dark(#cc9933, #e2b719);
  --uc-accent-bg: light-dark(rgba(163,122,41,.12), rgba(204,153,51,.14));
  --uc-accent-2: light-dark(#b38829, #e6b347);
  --uc-accent-deep: light-dark(#7a5e1f, #b38829);
  --uc-line-gold: light-dark(rgba(153,114,38,.55), rgba(204,153,51,.40));
  --uc-panel-2: light-dark(rgba(0,0,0,.04), rgba(255,255,255,.06));
  --uc-glow: 0 0 38px rgba(204,153,51,.20);
  --uc-success: light-dark(#1f7a4d, #3fa66a);
  --uc-danger: light-dark(#b44545, #d26565);
  --uc-success-contrast: light-dark(#ffffff, #1a1300);
  --uc-danger-contrast: light-dark(#ffffff, #1a1300);
  --uc-radius: 8px;
  --uc-banner-h: 34px;
  --uc-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Ustrap = U.CASH design tokens + UI patterns, one link. Same build as /ds/<major>/. */
/* uc-alert. An inline callout for outcome/status messaging INSIDE content (the uc-banner is the
   site-wide top bar - different job). Consumes only --uc-*; semantic variants tint the BORDER and
   the text accent only, the fill stays --uc-surface-2 so body copy keeps contrast in both themes
   (the filled-accent text law governs solid fills, which alerts deliberately avoid).
   .uc-alert-dismiss is an optional closer the host wires (uc-dialog's closers do not auto-bind
   here); omit it for non-dismissable messages. role=alert only for time-sensitive failures. */
.uc-alert{display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--uc-border);border-left-width:3px;border-radius:var(--uc-radius);background:var(--uc-surface-2);color:var(--uc-text);font:400 14px/1.5 var(--uc-font,system-ui,sans-serif)}
.uc-alert--accent{border-left-color:var(--uc-accent)}
.uc-alert--success{border-left-color:var(--uc-success)}
.uc-alert--danger{border-left-color:var(--uc-danger)}
.uc-alert--accent .uc-alert-title{color:var(--uc-accent)}
.uc-alert--success .uc-alert-title{color:var(--uc-success)}
.uc-alert--danger .uc-alert-title{color:var(--uc-danger)}
.uc-alert-title{font:700 13px/1.4 var(--uc-font,system-ui,sans-serif);margin:0 0 2px;color:var(--uc-text)}
.uc-alert-body{margin:0;color:var(--uc-text-dim)}
.uc-alert-dismiss{margin-left:auto;flex:0 0 auto;padding:0 4px;border:0;background:none;color:var(--uc-text-dim);font:600 16px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer}
.uc-alert-dismiss:hover{color:var(--uc-text)}

/* uc-badge. A status/indicator pill. Consumes only --uc-* (theme + brand aware). Default = subtle
   accent tint; .uc-badge--accent = solid accent; .uc-badge--success/--danger = status.
   LAW: solid fills pair their text with a *-contrast token (light-dark(#fff, #1a1300)) - NEVER a
   hardcoded color for both themes. White on deep fills (light theme), near-black on bright fills
   (dark theme). The var(..., #fff) fallback keeps mixed-version consumption (old tokens + this
   badge.css) rendering exactly as before the token existed. */
.uc-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font:700 10px/1 var(--uc-font,system-ui,sans-serif);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;background:var(--uc-accent-bg);color:var(--uc-accent);border:1px solid var(--uc-accent)}
.uc-badge--accent{background:var(--uc-accent);color:var(--uc-accent-contrast);border-color:var(--uc-accent)}
.uc-badge--success{background:var(--uc-success);color:var(--uc-success-contrast, #fff);border-color:var(--uc-success)}
.uc-badge--danger{background:var(--uc-danger);color:var(--uc-danger-contrast, #fff);border-color:var(--uc-danger)}

/* uc-banner: dismissible status banner. Consumes ONLY --uc-* tokens, so it themes (light-dark) and
   brands (brand layer) automatically. Dismiss: the inline script adds .uc-banner-off to <html> and
   sets --uc-banner-h:0 (apps that offset fixed panels by the banner height collapse cleanly). */
.uc-banner{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:var(--uc-banner-h,34px);padding:7px 16px;background:var(--uc-surface-2);color:var(--uc-text);border-bottom:1px solid var(--uc-border);font:500 12.5px/1.3 var(--uc-font, ui-sans-serif, system-ui, sans-serif)}
html.uc-banner-off .uc-banner,.uc-banner.is-off{display:none}
.uc-banner-msg{flex:1 1 auto;text-align:center;min-width:0}
.uc-banner strong{flex:0 0 auto;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:4px;background:var(--uc-accent);color:var(--uc-accent-contrast);margin-right:4px}
.uc-banner-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--uc-text);font-size:15px;line-height:1;cursor:pointer;padding:0;opacity:.65}
.uc-banner-close:hover{opacity:1}

/* uc-button. Consumes only --uc-* (theme + brand aware). Default = outline; .uc-button--accent =
   filled accent. Pair with --uc-accent/--uc-accent-contrast for branded buttons.
   Variants: --danger/--success filled status; --icon = square icon-only (REQUIRES aria-label,
   the visible text is the icon); sizes --sm/--lg; --block = full width. .is-loading pairs with a
   .uc-spinner inside and blocks pointer events while busy (host swaps icon<->spinner). */
.uc-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;padding:9px 16px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:transparent;color:var(--uc-text);font:600 14px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;text-decoration:none;transition:border-color .15s,opacity .15s}
.uc-button:hover{border-color:var(--uc-text-dim)}
.uc-button:active{opacity:.85}
.uc-button:disabled{opacity:.5;cursor:not-allowed}
.uc-button--accent{background:var(--uc-accent);color:var(--uc-accent-contrast);border-color:var(--uc-accent)}
.uc-button--accent:hover{border-color:var(--uc-accent);opacity:.9}
.uc-button--danger{background:var(--uc-danger);color:var(--uc-danger-contrast, #fff);border-color:var(--uc-danger)}
.uc-button--danger:hover{border-color:var(--uc-danger);opacity:.9}
.uc-button--success{background:var(--uc-success);color:var(--uc-success-contrast, #fff);border-color:var(--uc-success)}
.uc-button--success:hover{border-color:var(--uc-success);opacity:.9}
.uc-button--sm{padding:5px 10px;font-size:12px;gap:6px}
.uc-button--lg{padding:12px 22px;font-size:16px}
/* icon-only: square hit area, icon centered; the accessible name MUST come from aria-label
   (or title) because no text is rendered. SVG icons size to the button's font. */
.uc-button--icon{padding:9px;width:36px;flex:0 0 auto}
.uc-button--icon.uc-button--sm{padding:5px;width:28px}
.uc-button--icon.uc-button--lg{padding:12px;width:46px}
.uc-button svg{width:16px;height:16px;flex:0 0 auto}
.uc-button--sm svg{width:13px;height:13px}
.uc-button--lg svg{width:20px;height:20px}
/* loading: host swaps content to <span class="uc-spinner"></span> + sets aria-busy="true";
   pointer-events:none stops double submits without disabling (keeps :disabled styling to the host). */
.uc-button.is-loading{pointer-events:none;opacity:.75}
.uc-button .uc-spinner{font-size:14px}
.uc-button--lg .uc-spinner{font-size:16px}
.uc-button--block{display:flex;width:100%}

/* uc-card. Consumes only --uc-* (theme + brand aware). A surface container with title + body.
   Simple use: .uc-card > .uc-card-title + .uc-card-body (padding lives on the card).
   Sectioned use: .uc-card.uc-card--flush (padding:0) > .uc-card-header / .uc-card-body /
   .uc-card-footer - headers/footers carry their own padding and hairline dividers, the body
   pads itself (18px) so sectioned and simple cards share one rhythm. */
.uc-card{box-sizing:border-box;background:var(--uc-surface-2);border:1px solid var(--uc-border);border-radius:var(--uc-radius);padding:18px;color:var(--uc-text)}
.uc-card-title{font:700 16px/1.3 var(--uc-font,system-ui,sans-serif);margin:0 0 6px}
.uc-card-body{font:400 14px/1.5 var(--uc-font,system-ui,sans-serif);color:var(--uc-text-dim);margin:0}
.uc-card--flush{padding:0;overflow:hidden}
.uc-card--flush .uc-card-title{margin:0}
.uc-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-bottom:1px solid var(--uc-border)}
.uc-card-footer{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--uc-border)}
.uc-card--flush .uc-card-body{padding:18px}

/* uc-controls: the form controls uc-input does not cover. Consumes only --uc-*.
   uc-select: native appearance KEPT ON PURPOSE - the OS arrow and the OS <option> popup follow the
   element's color-scheme, and explicit option colors pin the popup list background/text so it never
   renders light-on-light or dark-on-dark (operator law: ALL dropdowns, content and backgrounds
   follow the light/dark theme). Do not add appearance:none without replacing both.
   uc-textarea: referenced by form-field.css has-error since v3; min-height + vertical resize.
   uc-check / uc-radio: native inputs recoloured via accent-color - the check itself, the focus
   ring and the checked state all track --uc-accent in both themes, no sprite/fake UI to maintain. */
.uc-select{box-sizing:border-box;width:100%;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.4 var(--uc-font,system-ui,sans-serif)}
.uc-select:focus{outline:none;border-color:var(--uc-accent)}
.uc-select option,.uc-select optgroup{background:var(--uc-surface);color:var(--uc-text)}
.uc-textarea{box-sizing:border-box;width:100%;min-height:96px;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.5 var(--uc-font,system-ui,sans-serif);resize:vertical}
.uc-textarea::placeholder{color:var(--uc-text-dim)}
.uc-textarea:focus{outline:none;border-color:var(--uc-accent)}
.uc-check,.uc-radio{box-sizing:border-box;width:16px;height:16px;flex:0 0 auto;margin:0;accent-color:var(--uc-accent);cursor:pointer}
.uc-check:focus-visible,.uc-radio:focus-visible,.uc-select:focus-visible,.uc-textarea:focus-visible{outline:2px solid var(--uc-accent);outline-offset:1px}

/* dapp.css: the u.cash hub DS v3 (ds/29) idiom ported for the money-dapp family
   (buy / sell / get / swap / bridge / send / receive). Everything is scoped under
   html.uxc-dapp so plain ustrap consumers are unaffected; a dapp opts in by adding
   the uxc-dapp class to <html> and linking ds/<major>/dapp.css + theme.css.
   Hooks: the dapp family drives html.light / html.dark (THEME_INIT from the
   ucash-theme cookie); the hub family drives [data-theme]. Both are answered.
   Source of truth for values: ds/29/style37.css + style-app.css. No em dashes. */

/* ===== Tokens (hub v3; dark default) ===== */
html.uxc-dapp {
  --bg: #000000;
  --bg-1: #060606;
  --bg-2: #0d0d0d;
  --bg-3: #141414;
  --panel: rgba(255,255,255,.035);
  --panel-2: rgba(255,255,255,.06);
  --gold: #cc9933;
  --gold-2: #e6b347;
  --gold-3: #b38829;
  --gold-glow: rgba(204,153,51,.35);
  --line: rgba(255,255,255,.16);
  --line-gold: rgba(204,153,51,.40);
  --text: #ffffff;
  --text-2: rgba(255,255,255,.74);
  --text-3: rgba(255,255,255,.46);
  --positive: #6fcf7a;
  --glow: 0 0 38px rgba(204,153,51,.20);
  --shadow: 0 24px 60px -24px rgba(0,0,0,.85);
  --radius: 0;
  --radius-lg: 0;
  --ease: cubic-bezier(.4,0,.2,1);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
html.uxc-dapp.light,
html.uxc-dapp[data-theme="light"] {
  --bg: #ffffff;
  --bg-1: #faf7f2;
  --bg-2: #f4efe6;
  --bg-3: #ece4d6;
  --panel: rgba(0,0,0,.025);
  --panel-2: rgba(0,0,0,.04);
  --gold: #997226;
  --gold-2: #b38829;
  --gold-3: #7a5e1f;
  --gold-glow: rgba(153,114,38,.25);
  --line: rgba(0,0,0,.22);
  --line-gold: rgba(153,114,38,.55);
  --text: #0a0a0a;
  --text-2: rgba(0,0,0,.72);
  --text-3: rgba(0,0,0,.48);
  --glow: 0 0 30px rgba(153,114,38,.15);
  --shadow: 0 24px 50px -28px rgba(0,0,0,.30);
  color-scheme: light;
}

/* ===== Base ===== */
html.uxc-dapp body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
html.uxc-dapp ::selection { background: var(--gold); color: #000; }
html.uxc-dapp a:focus-visible,
html.uxc-dapp button:focus-visible,
html.uxc-dapp summary:focus-visible,
html.uxc-dapp .card:focus-visible,
html.uxc-dapp [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html.uxc-dapp .skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; background: var(--bg-2); color: var(--gold); padding: 12px 18px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-gold); }
html.uxc-dapp .skip-link:focus { left: 10px; top: 10px; outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== Layout ===== */
html.uxc-dapp .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
html.uxc-dapp .section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
html.uxc-dapp .section-head { max-width: 700px; margin-bottom: clamp(40px, 6vw, 56px); }
html.uxc-dapp .section-head.center { margin-inline: auto; text-align: center; }
html.uxc-dapp .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-2); padding: 7px 14px; border: 1px solid var(--line-gold);
  border-radius: var(--radius); background: var(--panel); margin-bottom: 22px;
}
html.uxc-dapp .eyebrow .dot { width: 6px; height: 6px; border-radius: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: dapp-pulse 2s infinite; }
@keyframes dapp-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ===== Type ===== */
html.uxc-dapp h1, html.uxc-dapp h2, html.uxc-dapp h3 { line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
html.uxc-dapp h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 50px); }
html.uxc-dapp h3 { font-size: 21px; }
html.uxc-dapp .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.6; max-width: 60ch; }
html.uxc-dapp .section-head.center .lead { margin-inline: auto; }
html.uxc-dapp .muted { color: var(--text-2); }
html.uxc-dapp .mono { font-family: var(--font-mono); }
html.uxc-dapp .gold { color: var(--gold-2); }
html.uxc-dapp .grad-gold {
  background: linear-gradient(100deg, var(--gold-3), var(--gold-2) 45%, #fff6e0 70%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.uxc-dapp.light .grad-gold,
html.uxc-dapp[data-theme="light"] .grad-gold {
  background-image: linear-gradient(100deg, var(--gold-3), var(--gold-2) 45%, var(--gold-3) 70%, var(--gold-2));
}

/* ===== Buttons (square, gold border, gold fill on hover; never a grey hover bg) ===== */
html.uxc-dapp .btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font); font-weight: 600; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid var(--b); background: transparent; color: var(--b);
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; position: relative;
}
html.uxc-dapp .btn::after { content: ""; position: absolute; inset: 0; box-shadow: var(--glow); opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
html.uxc-dapp .btn:hover { background: var(--gold); color: #000; }
html.uxc-dapp .btn:hover::after { opacity: 1; }
html.uxc-dapp .btn:active { transform: translateY(1px); }
html.uxc-dapp .btn-ghost { --b: var(--text-2); color: var(--text-2); }
html.uxc-dapp .btn-lg { padding: 17px 34px; font-size: 14px; }
html.uxc-dapp .btn .arrow { transition: transform .2s var(--ease); }
html.uxc-dapp .btn:hover .arrow { transform: translateX(4px); }
html.uxc-dapp .pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
html.uxc-dapp .pill-cloud .btn { padding: 6px 12px; font-size: 11.5px; }

/* ===== Hero (centered marketing variant; the split app hero is .app-hero below) ===== */
html.uxc-dapp .hero { position: relative; min-height: 92svh; display: flex; align-items: center; padding-top: clamp(96px, 12vh, 130px); padding-bottom: 70px; overflow: hidden; }
html.uxc-dapp .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(70% 60% at 50% 30%, transparent, var(--bg) 92%),
  linear-gradient(to bottom, transparent, var(--bg) 96%); }
html.uxc-dapp .hero-inner { text-align: center; max-width: 900px; margin-inline: auto; }
html.uxc-dapp .hero h1 { font-family: var(--font-display); font-size: clamp(28px, 7vw, 88px); line-height: 1.02; letter-spacing: -.02em; }
html.uxc-dapp .hero .lead { margin: 26px auto 0; text-align: center; }
html.uxc-dapp .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
html.uxc-dapp .hero-note { margin-top: 28px; font-size: 13px; letter-spacing: .04em; color: var(--text-3); text-align: center; }
html.uxc-dapp .hero-note .sep { color: var(--gold-3); margin: 0 8px; }
html.uxc-dapp .trust { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 44px; }
html.uxc-dapp .trust span { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
html.uxc-dapp .trust span::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 0; box-shadow: 0 0 8px var(--gold); }

/* ===== Cards (plateless: no backdrop blur) ===== */
html.uxc-dapp .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
html.uxc-dapp .card {
  border: 1px solid var(--line-gold); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
html.uxc-dapp .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
html.uxc-dapp .card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--glow), var(--shadow); }
html.uxc-dapp .card .ico { width: 48px; height: 48px; border: 1px solid var(--line-gold); border-radius: var(--radius); display: grid; place-items: center; color: var(--gold-2); margin-bottom: 20px; }
html.uxc-dapp .card h3 { margin-bottom: 9px; }
html.uxc-dapp .card p { color: var(--text-2); font-size: 15px; }
html.uxc-dapp .card .link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--gold-2); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
html.uxc-dapp .tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
html.uxc-dapp .tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--radius); }
/* card borders read stronger (operator law, ds/29) */
html.uxc-dapp .card { border-color: rgba(204,153,51,.45); }
html.uxc-dapp .card .ico { border-color: rgba(204,153,51,.45); }
html.uxc-dapp.light .card, html.uxc-dapp[data-theme="light"] .card { border-color: rgba(153,114,38,.60); }
html.uxc-dapp.light .card .ico, html.uxc-dapp[data-theme="light"] .card .ico { border-color: rgba(153,114,38,.60); }

/* ===== Steps ===== */
html.uxc-dapp .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
html.uxc-dapp .step { border-top: 1px solid var(--line-gold); padding-top: 22px; }
html.uxc-dapp .step .num { font-family: var(--font-mono); font-size: 13px; color: var(--gold-2); letter-spacing: .1em; }
html.uxc-dapp .step .num.ico-box { width: 48px; height: 48px; border: 1px solid var(--line-gold); display: grid; place-items: center; color: var(--gold-2); margin-bottom: 14px; font-size: inherit; }
html.uxc-dapp .step .num .ic { width: 22px; height: 22px; }
html.uxc-dapp .step h3 { margin: 12px 0 9px; }
html.uxc-dapp .step p { color: var(--text-2); }

/* ===== Stats ===== */
html.uxc-dapp .stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
html.uxc-dapp .stat { padding: 24px 22px; border-right: 1px solid var(--line); }
html.uxc-dapp .stat:last-child { border-right: 0; }
html.uxc-dapp .stat .big { font-family: var(--font-display); font-size: clamp(28px, 3vw, 42px); line-height: 1; color: var(--gold-2); }
html.uxc-dapp .stat .lbl { margin-bottom: 12px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* ===== Coins / networks ===== */
html.uxc-dapp .coins { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
html.uxc-dapp .coin-badge { border: 1px solid var(--line); padding: 18px 10px; text-align: center; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
html.uxc-dapp .coin-badge:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--glow); }
html.uxc-dapp .coin-badge .sym { width: 40px; height: 40px; margin: 0 auto 10px; border: 1px solid var(--line-gold); display: grid; place-items: center; font-weight: 700; color: var(--gold-2); }
html.uxc-dapp .coin-badge .tk { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); letter-spacing: .04em; }
html.uxc-dapp .coin-badge img { display: block; margin: 0 auto 10px; }
html.uxc-dapp .coin-badge.more { display: grid; place-items: center; color: var(--text-3); font-family: var(--font-mono); font-size: 13px; }

/* ===== Footer ===== */
html.uxc-dapp .footer { border-top: 1px solid var(--line); padding-block: 70px 40px; }
html.uxc-dapp .footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 36px; }
html.uxc-dapp .footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-2); margin-bottom: 18px; }
html.uxc-dapp .footer li { margin-bottom: 11px; }
html.uxc-dapp .footer a { color: var(--text-2); font-size: 15px; transition: color .2s; }
html.uxc-dapp .footer a:hover { color: var(--gold-2); }
html.uxc-dapp .footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13.5px; }

/* ===== FAQ ===== */
html.uxc-dapp .faq-wrap { max-width: 840px; margin-inline: auto; }
html.uxc-dapp .faq { border-top: 1px solid var(--line); }
html.uxc-dapp .faq details { border-bottom: 1px solid var(--line); }
html.uxc-dapp .faq summary { cursor: pointer; list-style: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
html.uxc-dapp .faq summary::-webkit-details-marker { display: none; }
html.uxc-dapp .faq summary::after { content: "+"; color: var(--gold-2); font-size: 22px; line-height: 1; }
html.uxc-dapp .faq details[open] summary::after { content: "\2013"; }
html.uxc-dapp .faq .a { padding: 0 28px 24px 0; color: var(--text-2); }

/* ===== CTA band ===== */
html.uxc-dapp .cta-band { border: 1px solid var(--line-gold); padding: clamp(44px, 6vw, 84px); text-align: center; }
html.uxc-dapp .cta-band h2 { margin-bottom: 14px; }
html.uxc-dapp .cta-band p { color: var(--text-2); max-width: 54ch; margin: 0 auto 30px; }

/* ===== App-page chrome (style-app.css ported; .pg scope becomes the uxc-dapp scope) ===== */
html.uxc-dapp .app-hero { position: relative; min-height: 84svh; display: flex; align-items: center; padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
html.uxc-dapp .app-hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
html.uxc-dapp .pg-split-text { position: relative; z-index: 1; }
html.uxc-dapp .app-hero h1 { max-width: 640px; font-family: var(--font-display); font-size: clamp(28px, 7vw, 88px); line-height: 1.02; letter-spacing: -.02em; }
html.uxc-dapp .app-hero .lead { max-width: 560px; }
html.uxc-dapp .pg-panel { position: relative; z-index: 1; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 92%, transparent); box-shadow: var(--shadow); }
html.uxc-dapp .pg-panel-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
html.uxc-dapp .pg-panel-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: .45; }
html.uxc-dapp .pg-panel-bar i:first-child { background: var(--gold); opacity: 1; }
html.uxc-dapp .pg-panel-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.uxc-dapp .pg-panel-body { padding: 18px; }
html.uxc-dapp .pg-stats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
html.uxc-dapp .pg-stat { border: 1px solid var(--line); padding: 16px 22px 14px; min-width: 118px; text-align: center; background: transparent; }
html.uxc-dapp .pg-big { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--gold-2); }
html.uxc-dapp .pg-lbl { margin-top: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
html.uxc-dapp .uc-divider { display: flex; align-items: center; gap: 14px; max-width: 560px; margin: 6px auto; padding: 8px 24px; }
html.uxc-dapp .uc-divider span { flex: 1; height: 1px; background: var(--line); }
html.uxc-dapp .uc-divider .ic { width: 13px; height: 13px; color: var(--gold); flex: none; }
html.uxc-dapp .pg-bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; }
html.uxc-dapp .pg-bento-tile { border: 1px solid var(--line); padding: 22px; background: transparent; min-height: 96px; }
html.uxc-dapp .pg-bento-tile.pg-bento-a { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; min-height: 0; }
html.uxc-dapp .pg-bento-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
html.uxc-dapp .pg-bento-v { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); color: var(--gold-2); line-height: 1; margin-top: 8px; }

/* ===== Entrance anims (reduced-motion safe) ===== */
html.uxc-dapp .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.uxc-dapp .reveal.in { opacity: 1; transform: none; }
html.uxc-dapp .reveal.from-left { opacity: 0; transform: translateX(-14px); animation: dapp-app-in .7s ease .15s forwards; }
@keyframes dapp-app-in { to { opacity: 1; transform: none; } }
html.uxc-dapp .reveal.scale { transform: scale(.96); }
html.uxc-dapp .reveal.scale.in { transform: none; }

/* ===== Void background (CSS + optional 2D canvas; replaces three.js on dapps) ===== */
html.uxc-dapp .dapp-void-bg {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(52% 42% at 50% 18%, rgba(204,153,51,.10), transparent 68%),
    radial-gradient(38% 30% at 82% 78%, rgba(204,153,51,.06), transparent 70%);
}
html.uxc-dapp #bg-canvas-lite { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
html.uxc-dapp.light .dapp-void-bg, html.uxc-dapp[data-theme="light"] .dapp-void-bg { opacity: .5; }
html.uxc-dapp.light #bg-canvas-lite, html.uxc-dapp[data-theme="light"] #bg-canvas-lite { opacity: .5; }

/* ===== Compat: the buy-family Tailwind hooks restated on hub tokens (auto-theme) ===== */
html.uxc-dapp .border-line { border-color: var(--line); }
html.uxc-dapp .border-line-gold { border-color: var(--line-gold); }
html.uxc-dapp .text-gold { color: var(--gold); }
html.uxc-dapp .text-gold-2 { color: var(--gold-2); }
html.uxc-dapp .shadow-card { box-shadow: var(--shadow); }
html.uxc-dapp .glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.uxc-dapp .input-swap {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 0;
}
html.uxc-dapp .input-swap:focus { outline: none; border-color: var(--gold); }
/* Native select popups stay on-theme (option bg must be explicit for the OS list). */
html.uxc-dapp .input-swap option, html.uxc-dapp select option { background-color: var(--bg-2); color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  html.uxc-dapp .app-hero { min-height: auto; padding: clamp(40px, 7vw, 56px) 0 48px; }
  html.uxc-dapp .app-hero .container { grid-template-columns: 1fr; gap: 40px; }
  html.uxc-dapp .pg-bento-grid { grid-template-columns: 1fr 1fr; }
  html.uxc-dapp .pg-bento-tile.pg-bento-a { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 920px) {
  html.uxc-dapp .grid-3, html.uxc-dapp .steps { grid-template-columns: 1fr; }
  html.uxc-dapp .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  html.uxc-dapp .footer-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
  html.uxc-dapp .footer-grid ul { display: contents; }
  html.uxc-dapp .footer-grid li { margin-bottom: 0; }
  html.uxc-dapp .footer h4 { margin-bottom: 0; white-space: nowrap; }
  html.uxc-dapp .footer-bottom { flex-direction: column; gap: 10px; justify-content: center; text-align: center; }
  html.uxc-dapp .coins { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  html.uxc-dapp body { font-size: 16px; }
  html.uxc-dapp .hero-cta .btn { width: 100%; }
  html.uxc-dapp .stats { grid-template-columns: repeat(2, 1fr); }
  html.uxc-dapp .stat { border-right: 0; }
  html.uxc-dapp .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  html.uxc-dapp .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  html.uxc-dapp .coins { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  html.uxc-dapp .coin-badge { padding: 14px 6px; }
  html.uxc-dapp .coin-badge img { width: 22px; height: 22px; }
  html.uxc-dapp .coin-badge .tk { font-size: 11px; }
  html.uxc-dapp .pg-bento-grid { grid-template-columns: 1fr; }
  html.uxc-dapp .pg-bento-tile.pg-bento-a { grid-column: auto; }
  html.uxc-dapp .pg-stats { gap: 8px; }
  html.uxc-dapp .pg-stat { min-width: calc(50% - 8px); padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html.uxc-dapp .reveal { opacity: 1; transform: none; }
  html.uxc-dapp .reveal.from-left { opacity: 1; transform: none; animation: none; }
  html.uxc-dapp #bg-canvas-lite { display: none; }
  html.uxc-dapp .eyebrow .dot { animation: none; }
}

/* uc-dialog: a modal built on the native <dialog> element (focus-trap + Esc + top-layer for free),
   themed via --uc-*. The backdrop is a neutral scrim (literal rgba; it is not a branded surface, so
   it does not consume an accent token). Open via dialog.showModal(); runtime/uc-dialog.js wires
   [data-uc-dialog-open] triggers + .uc-dialog-close + focus restore + scroll lock. */
.uc-dialog{border:0;border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);padding:0;max-width:min(92vw,460px);box-shadow:0 20px 60px rgba(0,0,0,.35);font-family:var(--uc-font,system-ui,sans-serif)}
.uc-dialog::backdrop{background:rgba(0,0,0,.5)}
.uc-dialog[open]{animation:uc-dialog-in .16s ease}
.uc-dialog-title{box-sizing:border-box;margin:0;padding:18px 48px 6px 20px;font:700 17px/1.3 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-dialog-body{box-sizing:border-box;padding:6px 20px 18px;font:400 14px/1.55 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-dialog-body>:last-child{margin-bottom:0}
.uc-dialog-close{position:absolute;top:12px;right:12px;width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--uc-text-dim);font-size:18px;line-height:1;cursor:pointer}
.uc-dialog-close:hover{color:var(--uc-text);background:var(--uc-surface-2)}
@keyframes uc-dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.uc-dialog[open]{animation:none}}

/* uc-field: a labeled form field wrapper (label + control + optional hint/error). Consumes only --uc-*.
   The control itself is .uc-input (or a select/button); .uc-field is the grouping/spacing wrapper.
   .has-error recolours the control border to --uc-danger. */
.uc-field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;font-family:var(--uc-font,system-ui,sans-serif)}
.uc-field-label{font:600 13px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-field-hint{font:400 12px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text-dim)}
.uc-field-error{font:600 12px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-danger);display:none}
.uc-field.has-error .uc-field-error{display:block}
.uc-field.has-error .uc-input,.uc-field.has-error .uc-textarea{border-color:var(--uc-danger)}

/* uc-input + uc-label. Consumes only --uc-* (theme + brand aware; focus ring uses --uc-accent). */
.uc-label{display:block;font:600 13px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text);margin:0 0 5px}
.uc-input{box-sizing:border-box;width:100%;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.4 var(--uc-font,system-ui,sans-serif);transition:border-color .15s}
.uc-input::placeholder{color:var(--uc-text-dim)}
.uc-input:focus{outline:none;border-color:var(--uc-accent)}

/* uc-spinner. A loading indicator. Consumes only --uc-* (theme + brand aware). Pure CSS, no JS:
   a border ring with the accent arc, spinning. Honors prefers-reduced-motion (slows). Size scales
   with font-size; .uc-spinner--sm/--lg override. Markup: <span class="uc-spinner" role="status"
   aria-label="Loading"></span> (role/label only if it conveys status; aria-hidden if decorative). */
.uc-spinner{display:inline-block;width:1em;height:1em;font-size:18px;vertical-align:-.125em;border:2px solid var(--uc-border);border-top-color:var(--uc-accent);border-radius:50%;animation:uc-spin .7s linear infinite}
.uc-spinner--sm{font-size:14px}
.uc-spinner--lg{font-size:28px}
@keyframes uc-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.uc-spinner{animation-duration:1.6s}}

/* uc-table. A data table: wrap for horizontal scroll, gold hover law, mobile card-stack.
   Consumes only --uc-* (theme + brand aware).
   LAWS (from the pay console table, hard-won):
   - Row hover NEVER swaps in a grey/dark background (it disturbs reading text). Hover = background
     stays transparent, border-color + color go accent. Badges/pills keep their semantic colors:
     they carry their own color rules which beat td inheritance, so they never flip gold - do not
     "fix" them by unsetting their colors (that strips the pill AND inherits the hover gold).
   - Nested cell-text wrappers that carry their own color (e.g. a host .uc-title/.uc-text class)
     BEAT td inheritance. If a host nests colored wrappers, it must add its own deep hover rule
     (target the wrapper under tr:hover). VERIFY BY READING THE TEXT NODE'S computed color, never
     the td's - the td can be gold while every visible glyph stays grey.
   - The stack breakpoint is a constant, not a token: @media cannot read var(). 768px = fleet
     convention (pay consoles); hosts with a different grid override .uc-table--stack behavior.
   - transition is limited to border-color + color. `transition: all` on cells makes whole-row
     reflows on hover and interacts badly with the stacked-card layout. */
.uc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}
.uc-table{width:100%;max-width:100%;border-collapse:collapse;text-align:left;font:400 13px/1.5 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-table th{font:700 10.5px/1.2 var(--uc-font,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:var(--uc-text-dim);padding:9px 12px;border-bottom:1px solid var(--uc-border);white-space:nowrap}
.uc-table td{padding:10px 12px;border-bottom:1px solid var(--uc-border);transition:border-color .15s,color .15s;vertical-align:middle}
.uc-table tbody tr:last-child td{border-bottom:0}
/* row hover law: transparent bg, accent border + text. Badges/pills with their own color rule
   (e.g. .uc-badge) already beat td inheritance and keep their semantic colors - do NOT unset
   them; only naked text and borderless wrappers take the hover accent. */
.uc-table tbody tr:hover{background-color:transparent}
.uc-table tbody tr:hover > td{border-color:var(--uc-accent);color:var(--uc-accent)}
/* opt-in sticky header. Sticky traps the header on the overflow-x axis of .uc-table-wrap; keep it
   opt-in and only use it in panels that scroll vertically as the page, not inside the wrap. */
.uc-table--sticky th{position:sticky;top:0;background:var(--uc-surface-2);z-index:1}
/* numeric + actions columns */
.uc-table .uc-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.uc-table .uc-table-actions{text-align:right;white-space:nowrap}
/* empty state: no ::before label, block-wide, dim */
.uc-table td.uc-table-empty{display:block;width:100%;text-align:center;padding:18px 0;color:var(--uc-text-dim);font-style:italic}
/* mobile card-stack. Auto-detect: tables whose cells carry data-label stack automatically below
   768px. .uc-table--stack forces the layout on (any width) for hosts without :has() or for
   always-stacked lists; .uc-table--no-stack opts a data-label table out. */
@media (max-width:768px){
  .uc-table:has(tbody td[data-label]),.uc-table--stack{display:block;width:100%}
  .uc-table:has(tbody td[data-label]) thead,.uc-table--stack thead{display:none}
  .uc-table:has(tbody td[data-label]) tbody,.uc-table--stack tbody{display:block}
  .uc-table:has(tbody td[data-label]) tr,.uc-table--stack tr{display:flex;flex-wrap:wrap;gap:2px 0;border:1px solid var(--uc-border);border-radius:var(--uc-radius);padding:12px;margin:0 0 12px}
  .uc-table:has(tbody td[data-label]) td,.uc-table--stack td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%;border:0;padding:4px 0}
  .uc-table:has(tbody td[data-label]) td[data-label]::before,.uc-table--stack td[data-label]::before{content:attr(data-label);color:var(--uc-text-dim);font:600 10.5px/1.4 var(--uc-font,system-ui,sans-serif);letter-spacing:.05em;text-transform:uppercase;flex:0 0 auto}
  .uc-table:has(tbody td[data-label]) td[data-label]:not(.uc-table-empty),.uc-table--stack td[data-label]:not(.uc-table-empty){text-align:right}
  .uc-table:has(tbody td[data-label]) tbody tr:hover,.uc-table--stack tbody tr:hover{border-color:var(--uc-accent)}
  .uc-table:has(tbody td[data-label]) tbody tr:hover > td,.uc-table--stack tbody tr:hover > td{border-color:transparent;color:inherit}
}
.uc-table--no-stack thead{display:table-header-group}
.uc-table--no-stack tr{display:table-row}
.uc-table--no-stack td{display:table-cell}

/* uc-tabs: ARIA tabs. .uc-tablist holds .uc-tab buttons; .uc-tabpanel panels follow. The active tab
   is [aria-selected=true] (accent text + underline); inactive panels are [hidden]. Consumes only
   --uc-* (themes + brands). Behaviour (roving tabindex + arrow/Home/End keys + click) is in
   runtime/uc-tabs.js; without JS the first tab/panel show (graceful no-op). */
.uc-tabs{font-family:var(--uc-font,system-ui,sans-serif)}
.uc-tablist{display:flex;gap:4px;border-bottom:1px solid var(--uc-border);flex-wrap:wrap}
.uc-tab{appearance:none;background:transparent;border:0;border-bottom:2px solid transparent;padding:9px 14px;margin-bottom:-1px;color:var(--uc-text-dim);font:600 14px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;transition:border-color .15s,color .15s}
.uc-tab:hover{color:var(--uc-text)}
.uc-tab[aria-selected="true"]{color:var(--uc-accent);border-bottom-color:var(--uc-accent)}
.uc-tab:focus-visible{outline:2px solid var(--uc-accent);outline-offset:2px;border-radius:4px}
.uc-tabpanel{padding:16px 2px;color:var(--uc-text);font:400 14px/1.55 var(--uc-font,system-ui,sans-serif)}
.uc-tabpanel[hidden]{display:none}

/* theme.css: the fleet shared theme layer, v30 (ds/7 carried forward + hub v3 value alignment
   + light skins for the dapp.css classes). ONE source for the light-mode override rules used by
   the Next.js dapp family (bridge / swap / buy / get / sell / send) + receive.u.cash, the ULINK
   wallet drawer skin and the 3-state theme toggle styling. Load AFTER dapp.css (and in the
   ustrap bundle the alphabetical pattern order already guarantees that).

  Hooks: the Tailwind dapp family drives `html.light` / `html.dark` classes (set pre-paint by
  each app's THEME_INIT from the `ucash-theme` cookie: light | dark | system). The hub family
  drives `[data-theme="light|dark"]`; base rules below answer BOTH hooks.
  v30 changes vs ds/7: light line/border values aligned to the hub v3 tokens (ds/29), .glass
  goes plateless (no blur), gold text hues match the hub light ramp, and the void backgrounds
  get their light opacity. Dark visuals are untouched: every changed rule is light-scoped.
  Version law: ds/N directories are immutable once published; ship fixes as the next major. */

/* ===== Base: light theme (both hooks) ===== */
html.light, [data-theme="light"] { color-scheme: light; }
html.light, html.light body, [data-theme="light"], [data-theme="light"] body { background: #ffffff; color: #0a0a0a; }
html.light ::selection, [data-theme="light"] ::selection { background: #cc9933; color: #000; }
/* hub v3 light gold ramp: --gold #997226 / --gold-2 #b38829 */
html.light .text-gold-2, [data-theme="light"] .text-gold-2 { color: #b38829; }
html.light .text-gold, [data-theme="light"] .text-gold { color: #997226; }
html.light .grad-gold, [data-theme="light"] .grad-gold {
  background: linear-gradient(100deg, #7a5e1f, #b38829 45%, #7a5e1f 70%, #b38829);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* hub v3 light lines: --line rgba(0,0,0,.22) / --line-gold rgba(153,114,38,.55) */
html.light .border-line, [data-theme="light"] .border-line { border-color: rgba(0, 0, 0, .22); }
html.light .border-line-gold, [data-theme="light"] .border-line-gold { border-color: rgba(153, 114, 38, .55); }
html.light .glass, [data-theme="light"] .glass {
  background: rgba(0, 0, 0, .015); border: 1px solid rgba(0, 0, 0, .10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.light .shadow-card, [data-theme="light"] .shadow-card { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .22); }
html.light .input-swap, [data-theme="light"] .input-swap {
  background: rgba(0, 0, 0, .04); border: 1px solid rgba(0, 0, 0, .12); color: #0a0a0a; border-radius: 0;
}
html.light .input-swap:focus, [data-theme="light"] .input-swap:focus { outline: none; border-color: #997226; }
/* Native <select> option popups: explicit colors keep the OS-rendered list on-theme. */
html.light .input-swap option, html.light select option, [data-theme="light"] select option { background-color: #ffffff; color: #0a0a0a; }
html.light .placeholder-white\/30::-moz-placeholder { color: rgba(10, 10, 10, .40); }
html.light .placeholder-white\/30::placeholder { color: rgba(10, 10, 10, .40); }
/* Sticky frosted family headers ride the white page in light mode. */
html.light .site-header, html.light .bridge-header { background-color: transparent; }
/* Void backgrounds: the gold glows read 50% lighter over the white page (hub law). */
html.light .dapp-void-bg, html.light #bg-canvas-lite { opacity: .5; }

/* ===== Tailwind utility remaps (html.light hook; the dapp family's dark-only utilities) ===== */
html.light .text-white { color: #0a0a0a; }
html.light .text-white\/85 { color: rgba(10, 10, 10, .82); }
html.light .text-white\/80 { color: rgba(10, 10, 10, .80); }
html.light .text-white\/70 { color: rgba(10, 10, 10, .68); }
html.light .text-white\/65 { color: rgba(10, 10, 10, .64); }
html.light .text-white\/60 { color: rgba(10, 10, 10, .60); }
html.light .text-white\/55 { color: rgba(10, 10, 10, .55); }
html.light .text-white\/50 { color: rgba(10, 10, 10, .52); }
html.light .text-white\/45 { color: rgba(10, 10, 10, .48); }
html.light .text-white\/40 { color: rgba(10, 10, 10, .44); }
html.light .text-white\/35 { color: rgba(10, 10, 10, .40); }
html.light .text-white\/30 { color: rgba(10, 10, 10, .38); }
html.light .text-white\/25 { color: rgba(10, 10, 10, .32); }
html.light .hover\:text-white:hover { color: #0a0a0a; }
html.light .hover\:text-white\/70:hover { color: rgba(10, 10, 10, .68); }
html.light .text-gold-2\/80 { color: rgba(179, 136, 41, .85); }
html.light .bg-black { background-color: #ffffff; }
html.light .bg-black\/30 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-black\/40 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-black\/50 { background-color: rgba(0, 0, 0, .05); }
html.light .bg-black\/60 { background-color: rgba(0, 0, 0, .02); }
/* /70 + /75 are scrim layers (drawer backdrop, sticky bars); headers opt out via .bridge-header
   above. Kept as a real dimmer so white pages still get contrast behind sheets. */
html.light .bg-black\/70 { background-color: rgba(10, 10, 10, .45); }
html.light .bg-black\/75 { background-color: rgba(10, 10, 10, .45); }
html.light .bg-black\/95 { background-color: #ffffff; }
html.light .bg-bg-2 { background-color: #f4efe6; }
html.light .bg-bg-2\/60 { background-color: rgba(244, 239, 230, .7); }
html.light .bg-bg-3 { background-color: #ece4d6; }
html.light .bg-white\/5 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-white\/10 { background-color: rgba(0, 0, 0, .06); }
html.light .bg-white\/15 { background-color: rgba(0, 0, 0, .09); }
html.light .bg-white\/20 { background-color: rgba(0, 0, 0, .10); }
html.light .bg-white\/\[0\.02\] { background-color: rgba(0, 0, 0, .025); }
html.light .hover\:bg-white\/20:hover { background-color: rgba(0, 0, 0, .10); }
html.light .hover\:bg-panel:hover { background-color: rgba(0, 0, 0, .045); }
html.light .border-line\/60 { border-color: rgba(0, 0, 0, .14); }

/* ===== ULINK wallet drawer: light skin (dark visuals untouched; QR plate stays white in both) ===== */
html.light .uconnect-sheet {
  background-color: #ffffff;
  border-top-color: rgba(0, 0, 0, .10);
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .28);
}
/* Installed-badge check circle ring (hook class on the border-[#0b0b0b] element in Ulink.tsx). */
html.light .uconnect-badge-ring { border-color: #ffffff; }

/* ===== 3-state theme toggle (Light / Dark / System): shared chrome, theme-neutral ===== */
.uxc-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 36px; height: 36px; border: 1px solid; border-radius: 8px;
  color: inherit; background: transparent; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.uxc-theme-toggle:hover { color: #cc9933; }
.uxc-theme-toggle.has-mode-label { width: auto; padding: 0 10px; }
.uxc-theme-toggle .theme-mode-label { font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
html.light .uxc-theme-toggle, [data-theme="light"] .uxc-theme-toggle { border-color: rgba(0, 0, 0, .18); }

/* Theme-aware header logo/icon: show the variant that matches the page theme (off-theme hidden).
   logo-dark/icon-dark are white+gold (for dark bg); logo-light/icon-light are dark+gold (light bg). */
html.dark .uxc-logo-light, [data-theme="dark"] .uxc-logo-light { display: none !important; }
html.light .uxc-logo-dark, [data-theme="light"] .uxc-logo-dark { display: none !important; }

/* uc-toast: transient notifications. A viewport-anchored .uc-toast-stack holds one or more .uc-toast
   cards (message + optional action + close). Consumes only --uc-* (themes + brands automatically).
   Variants --success/--danger/--accent tint the left rail. .is-leaving animates the exit.
   Behaviour (stack create, auto-dismiss, pause-on-hover, close) lives in runtime/uc-toast.js
   (window.ucToast); the CSS also styles a static, no-JS toast. */
.uc-toast-stack{position:fixed;z-index:9000;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;max-width:min(92vw,380px);pointer-events:none}
.uc-toast-stack>*{pointer-events:auto}
.uc-toast{position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:11px 14px;background:var(--uc-surface-2);color:var(--uc-text);border:1px solid var(--uc-border);border-radius:var(--uc-radius);box-shadow:0 6px 20px rgba(0,0,0,.18);font:500 13.5px/1.4 var(--uc-font,system-ui,sans-serif);animation:uc-toast-in .18s ease}
.uc-toast-msg{flex:1 1 auto;min-width:0}
.uc-toast-action{flex:0 0 auto;background:transparent;border:0;color:var(--uc-accent);font:700 13px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;padding:2px;text-decoration:underline}
.uc-toast-close{flex:0 0 auto;width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--uc-text-dim);font-size:16px;line-height:1;cursor:pointer;padding:0}
.uc-toast-close:hover{color:var(--uc-text)}
.uc-toast--success{border-left:3px solid var(--uc-success)}
.uc-toast--danger{border-left:3px solid var(--uc-danger)}
.uc-toast--accent{border-left:3px solid var(--uc-accent)}
.uc-toast.is-leaving{opacity:0;transform:translateX(8px);transition:opacity .2s ease,transform .2s ease}
@keyframes uc-toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.uc-toast{animation:none}.uc-toast.is-leaving{transition:none}}

