/* Unified network in the portal: unified IDs, profile and address, API keys, transfers, staking. Motion always plays. */
@keyframes nw-glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes nw-scan { from { transform: translateX(-120%); } to { transform: translateX(220%); } }
@keyframes nw-orbit { to { transform: rotate(360deg); } }
@keyframes nw-coin { 0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(320deg) scale(1); opacity: 0; } }
@keyframes nw-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes nw-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 120, 85, .5); } 100% { box-shadow: 0 0 0 9px rgba(239, 120, 85, 0); } }
@keyframes nw-stripe { to { background-position: 40px 0; } }

.chip-coral { background: var(--peach); color: var(--coral-deep); }

/* ---------- Unified IDs ---------- */
.uid-badge { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 6px 5px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line-2); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate; }
.uid-badge::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 214, 196, .55) 50%, transparent 70%); animation: nw-scan 4.5s var(--ease-io) infinite; }
.uid-badge code { background: none; padding: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--pine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uid-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-deep); white-space: nowrap; }
.uid-copy { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--pine); transition: background .3s, transform .45s var(--ease-spring); }
.uid-copy:hover { background: var(--peach); transform: scale(1.1) rotate(-6deg); }
.uid-copy .icon { width: 15px; height: 15px; transition: transform .35s var(--ease-spring), opacity .25s; }
.uid-copy .uid-done { position: absolute; opacity: 0; transform: scale(.3); color: #2f8a5d; stroke-width: 2.6; }
.uid-copy.is-copied { background: var(--mint); }
.uid-copy.is-copied .icon:first-child { opacity: 0; transform: scale(.3); }
.uid-copy.is-copied .uid-done { opacity: 1; transform: none; }
.uid-hero { padding: 8px 8px 8px 16px; border-width: 2px; }
.uid-hero code { font-size: clamp(16px, 1.8vw, 21px); }
.uid-hero .uid-copy { width: 38px; height: 38px; }
.uid-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.uid-dark code { color: #fff3ea; }
.uid-dark .uid-label { color: #ffc6ae; }
.uid-dark .uid-copy { background: rgba(255, 255, 255, .14); color: #fff; }
.uid-dark::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 50%, transparent 70%); }
.uid-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.uid-line .icon { width: 14px; height: 14px; color: var(--coral); }
.uid-line code { font-weight: 700; letter-spacing: .05em; color: var(--pine); }
.device-card .uid-line { margin: -4px 0 2px; }
.device-hero-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.device-hero-id small { font-size: 12.5px; color: var(--muted-2); }
.ch-id { margin-top: -2px; }
.ch-id .uid-badge { max-width: 100%; }

/* ---------- Sidebar: live network ---------- */
.nav-live { position: relative; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #67d69a; animation: nw-pulse 1.6s ease-out infinite; box-shadow: 0 0 0 0 rgba(103, 214, 154, .5); }

/* ---------- Registration & profile ---------- */
.auth-card.auth-card-wide { width: min(560px, 100%); }
.form-step { display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); }
.form-step span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--peach); font-size: 12px; letter-spacing: 0; }
.form-step::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.profile-fields { display: flex; flex-direction: column; gap: 16px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .icon { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; transition: color .3s, transform .4s var(--ease-spring); }
.input-icon input { padding-left: 44px !important; }
.input-icon:focus-within > .icon { color: var(--coral); transform: scale(1.12); }
.address-box { position: relative; margin: 0; padding: 18px 18px 16px; border: 1.5px dashed var(--line-2); border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(253, 229, 216, .28)); min-width: 0; transition: border-color .4s, box-shadow .4s; }
.address-box:focus-within { border-color: rgba(239, 120, 85, .55); box-shadow: 0 18px 36px -24px rgba(217, 90, 53, .45); }
.address-box legend { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 14.5px; font-weight: 800; color: var(--pine); }
.address-box legend .icon { width: 17px; height: 17px; color: var(--coral); }
.address-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.address-hint .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--gold); flex-shrink: 0; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.profile-banner { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #fff8f2, #fde5d8 60%, #fbecd2); border: 1px solid #fff; box-shadow: var(--shadow); animation: nw-in .7s var(--ease-out) both; }
.profile-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255, 255, 255, .35) 18px 20px); animation: nw-stripe 2.4s linear infinite; }
.profile-banner > div { flex: 1; min-width: 0; }
.profile-banner strong { font-size: 16px; }
.profile-banner p { font-size: 14px; color: var(--muted); }
.pb-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 16px; background: var(--coral); color: #fff; box-shadow: 0 12px 24px -12px var(--coral-deep); animation: float-y 3.2s ease-in-out infinite; }
.profile-banner.is-leaving { animation: view-out .4s forwards; }
.page > .profile-banner { margin-bottom: 0; }

/* ---------- Settings: identity, contact, API keys ---------- */
.settings-network { align-items: start; }
.identity-card { overflow: hidden; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(220, 235, 221, .6)); }
.identity-id { display: flex; }
.identity-links { display: flex; flex-wrap: wrap; gap: 8px; }
.identity-glow { position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(239, 120, 85, .28), transparent 70%); pointer-events: none; animation: nw-glow 5s ease-in-out infinite; }
.contact-form .form-actions { display: flex; justify-content: flex-end; }
.keys-card .card-head { flex-wrap: wrap; gap: 12px; }
.keys-card h3 { display: flex; align-items: center; gap: 8px; }
.keys-card h3 .icon { color: var(--coral); }
.keys-links { display: flex; gap: 8px; flex-wrap: wrap; }
.key-create { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.key-create input { flex: 1 1 220px; min-height: 44px !important; }
.key-create .form-error { flex-basis: 100%; }
.key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.key-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--cream); animation: nw-in .5s var(--ease-out) both; transition: transform .4s var(--ease-spring), opacity .35s; }
.key-row:hover { transform: translateX(4px); }
.key-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.key-row small { color: var(--muted-2); font-size: 12.5px; overflow-wrap: anywhere; }
.key-row.is-leaving { opacity: 0; transform: translateX(30px); }
.key-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--pine); color: #ffd6c2; }
.key-icon .icon { width: 18px; height: 18px; }
.key-usage { margin: 16px 0 0; overflow-x: auto; font-size: 12.5px; }
.secret-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; padding: 14px; border-radius: 18px; background: var(--pine-deep); }
.secret-box code { flex: 1 1 260px; min-width: 0; background: none; color: #ffd6c2; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; }
.secret-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--gold-soft); color: #8f5d16; font-size: 13.5px; font-weight: 600; }
.secret-warn .icon { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }

/* ---------- Wallet: transfer strip ---------- */
.transfer-strip { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 26px; overflow: hidden; isolation: isolate; background: rgba(255, 255, 255, .82); border: 1px solid #fff; box-shadow: var(--shadow); transition: transform .5s var(--ease-spring), box-shadow .4s; }
.transfer-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 140px at 100% 50%, rgba(118, 205, 165, .25), transparent 70%); }
.transfer-strip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.transfer-strip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.transfer-strip small { color: var(--muted); font-size: 13.5px; }
.ts-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(140deg, var(--coral-2), var(--coral-deep)); color: #fff; box-shadow: 0 12px 24px -12px var(--coral-deep); }
.ts-icon .icon { animation: float-y 2.6s ease-in-out infinite; }
.ts-go { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); transition: transform .45s var(--ease-spring), background .3s; }
.transfer-strip:hover .ts-go { transform: translateX(4px); background: var(--peach); }

/* ---------- Transfer page ---------- */
.transfer-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(160px, .8fr); align-items: center; gap: 24px; padding: 32px 36px; border-radius: 34px; color: #f1f5ef;
  background: radial-gradient(420px 300px at 90% 10%, rgba(255, 150, 112, .38), transparent 65%), radial-gradient(500px 360px at 0% 100%, rgba(118, 205, 165, .25), transparent 60%), linear-gradient(140deg, #1b4a3e, var(--pine-deep));
  box-shadow: 0 40px 80px -40px rgba(13, 38, 33, .75); }
.transfer-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at 75% 40%, #000, transparent 70%); animation: grid-pan 18s linear infinite; }
.th-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.th-copy p { color: rgba(238, 243, 236, .76); font-size: 14.5px; }
.th-uid .uid-badge { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); box-shadow: none; }
.th-uid .uid-badge code { color: #fff3ea; }
.th-uid .uid-copy { background: rgba(255, 255, 255, .16); color: #fff; }
.th-balance { display: flex; flex-direction: column; padding: 16px 20px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.th-balance small { color: rgba(238, 243, 236, .7); font-size: 13px; font-weight: 700; }
.th-balance strong { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: #fffaf3; font-variant-numeric: tabular-nums; }
.th-balance span { color: #ffc6ae; font-size: 13px; font-weight: 700; }
.th-art { position: relative; justify-self: center; width: 160px; height: 140px; }
.th-art .mascot { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); animation: bob 4s ease-in-out infinite; }
.th-orbit { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 1.5px dashed rgba(255, 214, 196, .35); animation: nw-orbit 22s linear infinite; }
.th-orbit.o2 { width: 110px; height: 110px; margin: -55px 0 0 -55px; animation-duration: 14s; animation-direction: reverse; }
.th-coin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; animation: nw-coin 3.4s var(--ease-out) infinite; }
.th-coin .cat-mark { width: 100%; height: 100%; }
.th-coin.c1 { --tx: 70px; --ty: -46px; }
.th-coin.c2 { --tx: -76px; --ty: -30px; animation-delay: 1.1s; }
.th-coin.c3 { --tx: 54px; --ty: 52px; animation-delay: 2.2s; }
.transfer-form .card-head { margin-bottom: 4px; }
.transfer-form { display: flex; flex-direction: column; gap: 16px; }
.recipient-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--cream); font-size: 14px; animation: nw-in .4s var(--ease-out) both; }
.recipient-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recipient-card small { color: var(--muted-2); font-size: 12px; font-weight: 700; }
.recipient-card code { background: none; padding: 0; font-size: 12.5px; color: var(--muted); }
.recipient-card.is-ok { background: linear-gradient(120deg, #e9f5ec, #fff); border: 1.5px solid var(--mint-2); }
.recipient-card.is-bad { background: #fde9e5; color: #a8382a; font-weight: 600; }
.recipient-card .icon { width: 17px; height: 17px; flex-shrink: 0; }
.rc-avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--coral-2), var(--coral-deep)); color: #fff; font-weight: 800; }
.rc-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2f8a5d; color: #fff; animation: pop .5s var(--ease-spring) both; }
.rc-check .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--coral); animation: spin .8s linear infinite; flex-shrink: 0; }
.transfer-rules h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.transfer-rules h3 .icon { color: var(--coral); }
.rule-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rule-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--cream); animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
.rule-list li > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 11px; background: #fff; color: var(--coral-deep); box-shadow: var(--shadow-sm); }
.rule-list li .icon { width: 16px; height: 16px; }
.rule-list p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.transfer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.transfer-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.transfer-row:last-child { border-bottom: 0; }
.tr-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px; background: var(--mint); color: var(--mint-ink); transition: transform .45s var(--ease-spring); }
.transfer-row.is-out .tr-icon { background: var(--peach); color: var(--coral-deep); }
.transfer-row:hover .tr-icon { transform: rotate(-10deg) scale(1.08); }
.tr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tr-main strong { font-size: 14.5px; }
.tr-main strong span { font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.tr-main small, .tr-main em { font-size: 12.5px; color: var(--muted-2); font-style: normal; }
.transfer-row > b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Publishing: staking ---------- */
.stake-sum { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; padding: 18px 22px; border-radius: 22px; overflow: hidden; isolation: isolate; color: #f1f5ef; background: linear-gradient(140deg, #1b4a3e, var(--pine-deep)); }
.stake-sum::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 214, 196, .18) 50%, transparent 70%); animation: nw-scan 3.6s var(--ease-io) infinite; }
.stake-sum > div { display: flex; flex-direction: column; min-width: 0; }
.stake-sum small { color: rgba(238, 243, 236, .72); font-weight: 700; font-size: 13px; }
.stake-sum b { font-size: clamp(26px, 3vw, 34px); color: #fffaf3; font-variant-numeric: tabular-nums; }
.stake-sum span { color: #ffc6ae; font-size: 13px; }
.stake-lock { display: grid; place-items: center; flex-shrink: 0; width: 54px; height: 54px; border-radius: 18px; background: rgba(255, 255, 255, .1); color: #ffd6c2; animation: float-y 3s ease-in-out infinite; }
.stake-lock .icon { width: 26px; height: 26px; }
.fund-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fund-option { position: relative; cursor: pointer; --tone: var(--coral); --tone-soft: rgba(239, 120, 85, .16); }
.fund-option input { position: absolute; opacity: 0; pointer-events: none; }
.fund-option input:disabled + .fo-card { opacity: .5; cursor: not-allowed; }
.fo-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); transition: border-color .35s, box-shadow .35s, transform .5s var(--ease-spring); overflow: hidden; }
.fund-option:hover .fo-card { transform: translateY(-3px); box-shadow: var(--shadow); }
.fund-option input:checked + .fo-card { border-color: var(--tone); box-shadow: 0 0 0 4px var(--tone-soft), var(--shadow); }
.fund-option input:focus-visible + .fo-card { outline: 3px solid var(--coral); outline-offset: 2px; }
.fund-option.is-picked .fo-card { animation: mk-bump .5s var(--ease-spring); }
.fund-option input:checked + .fo-card .co-check { background: var(--tone); border-color: var(--tone); color: #fff; transform: scale(1.12); }
.fo-card strong { font-size: 16px; padding-right: 30px; }
.fo-card small { font-size: 13px; color: var(--muted); line-height: 1.55; }
.fo-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--peach); color: var(--coral-deep); font-weight: 800; font-size: 20px; transition: transform .5s var(--ease-spring); }
.fund-option:hover .fo-icon { transform: rotate(-8deg) scale(1.08); }
.fo-icon.fo-rmb { background: var(--gold-soft); color: #94621a; }
.fo-meter { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.fo-track { height: 8px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.fo-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #7fcfa0, #2f8a5d); animation: mk-grow 1s var(--ease-out); }
.fo-track i.is-short { background: linear-gradient(90deg, var(--coral-2), var(--coral-deep)); }
.fo-nums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.fo-nums em { font-style: normal; color: var(--muted-2); }
.fo-nums em.pos { color: var(--mint-ink); font-weight: 700; }
.fo-nums em.neg { color: var(--coral-deep); font-weight: 700; }
.fo-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.fo-hint > span { flex: 1; min-width: 0; }
.fo-hint .icon { width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; }
.fo-yuan { font-size: 22px; font-weight: 800; color: #94621a; font-variant-numeric: tabular-nums; }
.rmb-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--cream); }
.rmb-fields.is-in { animation: nw-in .45s var(--ease-out) both; }
.wiz-step > .fine-print { margin-top: 14px; }

/* The step bar follows the number of steps (admins have no staking step). */
.wiz-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.wiz-line { left: calc(50% / var(--n, 4)); right: calc(50% / var(--n, 4)); }

/* ---------- Campaigns: deposit and stake ---------- */
.camp-alert.is-deposit { background: var(--peach); color: var(--coral-deep); }
.camp-deposit { animation: nw-in .6s var(--ease-out) both; }
.deposit-panel { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: 26px; overflow: hidden; isolation: isolate; background: rgba(255, 255, 255, .9); border: 1.5px solid #ffd6c2; box-shadow: var(--shadow); }
.deposit-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(253, 229, 216, .45) 22px 24px); animation: nw-stripe 3s linear infinite; }
.dp-head { display: flex; align-items: center; gap: 14px; }
.dp-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dp-head small { color: var(--muted); font-size: 13.5px; }
.dp-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 16px; background: var(--coral); color: #fff; animation: nw-pulse 2s ease-out infinite; }
.dp-amount { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--coral-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deposit-panel .order-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.deposit-panel .order-facts dd { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.deposit-panel .uid-copy { width: 26px; height: 26px; }
.wiz-success .deposit-panel { width: min(640px, 100%); text-align: left; }
.ws-summary .uid-badge { margin: 4px 0; }
.cs-full { grid-column: 1 / -1; }
.stake-tile { gap: 10px; }
.stake-tile.is-free b { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--mint-ink); }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-head > div { display: flex; flex-direction: column; }
.st-head b em { font-size: 13px; }
.st-bar { display: flex; height: 12px; border-radius: 999px; background: var(--cream-2); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: var(--w); animation: mk-grow 1.1s var(--ease-out); }
.st-used { background: linear-gradient(90deg, var(--coral-2), var(--coral-deep)); }
.st-left { background: repeating-linear-gradient(-45deg, #7fcfa0 0 8px, #6cc392 8px 16px); background-size: 40px 100%; animation: mk-grow 1.1s var(--ease-out), nw-stripe 1.6s linear infinite !important; }
.st-back { background: var(--sky); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-dot-used { background: var(--coral); }
.st-dot-left { background: #6cc392; }
.st-dot-back { background: var(--sky); }
.st-note { font-size: 12.5px !important; font-weight: 500 !important; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .transfer-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .th-art { display: none; }
}
@media (max-width: 960px) {
  .deposit-panel .order-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .address-grid, .fund-pick { grid-template-columns: minmax(0, 1fr); }
  .address-grid .span-2 { grid-column: auto; }
  .transfer-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; border-radius: 28px; }
  .transfer-strip { flex-wrap: wrap; }
  .transfer-strip .uid-badge { order: 3; flex-basis: 100%; }
  .profile-banner { flex-wrap: wrap; }
  .dp-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .dp-amount { grid-column: 1 / -1; }
  .uid-badge { flex-wrap: wrap; row-gap: 2px; border-radius: 18px; }
  .uid-badge code { font-size: 13px; letter-spacing: .03em; overflow: visible; text-overflow: clip; }
  .device-hero-id .uid-label { flex-basis: 100%; }
  .uid-hero code { font-size: 15px; }
  .key-row { flex-wrap: wrap; }
}
