/* ============ Дизайн-система: только чёрный, белый и оттенки серого ============ */
:root {
  --bg: #000;
  --bg-2: #0b0b0c;
  --card: #121213;
  --card-2: #1b1b1d;
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .22);
  --text: #fff;
  --muted: rgba(255, 255, 255, .58);
  --faint: rgba(255, 255, 255, .34);
  --fg: #fff;            /* «чернила»: заливка главных кнопок */
  --inv: #000;           /* текст на заливке */
  --glow: rgba(255, 255, 255, .11);
  --bar: rgba(0, 0, 0, .78);
  --shadow: 0 18px 50px rgba(0, 0, 0, .65);
  --r: 22px;
  --r-sm: 14px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] {
  --bg: #fff;
  --bg-2: #fafafa;
  --card: #f3f3f4;
  --card-2: #e8e8ea;
  --line: rgba(0, 0, 0, .1);
  --line-2: rgba(0, 0, 0, .22);
  --text: #000;
  --muted: rgba(0, 0, 0, .58);
  --faint: rgba(0, 0, 0, .34);
  --fg: #000;
  --inv: #fff;
  --glow: rgba(0, 0, 0, .06);
  --bar: rgba(255, 255, 255, .8);
  --shadow: 0 18px 50px rgba(0, 0, 0, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color .3s;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.ico { width: 22px; height: 22px; flex: none; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; }
.page {
  padding: calc(var(--top) + 20px) 16px calc(var(--tabbar-h) + var(--safe-b) + 32px);
  animation: pageIn .34s var(--ease) both;
}
.page.still { animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page > * { animation: rise .42s var(--ease) both; }
.page.still > * { animation: none; }
.page > *:nth-child(2) { animation-delay: .04s; }
.page > *:nth-child(3) { animation-delay: .08s; }
.page > *:nth-child(4) { animation-delay: .12s; }
.page > *:nth-child(5) { animation-delay: .16s; }
.page > *:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Верхняя строка ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.top__title { font-size: 30px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.top__sub { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--fg); color: var(--inv); font-weight: 700; font-size: 18px;
}
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .15s var(--ease), background .2s;
}
.iconbtn:active { transform: scale(.92); }
.iconbtn .ico { width: 20px; height: 20px; }
.iconbtn.spin .ico { animation: spin .7s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 16px;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .15s var(--ease), opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn--primary { background: var(--fg); color: var(--inv); }
.btn--secondary { background: var(--card-2); color: var(--text); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--danger { border: 1px dashed var(--line-2); color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { height: 40px; padding: 0 14px; border-radius: 13px; font-size: 14px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

/* ---------- Баланс ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 22px 20px 20px; border-radius: 28px;
  background: linear-gradient(165deg, var(--card-2), var(--card) 62%);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.hero::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  pointer-events: none;
}
.hero__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 550; }
.hero__label .ico { width: 17px; height: 17px; }
.hero__amount { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.hero__amount .cur { font-size: 26px; font-weight: 600; color: var(--muted); }
.hero__amount .num { font-size: 52px; font-weight: 780; letter-spacing: -.045em; line-height: 1; }
.hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: relative; }
.hero__actions .btn { padding: 0 10px; min-width: 0; }

/* ---------- Плитки ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.tile { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.tile__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--card-2); margin-bottom: 14px; }
.tile__ico .ico { width: 18px; height: 18px; }
.tile__val { font-size: 25px; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile__lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Секции ---------- */
.sec { margin-bottom: 26px; }
.sec__head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 12px; }
.sec__title { font-size: 12.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sec__link { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.sec__link .ico { width: 15px; height: 15px; }
.stack { display: grid; gap: 10px; }

/* ---------- Карточка номера ---------- */
.ncard {
  display: block; width: 100%; text-align: left;
  padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: transform .18s var(--ease), border-color .2s;
}
.ncard:active { transform: scale(.985); border-color: var(--line-2); }
.ncard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ncard__phone { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 650; white-space: nowrap;
}
.pill--on { background: var(--fg); color: var(--inv); }
.pill--off { border: 1px solid var(--line-2); color: var(--muted); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.ncard__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 12px 0 8px; }
.track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.track__fill { height: 100%; border-radius: 4px; background: var(--fg); transition: width .6s var(--ease); }
.ncard__sms {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); min-height: 48px;
}
.ncard__svc { color: var(--muted); font-size: 13px; }
.waiting { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.waiting i { display: inline-flex; gap: 3px; }
.waiting i b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.waiting i b:nth-child(2) { animation-delay: .2s; }
.waiting i b:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.code {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px;
  background: var(--fg); color: var(--inv);
  font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .1em;
}
.code .ico { width: 15px; height: 15px; opacity: .7; }
.hcard {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transition: transform .18s var(--ease);
}
.hcard:active { transform: scale(.985); }
.hcard__phone { font-weight: 650; font-variant-numeric: tabular-nums; }
.hcard__meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.hcard .ico { color: var(--faint); width: 18px; height: 18px; }

/* ---------- Пустые состояния ---------- */
.empty { text-align: center; padding: 30px 22px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line-2); }
.empty__ico { width: 54px; height: 54px; border-radius: 18px; background: var(--card-2); display: grid; place-items: center; margin: 0 auto 14px; }
.empty__ico .ico { width: 26px; height: 26px; }
.empty__title { font-weight: 700; font-size: 17px; }
.empty__text { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }

/* ---------- Переключатель и чипсы ---------- */
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 3px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); }
.seg__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 12px;
  background: var(--fg); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .3s var(--ease);
}
.seg__btn { position: relative; z-index: 1; height: 38px; font-weight: 620; font-size: 14px; color: var(--muted); transition: color .25s; }
.seg__btn.on { color: var(--inv); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: all .2s; }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--inv); }

/* ---------- Поля ---------- */
.field { position: relative; }
.field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 15px; background: var(--card);
  border: 1px solid var(--line); outline: none; transition: border-color .2s; font-size: 16px;
}
.field .input { padding-left: 42px; }
.input:focus { border-color: var(--line-2); }
.input::placeholder { color: var(--faint); }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

/* ---------- СМС ---------- */
.dayhead { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 2px 10px; }
.sms { padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.sms + .sms { margin-top: 8px; }
.sms--new { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: var(--fg); color: var(--inv); transform: scale(1.02); } 100% { background: var(--card); } }
.sms__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sms__svc { font-weight: 700; letter-spacing: -.01em; }
.sms__time { color: var(--muted); font-size: 12.5px; }
.sms__num { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sms__text { margin-top: 10px; font-size: 14.5px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.hl { font-family: var(--mono); font-weight: 750; background: var(--card-2); padding: 1px 4px; margin: 0 1px; border-radius: 6px; letter-spacing: .03em; }
.sms__copy { margin-top: 12px; }

/* ---------- Аренда ---------- */
.lead { color: var(--muted); font-size: 14.5px; margin: -10px 0 20px; }
.tariffs { display: grid; gap: 10px; margin-bottom: 18px; }
.tariff {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line);
  transition: border-color .2s, transform .18s var(--ease), background .2s;
}
.tariff:active { transform: scale(.985); }
.tariff.on { border-color: var(--fg); background: var(--card-2); }
.tariff__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.tariff.on .tariff__radio { border-color: var(--fg); background: var(--fg); }
.tariff__radio i { width: 8px; height: 8px; border-radius: 50%; background: var(--inv); transform: scale(0); transition: transform .25s var(--ease); }
.tariff.on .tariff__radio i { transform: scale(1); }
.tariff__days { font-size: 17px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.tariff__per { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tariff__price { font-size: 21px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.badge { height: 20px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; color: var(--muted); }
.summary { padding: 6px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 16px; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row__k { color: var(--muted); font-size: 14px; }
.row__v { font-weight: 650; font-variant-numeric: tabular-nums; }
.note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 12px; text-align: center; }
.note .ico { width: 15px; height: 15px; }
.count-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 620; }

/* ---------- Списки ---------- */
.list { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.cell { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13px 16px; }
.cell + .cell { border-top: 1px solid var(--line); }
button.cell:active { background: var(--card-2); }
.cell__ico { width: 38px; height: 38px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.cell__ico .ico { width: 18px; height: 18px; }
.cell__main { flex: 1; min-width: 0; }
.cell__title { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.cell__val { font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell__val.neg { color: var(--muted); font-weight: 600; }
.cell .chev { width: 16px; height: 16px; color: var(--faint); }

/* ---------- График ---------- */
.chartbox { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.chartbox__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.chart__big { font-size: 26px; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chart__cap { color: var(--muted); font-size: 13px; margin-top: 2px; min-height: 18px; }
.chart__bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.bar__fill { width: 100%; border-radius: 6px; background: var(--fg); opacity: .28; transform-origin: bottom; animation: grow .7s var(--ease) both; transition: opacity .2s; }
.bar--today .bar__fill, .bar.sel .bar__fill { opacity: 1; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart__lbls { display: flex; gap: 5px; margin-top: 8px; }
.chart__lbls span { flex: 1; text-align: center; font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- Профиль ---------- */
.prof { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.prof .avatar { width: 62px; height: 62px; font-size: 26px; }
.prof__name { font-size: 22px; font-weight: 740; letter-spacing: -.03em; }
.prof__id { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.prof__id .ico { width: 13px; height: 13px; }
.ref { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ref__link { font-family: var(--mono); font-size: 12.5px; color: var(--muted); word-break: break-all; margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.ref__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ref__btns .btn, .sheet__actions.two .btn { padding: 0 10px; min-width: 0; }
.legal { color: var(--faint); font-size: 12.5px; text-align: center; margin: 6px 12px 0; line-height: 1.55; }
.privacy { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.privacy p { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.privacy .stack { gap: 8px; }

/* ---------- Нижние вкладки ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 7px 8px calc(7px + var(--safe-b));
  background: var(--bar); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 2px; color: var(--faint); transition: color .25s; }
.tab__ico { width: 46px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .3s var(--ease), transform .25s var(--ease); }
.tab__ico .ico { width: 23px; height: 23px; stroke-width: 1.8; }
.tab__lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tab.on { color: var(--text); }
.tab.on .tab__ico { background: var(--card-2); }
.tab:active .tab__ico { transform: scale(.9); }
.tab--main .tab__ico { width: 54px; height: 54px; border-radius: 18px; margin-top: -24px; background: var(--fg); color: var(--inv); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 0 5px var(--bg); }
.tab--main .tab__ico .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.tab--main.on .tab__ico { background: var(--fg); transform: scale(1.04) rotate(90deg); }
.tab--main .tab__lbl { color: var(--faint); }
.tab--main.on .tab__lbl { color: var(--text); }
.tab__dot { position: absolute; top: 2px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 2px var(--bg); animation: pop .4s var(--ease); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Листы (модальные панели) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .58); opacity: 0; transition: opacity .28s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; max-height: 90dvh;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow); padding-bottom: var(--safe-b);
  transform: translateY(105%); transition: transform .38s var(--ease);
}
.sheet.open { transform: none; }
.sheet.drag { transition: none; }
.sheet__handle { flex: none; padding: 10px 0 6px; touch-action: none; }
.sheet__handle::after { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto; }
.sheet__body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 18px 24px; overscroll-behavior: contain; }
.sheet h2 { font-size: 22px; font-weight: 750; letter-spacing: -.03em; }
.sheet .lead { margin: 6px 0 18px; }
.sheet__actions { display: grid; gap: 10px; margin-top: 18px; }
.sheet__actions.two { grid-template-columns: 1fr 1fr; }
.nd__phone { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.nd__phone b { font-size: 27px; font-weight: 780; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.nd__status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nd__big { margin: 18px 0 4px; text-align: center; padding: 18px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.nd__big .code { font-size: 32px; padding: 10px 18px; border-radius: 16px; }
.nd__big small { display: block; color: var(--muted); margin-top: 10px; font-size: 12.5px; }
.nd__tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 8px; }
.nd__tools .btn { padding: 0 8px; flex-direction: column; height: 62px; gap: 5px; font-size: 12.5px; border-radius: 16px; }
.nd__tools .btn .ico { width: 20px; height: 20px; }

.success { text-align: center; padding: 10px 0 4px; }
.success__ring { width: 84px; height: 84px; margin: 6px auto 18px; }
.success__ring circle { fill: none; stroke: var(--fg); stroke-width: 3; stroke-dasharray: 250; stroke-dashoffset: 250; animation: draw .7s var(--ease) .1s forwards; }
.success__ring path { fill: none; stroke: var(--fg); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__phone { font-size: 30px; font-weight: 780; letter-spacing: -.035em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }

/* ---------- Уведомления ---------- */
#toast-root { position: fixed; left: 0; right: 0; z-index: 60; bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 12px 18px; border-radius: 99px;
  background: var(--fg); color: var(--inv); font-weight: 620; font-size: 14px; box-shadow: var(--shadow);
  animation: toastIn .35s var(--ease) both;
}
.toast.out { animation: toastOut .25s ease forwards; }
.toast .ico { width: 16px; height: 16px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Загрузка ---------- */
.sk { border-radius: 14px; background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 37%, var(--card) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.gate { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 32px; }
.gate .empty__ico { width: 72px; height: 72px; border-radius: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
