/* UAS Wallet: pay in gold (preview, 30 Oct 2026). One column, built for phones first; desktop shows the same app
   centred. Colours: night background, gold for value, green for money in, coral for money out. */
:root {
  --bg: #07090d; --s1: #0f131b; --s2: #151a24; --s3: #1c2230; --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #eef1f6; --muted: #8b93a3; --dim: #5d6576;
  --gold: #f6c453; --gold2: #e3a92c; --gold3: #b8860b; --green: #2bd47d; --coral: #ff7a85; --usdt: #26a17b;
  --r: 20px; --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; background:
  radial-gradient(700px 420px at 50% -120px, rgba(246,196,83,.14), transparent 70%),
  radial-gradient(500px 400px at 110% 40%, rgba(43,212,125,.05), transparent 70%), var(--bg); background-attachment: fixed; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.app { max-width: 460px; margin: 0 auto; min-height: 100vh; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); position: relative; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 10px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.brand b { color: var(--gold); font-weight: 800; }
.bar-r { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; }
.chip:hover { border-color: var(--line2); }
.chip-me .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(43,212,125,.18); }

/* balance */
.hero { position: relative; margin-top: 6px; padding: 22px 20px 18px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(155deg, #1d1708 0%, #11100b 38%, #0d1017 100%); border: 1px solid rgba(246,196,83,.28);
  box-shadow: 0 30px 60px -30px rgba(246,196,83,.25), inset 0 1px 0 rgba(255,255,255,.04); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,196,83,.22), transparent 65%); pointer-events: none; }
.hero-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cdb78a; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero-g { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.hero-g b { font-size: 46px; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #ffe39a, var(--gold) 45%, var(--gold2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-g span { font-size: 20px; font-weight: 800; color: var(--gold); }
.hero-m { margin-top: 8px; font-size: 15px; color: var(--text); font-weight: 600; }
.hero-m small { color: var(--muted); font-weight: 500; }
.hero-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(246,196,83,.14); font-size: 12px; color: var(--muted); }
.floor { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(246,196,83,.1); border: 1px solid rgba(246,196,83,.3); color: var(--gold); font-weight: 700; font-size: 11.5px; }

/* actions */
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.act i { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.act:hover i { border-color: rgba(246,196,83,.4); } .act:active i { transform: scale(.94); }
.act.primary i { background: linear-gradient(160deg, #ffd56e, var(--gold2)); color: #1b1300; border: 0; box-shadow: 0 10px 22px -10px rgba(246,196,83,.7); }
.act svg, .tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* lists */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 10px; }
.sec-h h2 { font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.sec-h span { font-size: 12px; color: var(--muted); }
.list { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; border-top: 1px solid var(--line); transition: background .12s; }
.row:first-child { border-top: 0; } .row:hover { background: rgba(255,255,255,.02); }
.ico { width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover; background: var(--s3); display: grid; place-items: center; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.usdt { background: var(--usdt); color: #fff; font-weight: 800; font-size: 18px; }
.r-l { flex: 1; min-width: 0; } .r-l b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; }
.r-l span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-r { text-align: right; flex: none; } .r-r b { display: block; font-size: 15px; font-weight: 800; }
.r-r span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.r-r .g { color: var(--gold); font-weight: 700; }
.sum b.g { color: var(--gold); }
.tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; text-transform: uppercase; }
.tag.stable { background: rgba(38,161,123,.16); color: #4fd1a5; } .tag.gold { background: rgba(246,196,83,.14); color: var(--gold); } .tag.comm { background: rgba(139,147,163,.14); color: #b7bfcc; }
.up { color: var(--green) !important; } .down { color: var(--coral) !important; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.note { margin: 14px 2px 0; font-size: 12px; color: var(--dim); line-height: 1.5; text-align: center; }

/* bottom tabs */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(9,11,16,.92); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--dim); padding: 4px 0; }
.tabs button.on { color: var(--gold); }
.tabs .scan i { width: 56px; height: 56px; margin-top: -26px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(160deg, #ffd56e, var(--gold2)); color: #1b1300;
  box-shadow: 0 12px 26px -10px rgba(246,196,83,.8), 0 0 0 5px var(--bg); }

/* sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(2,3,6,.6); backdrop-filter: blur(4px); }
.sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; z-index: 41;
  background: var(--s1); border: 1px solid var(--line2); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: .4; } to { transform: translate(-50%, 0); opacity: 1; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 12px; }
.sh-t { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .sh-t h3 { font-size: 18px; font-weight: 800; }
.x { width: 34px; height: 34px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; color: var(--muted); font-size: 18px; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 15px; } .search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.seg { display: flex; gap: 6px; margin: 12px 0; } .seg button { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--s2); color: var(--muted); border: 1px solid var(--line); }
.seg button.on { background: rgba(246,196,83,.12); color: var(--gold); border-color: rgba(246,196,83,.35); }
.pick .row { border-radius: 14px; border: 0; } .pick .row.sel { background: rgba(246,196,83,.08); }
.pick-h { font-size: 11px; font-weight: 800; letter-spacing: .7px; color: var(--dim); text-transform: uppercase; margin: 10px 4px 4px; }

/* pay / request */
.amt { text-align: center; padding: 10px 0 4px; }
.amt-in { display: inline-flex; align-items: baseline; gap: 8px; } .amt-in span { font-size: 18px; font-weight: 800; color: var(--muted); }
.amt-in input { width: 7.5ch; min-width: 3ch; max-width: 100%; background: none; border: 0; outline: 0; text-align: center; font-size: 44px; font-weight: 800; }
.amt-g { font-size: 13px; color: var(--gold); font-weight: 700; margin-top: 4px; }
.field { margin-top: 12px; } .field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 4px 6px; }
.inp { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); outline: 0; font-size: 15px; }
.inp:focus { border-color: rgba(246,196,83,.45); }
.asset-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); text-align: left; }
.asset-btn .ico { width: 36px; height: 36px; } .asset-btn .r-l b { font-size: 14.5px; } .asset-btn svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2.2; }
.sum { margin-top: 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); padding: 4px 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.sum div:first-child { border-top: 0; } .sum span { color: var(--muted); } .sum b { font-weight: 800; text-align: right; }
.sum .free { color: var(--green); }
.cta { width: 100%; height: 54px; margin-top: 16px; border-radius: 16px; font-weight: 800; font-size: 16px; color: #1b1300; background: linear-gradient(160deg, #ffd56e, var(--gold2)); box-shadow: 0 14px 30px -14px rgba(246,196,83,.8); }
.cta[disabled] { opacity: .45; box-shadow: none; cursor: not-allowed; }
.cta-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.qr { margin: 14px auto 0; width: 230px; padding: 14px; border-radius: 22px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-cap { text-align: center; margin-top: 12px; } .qr-cap b { display: block; font-size: 22px; font-weight: 800; } .qr-cap span { font-size: 13px; color: var(--gold); font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.btn2 { height: 46px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.cur-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cur-grid button { padding: 12px 6px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); text-align: center; }
.cur-grid button b { display: block; font-size: 15px; font-weight: 800; } .cur-grid button span { font-size: 11px; color: var(--muted); }
.cur-grid button.on { border-color: rgba(246,196,83,.5); background: rgba(246,196,83,.08); }
.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 60; padding: 11px 16px; border-radius: 14px;
  background: var(--s3); border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; transition: all .2s; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skel { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 8px 0; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (min-width: 700px) { .app { padding-top: 12px; } }

.hero-s { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.seg-acc { margin: 0; } .seg-acc button { flex: 1; height: 40px; }

/* sign in (30 Oct): Google, email, every wallet app */
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 10px; border-radius: 16px; font-weight: 800; font-size: 15.5px;
  background: var(--s2); border: 1px solid var(--line2); color: var(--text); }
.sbtn-g { background: #fff; color: #1f1f1f; border: 0; }
.sbtn .gg { font: 800 19px/1 Arial, sans-serif; color: #4285f4; } .sbtn .ee { font-size: 17px; color: var(--gold); }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 2px 10px; color: var(--dim); font-size: 12px; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wlist { display: grid; gap: 8px; }
.wbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14.5px; }
.wbtn img { width: 26px; height: 26px; border-radius: 7px; } .wbtn b { flex: 1; font-weight: 700; } .wbtn em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.wbtn .det { color: var(--green); font-weight: 800; }
.link-out { display: block; margin: 14px auto 0; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: underline; }
.cur-grid .fl { display: block; font-style: normal; font-size: 22px; line-height: 1.2; margin-bottom: 2px; }
.cur-grid button b { font-size: 14px; } .cur-grid button span { display: block; font-size: 10.5px; line-height: 1.3; margin-top: 2px; }

/* top bar on small phones: one line, nothing wraps (30 Oct) */
.brand span, .chip { white-space: nowrap; }
.chip #curCode { letter-spacing: 0; }
.bar-r { flex: none; } .brand { min-width: 0; }
@media (max-width: 380px) {
  .brand span b { display: none; }            /* the coin + "UAS" are enough on small screens */
  .chip { height: 32px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .bar { padding-left: 0; padding-right: 0; }
}
.amt-in input { width: 9ch; }

.amt-in span { white-space: nowrap; }
.scanbox { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanframe { position: absolute; inset: 18%; border: 3px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
@media (max-width: 380px) { .amt-in span { font-size: 15px; } .amt-in input { font-size: 38px; } }
/* flags as images (Windows shows flag emoji as letters) */
.flag { display: inline-block; width: 20px; height: 14px; border-radius: 3px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
#curCode { display: inline-flex; align-items: center; gap: 6px; }
.cur-grid .fl { height: 22px; display: grid; place-items: center; } .cur-grid .fl .flag { width: 28px; height: 20px; }
/* language choice in the currency sheet */
.lang-seg { flex-wrap: wrap; } .lang-seg button { flex: 1 1 auto; height: 38px; }
.sh-sub { margin: 16px 2px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* balance still loading: placeholders, never a zero */
.skel.sk-in { display: inline-block; width: 150px; height: 44px; border-radius: 12px; margin: 4px 0; }
.skel.sk-row { display: inline-block; width: 64px; height: 30px; border-radius: 8px; margin: 0; }
/* Arabic: right to left */
[dir="rtl"] .row, [dir="rtl"] .asset-btn { text-align: right; }
[dir="rtl"] .hero::after { right: auto; left: -60px; }
[dir="rtl"] .num, [dir="rtl"] .qr-cap b { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .act svg, [dir="rtl"] .tabs [data-v="pay"] svg, [dir="rtl"] .tabs [data-v="request"] svg { transform: scaleX(-1); }
[dir="rtl"] body { font-family: Manrope, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
/* how it works */
.how-link { display: block; margin: 10px auto 0; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--gold); background: none; border: 0; }
.how { display: grid; gap: 10px; margin-top: 4px; }
.how-s { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line); }
.how-s i { font-style: normal; font-size: 22px; line-height: 1.2; flex: none; }
.how-s b { display: block; font-size: 15px; font-weight: 800; } .how-s span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.how-ex { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(246,196,83,.08); border: 1px solid rgba(246,196,83,.3); color: var(--gold); font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.how-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how-two div { padding: 12px; border-radius: 14px; background: var(--s2); border: 1px solid var(--line); }
.how-two b { display: block; font-size: 14px; font-weight: 800; } .how-two span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.how-w { color: var(--text); display: grid; place-items: center; width: 100%; margin-top: 10px; text-decoration: none; }
/* To: paste + scan inside the box, recent people below */
.to-wrap { position: relative; } .to-wrap .inp { padding-inline-end: 96px; text-overflow: ellipsis; }
.to-b { position: absolute; top: 5px; width: 40px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--s3, #1f2633); border: 1px solid var(--line); color: var(--text); }
#toPaste { inset-inline-end: 50px; } .to-scan { inset-inline-end: 5px; background: rgba(246,196,83,.14); border-color: rgba(246,196,83,.4); color: var(--gold); }
.to-b svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-err { margin: 6px 4px 0; font-size: 12.5px; font-weight: 700; color: #ff6b7d; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 2px 0; } .recent:empty { display: none; }
.recent span { font-size: 12px; color: var(--muted); font-weight: 700; margin-inline-end: 2px; }
.recent button { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; font-family: inherit; }
