:root {
  --bg: #000000;
  --bg-2: #0E0E10;
  --card: #17171A;
  --card-2: #1F1F23;
  --line: #26262B;
  --text: #FFFFFF;
  --text-2: #9A9AA3;
  --text-3: #63636B;
  --accent: #FF6A1A;
  --accent-press: #E85A0C;
  --accent-soft: rgba(255, 106, 26, .14);
  --green: #2ED47A;
  --green-soft: rgba(46, 212, 122, .13);
  --red: #FF5C5C;
  --amber: #FFB020;
  --amber-soft: rgba(255, 176, 32, .13);
  --radius: 18px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }

/* ---------- icons ---------- */
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.xs { width: 15px; height: 15px; }
.ic.xl { width: 44px; height: 44px; }
.coin { width: 40px; height: 40px; flex: none; }
.coin.sm { width: 22px; height: 22px; }
.coin.xs { width: 18px; height: 18px; }
.coin.xl { width: 72px; height: 72px; }
.muted { color: var(--text-2); }

/* ---------- screens ---------- */
#app { min-height: 100vh; }
.screen {
  display: none; flex-direction: column; min-height: 100vh;
  padding: 12px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px);
  animation: fade .22s ease;
}
.screen.sub { padding-bottom: calc(var(--safe-b) + 20px); animation: slide .26s cubic-bezier(.2, .8, .2, 1); }
.screen.active { display: flex; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes slide { from { opacity: 0; transform: translateX(24px) } to { opacity: 1; transform: none } }
.spacer { flex: 1; min-height: 24px; }

/* ---------- top ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.wallet-pill {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #FF8A3D, #FF5A00); color: #fff; font-weight: 700; font-size: 14px;
}
.avatar.lg { width: 52px; height: 52px; font-size: 20px; }
.net-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--amber);
  background: var(--amber-soft); padding: 5px 10px; border-radius: 99px;
}
.titlebar { height: 48px; display: flex; align-items: center; margin-bottom: 8px; }
.titlebar h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.titlebar.center { justify-content: center; }
.titlebar h2 { font-size: 17px; font-weight: 700; margin: 0; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 26px 0 26px; }
.balance-label {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; font-weight: 500;
}
.balance {
  margin-top: 6px; font-size: 42px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.balance .dec { color: var(--text-2); }
.balance .unit { font-size: 22px; font-weight: 700; color: var(--text-2); margin-left: 6px; letter-spacing: 0; }
.pending-line {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--amber); background: var(--amber-soft); padding: 6px 12px; border-radius: 99px;
}

/* ---------- actions ---------- */
.actions, .round-actions { display: flex; justify-content: space-around; padding: 0 4px 22px; }
.round-actions { justify-content: center; gap: 44px; padding-top: 22px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text); min-width: 64px;
}
.action-ic {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); transition: transform .12s, background .12s;
}
.action:active .action-ic { transform: scale(.92); background: rgba(255, 106, 26, .24); }

/* ---------- lists ---------- */
.section-head {
  display: flex; align-items: center; gap: 18px; padding: 10px 2px 8px; border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.section-head.between { justify-content: space-between; border: 0; margin-top: 18px; }
.seg { font-weight: 700; font-size: 15px; color: var(--text-2); padding-bottom: 8px; margin-bottom: -9px; }
.seg.active { color: var(--text); border-bottom: 2px solid var(--accent); }
.h-label { font-weight: 700; font-size: 15px; }
.link { color: var(--accent); font-weight: 600; font-size: 14px; }
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px; text-align: left; width: 100%;
  border-radius: 14px; transition: background .12s;
}
.row:active { background: var(--card); }
.row-main { flex: 1; min-width: 0; }
.row-end { text-align: right; flex: none; max-width: 52%; }
.row-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end .row-title { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.row-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub.pending { color: var(--amber); }
.chip {
  font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--card-2);
  padding: 2px 7px; border-radius: 6px;
}
.tx-ic {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--card-2); color: var(--text);
}
.tx-ic.in { color: var(--green); background: var(--green-soft); }
.tx-ic.pending { color: var(--amber); background: var(--amber-soft); }
.amt-in { color: var(--green); }
.date-head { color: var(--text-2); font-size: 13px; font-weight: 600; padding: 16px 2px 4px; }

.empty { text-align: center; padding: 36px 20px; color: var(--text-2); }
.empty .tx-ic { margin: 0 auto 12px; width: 56px; height: 56px; }
.empty .btn { margin-top: 16px; width: auto; display: inline-flex; padding: 0 22px; height: 44px; }

/* ---------- cards / settings ---------- */
.card { background: var(--card); border-radius: var(--radius); }
.profile { display: flex; align-items: center; gap: 14px; padding: 16px; }
.group-label { color: var(--text-2); font-size: 13px; font-weight: 600; margin: 22px 4px 8px; text-transform: uppercase; letter-spacing: .05em; }
.list-card { overflow: hidden; }
.list-card.inset { margin-top: 12px; }
.srow {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line); min-height: 52px;
}
.srow:last-child { border-bottom: 0; }
.srow > span:first-of-type { flex: 1; }
.srow .end { display: inline-flex; align-items: center; gap: 6px; text-align: right; color: var(--text); font-weight: 500; max-width: 62%; word-break: break-all; }
.srow .s-ic { color: var(--text-2); }
.srow.strong span { font-weight: 700; }
button.srow:active { background: var(--card-2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.foot-note { color: var(--text-3); font-size: 13px; margin: 20px 4px; }
.foot-note.center { text-align: center; }

/* ---------- receive ---------- */
.warn {
  display: flex; gap: 8px; align-items: flex-start; background: var(--amber-soft); color: #FFD27A;
  padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45;
}
.warn .ic { margin-top: 2px; color: var(--amber); }
.qr-card {
  margin: 20px auto 0; background: var(--card); border-radius: 24px; padding: 22px 20px 20px;
  width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: center;
}
.qr { background: #fff; border-radius: 16px; padding: 12px; width: 220px; height: 220px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.qr-coin { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; }
.addr {
  margin-top: 10px; text-align: center; color: var(--text-2); word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.55; user-select: all;
}

/* ---------- send ---------- */
.field-label { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; margin: 14px 4px 8px; }
.field {
  display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px;
  padding: 6px 8px 6px 16px; min-height: 58px; border: 1.5px solid transparent; transition: border-color .15s;
}
.field:focus-within { border-color: var(--accent); }
.field.ok { border-color: rgba(46, 212, 122, .5); }
.field.bad { border-color: rgba(255, 92, 92, .6); }
.field input, .field textarea {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; padding: 10px 0;
  resize: none;
}
.field textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.45; overflow: hidden; }
.field input { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.field ::placeholder { color: var(--text-3); }
.unit { color: var(--text-2); font-weight: 600; }
.field-btn { color: var(--accent); font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.field-btn:active, .field-icon:active { background: var(--accent-soft); }
.field-icon { color: var(--accent); padding: 8px; border-radius: 10px; display: grid; place-items: center; }
.field-msg { font-size: 13px; margin: 8px 4px 0; min-height: 18px; color: var(--red); }
.field-msg.ok { color: var(--green); }
.field-msg.muted { color: var(--text-2); }

/* ---------- buttons ---------- */
.btn {
  width: 100%; height: 54px; border-radius: 16px; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, opacity .15s;
}
.btn + .btn { margin-top: 10px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active:not(:disabled) { background: var(--accent-press); }
.btn.ghost { background: var(--card); color: var(--text); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.loading { pointer-events: none; color: transparent; position: relative; }
.btn.loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(10, 10, 12, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar.hidden { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-3); transition: color .15s;
}
.tab.active { color: var(--accent); }

/* ---------- sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 40;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg-2);
  border-radius: 24px 24px 0 0; padding: 8px 16px calc(var(--safe-b) + 18px);
  transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  max-height: 92vh; overflow-y: auto; border-top: 1px solid var(--line);
}
.sheet.open { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { text-align: center; margin: 0; font-size: 17px; font-weight: 700; }
.sheet-amount {
  text-align: center; font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 8px;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.sheet .btn { margin-top: 18px; }

/* ---------- success / tx ---------- */
.success { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 12vh; }
.success h2 { margin: 22px 0 6px; font-size: 22px; font-weight: 800; }
.success-ring {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0 } to { transform: none; opacity: 1 } }
.success-amount { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; word-break: break-all; }
.success p { word-break: break-all; font-size: 13px; padding: 0 12px; }
.tx-hero { text-align: center; padding: 18px 0 24px; }
.tx-amount { font-size: 34px; font-weight: 800; letter-spacing: -.03em; word-break: break-all; }
.status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 99px; background: var(--green-soft); color: var(--green);
}
.status.pending { background: var(--amber-soft); color: var(--amber); }
.status.review { background: rgba(255, 92, 92, .13); color: var(--red); }

/* ---------- misc ---------- */
.skeleton {
  display: inline-block; height: 38px; border-radius: 10px; vertical-align: middle;
  background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
}
.w160 { width: 160px; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 60;
  transform: translate(-50%, -150%); background: var(--card-2); color: var(--text);
  padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: #3A1618; color: #FFB3B3; }

/* =====================================================================
   v1.1 — onboarding, passcode, checks, @username
   ===================================================================== */
.ic.lg { width: 28px; height: 28px; }
.screen.full { padding: 12px 20px calc(var(--safe-b) + 20px); }
.legal { text-align: center; color: var(--text-3); font-size: 12px; margin: 14px 0 0; }
.btn.danger { background: rgba(255, 92, 92, .12); color: var(--red); }

/* ---------- splash ---------- */
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.splash-logo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.splash-logo .coin { animation: breathe 1.6s ease-in-out infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 2s ease-out infinite; }
.ring.r2 { animation-delay: 1s; }
.splash-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; animation: fadeUp .6s .2s both; }
@keyframes ripple { 0% { transform: scale(.6); opacity: .7 } 100% { transform: scale(1.6); opacity: 0 } }
@keyframes breathe { 50% { transform: scale(1.07) } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ---------- onboarding ---------- */
.onb-top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.slides { flex: 1; display: flex; overflow: hidden; touch-action: pan-y; }
.slide {
  flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 6px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s;
}
.slide h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 34px 0 12px; }
.slide p { color: var(--text-2); font-size: 15.5px; line-height: 1.5; margin: 0; max-width: 320px; }
.slide > * { opacity: 0; }
.slide.on > * { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide.on h1 { animation-delay: .12s; }
.slide.on p { animation-delay: .22s; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 18px 0 22px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: all .35s cubic-bezier(.2, .8, .2, 1); }
.dots i.on { width: 24px; background: var(--accent); }

.illu { position: relative; width: 260px; height: 230px; display: grid; place-items: center; }
/* slide 1 */
.illu-coin .glow { position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 26, .45), transparent 65%); animation: breathe 3s ease-in-out infinite; }
.hero-coin { width: 112px; height: 112px; position: relative; filter: drop-shadow(0 18px 40px rgba(255, 106, 26, .45));
  animation: float 3.4s ease-in-out infinite; }
.orbit { position: absolute; border: 1.5px dashed rgba(255, 255, 255, .14); border-radius: 50%; }
.orbit.o1 { width: 190px; height: 190px; animation: spin 14s linear infinite; }
.orbit.o2 { width: 250px; height: 250px; animation: spin 22s linear infinite reverse; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.orbit.o2 i { background: #fff; box-shadow: 0 0 12px #fff; width: 8px; height: 8px; top: -4px; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-4deg) } }
/* slide 2 */
.illu-users { display: flex; align-items: center; justify-content: center; gap: 0; }
.u-av { width: 76px; height: 76px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; font-weight: 700; background: var(--card-2); color: var(--text-2); flex: none; position: relative; z-index: 1; }
.u-av.a1 { background: linear-gradient(135deg, #FF8A3D, #FF5A00); color: #fff; }
.u-av.a2 { background: linear-gradient(135deg, #3E3E46, #24242A); color: #fff; animation: receive 2.4s ease-in-out infinite; }
.u-path { position: relative; width: 100px; height: 76px; }
.u-dash { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(255, 255, 255, .15); }
.flyer { position: absolute; width: 34px; height: 34px; left: -17px; top: 21px; animation: fly 2.4s cubic-bezier(.5, 0, .5, 1) infinite; }
.u-badge { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
@keyframes fly {
  0% { transform: translate(0, 0) scale(.6); opacity: 0 }
  15% { opacity: 1; transform: translate(10px, -14px) scale(1) }
  50% { transform: translate(50px, -34px) scale(1.1) }
  85% { opacity: 1; transform: translate(90px, -14px) scale(1) }
  100% { transform: translate(100px, 0) scale(.6); opacity: 0 }
}
@keyframes receive { 0%, 78% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0) } 88% { box-shadow: 0 0 0 10px rgba(46, 212, 122, .25) } 100% { box-shadow: 0 0 0 16px rgba(46, 212, 122, 0) } }
/* slide 3 */
.illu-chat { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 270px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; text-align: left; }
.b-in { background: var(--card-2); align-self: flex-start; border-bottom-left-radius: 5px; }
.b-out { background: var(--accent); align-self: flex-end; border-bottom-right-radius: 5px; color: #fff; display: flex; align-items: center; }
.caret { width: 2px; height: 15px; background: #fff; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.check-card, .check-preview { align-self: flex-end; width: 210px; background: #1C2A3A; border-radius: 16px 16px 5px 16px; padding: 12px; text-align: left; }
.illu-chat .check-card { animation: popIn 3.2s cubic-bezier(.2, 1.3, .4, 1) infinite; }
.cc-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; }
.cc-head .ic { color: var(--accent); }
.cc-btn { position: relative; overflow: hidden; margin-top: 10px; background: rgba(255, 255, 255, .1); border-radius: 10px;
  text-align: center; padding: 8px; font-size: 13px; font-weight: 700; color: #7FC4FF; }
.tap { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .5);
  animation: tap 3.2s ease-out infinite; }
@keyframes popIn { 0%, 15% { transform: scale(.7) translateY(10px); opacity: 0 } 30%, 92% { transform: none; opacity: 1 } 100% { opacity: 0 } }
@keyframes tap { 0%, 55% { transform: scale(0); opacity: 0 } 60% { opacity: 1 } 80%, 100% { transform: scale(18); opacity: 0 } }

/* ---------- passcode ---------- */
.pin-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 260px; }
.pin-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  margin-bottom: 18px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.pin-wrap h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pin-wrap p { margin: 0; font-size: 14px; max-width: 280px; }
.pin-dots { display: flex; gap: 16px; margin-top: 30px; }
.pin-dots i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--text-3); transition: all .15s; }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.12); }
.pin-dots.ok i { background: var(--green); border-color: var(--green); }
.pin-dots.shake { animation: shake .45s; }
.pin-dots.shake i { border-color: var(--red); background: var(--red); }
.pin-err { color: var(--red); font-size: 13.5px; font-weight: 600; min-height: 20px; margin-top: 16px; }
@keyframes shake { 20%, 60% { transform: translateX(-10px) } 40%, 80% { transform: translateX(10px) } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; max-width: 320px; width: 100%; margin: 0 auto; }
.keypad button { height: 66px; border-radius: 50%; font-size: 28px; font-weight: 600; display: grid; place-items: center;
  transition: background .12s, transform .1s; }
.keypad button:active { background: var(--card-2); transform: scale(.94); }
.keypad .kp-ic { color: var(--text-2); }
.keypad .kp-ic.off { visibility: hidden; }
.pin-forgot { display: block; margin: 14px auto 0; padding: 8px; }

/* ---------- creating ---------- */
.creating { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.creating h2 { font-size: 22px; font-weight: 800; margin: 30px 0 22px; }
.spin-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.spin-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 100%); animation: spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 60px, #000 61px); mask: radial-gradient(circle, transparent 60px, #000 61px); }
.spin-ring .coin { animation: breathe 1.6s ease-in-out infinite; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-weight: 500; transition: color .3s; }
.steps li.doing, .steps li.done { color: var(--text); }
.st-ic { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; transition: all .3s; }
.steps li.doing .st-ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .st-ic { background: var(--green); border-color: var(--green); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.steps li.done .st-ic::after { content: ""; width: 5px; height: 9px; border: solid #04130B; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* ---------- ready ---------- */
.success-ring.big { width: 112px; height: 112px; box-shadow: 0 0 0 0 rgba(46, 212, 122, .4); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1), pulse 2s 0.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, .35) } 70% { box-shadow: 0 0 0 26px rgba(46, 212, 122, 0) } 100% { box-shadow: 0 0 0 0 rgba(46, 212, 122, 0) } }
#s-ready .success h2, #s-ready .success p { animation: fadeUp .5s .25s both; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; opacity: 0;
  animation: fall var(--d) var(--delay) cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) }
  100% { opacity: 0; transform: translate(var(--x), 105vh) rotate(var(--r)) }
}
.bio-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; animation: fadeUp .5s .4s both; }

/* ---------- home extras ---------- */
.promo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: var(--radius);
  margin-bottom: 18px; background: linear-gradient(120deg, rgba(255, 106, 26, .18), rgba(255, 106, 26, .04) 60%), var(--card); }
.promo:active { transform: scale(.99); }
.promo-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.promo .row-title, .promo .row-sub { display: block; }

/* ---------- send extras ---------- */
.rcpt { display: flex; align-items: center; gap: 12px; background: var(--green-soft); border-radius: 14px; padding: 10px 12px; margin-top: 10px;
  animation: fadeUp .3s both; }
.rcpt .ok-ic { color: var(--green); }
.uname-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 18px; }

/* ---------- check screen ---------- */
.check-hero { display: grid; place-items: center; padding: 16px 0 6px; }
.check-preview { align-self: center; width: 240px; border-radius: 18px 18px 6px 18px; animation: fadeUp .4s both; }
.how { padding: 6px 14px; margin-top: 18px; }
.how-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: var(--text-2); }
.how-row b { color: var(--text); }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 12px;
  display: grid; place-items: center; flex: none; }

/* ---------- switch ---------- */
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.amt-muted { color: var(--text-3); text-decoration: line-through; }

/* ---------- swap ---------- */
.seg-switch { display: flex; background: var(--card); border-radius: 14px; padding: 4px; margin: 4px 0 12px; }
.seg-switch button { flex: 1; height: 40px; border-radius: 11px; font-weight: 700; font-size: 15px; color: var(--text-2); transition: background .15s, color .15s; }
.seg-switch button.on { background: var(--card-2); color: var(--text); }
.select-field { position: relative; }
.select-field select {
  flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background: none; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 16px; font-weight: 600; padding: 12px 0;
}
.select-field select option { background: #1a1a1d; color: #fff; }
.select-field .ic { transform: rotate(90deg); margin-right: 6px; pointer-events: none; }
