/* Сейф Гарант — оформление по оригинальному приложению владельца (видео и скриншоты SafeGarant_Bot). */
:root {
  --bg: #0e1513; --surface: #17201d; --field: #19221f; --line: #26322e; --text: #eef3f1; --muted: #87938e; --faint: #4c5a54;
  --green: #2dbd8b; --green-soft: #17312700; --soft: #162b23; --on-green: #08201a; --gold: #d3a552; --gold-soft: #2f2a19;
  --red: #e2705f; --red-soft: #33201d; --chip: #202b27; --seg: #121a17; --seg-on: #273530; --tab-bg: #141d1a;
  --ease: cubic-bezier(.22,.9,.24,1); --spring: cubic-bezier(.34,1.4,.5,1);
  --wide: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 4.75rem;
  color-scheme: dark;
}
:root { --green-soft: #173529; }
html { font-size: clamp(14px, 4.07vw, 17.5px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.4;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; flex-shrink: 0; }

#viewport { position: fixed; inset: 0; overflow: hidden; }
.page { position: absolute; inset: 0; isolation: isolate; overflow-y: auto; overflow-x: hidden; background: var(--bg);
  padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.page.root { padding-bottom: calc(var(--tabbar-h) + 6.5rem + env(safe-area-inset-bottom)); }
.page.under { pointer-events: none; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.stack.g8 { gap: .5rem; } .stack.g10 { gap: .625rem; } .stack.g14 { gap: .875rem; } .stack.g16 { gap: .875rem; } .stack.g18 { gap: 1rem; }

.h1, .h2, .h3, .h4 { font-family: var(--wide); font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.h1 { font-size: 1.5rem; margin: .25rem 0 .375rem; } .h2 { font-size: 1.5rem; margin: .25rem 0 .25rem; }
.h3 { font-size: 1.1875rem; } .h4 { font-size: 1rem; margin-top: .375rem; }
.label { font: 500 .8125rem/1.4 var(--body); color: var(--muted); }
.cap { font: 400 .8125rem/1.45 var(--body); color: var(--muted); } .cap12 { font: 400 .75rem/1.4 var(--body); color: var(--muted); }
.cap11 { font: 400 .6875rem/1.36 var(--body); color: var(--muted); }
.center { text-align: center; }
.money { font-family: var(--wide); font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.money small { font: 700 .6875rem var(--body); color: var(--muted); }
.head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.5rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.row > .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card { background: var(--surface); border-radius: 1.25rem; padding: 1rem; box-shadow: 0 10px 24px -18px #000c; }
.card.r14 { border-radius: 1rem; }
.tap { transition: transform .35s var(--spring), background-color .2s; }
.tap:active { transform: scale(.97); background-color: #1d2824; transition-duration: .08s; }

/* кнопки */
.btn, .btn-add, .btn-mini, .cta, .fab { position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), box-shadow .3s, background-color .3s, color .3s, opacity .2s; }
.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 3.125rem; padding: .875rem 1rem;
  border-radius: 1rem; background: var(--green); color: var(--on-green); font: 800 .9375rem/1.3 var(--body); box-shadow: 0 10px 26px -10px #2dbd8b99; }
.btn svg, .btn-add svg { width: 1.125rem; height: 1.125rem; }
.btn.h48 { min-height: 2.875rem; font-size: .875rem; border-radius: .875rem; }
.btn.soft { background: var(--green-soft); color: var(--green); box-shadow: none; }
.btn.text { background: none; box-shadow: none; color: var(--muted); font-weight: 600; min-height: 2.75rem; }
.btn.text.red { color: var(--red); }
.btn:disabled { background: #1f5a45; color: #0c2a20; box-shadow: none; pointer-events: none; }
.btn.busy { opacity: .65; pointer-events: none; }
.btn.busy::after { content: ""; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
.btn-add { display: inline-flex; align-items: center; gap: .375rem; height: 2.375rem; padding: 0 .875rem; border-radius: .875rem;
  background: var(--green); color: var(--on-green); font: 800 .875rem/1 var(--body); white-space: nowrap; }
.btn-mini { height: 2.125rem; padding: 0 .625rem; border-radius: .75rem; background: var(--green-soft); color: var(--green); font: 700 .8125rem/1 var(--body); white-space: nowrap; flex-shrink: 0; }
.btn:active, .btn-add:active, .btn-mini:active, .cta:active, .fab:active { transform: scale(.955); transition-duration: .08s; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; transform: scale(0); animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.fab { position: fixed; right: 1rem; z-index: 15; bottom: calc(var(--tabbar-h) + 1.25rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .625rem;
  height: 3.25rem; padding: 0 1.375rem 0 1.125rem; border-radius: 1.75rem; background: var(--green); color: var(--on-green); font: 800 .9375rem var(--body);
  box-shadow: 0 12px 32px -6px #2dbd8b80; }
.fab svg { width: 1.25rem; height: 1.25rem; }
.fab.hidden { transform: translateY(1.5rem) scale(.9); opacity: 0; pointer-events: none; }
.spacer { height: .25rem; }

.pill { display: inline-flex; align-items: center; gap: .25rem; height: 1.625rem; padding: 0 .75rem; border-radius: 999px; font: 700 .75rem/1 var(--body);
  white-space: nowrap; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.pill.gold { background: var(--gold-soft); color: var(--gold); } .pill.red { background: var(--red-soft); color: var(--red); }
.pill.gray { background: var(--chip); color: var(--muted); } .pill.white { background: var(--bg); color: var(--gold); }
.pill svg { width: .8125rem; height: .8125rem; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 3.125rem; padding: .25rem; background: var(--seg); border-radius: 1rem; }
.seg::before { content: ""; position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc((100% - .5rem) / var(--n, 2)); border-radius: .8125rem;
  background: var(--seg-on); transform: translateX(calc(100% * var(--i, 0))); transition: transform .4s var(--spring); }
.seg button { position: relative; font: 700 .875rem/1 var(--body); color: var(--muted); transition: color .25s; }
.seg button.on { color: var(--text); }

/* баннер */
.banner { margin: 0 -1rem; }
.banner .track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.banner .track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 11.5rem; border-radius: 1.5rem; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always;
  padding: 1.125rem; display: flex; flex-direction: column; align-items: flex-start; color: #fff; }
.slide.gold { background: linear-gradient(120deg, #b5883a, #9d7430 60%, #86642a); }
.slide.green { background: linear-gradient(120deg, #0f7356, #0d654c 60%, #0a503d); }
.slide.dark { background: linear-gradient(120deg, #1e382d, #182c25 60%, #13221d); }
.slide .tag { font: 800 .6875rem/1 var(--body); letter-spacing: .08em; padding: .3125rem .625rem; border-radius: 999px; background: #ffffff2b; }
.slide .ttl { font: 700 1.1875rem/1.3 var(--wide); letter-spacing: -.02em; margin-top: .75rem; position: relative; z-index: 1; }
.slide .sub { font: 400 .875rem/1.45 var(--body); color: #ffffffc2; max-width: 68%; margin: .375rem 0 .875rem; position: relative; z-index: 1; }
.slide .cta { margin-top: auto; height: 2.25rem; padding: 0 1.125rem; border-radius: 999px; background: #f3f5f4; color: #101614; font: 800 .875rem var(--body); z-index: 1; }
.rings { position: absolute; right: -.75rem; top: 1.75rem; width: 9rem; height: 9rem; pointer-events: none; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #ffffff40; animation: pulse 4s ease-in-out infinite; }
.rings i:nth-child(2) { inset: 1.625rem; animation-delay: .35s; }
.rings i:nth-child(3) { inset: 3.4rem; border: 0; background: #ffffff45; animation-delay: .7s; }
@keyframes pulse { 50% { transform: scale(1.07); opacity: .65; } }
.dots { display: flex; justify-content: center; align-items: center; gap: .75rem; margin: .875rem 0 .25rem; height: .5rem; }
.dots i { width: .375rem; height: .375rem; border-radius: .25rem; background: #23513f; transition: width .35s var(--spring), background .3s; }
.dots i.on { width: 1.375rem; background: var(--green); }

/* список сделок */
.deal-item { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.deal-item .l { flex: 1; min-width: 0; } .deal-item .t { font: 700 1rem/1.35 var(--body); }
.deal-item .s { font: 400 .8125rem/1.4 var(--body); color: var(--muted); margin-top: .1875rem; }
.deal-item .r { display: flex; flex-direction: column; align-items: flex-end; gap: .4375rem; }

/* карточка сделки */
.hero-deal { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem 1.25rem; }
.seal { width: 11rem; height: 11rem; }
.seal svg { width: 100%; height: 100%; }
.seal .ticks { transform-origin: 100px 100px; animation: spin 90s linear infinite; }
.seal .arc { transition: stroke-dashoffset 1.1s var(--ease); }
.seal .shackle { transform: translateY(-3px); transition: transform .6s var(--spring); }
.seal.locked .shackle { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 1.125rem 0 1rem; font: 600 .8125rem var(--body); color: var(--muted); }
.steps span::before { content: ""; display: inline-block; width: .4375rem; height: .4375rem; border-radius: 50%; background: #2c3833; margin-right: .4375rem; vertical-align: .0625rem; }
.steps .done { color: var(--text); } .steps .done::before { background: var(--green); }
.steps .now { color: var(--text); } .steps .now::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.deal-name { font: 800 1.125rem/1.35 var(--body); text-align: center; overflow-wrap: anywhere; }
.big-money { font: 700 clamp(1.75rem, 8.6vw, 2.125rem)/1.25 var(--wide); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: .125rem 0 .625rem; text-align: center; overflow-wrap: anywhere; }
.big-money small { font-size: .52em; color: var(--muted); }
.block-title { font: 700 1rem/1.35 var(--wide); letter-spacing: -.02em; margin: 0 0 .75rem; }
.link-box { margin-bottom: .75rem; padding: .875rem; border-radius: .875rem; background: #121a17; font: 500 .8125rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.btns2 { display: flex; gap: .5rem; } .btns2 .btn { width: auto; flex: 1; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font: 400 .875rem/1.4 var(--body); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); } .kv span:last-child { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv.total span:last-child { color: var(--green); }
.cond { font: 400 .875rem/1.5 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .25rem; }
.stars-pick { display: flex; gap: .5rem; justify-content: center; margin: .625rem 0 .75rem; } .stars-pick svg { width: 2rem; height: 2rem; }

/* успех */
.success { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 1.5rem; }
.success svg.mark { width: 4.25rem; height: 4.25rem; margin-bottom: 1.125rem; }
.success .circ { stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .8s var(--ease) .1s forwards; }
.success .tick { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .45s var(--ease) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success p { margin: .25rem 1rem 1.25rem; color: var(--muted); font: 400 .9375rem/1.45 var(--body); }

/* формы */
.field { display: flex; flex-direction: column; gap: .4375rem; margin-top: .375rem; }
.input { display: flex; align-items: center; gap: .625rem; min-height: 3.25rem; padding: .875rem 1rem; border-radius: 1rem; background: var(--field);
  border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #2dbd8b2e; }
.input input, .input textarea, .input select { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; color: var(--text); padding: 0; resize: none;
  font: 500 max(16px, .9375rem)/1.35 var(--body); -webkit-appearance: none; appearance: none; }
.input textarea { min-height: 6rem; }
.input ::placeholder { color: #5c6964; }
.input .suffix { font: 700 .875rem var(--body); color: var(--muted); }
.input svg { width: 1.25rem; height: 1.25rem; color: var(--muted); }
.hint { font: 400 .8125rem/1.45 var(--body); color: var(--muted); }
.calc { padding: .875rem 1rem; border-radius: 1rem; background: var(--soft); color: var(--green); font: 500 .875rem/1.5 var(--body); animation: rise .35s var(--ease); }
.calc b { font-weight: 800; }
.chips { display: flex; gap: .5rem; overflow-x: auto; margin: 0 -1rem; padding: .125rem 1rem; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .3125rem; height: 2rem; padding: 0 .875rem; border-radius: 999px; flex-shrink: 0; background: var(--surface); color: var(--muted);
  font: 700 .8125rem/1 var(--body); white-space: nowrap; transition: background-color .25s, color .25s, transform .35s var(--spring); }
.chip.on { background: var(--green); color: var(--on-green); } .chip.sort { background: var(--green-soft); color: var(--green); } .chip:active { transform: scale(.94); }
.chip svg { width: .875rem; height: .875rem; }

/* соглашение */
.terms h2 { font: 700 1.25rem/1.4 var(--wide); letter-spacing: -.02em; margin: 0 0 .75rem; }
.terms h3 { font: 800 1.0625rem/1.4 var(--body); margin: 1.5rem 0 .625rem; }
.terms p, .terms li { font: 400 .9375rem/1.55 var(--body); margin: 0 0 .75rem; color: #dbe3e0; }
.terms ul { padding-left: 1.25rem; margin: 0 0 .75rem; }
.terms .muted { color: var(--muted); }
.terms .note { background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: .75rem; padding: .75rem .875rem; font-size: .875rem; }
.sticky-ok { position: sticky; bottom: calc(-2rem - env(safe-area-inset-bottom)); padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 40%); }

/* спор */
.frozen { display: flex; align-items: center; gap: .625rem; padding: .875rem 1rem; border-radius: 1rem; background: var(--red-soft); }
.frozen svg { width: 1.25rem; height: 1.25rem; color: var(--red); } .frozen b { display: block; font: 800 .875rem/1.4 var(--body); color: var(--red); } .frozen span { font: 400 .75rem/1.4 var(--body); }
.arb { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: 1rem; background: var(--surface); }
.arb .av2 { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; } .arb .av2 svg { width: 1.125rem; height: 1.125rem; }
.arb b { font: 800 .875rem var(--body); }
.chat { display: flex; flex-direction: column; gap: .5rem; padding-bottom: 4.5rem; }
.msg { max-width: 78%; padding: .625rem .8125rem; border-radius: 1.125rem; background: var(--surface); display: flex; flex-direction: column; gap: .1875rem; animation: rise .35s var(--ease) both; }
.msg.mine { align-self: flex-end; background: var(--green-soft); }
.msg .a { font: 800 .75rem var(--body); color: var(--gold); } .msg .a.arbiter { color: var(--green); }
.msg .x { font: 400 .875rem/1.45 var(--body); white-space: pre-wrap; overflow-wrap: anywhere; } .msg .tm { font: 400 .6875rem var(--body); color: var(--muted); text-align: right; }
.sys { align-self: center; padding: .3125rem .75rem; border-radius: 999px; background: var(--surface); font: 600 .75rem var(--body); color: var(--muted); }
.composer { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 12; display: flex; align-items: center; gap: .625rem; min-height: 3.375rem;
  padding: .5rem .5rem .5rem .875rem; border-radius: 999px; background: var(--tab-bg); border: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 max(16px, .9375rem) var(--body); }
.composer .clip { color: var(--muted); } .composer .clip svg { width: 1.375rem; height: 1.375rem; }
.composer .send { width: 2.375rem; height: 2.375rem; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; } .composer .send svg { width: 1.125rem; height: 1.125rem; }

/* объявления, пользователи, отзывы, новости */
.ad { display: flex; flex-direction: column; gap: .625rem; }
.ad.pinned { box-shadow: inset 0 0 0 1.5px var(--gold); background: #211f15; }
.ad .pin { display: flex; align-items: center; gap: .3125rem; font: 800 .75rem var(--body); color: var(--gold); } .ad .pin svg { width: .9375rem; height: .9375rem; }
.ad .t { font: 800 1rem/1.4 var(--body); } .ad .money { align-self: flex-start; margin-top: .125rem; } .ad .d { font: 400 .8125rem/1.45 var(--body); color: var(--muted); }
.author { display: flex; align-items: center; gap: .5rem; min-width: 0; } .author .nm { font: 700 .8125rem var(--body); }
.av { border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; font-family: var(--body); font-weight: 800; text-transform: uppercase; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.s26 { width: 1.625rem; height: 1.625rem; font-size: .5625rem; } .av.s40 { width: 2.5rem; height: 2.5rem; font-size: .875rem; } .av.s56 { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; background: #2a9a72; color: #06221a; } .av.s76 { width: 4.75rem; height: 4.75rem; font-size: 1.625rem; }
.ulist { background: var(--surface); border-radius: 1.25rem; overflow: hidden; }
.urow { display: flex; align-items: center; gap: .75rem; padding: .8125rem 1rem; } .urow + .urow { border-top: 1px solid var(--line); }
.urow .nm { font: 800 .9375rem var(--body); } .urow .meta { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; font: 400 .75rem var(--body); color: var(--muted); }
.urow .r { text-align: right; flex-shrink: 0; } .urow .r .money { font-size: .8125rem; display: block; }
.phead { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .5rem 0; text-align: center; } .phead .nm { font: 700 1.25rem/1.4 var(--wide); overflow-wrap: anywhere; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1rem .375rem; border-radius: 1.25rem; background: var(--surface); text-align: center; }
.pstats b { display: block; font: 700 1.0625rem var(--wide); } .pstats b.gold { color: var(--gold); } .pstats span { font: 400 .75rem var(--body); color: var(--muted); }
.review { display: flex; flex-direction: column; gap: .4375rem; padding: .875rem 1rem; border-radius: 1.125rem; background: var(--surface); }
.review .x { font: 400 .875rem/1.5 var(--body); overflow-wrap: anywhere; } .review .by { font: 700 .75rem var(--body); color: var(--muted); }
.stars { display: flex; gap: .125rem; color: var(--gold); } .stars svg { width: .9375rem; height: .9375rem; } .stars .off { color: var(--faint); }
.news { padding: 0; overflow: hidden; } .news .body { padding: 1rem; display: flex; flex-direction: column; gap: .375rem; }
.news .t { font: 800 1rem/1.4 var(--body); } .news .x { font: 400 .875rem/1.5 var(--body); color: var(--muted); white-space: pre-wrap; }
.news-cover { position: relative; min-height: 8.5rem; overflow: hidden; display: flex; align-items: center; padding: 1.125rem; background: linear-gradient(120deg, #0f7356, #0a503d); }
.news-cover b { font: 700 1rem/1.4 var(--wide); color: #fff; max-width: 68%; position: relative; z-index: 1; }

/* профиль */
.me { display: flex; align-items: center; gap: .875rem; }
.me b { display: block; font: 800 1.0625rem var(--body); overflow-wrap: anywhere; } .me span.un { font: 400 .875rem var(--body); color: var(--muted); }
.mrow { display: flex; align-items: center; gap: .875rem; width: 100%; padding: .875rem 1rem; text-align: left; }
.mrow .mi { width: 2.375rem; height: 2.375rem; border-radius: .75rem; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex-shrink: 0; } .mrow .mi svg { width: 1.25rem; height: 1.25rem; }
.mrow b { flex: 1; font: 700 .9375rem var(--body); } .mrow .chev { color: var(--muted); } .mrow .chev svg { width: 1.125rem; height: 1.125rem; }

/* нижнее меню */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr));
  padding: .5rem .25rem max(1.25rem, env(safe-area-inset-bottom)); background: var(--tab-bg); border-top: 1px solid var(--line); transition: transform .35s var(--ease); }
#tabbar.hidden { transform: translateY(110%); }
#tabbar .ind { position: absolute; top: .5rem; left: .25rem; width: calc((100% - .5rem) / var(--n, 5)); height: 2rem; pointer-events: none; transform: translateX(calc(100% * var(--i, 0))); transition: transform .45s var(--spring); }
#tabbar .ind::before { content: ""; position: absolute; inset: 0; margin: auto; width: 3.25rem; max-width: 90%; border-radius: 1rem; background: var(--green-soft); }
#tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 0; color: var(--muted); font: 700 clamp(9px, 2.75vw, 11px)/1.3 var(--body); transition: color .3s; }
#tabbar .ic { height: 2rem; display: grid; place-items: center; } #tabbar svg { width: 1.4375rem; height: 1.4375rem; transition: transform .4s var(--spring); }
#tabbar button.on { color: var(--green); } #tabbar button:active svg { transform: scale(.82); }
#tabbar .tx { max-width: 100%; overflow: hidden; white-space: nowrap; }

/* пустые состояния и служебное */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .625rem; padding: 3rem 1.5rem 1rem; animation: rise .45s var(--ease) both; }
.empty .ring { width: 6rem; height: 6rem; border-radius: 50%; border: 2px dashed #2f3d37; display: grid; place-items: center; margin-bottom: .875rem; }
.empty .ring div { width: 4.125rem; height: 4.125rem; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; } .empty .ring svg { width: 2.125rem; height: 2.125rem; }
.empty b { font: 700 1.125rem/1.4 var(--wide); letter-spacing: -.02em; } .empty span { font: 400 .9375rem/1.5 var(--body); color: var(--muted); max-width: 19rem; }
.skel { height: 5rem; border-radius: 1.25rem; background: linear-gradient(90deg, var(--surface) 30%, #1f2a26 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.fade > * { animation: rise .45s var(--ease) both; } .fade > *:nth-child(2) { animation-delay: .04s; } .fade > *:nth-child(3) { animation-delay: .08s; } .fade > *:nth-child(n+4) { animation-delay: .12s; }
.loader { width: 2rem; height: 2rem; margin: 35vh auto 0; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: spin .8s linear infinite; }
#toast { position: fixed; left: 1rem; right: 1rem; z-index: 50; bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom)); padding: .875rem 1rem; border-radius: 1rem; background: #2a3632; font: 700 .875rem/1.4 var(--body); text-align: center; box-shadow: 0 12px 34px #000a; transition: transform .3s var(--ease), opacity .3s; }
#toast.err { background: #5a2b25; } #toast.off { opacity: 0; transform: translateY(1rem); pointer-events: none; }
@media (min-width: 560px) { .page { padding-left: calc(50% - 13rem); padding-right: calc(50% - 13rem); } .banner, .chips { margin: 0; } .banner .track, .chips { padding-left: 0; padding-right: 0; } .composer { left: calc(50% - 13rem); right: calc(50% - 13rem); } .fab { right: calc(50% - 13rem); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* выбор способа оплаты */
.pays { display: flex; flex-direction: column; gap: .5rem; }
.pay { display: flex; align-items: center; gap: .875rem; width: 100%; text-align: left; padding: .875rem 1rem; border-radius: 1.125rem; background: var(--field);
  border: 1.5px solid var(--line); transition: border-color .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--spring); }
.pay:active { transform: scale(.975); transition-duration: .08s; }
.pay.on { border-color: var(--green); background: #14281f; box-shadow: 0 0 0 3px #2dbd8b22, 0 14px 28px -18px #2dbd8baa; }
.pay-ic { width: 2.75rem; height: 2.75rem; border-radius: .9375rem; display: grid; place-items: center; flex-shrink: 0; color: #fff; transition: transform .45s var(--spring), filter .3s; }
.pay-ic.bot { background: linear-gradient(140deg, #35c996, #14805c); } .pay-ic.tron { background: linear-gradient(140deg, #e8685c, #a8322c); }
.pay-ic svg { width: 1.375rem; height: 1.375rem; }
.pay.on .pay-ic { transform: scale(1.06); }
.pay-t { flex: 1; min-width: 0; } .pay-t b { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font: 800 .9375rem/1.35 var(--body); }
.pay-t > span { display: block; margin-top: .125rem; font: 500 .75rem/1.4 var(--body); color: var(--muted); }
.pay-t em { font: 800 .625rem/1 var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .5rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
.pay-mark { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid #34423c; display: grid; place-items: center; flex-shrink: 0; color: var(--on-green);
  transition: background-color .3s, border-color .3s, transform .45s var(--spring); }
.pay-mark svg { width: 1rem; height: 1rem; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s var(--ease); }
.pay.on .pay-mark { background: var(--green); border-color: var(--green); transform: scale(1.1); }
.pay.on .pay-mark svg { stroke-dashoffset: 0; transition-delay: .1s; }
.pay.soon .pay-ic { filter: saturate(.45) brightness(.8); } .pay.soon .pay-t b { color: var(--muted); } .pay.soon .pay-mark { border-style: dashed; }
.pay.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

/* админ-панель */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tile { padding: .875rem 1rem; border-radius: 1.125rem; background: var(--surface); min-width: 0; }
.tile b { display: block; font: 700 1.25rem/1.35 var(--wide); overflow-wrap: anywhere; } .tile span { font: 600 .75rem/1.4 var(--body); color: var(--muted); }
.tile.red b { color: var(--red); } .tile.green b { color: var(--green); }
.switch { width: 2.875rem; height: 1.75rem; border-radius: 999px; background: #34423c; position: relative; flex-shrink: 0; transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; transition: transform .35s var(--spring); }
.switch.on { background: var(--green); } .switch.on::after { transform: translateX(1.125rem); }
[hidden] { display: none !important; }

.qr { display: grid; place-items: center; width: 12.5rem; height: 12.5rem; margin: 0 auto .875rem; padding: .375rem; border-radius: 1rem; background: #fff; }
.qr svg { width: 100%; height: 100%; }

.over-note { padding: .875rem 1rem; border-radius: 1rem; background: var(--gold-soft); }
.over-note b { display: block; color: var(--gold); font: 800 .875rem/1.4 var(--body); } .over-note span { font: 500 .75rem/1.45 var(--body); }
.kv.over span:last-child { color: var(--gold); }

.words { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; margin-bottom: .75rem; -webkit-user-select: text; user-select: text; }
.words span { display: flex; gap: .5rem; padding: .5rem .75rem; border-radius: .75rem; background: #121a17; font: 700 .875rem ui-monospace, "SF Mono", Menlo, monospace; }
.words i { font-style: normal; color: var(--muted); width: 1.25rem; }

/* депозит доверия */
.pill.dep { background: var(--soft); color: var(--green); box-shadow: inset 0 0 0 1px #2dbd8b55; }
.pill.dep svg { width: .875rem; height: .875rem; }
