/* 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); }

/* ===== Wallet connect trigger (2026-09-11, operator): .btn-wallet = the fleet wallet glyph
   (CDN-owned mask, currentColor) + a short "Connect" label. Hover/focus = theme-ink OUTLINE
   (white on dark, black on light), transparent background, no glow - overrides this file's
   own gold-fill .btn:hover AND the portable header kit's header.nav[data-uxc-header]
   .btn:hover (0,4,1), which a plain .btn.btn-wallet (0,4,1) only ties and loses on sheet
   order: hence the doubled class + !important. ===== */
html.uxc-dapp .btn.btn-wallet::before {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%207h16a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7z'/%3E%3Cpath%20d='M3%207V6a2%202%200%200%201%202-2h11'/%3E%3Cpath%20d='M14.7%2013a1.3%201.3%200%201%200%202.6%200a1.3%201.3%200%201%200%20-2.6%200z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.7'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%207h16a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7z'/%3E%3Cpath%20d='M3%207V6a2%202%200%200%201%202-2h11'/%3E%3Cpath%20d='M14.7%2013a1.3%201.3%200%201%200%202.6%200a1.3%201.3%200%201%200%20-2.6%200z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
  mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
html.uxc-dapp .btn.btn-wallet.btn-wallet:hover,
html.uxc-dapp .btn.btn-wallet.btn-wallet:focus-visible {
  background: transparent !important; color: var(--text, #1a1a1a) !important; border-color: var(--text, #1a1a1a) !important;
}
html.uxc-dapp .btn.btn-wallet.btn-wallet:hover::after,
html.uxc-dapp .btn.btn-wallet.btn-wallet:focus-visible::after { opacity: 0 !important; }
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); 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; }
  /* Compact horizontal footer (operator: match the u.cash homepage mobile treatment, style37):
     each column's h4 + links flow inline; brand row + blurb take full rows (the hub keys the
     brand row on .brand; dapp HubChrome uses a plain div, so key on the direct-child div). */
  html.uxc-dapp .footer-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
  html.uxc-dapp .footer-grid > div > div { flex-basis: 100%; }
  html.uxc-dapp .footer-grid > div > .muted { flex-basis: 100%; max-width: none !important; }
  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; }
}
