@font-face { font-family: "SF Pro"; src: url(sf-pro-var-latin-cyrillic.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
    --bg: #1c1c1e;
    --card: #2c2c2e;
    --well: #3a3a3c;
    --edge: #48484a;
    --line: rgba(255, 255, 255, .07);
    --text: #f5f5f7;
    --sub: #c7c7cc;
    --hint: #8e8e93;
    --ink: #ff453a;
    --ink-2: #ff6961;
    --ink-soft: rgba(255, 69, 58, .14);
    --ok: #32d74b;
    --ok-soft: rgba(50, 215, 75, .14);
    --warn: #ffd60a;
    --cta-off: color-mix(in srgb, #fafafa 11%, #2c2c2e);
    --cta-off-ink: color-mix(in srgb, #fafafa 40%, #2c2c2e);
    --r-l: 24px;
    --r-m: 18px;
    --r-s: 14px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.32, .72, 0, 1);
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
    min-height: 100dvh; overflow-x: hidden;
    font: 400 15px/1.3 -apple-system, "SF Pro", "Roboto", sans-serif;
    -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { flex: none; }
.st { width: 18px; height: 18px; color: var(--ink); }
/* живые значки (звезда баланса, GRAM): свой экземпляр lottie внутри span */
.live { display: inline-block; flex: none; line-height: 0; }
.live svg { width: 100% !important; height: 100% !important; }
.gi { width: 18px; height: 18px; color: var(--text); }

.glow {
    position: absolute; inset: 0 0 auto; height: 380px; z-index: -1; pointer-events: none; overflow: hidden;
    background: radial-gradient(120% 70% at 50% -10%, rgba(255, 69, 58, .16), transparent 62%),
                linear-gradient(#26262a, transparent 80%);
}

.app { max-width: 520px; margin: 0 auto; padding: 0 16px calc(var(--safe-b) + 108px); }

/* ---------- шапка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 6px; }
.me {
    display: flex; align-items: center; gap: 8px; height: 42px; padding: 4px 16px 4px 4px; min-width: 0;
    border-radius: 999px; background: rgba(44, 44, 46, .8); border: 1px solid var(--edge);
    transition: transform .15s var(--ease);
}
.me:active, .bal:active { transform: scale(.96); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--well) center / cover no-repeat; flex: none; display: grid; place-items: center; color: var(--hint); font-weight: 700; font-size: 14px; overflow: hidden; }
.ava.big { width: 84px; height: 84px; font-size: 32px; }
.me-name { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.bal {
    display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 12px;
    border-radius: 999px; background: rgba(44, 44, 46, .8); border: 1px solid var(--edge);
    transition: transform .15s var(--ease);
}
.bal .st { width: 24px; height: 24px; }
.bal b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .3s; }
.bal.is-up b, .pf-bal.is-up span { color: var(--ink); } .bal.is-down b, .pf-bal.is-down span { color: #b4b4ba; }
.bal-plus { width: 32px; height: 32px; border-radius: 50%; background: var(--well); display: grid; place-items: center; }
.bal-plus svg { width: 18px; height: 18px; }
.bal.bump b, .pf-bal.bump #pfBal { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }

.maint-bar { margin: 6px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 214, 10, .12); color: var(--warn); font-size: 13px; text-align: center; }

/* ---------- виды ---------- */
.view { display: none; }
.view.is-on { display: block; }
/* вход вкладки как в StaticUP: блоки поднимаются по очереди */
.view.is-on:not(.from-right) > * { animation: rise .4s var(--ease) both; }
.view.is-on > *:nth-child(2) { animation-delay: .04s; }
.view.is-on > *:nth-child(3) { animation-delay: .08s; }
.view.is-on > *:nth-child(4) { animation-delay: .12s; }
.view.is-on > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.view.is-on.from-right { animation: push-in .3s var(--ease); }
@keyframes push-in { from { opacity: 0; transform: translateX(24px); } }

.hero-h { padding: 14px 2px 12px; }
.hero-h h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.hero-h p { margin: 6px 0 0; color: var(--hint); font-size: 14px; }
.hero-h.small h1 { font-size: 26px; }

.card { background: var(--card); border-radius: var(--r-l); }
.block { padding: 14px 14px 10px; margin-top: 12px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 10px; }
.sec-h b { font-size: 17px; font-weight: 700; }
.hint { color: var(--hint); font-size: 13px; }
.link { color: var(--ink); font-size: 14px; font-weight: 600; }

/* лента сделок */
.feed { margin-bottom: 14px; }
.feed .sec-h { margin-bottom: 8px; }
.feed-strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x proximity; }
.fd { flex: none; width: 124px; scroll-snap-align: start; padding: 6px; border-radius: var(--r-m); background: var(--card); text-align: left; transition: transform .15s var(--ease); }
.fd:active { transform: scale(.97); }
.fd .art { height: 92px; border-radius: 13px; }
.fd b { display: block; margin: 7px 4px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd .pr { margin: 3px 4px 2px; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.fd .pr .st { width: 14px; height: 14px; }
.fd .pr em { margin-left: auto; color: var(--hint); font-weight: 500; font-style: normal; font-size: 11px; white-space: nowrap; }

/* инструменты */
.tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--card); color: var(--hint); }
.search svg { width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.search input::placeholder { color: var(--hint); }
.search input::-webkit-search-cancel-button { display: none; }
.seg { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--card); }
.seg button { flex: 1; height: 34px; border-radius: 10px; color: var(--hint); font-weight: 600; font-size: 14px; transition: color .2s, background-color .2s; }
.seg button.is-on { background: var(--well); color: var(--text); }
.seg.wide { margin: 12px 0; }

/* сетка коллекций */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc { position: relative; padding: 6px 6px 10px; border-radius: var(--r-l); background: var(--card); text-align: left; transition: transform .15s var(--ease); animation: card-in .35s var(--ease) both; }
.cc:active { transform: scale(.97); }
@keyframes card-in { from { opacity: 0; transform: scale(.96); } }
.cc .art { aspect-ratio: 1 / 1; border-radius: 19px; }
.cc .nm { margin: 9px 6px 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .px { display: inline-flex; align-items: center; gap: 5px; margin: 6px 4px 0; padding: 5px 10px 5px 7px; border-radius: 999px; background: var(--well); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.cc .px.none { color: var(--hint); font-weight: 600; padding-left: 10px; }
.cc .meta { margin: 6px 6px 0; color: var(--hint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .tagv { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(28, 28, 30, .78); font-size: 12px; font-weight: 700; color: var(--ok); }

/* картинка подарка / NFT */
.art { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 42%, #48484a, #303033 72%); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art img.stk { inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); }
.art .num { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 11px; font-weight: 700; color: #fff; }
.skel { background: linear-gradient(100deg, #2c2c2e 30%, #353538 50%, #2c2c2e 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.cc.skel { height: 236px; }

/* ---------- коллекция ---------- */
.coll-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 12px; }
.coll-top b { font-size: 19px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; transition: transform .15s var(--ease); }
.round:active { transform: scale(.92); }
.round svg { width: 22px; height: 22px; }
.round.ghost { background: none; }
.coll-hero { padding: 10px; }
.coll-art { height: 200px; border-radius: 19px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255, 69, 58, .22), transparent 60%), radial-gradient(circle at 50% 42%, #48484a, #2a2a2d 75%); overflow: hidden; }
.coll-art .lot { width: 168px; height: 168px; }
.coll-art img { width: 150px; height: 150px; object-fit: contain; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.kpi { padding: 10px 12px; border-radius: 16px; background: var(--well); min-width: 0; }
.kpi em { display: block; color: var(--hint); font-style: normal; font-size: 12px; }
.kpi b { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi b .st { width: 17px; height: 17px; }
.kpi.hot { background: var(--ink-soft); }
.kpi.hot em { color: var(--ink-2); }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.cta {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; width: 100%;
    border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 17px;
    transition: transform .15s var(--ease), background-color .2s, opacity .2s;
}
.cta { position: relative; overflow: hidden; }
.cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; pointer-events: none;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.06) 34%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.06) 66%, transparent 100%);
    transform: translateX(-160%); animation: sheen 4.4s linear infinite;
}
.cta.alt::after, .cta.ghost::after, .cta:disabled::after { display: none; }
@keyframes sheen { 0% { transform: translateX(-160%); } 26%, 100% { transform: translateX(340%); } }
.cta svg { width: 20px; height: 20px; }
.cta:active:not(:disabled) { transform: scale(.97); }
.cta.alt { background: var(--card); color: var(--ink); }
.cta.ghost { background: var(--well); color: var(--text); }
.cta:disabled { background: var(--cta-off); color: var(--cta-off-ink); }
.cta.busy { pointer-events: none; opacity: .75; }
.cta .st { width: 20px; height: 20px; color: currentColor; }

/* стакан */
.book { display: flex; flex-direction: column; gap: 4px; }
.lvl { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; animation: card-in .3s var(--ease) both; }
.lvl .bar { position: absolute; inset: 0; background: var(--ink-soft); border-radius: 12px; transform-origin: right; transition: transform .4s var(--ease); }
.lvl.best .bar { background: rgba(255, 69, 58, .24); }
.lvl > :not(.bar) { position: relative; }
.lvl .p { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; }
.lvl .p .st { width: 15px; height: 15px; }
.lvl .n { margin-left: auto; color: var(--sub); font-size: 14px; font-weight: 600; }
.lvl .me-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.book-h { display: flex; justify-content: space-between; padding: 0 12px 4px; color: var(--hint); font-size: 12px; }
.empty { padding: 18px 10px 14px; text-align: center; color: var(--hint); font-size: 14px; }
.empty b { display: block; color: var(--sub); font-size: 15px; margin-bottom: 4px; }

/* строки */
.rows { display: flex; flex-direction: column; }
.rows.lone { gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; min-height: 58px; }
.rows:not(.lone) .row + .row { box-shadow: inset 0 1px 0 var(--line); }
.rows.lone .row { padding: 10px 12px 10px 10px; border-radius: var(--r-m); background: var(--card); animation: card-in .3s var(--ease) both; }
.row .art { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.row .art img.stk { inset: 10%; width: 80%; height: 80%; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx em { display: block; margin-top: 2px; color: var(--hint); font-size: 13px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { display: flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .amt .st { width: 15px; height: 15px; }
.row .amt.plus { color: var(--ok); }
.row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row .ln { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; }
.row .ln .chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.row .tx > b + .ln { margin-top: 4px; }
.row .when { flex: none; color: var(--hint); font-size: 12px; font-style: normal; white-space: nowrap; }
.row-art { flex: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--well); color: var(--sub); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.red { background: var(--ink-soft); color: var(--ink-2); }
.chip svg { width: 13px; height: 13px; }
.x-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--well); display: grid; place-items: center; flex: none; color: var(--sub); transition: transform .15s var(--ease); }
.x-btn:active { transform: scale(.9); }
.x-btn svg { width: 16px; height: 16px; }

.sum { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 6px; }
.sum div { text-align: center; }
.sum div + div { box-shadow: inset 1px 0 0 var(--line); }
.sum b { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sum b .st { width: 19px; height: 19px; }
.sum em { display: block; margin-top: 3px; color: var(--hint); font-style: normal; font-size: 13px; }

/* инвентарь */
.wide-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; margin-bottom: 12px; text-align: left; border-radius: var(--r-m); transition: transform .15s var(--ease); }
.wide-btn:active { transform: scale(.98); }
.wb-i { width: 44px; height: 44px; border-radius: 13px; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.wb-i svg { width: 22px; height: 22px; }
.wb-t { flex: 1; min-width: 0; }
.wb-t b { display: block; font-size: 16px; }
.wb-t em { display: block; color: var(--hint); font-style: normal; font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 18px; height: 18px; color: var(--hint); }
.arm { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: var(--r-m); background: var(--ink-soft); }
.arm .art { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.arm .tx { flex: 1; min-width: 0; }
.arm .tx b { display: block; font-size: 15px; }
.arm .tx em { display: block; color: var(--ink-2); font-style: normal; font-size: 13px; margin-top: 2px; }
.nfts .nc { padding: 6px 6px 10px; border-radius: var(--r-l); background: var(--card); text-align: left; transition: transform .15s var(--ease); animation: card-in .35s var(--ease) both; }
.nfts .nc:active { transform: scale(.97); }
.nc .art { aspect-ratio: 1 / 1; border-radius: 19px; }
.nc .nm { margin: 9px 6px 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc .sb { margin: 3px 6px 0; color: var(--hint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc .px { display: inline-flex; align-items: center; gap: 5px; margin: 7px 4px 0; padding: 5px 10px 5px 7px; border-radius: 999px; background: var(--well); font-weight: 700; font-size: 14px; }
.nc .px.none { color: var(--hint); font-weight: 600; padding-left: 10px; }
.nc .px.lock { background: var(--ink-soft); color: var(--ink-2); padding-left: 8px; }
.nc .px.lock svg { width: 14px; height: 14px; }
.nothing { grid-column: 1 / -1; padding: 34px 20px; text-align: center; color: var(--hint); }
.nothing .lot { width: 110px; height: 110px; margin: 0 auto 10px; }
.nothing .lot img { width: 100%; height: 100%; object-fit: contain; }
.nothing b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* профиль */
.pf { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 18px; margin-top: 8px; }
.pf-name { margin-top: 12px; font-size: 22px; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-bals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pf-bal { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--well); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; transition: transform .15s var(--ease); }
.pf-bal:active { transform: scale(.96); }
.pf-bal span { transition: color .3s; }
.pf-bal .st { width: 26px; height: 26px; }
.pf-bal.gram { gap: 6px; font-size: 15px; font-weight: 700; color: var(--sub); }
.pf-bal.gram .gi { width: 24px; height: 24px; }
.pf-bal.gram em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--hint); }
.tabs2 .gi { width: 16px; height: 16px; color: currentColor; }
.pf-sub { margin-top: 8px; color: var(--hint); font-size: 13px; }
.foot-note { margin: 16px 6px 0; color: var(--hint); font-size: 12px; line-height: 1.45; text-align: center; }

/* ---------- док ---------- */
/* таббар StaticUP: плоская капсула, активная вкладка — плашка, что переезжает по --i */
.dock {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(var(--safe-b) + 12px); margin-inline: auto;
    width: min(calc(100% - 24px), 420px); height: 64px; padding: 4px; display: flex; gap: 4px;
    border-radius: 999px; background: #1c1c1e; overflow: hidden; isolation: isolate;
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
/* 4 вкладки: слот = (100% − 8 паддинга − 3×4 зазора) / 4, плашка на 6px шире слота */
.dock::after {
    content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 1px;
    width: calc((100% - 8px - 12px) / 4 + 6px); border-radius: 999px; background: rgba(255,255,255,.08);
    transform: translateX(calc(var(--i, 0) * ((100% - 6px) + 4px))); transition: transform .4s var(--spring);
}
.tab { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 999px; color: #b9b9be; font-size: 10.5px; font-weight: 560; line-height: 13px; letter-spacing: .01em; transition: color .2s; }
.tab svg { width: 26px; height: 26px; transition: transform .25s var(--ease); }
.tab span { font-size: 10.5px; font-weight: inherit; }
.tab:active svg { transform: scale(.9); }
.tab.is-on { color: var(--ink); font-weight: 650; }
.tab.is-on svg { animation: tab-pop .35s var(--ease); }
@keyframes tab-pop { 40% { transform: scale(1.12); } }
body::after {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--safe-b) + 110px); z-index: 19; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.55) 50%, transparent);
}
.badge { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 11px/17px -apple-system, "SF Pro", sans-serif; font-style: normal; text-align: center; }

/* ---------- шторка ---------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .62); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet {
    position: fixed; left: 50%; bottom: calc(8px + var(--safe-b)); z-index: 31; width: min(calc(100% - 16px), 576px); max-height: calc(100dvh - 40px);
    display: flex; flex-direction: column; padding: 10px 0 0;
    background: #161618; border: 1px solid var(--line); border-radius: 34px;
    transform: translate(-50%, calc(100% + 16px)); transition: transform .3s var(--spring); will-change: transform;
}
.sheet.is-on { transform: translate(-50%, 0); transition-duration: .5s; }
.sheet.drag { transition: none; }
.grab { width: 36px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.4); margin: 0 auto 6px; flex: none; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: #48484a; display: grid; place-items: center; color: var(--sub); z-index: 2; }
.sheet-x svg { width: 16px; height: 16px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; }
.sh-art { width: 112px; height: 112px; margin: 2px auto 0; }
.sh-art img { width: 100%; height: 100%; object-fit: contain; }
.sh-art.sm { width: 84px; height: 84px; }
.sh-t { margin: 8px 40px 2px; text-align: center; font-size: 21px; font-weight: 800; line-height: 1.2; }
.sh-s { margin: 4px 8px 14px; text-align: center; color: var(--hint); font-size: 14px; line-height: 1.4; }
.amount { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 96px; border-radius: 22px; background: var(--card); }
.amount input { width: 4ch; min-width: 2ch; max-width: 70%; padding: 0; border: 0; outline: 0; background: none; text-align: center; font-size: 46px; font-weight: 700; font-variant-numeric: tabular-nums; caret-color: var(--ink); }
.amount .st { width: 30px; height: 30px; }
.amount.bad input { color: var(--ink-2); }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.presets button { min-height: 44px; padding: 4px 6px; border-radius: 18px; background: var(--card); font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 4px; row-gap: 0; line-height: 1.15; font-variant-numeric: tabular-nums; transition: background-color .2s, transform .15s var(--ease); }
.presets button:active { transform: scale(.96); }
.presets button.is-on { background: var(--ink-soft); color: var(--ink-2); }
.presets button .st { width: 14px; height: 14px; }
.presets button em { flex-basis: 100%; text-align: center; font-style: normal; color: var(--hint); font-weight: 600; font-size: 11px; }
.presets button.is-on em { color: var(--ink-2); }
.lines { margin: 14px 0 0; padding: 4px 14px; border-radius: 18px; background: var(--card); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; font-size: 15px; }
.line + .line { box-shadow: inset 0 1px 0 var(--line); }
.line span { color: var(--hint); }
.line b { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.line b .st { width: 15px; height: 15px; }
.line b.red { color: var(--ink-2); }
.line b.ok { color: var(--ok); }
.stepper { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--well); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.stepper button:active { background: #4a4a4d; }
.stepper button svg { width: 16px; height: 16px; }
.stepper b { min-width: 24px; text-align: center; justify-content: center; }
.sh-cta { margin-top: 14px; }
.sh-note { margin: 10px 6px 0; color: var(--hint); font-size: 13px; text-align: center; line-height: 1.4; }
.sh-note.red { color: var(--ink-2); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.pk { padding: 4px 4px 8px; border-radius: 18px; background: var(--card); border: 2px solid transparent; text-align: left; transition: border-color .2s, transform .15s var(--ease); }
.pk:active { transform: scale(.97); }
.pk.is-on { border-color: var(--ink); }
.pk .art { aspect-ratio: 1 / 1; border-radius: 14px; }
.pk b { display: block; margin: 6px 4px 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk em { display: block; margin: 1px 4px 0; color: var(--hint); font-size: 11px; font-style: normal; }
.steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 10px 6px 10px 44px; counter-increment: s; font-size: 15px; line-height: 1.35; }
.steps li::before { content: counter(s); position: absolute; left: 4px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-soft); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps li b { color: var(--text); }
.steps li em { display: block; color: var(--hint); font-style: normal; font-size: 13px; margin-top: 2px; }
.tabs2 { display: flex; gap: 2px; padding: 3px; margin: 0 0 12px; border-radius: 13px; background: var(--card); }
.tabs2 button { flex: 1; height: 34px; border-radius: 10px; color: var(--hint); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs2 button.is-on { background: var(--well); color: var(--text); }
.tabs2 button:disabled { opacity: .5; }
.tabs2 button i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 999px; background: var(--well); color: var(--hint); }
.big-nft { width: 200px; height: 200px; margin: 4px auto 0; border-radius: 26px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.done-art { width: 132px; height: 132px; margin: 6px auto 0; }

/* ---------- тост ---------- */
.toast {
    position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 50; max-width: calc(100% - 32px);
    padding: 10px 18px; border-radius: 999px; background: #3a3a3c; border: 1px solid var(--edge); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    font-size: 14px; font-weight: 600; text-align: center;
    transform: translate(-50%, -30px); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .2s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast.err { color: var(--ink-2); }
.toast.ok { color: var(--ok); }

/* ---------- техработы ---------- */
.maint { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.maint-art { width: 150px; height: 150px; }
.maint b { margin-top: 14px; font-size: 21px; font-weight: 800; }
.maint p { margin: 8px 0 0; color: var(--hint); font-size: 15px; max-width: 300px; }

@media (min-width: 400px) {
    .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .kpi b { font-size: 16px; }
}
@media (max-width: 340px) {
    .app { padding-left: 12px; padding-right: 12px; }
    .hero-h h1 { font-size: 24px; }
    .cc .nm, .nc .nm { font-size: 14px; }
    .tab span { font-size: 10px; }
    .amount input { font-size: 40px; }
    .me-name { max-width: 26vw; }
    .duo .cta { padding: 0 10px; font-size: 16px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
