:root {
  --bg: #050505;
  --bg-2: #0b0a08;
  --panel: rgba(20, 18, 14, .72);
  --panel-solid: #12110e;
  --line: rgba(231, 198, 118, .14);
  --line-strong: rgba(231, 198, 118, .32);
  --text: #f4efe4;
  --muted: #9a917f;
  --dim: #5f584b;
  --gold: #e7c676;
  --gold-2: #c9a24f;
  --gold-deep: #8a6a2f;
  --gold-grad: linear-gradient(135deg, #8a6a2f 0%, #e9cd84 22%, #fff3c9 38%, #c9a24f 55%, #f6dc95 72%, #9b7535 100%);
  --gold-soft: linear-gradient(180deg, #f3d892, #b98f3f);
  --green: #6fdc9b;
  --red: #ff7a7a;
  --radius: 22px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: calc(16px * var(--fs, 1)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: var(--fw, 400); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--gold); text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(231, 198, 118, .35); }
.hidden { display: none !important; }
:where(svg.i) { width: 22px; height: 22px; flex: none; }

#ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bd { background: var(--bg); overflow: hidden; }
.bd-aura { background:
    radial-gradient(60vmax 40vmax at 50% -10%, rgba(231, 198, 118, .13), transparent 60%),
    radial-gradient(40vmax 30vmax at 100% 100%, rgba(140, 100, 40, .10), transparent 60%),
    radial-gradient(30vmax 30vmax at 0% 70%, rgba(231, 198, 118, .05), transparent 60%), var(--bg);
}
#ambient::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

#app { position: relative; z-index: 1; max-width: 500px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(5, 5, 5, .55); box-shadow: 0 0 120px rgba(0, 0, 0, .8); }
}

/* splash */
#splash { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--bg); z-index: 50; transition: opacity .6s, visibility .6s; }
#splash img { width: 150px; border-radius: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .9), 0 0 60px rgba(231, 198, 118, .15); animation: float 3s ease-in-out infinite; }
#splash.gone { opacity: 0; visibility: hidden; }
.loader { display: flex; gap: 7px; }
.loader i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.loader i:nth-child(2) { animation-delay: .2s; } .loader i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* layout */
.view { flex: 1; padding: calc(var(--safe-t) + 14px) 18px calc(100px + var(--safe-b)); animation: viewIn .45s cubic-bezier(.2, .8, .2, 1); }
.view.no-tabs { padding-bottom: calc(30px + var(--safe-b)); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 14px; }
.topbar h1 { font-family: var(--serif); font-weight: 600; font-size: 1.875rem; margin: 0; letter-spacing: .3px; }
.topbar .title-center { position: absolute; left: 50%; transform: translateX(-50%); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--gold); transition: transform .2s, border-color .2s; position: relative; }
.icon-btn:active { transform: scale(.92); }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--gold-grad); color: #1a1406; font-size: 0.625rem; font-weight: 800; display: grid; place-items: center; }
.brand-mark { height: 40px; filter: drop-shadow(0 4px 14px rgba(231, 198, 118, .25)); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 2px 12px; }
.section-title h2, .section-title h3 { margin: 0; font-size: 0.75rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.section-title a, .section-title button { font-size: 0.8125rem; color: var(--gold); font-weight: 600; }

.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; }
.shimmer { animation: shimmer 6s linear infinite; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 0.75rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* panels */
.panel { position: relative; background: var(--panel); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.panel::before, .gborder::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(243, 216, 146, .45), rgba(243, 216, 146, .06) 35%, rgba(243, 216, 146, .03) 65%, rgba(243, 216, 146, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.gborder { position: relative; }
.panel + .panel { margin-top: 12px; }
.panel.tight { padding: 6px 0; }

/* buttons */
.btn { white-space: nowrap; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 18px; font-weight: 800; font-size: 0.875rem; letter-spacing: 1.6px; text-transform: uppercase; transition: transform .15s, filter .2s, opacity .2s; overflow: hidden; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn-gold { background: var(--gold-grad); background-size: 180% 100%; color: #1c1505; box-shadow: 0 12px 40px rgba(201, 162, 79, .28), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 10, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); animation: shimmer 8s linear infinite; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(231, 198, 118, .06); color: var(--gold); border: 1px solid var(--line-strong); }
.btn-dark { background: #17150f; color: var(--text); border: 1px solid var(--line); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.75rem; border-radius: 14px; letter-spacing: 1.2px; }
.btn svg { width: 18px; height: 18px; }
.btn .sweep { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3.5s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hold { touch-action: none; }
.hold .fill { position: absolute; inset: 0; background: rgba(28, 21, 5, .25); transform-origin: left; transform: scaleX(0); }
.chip-btn { height: 34px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(231, 198, 118, .05); color: var(--text); font-size: 0.8125rem; font-weight: 700; transition: all .2s; white-space: nowrap; }
.chip-btn.on, .chip-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(231, 198, 118, .12); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }

/* inputs */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.6875rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 4px; font-weight: 700; }
.input { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
textarea.input { height: auto; padding: 14px 18px; resize: none; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(231, 198, 118, .1); }
.input::placeholder { color: var(--dim); }
.seg { display: flex; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); }
.seg button { flex: 1; height: 42px; border-radius: 12px; font-weight: 700; font-size: 0.8125rem; letter-spacing: 1px; color: var(--muted); transition: all .25s; text-transform: uppercase; }
.seg button.on { background: var(--gold-grad); color: #1c1505; box-shadow: 0 6px 20px rgba(201, 162, 79, .25); }
.toggle { width: 50px; height: 30px; border-radius: 20px; background: #24211a; position: relative; transition: background .25s; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #8c836f; transition: transform .25s, background .25s; }
.toggle.on { background: rgba(231, 198, 118, .3); }
.toggle.on::after { transform: translateX(20px); background: var(--gold-soft); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), #2a261d var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 2px 10px rgba(0, 0, 0, .6); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--gold-soft); }

/* avatar */
.avatar { --s: 46px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .36); color: #1c1505; background: var(--gold-grad); letter-spacing: .5px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--tier, var(--gold)); }
.avatar .online { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px var(--bg); }
.avatar.official { background: #0b0a08; border: 1px solid var(--gold); }
.avatar.official img { padding: 14%; border-radius: 0; object-fit: contain; }

/* tab bar */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); width: min(468px, calc(100% - 24px)); height: 70px; border-radius: 26px; display: flex; justify-content: space-around; align-items: center; z-index: 20;
  background: rgba(14, 13, 10, .82); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--dim); font-size: 0.625rem; font-weight: 700; letter-spacing: .6px; transition: color .25s; position: relative; height: 100%; justify-content: center; }
.tabbar a svg { width: 22px; height: 22px; transition: transform .3s; }
.tabbar a.on { color: var(--gold); }
.tabbar a.on svg { transform: translateY(-2px); filter: drop-shadow(0 4px 10px rgba(231, 198, 118, .5)); }
.tabbar a.on::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.tabbar .badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 9px; background: var(--gold-grad); color: #1c1505; font-size: 0.625rem; display: grid; place-items: center; padding: 0 4px; }

/* home */
.balance { text-align: center; padding: 20px 0 8px; }
.balance .label { font-size: 0.6875rem; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.balance .amount { font-family: var(--serif); font-weight: 600; font-size: clamp(3.25rem, calc(15vw * var(--fs, 1)), 4.25rem); line-height: 1.05; margin: 10px 0 6px; letter-spacing: -.5px; }
.balance .amount .cents { font-size: .5em; vertical-align: .62em; margin-left: 2px; }
.balance .delta { font-size: 0.8125rem; font-weight: 700; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); font-size: 0.625rem; letter-spacing: 1.8px; font-weight: 800; text-transform: uppercase; }
.demo-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 24px 0 6px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 0.6875rem; font-weight: 700; color: var(--muted); letter-spacing: 1.2px; text-transform: uppercase; }
.action .ring { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); position: relative; background: radial-gradient(circle at 30% 25%, rgba(231, 198, 118, .18), rgba(15, 13, 9, .9) 70%); transition: transform .2s; }
.action .ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.action:active .ring { transform: scale(.92); }
.action svg { width: 24px; height: 24px; }
.spark { width: 100%; height: 70px; display: block; }

.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 10px 18px 26px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: center; flex: none; width: min(340px, 82vw); }

.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; transition: background .2s; border-radius: 16px; }
.list-item:hover { background: rgba(231, 198, 118, .04); }
.list-item + .list-item { border-top: 1px solid rgba(231, 198, 118, .06); }
.list-item .t { font-weight: 700; font-size: 0.9375rem; }
.list-item .s { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.list-item .amt { font-weight: 800; font-size: 0.9375rem; text-align: right; white-space: nowrap; }
.tx-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #17150f; border: 1px solid var(--line); color: var(--gold); flex: none; }
.tx-icon svg { width: 20px; height: 20px; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 10px; }

.tickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ticker { padding: 14px; border-radius: 18px; display: block; color: var(--text); }
.ticker .sym { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.coin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 800; color: #111; flex: none; }
.ticker .p { font-weight: 800; font-size: 1.0625rem; margin-top: 10px; }
.ticker svg { width: 100%; height: 34px; margin-top: 6px; }

/* sheets */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.sheet { width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; border-radius: 30px 30px 0 0; padding: 12px 20px calc(26px + var(--safe-b)); background: linear-gradient(180deg, #16140f, #0a0907); border-top: 1px solid var(--line-strong); animation: up .4s cubic-bezier(.2, .9, .2, 1); }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: #3a352a; margin: 0 auto 18px; }
.sheet h3 { font-family: var(--serif); font-size: 1.75rem; margin: 0 0 6px; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* toasts */
#toasts { position: fixed; top: calc(var(--safe-t) + 14px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 28px)); pointer-events: none; }
.toast { padding: 14px 18px; border-radius: 18px; background: rgba(22, 20, 15, .95); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-weight: 600; font-size: 0.875rem; display: flex; gap: 10px; align-items: center; animation: toastIn .4s cubic-bezier(.2, .9, .2, 1); pointer-events: auto; }
.toast.err { border-color: rgba(255, 122, 122, .5); }
.toast svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

/* success overlay */
.success { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; justify-items: center; text-align: center; padding: 30px; background: radial-gradient(circle at 50% 40%, rgba(231, 198, 118, .2), rgba(5, 5, 5, .97) 60%); animation: fade .3s; }
.success .medal { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); box-shadow: 0 0 80px rgba(231, 198, 118, .5); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.success .medal svg { width: 56px; height: 56px; color: #1c1505; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .35s forwards; }
.success h2 { font-family: var(--serif); font-size: 2.75rem; margin: 28px 0 6px; font-weight: 600; }
.success p { color: var(--muted); margin: 0 0 30px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 71; }

/* keypad / amount */
.amount-display { text-align: center; padding: 16px 0 6px; }
.amount-display .v { font-family: var(--serif); font-size: 4rem; font-weight: 600; line-height: 1; min-height: 64px; }
.amount-display .v .cur { font-size: .55em; vertical-align: .5em; margin-right: 4px; color: var(--gold-2); }
.amount-display input { width: 100%; text-align: center; background: none; border: 0; outline: none; font-family: var(--serif); font-size: 4rem; font-weight: 600; color: var(--text); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.keypad button { height: 58px; border-radius: 16px; font-size: 1.5rem; font-weight: 600; font-family: var(--serif); background: rgba(231, 198, 118, .03); transition: background .15s; }
.keypad button:active { background: rgba(231, 198, 118, .14); }

/* chat */
.chat-head { position: sticky; top: 0; z-index: 10; margin: calc(-14px - var(--safe-t)) -18px 0; padding: calc(var(--safe-t) + 12px) 14px 12px; display: flex; align-items: center; gap: 12px; background: rgba(5, 5, 5, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.chat-view { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-bottom: 0 !important; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 0 16px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 20px; font-size: 0.9375rem; line-height: 1.4; word-wrap: break-word; white-space: pre-wrap; animation: bub .3s cubic-bezier(.2, .9, .2, 1); }
.bubble.me { align-self: flex-end; background: var(--gold-grad); background-size: 200% 100%; color: #1c1505; border-bottom-right-radius: 6px; font-weight: 500; }
.bubble.them { align-self: flex-start; background: #17150f; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .time { display: block; font-size: 0.625rem; opacity: .55; margin-top: 4px; text-align: right; }
@keyframes bub { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.day-sep { align-self: center; font-size: 0.6875rem; color: var(--dim); letter-spacing: 1.5px; text-transform: uppercase; margin: 12px 0 6px; font-weight: 700; }
.pay-bubble { max-width: 270px; width: 78%; border-radius: 22px; padding: 16px 18px; position: relative; overflow: hidden; animation: bub .3s; }
.pay-bubble.me { align-self: flex-end; } .pay-bubble.them { align-self: flex-start; }
.pay-bubble { background: linear-gradient(140deg, #1e1a10, #0c0b08 60%), #111; border: 1px solid var(--line-strong); }
.pay-bubble::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .08) 50%, transparent 65%); background-size: 250% 100%; animation: shimmer 5s linear infinite; pointer-events: none; }
.pay-bubble .k { font-size: 0.625rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.pay-bubble .a { font-family: var(--serif); font-size: 2.375rem; font-weight: 600; margin: 4px 0; }
.pay-bubble .n { font-size: 0.8125rem; color: var(--muted); }
.pay-bubble .st { display: inline-flex; gap: 6px; align-items: center; font-size: 0.6875rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; }
.composer { position: sticky; bottom: 0; margin: 0 -18px; padding: 10px 14px calc(12px + var(--safe-b)); background: rgba(5, 5, 5, .9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.composer .row { gap: 8px; }
.composer .input { height: 48px; border-radius: 24px; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-grad); color: #1c1505; display: grid; place-items: center; flex: none; }
.send-btn svg { width: 20px; height: 20px; }
.typing { align-self: flex-start; padding: 12px 16px; border-radius: 20px; background: #17150f; border: 1px solid var(--line); display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.concierge { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(120deg, rgba(231, 198, 118, .16), rgba(231, 198, 118, .02)); color: var(--text); margin-bottom: 8px; }
.tag { font-size: 0.5625rem; letter-spacing: 1.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--gold-grad); color: #1c1505; text-transform: uppercase; }
.tier-tag { font-size: 0.625rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--tier, var(--gold)); }

/* status */
.medallion { width: 150px; height: 150px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; position: relative; }
.medallion::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(231, 198, 118, .5), transparent 40%, rgba(231, 198, 118, .3), transparent 80%); animation: spin 8s linear infinite; filter: blur(6px); }
.medallion .core { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2b261a, #0a0907 70%); box-shadow: inset 0 0 0 2px rgba(231, 198, 118, .5), inset 0 0 40px rgba(231, 198, 118, .15), 0 20px 60px rgba(0, 0, 0, .8); }
.medallion svg { width: 66px; height: 66px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; border-radius: 6px; background: #1d1a13; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 6px; background: var(--gold-grad); box-shadow: 0 0 16px rgba(231, 198, 118, .6); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.ladder { display: flex; flex-direction: column; gap: 8px; }
.rung { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.rung.cur { border-color: var(--gold); background: rgba(231, 198, 118, .07); }
.rung.locked { opacity: .5; }
.gem { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; transform: rotate(45deg); flex: none; }
.gem span { transform: rotate(-45deg); font-weight: 800; font-size: 0.8125rem; color: #111; }

/* crypto */
.chart { width: 100%; height: 220px; display: block; }
.asset-row .p { font-weight: 800; }

/* account */
.menu .list-item { cursor: pointer; }
.list-item svg.chev { width: 18px; height: 18px; color: var(--dim); flex: none; transition: transform .2s, color .2s; }
.list-item:hover svg.chev { transform: translateX(3px); color: var(--gold); }
.menu .list-item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(231, 198, 118, .08); color: var(--gold); flex: none; }
.menu .list-item .ic svg { width: 19px; height: 19px; }

/* auth */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--safe-t) + 30px) 24px calc(30px + var(--safe-b)); }
.auth .logo { width: 128px; margin: 0 auto 22px; border-radius: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .9), 0 0 70px rgba(231, 198, 118, .18); animation: float 4s ease-in-out infinite; }
.auth h1 { font-family: var(--serif); font-size: 2.625rem; text-align: center; margin: 0; font-weight: 600; line-height: 1.05; }
.auth .tag-line { text-align: center; color: var(--muted); margin: 10px 0 28px; letter-spacing: .3px; }
.auth form { margin-top: 18px; }
.auth .err { color: var(--red); font-size: 0.8125rem; min-height: 18px; margin: -4px 4px 10px; }
.auth-cards { position: relative; height: 150px; margin: 0 auto 6px; width: 100%; max-width: 330px; perspective: 900px; }
.auth-cards .sfc-card { position: absolute; width: 230px; left: 50%; top: 0; }
.qr { width: 220px; height: 220px; margin: 0 auto; padding: 16px; border-radius: 24px; background: #0b0a08; }
.qr img { width: 100%; height: 100%; }
.addr { font-family: var(--mono); font-size: 0.75rem; word-break: break-all; color: var(--muted); }

/* studio */
.studio-preview { position: sticky; top: 0; z-index: 5; margin: 0 -18px; padding: 14px 30px 20px; background: linear-gradient(180deg, rgba(5, 5, 5, .96) 80%, rgba(5, 5, 5, 0)); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.swatch { aspect-ratio: 1.586; border-radius: 9px; position: relative; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s, transform .2s; }
.swatch.on { outline-color: var(--gold); transform: translateY(-2px); }
.swatch.locked::after { content: '🔒'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-size: 0.8125rem; }
.swatch-label { font-size: 0.625rem; text-align: center; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1.5px dashed var(--line-strong); background: rgba(231, 198, 118, .03); cursor: pointer; }
.upload:hover { background: rgba(231, 198, 118, .07); }
.foils { display: flex; gap: 12px; }
.foil { width: 40px; height: 40px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 3px; }
.foil.on { outline-color: var(--gold); }
.slider-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; margin: 14px 0; font-size: 0.75rem; color: var(--muted); font-weight: 700; }

.card-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
.card-actions .action .ring { width: 54px; height: 54px; }
.card-actions .action svg { width: 21px; height: 21px; }
.kv { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid rgba(231, 198, 118, .07); font-size: 0.875rem; }
.kv:last-child { border: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; }
.catalog-item { padding: 18px; border-radius: 26px; margin-bottom: 16px; text-align: center; }
.catalog-item .sfc-card { margin: 4px auto 18px; max-width: 320px; }
.catalog-item h3 { font-family: var(--serif); font-size: 1.625rem; margin: 0; font-weight: 600; }
.catalog-item .tl { color: var(--gold); font-weight: 700; font-size: 0.8125rem; margin: 4px 0 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.serif, .balance .amount, .amount-display, .keypad button, .sheet h3, .topbar h1, .pay-bubble .a, .success h2 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.demo-pill svg { width: 12px; height: 12px; }
.receive-avatar { display: flex; justify-content: center; }

.success.received .recv-ava { animation: pop .7s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 0 40px rgba(231, 198, 118, .55)); }
.success.received .recv-k { font-weight: 800; font-size: 1.125rem; margin-top: 18px; }
.success.received .recv-sub { color: var(--muted); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.success.received .recv-amt { font-size: clamp(4rem, calc(22vw * var(--fs, 1)), 6.5rem); margin: 10px 0 6px; line-height: 1; animation: pop .8s .1s cubic-bezier(.2, 1.6, .4, 1) both; font-variant-numeric: lining-nums tabular-nums; }
.success.fade-out { transition: opacity .5s; opacity: 0; }
.success { background-color: rgba(5, 5, 5, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- personal backdrops (look.js sets html[data-bg]) ---------- */
.bd::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.bd-aura::before { inset: -20%; background:
    radial-gradient(35% 25% at 30% 30%, rgba(231, 198, 118, .10), transparent 70%),
    radial-gradient(30% 30% at 75% 70%, rgba(180, 130, 50, .09), transparent 70%);
  animation: auraDrift 26s ease-in-out infinite alternate; }
@keyframes auraDrift { from { transform: translate3d(-4%, -2%, 0) rotate(0deg); } to { transform: translate3d(4%, 3%, 0) rotate(8deg); } }

.bd-marble { background:
    radial-gradient(120% 80% at 50% 0%, #14120e, #050505 70%); }
.bd-marble::before { background: linear-gradient(180deg, rgba(5, 5, 5, .05), rgba(5, 5, 5, .55)), url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27390%27 height=%27844%27 viewBox=%270 0 390 844%27 preserveAspectRatio=%27xMidYMid slice%27%3E%3Cdefs%3E%3Cfilter id=%27s%27 x=%270%27 y=%270%27 width=%27100%25%27 height=%27100%25%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.007%27 numOctaves=%274%27 seed=%273%27/%3E%3CfeColorMatrix values=%270 0 0 0 .14 0 0 0 0 .12 0 0 0 0 .085 1.4 0 0 0 -.55%27/%3E%3C/filter%3E%3Cfilter id=%27d%27 x=%27-20%25%27 y=%27-20%25%27 width=%27140%25%27 height=%27140%25%27%3E%3CfeTurbulence type=%27turbulence%27 baseFrequency=%27.02%27 numOctaves=%273%27 seed=%278%27 result=%27n%27/%3E%3CfeDisplacementMap in=%27SourceGraphic%27 in2=%27n%27 scale=%2726%27 xChannelSelector=%27R%27 yChannelSelector=%27G%27 result=%27v%27/%3E%3CfeGaussianBlur in=%27v%27 stdDeviation=%273%27 result=%27g%27/%3E%3CfeMerge%3E%3CfeMergeNode in=%27g%27/%3E%3CfeMergeNode in=%27v%27/%3E%3C/feMerge%3E%3C/filter%3E%3ClinearGradient id=%27gg%27 x1=%270%27 y1=%270%27 x2=%271%27 y2=%271%27%3E%3Cstop offset=%270%27 stop-color=%27%238a6a2f%27/%3E%3Cstop offset=%27.4%27 stop-color=%27%23f3d892%27/%3E%3Cstop offset=%27.7%27 stop-color=%27%23c9a24f%27/%3E%3Cstop offset=%271%27 stop-color=%27%23fff0c0%27/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%27390%27 height=%27844%27 filter=%27url(%23s)%27/%3E%3Cg fill=%27none%27 stroke=%27url(%23gg)%27 stroke-linecap=%27round%27 filter=%27url(%23d)%27%3E%3Cpath d=%27M-20 120C60 150 110 210 170 230S300 260 420 340%27 stroke-width=%272.2%27 opacity=%27.85%27/%3E%3Cpath d=%27M170 230C190 300 160 360 200 430S260 560 240 640%27 stroke-width=%271.2%27 opacity=%27.6%27/%3E%3Cpath d=%27M-20 520C80 500 140 540 210 600S330 690 420 700%27 stroke-width=%272.6%27 opacity=%27.8%27/%3E%3Cpath d=%27M210 600C180 680 120 720 90 860%27 stroke-width=%271%27 opacity=%27.5%27/%3E%3Cpath d=%27M300 -10C290 60 330 110 320 180S360 260 420 280%27 stroke-width=%271%27 opacity=%27.45%27/%3E%3Cpath d=%27M-20 330C40 350 70 400 60 470%27 stroke-width=%27.8%27 opacity=%27.4%27/%3E%3Cpath d=%27M240 640C290 650 340 620 420 640%27 stroke-width=%27.8%27 opacity=%27.45%27/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat; }

.bd-deco { background:
    radial-gradient(90% 60% at 50% 0%, rgba(231, 198, 118, .12), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(140, 100, 40, .12), transparent 70%), #060504; }
.bd-deco::before { opacity: .22;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' viewBox='0 0 64 32' fill='none' stroke='%23e7c676' stroke-width='.8'%3E%3Cg id='f'%3E%3Cpath d='M0 32a32 32 0 0 1 64 0M8 32a24 24 0 0 1 48 0M16 32a16 16 0 0 1 32 0M24 32a8 8 0 0 1 16 0'/%3E%3C/g%3E%3Cuse href='%23f' x='-32' y='-16'/%3E%3Cuse href='%23f' x='32' y='-16'/%3E%3C/svg%3E") 0 0 / 64px 32px; }

.bd-silk { background: #050404; overflow: hidden; }
.bd-silk::before { inset: -40%; background:
    conic-gradient(from 210deg at 45% 55%, transparent 0deg, rgba(231, 198, 118, .30) 40deg, transparent 90deg, rgba(160, 115, 45, .26) 160deg, transparent 220deg, rgba(255, 230, 170, .18) 290deg, transparent 360deg),
    radial-gradient(40% 30% at 60% 40%, rgba(231, 198, 118, .12), transparent 70%);
  filter: blur(30px); animation: silk 40s linear infinite; }
@keyframes silk { from { transform: rotate(0deg) scale(1.1); } 50% { transform: rotate(180deg) scale(1.25); } to { transform: rotate(360deg) scale(1.1); } }

.bd-dust { background:
    radial-gradient(70% 50% at 50% -5%, rgba(231, 198, 118, .14), transparent 70%), #050505; overflow: hidden; }
.bd-dust::before { inset: 0 0 -100% 0; background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(255, 228, 160, .9), transparent),
    radial-gradient(1px 1px at 90px 140px, rgba(255, 240, 200, .7), transparent),
    radial-gradient(1.6px 1.6px at 150px 60px, rgba(231, 198, 118, .8), transparent),
    radial-gradient(1px 1px at 60px 200px, rgba(255, 228, 160, .6), transparent),
    radial-gradient(2px 2px at 180px 220px, rgba(231, 198, 118, .5), transparent);
  background-size: 150px 190px; animation: dust 60s linear infinite; }
.bd-dust > i { position: absolute; inset: 0 0 -100% 0; background-image:
    radial-gradient(1px 1px at 40px 80px, rgba(255, 240, 200, .8), transparent),
    radial-gradient(1.4px 1.4px at 120px 20px, rgba(231, 198, 118, .7), transparent),
    radial-gradient(1px 1px at 300px 160px, rgba(255, 228, 160, .6), transparent);
  background-size: 240px 210px; animation: dust 95s linear infinite, twinkle 4s ease-in-out infinite alternate; }
@keyframes dust { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.bd > i { display: none; }
.bd-dust > i { display: block; }

.bd-onyx { background: radial-gradient(120% 70% at 50% 0%, #0d0c0a, #000 70%); }
#ambient.bd-onyx::after { opacity: .25; }

.bd-photo { background: #050505; }
.bd-photo::before { inset: -12px; filter: blur(1.5px); background: linear-gradient(180deg, rgba(5, 5, 5, .62), rgba(5, 5, 5, .84) 55%, rgba(5, 5, 5, .94)), var(--photo) center / cover no-repeat; }

@media (min-width: 720px) { #app { background: rgba(5, 5, 5, .35); } }

/* stronger text option */
:root[data-bold="1"] { --muted: #bdb3a0; --dim: #857c6b; }
:root[data-bold="1"] body { font-weight: 500; }
:root[data-bold="1"] .list-item .s, :root[data-bold="1"] .small { font-weight: 600; }

/* calm mode */
:root[data-motion="0"] *, :root[data-motion="0"] *::before, :root[data-motion="0"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { .bd::before, .bd > i { animation: none !important; } }

/* appearance screen */
.look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.look-opt { position: relative; border-radius: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); padding: 12px; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.look-opt:active { transform: scale(.97); }
.look-opt.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px rgba(201, 162, 79, .18); }
.look-opt.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--gold-grad); color: #1c1505; }
.look-opt .nm { font-weight: 700; font-size: .8125rem; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-opt .sp { font-size: 1.6rem; line-height: 1.1; color: var(--gold); font-variant-numeric: lining-nums; white-space: nowrap; overflow: hidden; }
.look-opt .sm { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.bg-thumb { height: 92px; border-radius: 12px; position: relative; overflow: hidden; background: #050505; border: 1px solid rgba(231, 198, 118, .1); }
.bg-thumb > div { position: absolute; inset: 0; }
.size-row { display: flex; align-items: flex-end; gap: 8px; }
.size-row button { flex: 1; height: 64px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); display: grid; place-items: center; font-family: var(--serif); color: var(--text); transition: all .2s; }
.size-row button.on { border-color: var(--gold); color: var(--gold); background: rgba(231, 198, 118, .1); }
.look-preview { border-radius: 22px; padding: 16px; display: flex; gap: 12px; align-items: center; }
