/* ---------- Разделы (экраны) mts.cash: бонусы, промокоды, скидки, приглашения ---------- */
.scr { position: fixed; inset: 0; z-index: 15; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; display: none; }
.scr.is-open { display: block; }
body.has-screen { overflow: hidden; }
body.has-screen .cta-bar, body.has-screen .desktop-link { display: none; }
.scr__inner { width: 100%; max-width: 26.625rem; margin: 0 auto; min-height: 100%; background: var(--bg); padding-bottom: 7rem; }
@media (min-width: 60rem) { .scr__inner { max-width: 960px; padding: 0 32px 48px; } }

.scr__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .75rem; height: 3.75rem; padding: 0 1rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (min-width: 60rem) { .scr__head { margin: 0 -32px 24px; padding: 0 32px; height: 72px; } }
.scr__back { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid #D9DCE3; background: var(--surface); display: grid; place-items: center; flex: 0 0 auto; }
.scr__back svg { width: 1.125rem; height: 1.125rem; stroke: #141821; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scr__title { margin: 0; font-size: 1.125rem; font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr__bal { display: inline-flex; align-items: center; gap: .375rem; height: 2rem; padding: 0 .75rem 0 .375rem; border-radius: 1rem; background: #FFF0F3; color: var(--red); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.scr__bal::before { content: "₽"; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.scr__bal--off { background: #EEF0F5; color: var(--muted); }
.scr__bal--off::before { background: #A3A8B3; }

.scr__body { padding: .875rem 1rem 0; display: grid; gap: .875rem; grid-template-columns: minmax(0, 1fr); }
.scr__body > * { min-width: 0; }
@media (min-width: 60rem) { .scr__body { padding: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; } .scr__body > .card--wide { grid-column: 1 / -1; } }

.card { background: var(--surface); border-radius: 1.5rem; padding: 1.125rem 1.125rem 1.125rem; }
.card h2 { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 700; }
.card__sub { margin: 0 0 .875rem; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.card--hero { background: linear-gradient(135deg, #FBC3F6 0%, #ECCBFC 50%, #DCE6FD 100%); }
.card--hero .big { font-size: 2.75rem; line-height: 1; font-weight: 700; color: var(--red); margin: .25rem 0; }
.card--hero .big small { font-size: 1.5rem; }
.card--dark { background: #0B0E17; color: #fff; }
.card--dark .card__sub { color: #A3A8B3; }

.btn { height: 2.875rem; padding: 0 1.125rem; border-radius: var(--radius-md); font-size: .9375rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.985); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--light { background: var(--tile); border: 1px solid var(--line); color: var(--text); }
.btn--light:hover { background: #ECEFF5; }
.btn--full { width: 100%; }
.btn--sm { height: 2.25rem; padding: 0 .875rem; font-size: .8125rem; border-radius: .75rem; }
.btn--done { background: #E6F9F1; color: #0A8F5B; border: 1px solid #BFEBD7; cursor: default; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }

.chips { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: .875rem; }
.chip { padding: .375rem .75rem; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); font-size: .8125rem; font-weight: 500; color: #3A4150; }
.chip.is-on { background: #0B0E17; border-color: #0B0E17; color: #fff; }

.list { display: grid; gap: .5rem; }
.item { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: 1rem; background: var(--tile); border: 1px solid var(--line); }
.item__ic { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .9375rem; }
.item__t { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.item__t.num { white-space: nowrap; }
.item__d { color: var(--muted); font-size: .8125rem; line-height: 1.3; margin-top: .125rem; }
.item__r { margin-left: auto; text-align: right; flex: 0 0 auto; }
.rate { display: inline-block; padding: .25rem .5rem; border-radius: 999px; background: #FFF0F3; color: var(--red); font-weight: 700; font-size: .8125rem; }
.sum-plus { color: #0A8F5B; font-weight: 700; }
.sum-minus { color: var(--text); font-weight: 700; }
.empty { padding: 1.25rem; text-align: center; color: var(--muted); font-size: .875rem; border: 1px dashed var(--line); border-radius: 1rem; }

/* Калькулятор */
.calc__out { display: flex; gap: .75rem; margin: .75rem 0; }
.calc__box { flex: 1; padding: .75rem; border-radius: 1rem; background: var(--tile); }
.calc__box b { display: block; font-size: 1.375rem; color: var(--red); }
.calc__box span { font-size: .75rem; color: var(--muted); }
input[type=range].slider { width: 100%; accent-color: var(--red); margin: .5rem 0; }
.calc__val { font-weight: 700; font-size: 1.0625rem; }

/* Офферы */
.offer { position: relative; padding: .875rem; border-radius: 1.25rem; background: var(--tile); border: 1px solid var(--line); display: grid; gap: .625rem; }
.offer__top { display: flex; align-items: center; gap: .625rem; }
.offer__logo { width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; font-weight: 700; color: #fff; flex: 0 0 auto; }
.offer__name { font-weight: 700; font-size: .9375rem; }
.offer__cat { color: var(--muted); font-size: .75rem; }
.offer__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.offer__desc { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.offer__badge { position: absolute; right: .875rem; top: .875rem; padding: .25rem .5rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .75rem; }
.offer__badge--blue { background: var(--blue); }
.price { display: flex; align-items: baseline; gap: .5rem; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: .875rem; }
.price__new { font-weight: 700; font-size: 1.25rem; }
.code { display: flex; align-items: center; gap: .5rem; padding: .625rem .75rem; border-radius: .75rem; background: #fff; border: 1px dashed #FFB3C2; }
.code b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; font-size: 1.0625rem; color: var(--red); flex: 1; }
.code small { color: var(--muted); font-size: .75rem; }
.fav { width: 2.25rem; height: 2.25rem; border-radius: .75rem; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.fav svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: #4A5160; stroke-width: 2; stroke-linejoin: round; }
.fav.is-on svg { fill: var(--red); stroke: var(--red); }
.offer__actions { display: flex; gap: .5rem; align-items: center; }
.offer__actions .btn { flex: 1; }
.note { font-size: .75rem; color: var(--muted); line-height: 1.35; }

/* Приглашения */
.link-box { display: flex; align-items: center; gap: .5rem; padding: .625rem .75rem; border-radius: .75rem; background: rgba(255,255,255,.8); }
.link-box b { flex: 1; font-size: .9375rem; word-break: break-all; }
.field { width: 100%; height: 3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1rem; font: inherit; font-size: 1rem; background: var(--tile); color: var(--text); outline: none; }
.field:focus { border-color: var(--red); background: #fff; }
.form-row { display: flex; gap: .5rem; }
.form-row .field { flex: 1; min-width: 0; }
.status { display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.status--sent { background: #EEF0F5; color: var(--muted); }
.status--joined { background: #EAF3FF; color: var(--blue); }
.status--purchased { background: #E6F9F1; color: #0A8F5B; }
.stats { display: flex; gap: .75rem; }
.stats div { flex: 1; padding: .75rem; border-radius: 1rem; background: rgba(255,255,255,.75); }
.stats b { display: block; font-size: 1.375rem; }
.stats span { font-size: .75rem; color: var(--muted); }
.steps-mini { display: grid; gap: .5rem; counter-reset: s; }
.steps-mini div { position: relative; padding-left: 2rem; font-size: .875rem; line-height: 1.35; }
.steps-mini div::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* Тумблер настроек */
.switch { appearance: none; -webkit-appearance: none; width: 2.75rem; height: 1.625rem; border-radius: 999px; background: #D9DCE3; position: relative; cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(8,11,20,.25); transition: transform .15s; }
.switch:checked { background: var(--red); }
.switch:checked::after { transform: translateX(1.125rem); }
.stats { flex-wrap: wrap; } .stats div { min-width: 5.5rem; }

/* ---------- Тёмная тема ---------- */
@media (prefers-color-scheme: dark) {
  .scr__head { background: rgba(23,26,34,.92); border-bottom-color: var(--line); }
  .scr__back { border-color: #3A4150; }
  .scr__back svg { stroke: #E6E8EF; }
  .scr__bal { background: rgba(255,0,51,.16); }
  .scr__bal--off { background: #262B36; }
  .card--hero { background: linear-gradient(135deg, #5A1150 0%, #3A1B66 50%, #1B2650 100%); }
  .card--hero .card__sub, .card--hero .reward__note, .card--hero .offer__cat { color: #E3E6EE !important; }
  .card--hero .big { color: #FF5C7A; }
  .card--dark { background: #262B36; }
  .btn--light { background: var(--tile); color: var(--text); }
  .btn--light:hover { background: #262B36; }
  .btn--done { background: rgba(16,185,129,.15); color: #34D399; border-color: rgba(16,185,129,.35); }
  .chip { color: #D6D9E3; }
  .chip.is-on { background: #F2F3F7; border-color: #F2F3F7; color: #0B0E17; }
  .rate { background: rgba(255,0,51,.16); color: #FF5C7A; }
  .sum-plus { color: #34D399; }
  .empty { border-color: var(--line); }
  .calc__box b { color: #FF5C7A; }
  .offer__badge--blue { background: var(--blue); }
  .code { background: var(--surface); border-color: rgba(255,0,51,.45); }
  .code b { color: #FF5C7A; }
  .fav { background: var(--surface); }
  .fav svg { stroke: #AEB4C2; }
  .link-box { background: rgba(0,0,0,.3); color: #fff; }
  .stats div { background: rgba(0,0,0,.28); }
  .stats span { color: #C5CAD6; }
  .status--sent { background: #262B36; color: #AEB4C2; }
  .status--joined { background: rgba(8,124,255,.18); color: #6FB2FF; }
  .status--purchased { background: rgba(16,185,129,.15); color: #34D399; }
  .switch { background: #3A4150; }
  .switch::after { background: #F2F3F7; }
  .item__ic { color: #fff; }
}

/* Телефон в режиме «полная версия сайта» */
.is-wide-phone .scr__inner { max-width: none; padding: 0 0 7rem; }
.is-wide-phone .scr__head { margin: 0; padding: 0 1rem; height: 3.75rem; }
.is-wide-phone .scr__body { grid-template-columns: 1fr; padding: .875rem 1rem 0; gap: .875rem; }

/* ---------- Личный кабинет ---------- */
.scr--home .scr__head { display: none; }
.lk__head { display: flex; align-items: center; gap: .75rem; padding: .75rem 0 0; }
.lk__avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 1rem; display: grid; place-items: center; flex: 0 0 auto; }
.lk__who { flex: 1; min-width: 0; }
.lk__hi { color: var(--muted); font-size: .8125rem; }
.lk__phone { font-weight: 700; font-size: 1.125rem; }
.lk__bell { position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.lk__bell svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.lk__dot { position: absolute; right: .625rem; top: .625rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.lk__balance { position: relative; overflow: hidden; border-radius: 1.5rem; padding: 1.125rem 1.25rem 1rem; color: #fff; background: linear-gradient(135deg, #FF0033 0%, #C8003A 60%, #8E1140 100%); box-shadow: 0 1rem 2rem rgba(255,0,51,.25); }
.lk__balance::after { content: "₽"; position: absolute; right: -.5rem; top: -1.5rem; font-size: 9rem; font-weight: 700; color: rgba(255,255,255,.08); pointer-events: none; }
.lk__bal-l { font-size: .8125rem; opacity: .85; }
.lk__bal-sum { font-size: 2.75rem; line-height: 1.1; font-weight: 700; margin: .125rem 0 .5rem; }
.lk__bal-sum small { font-size: 1.5rem; }
.lk__bal-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .5rem .75rem; border-radius: .75rem; background: rgba(255,255,255,.14); }
.lk__bal-actions { display: flex; gap: .5rem; margin-top: .75rem; position: relative; }
.lk__act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .625rem .25rem; border-radius: .875rem; background: rgba(255,255,255,.16); color: #fff; font-size: .75rem; font-weight: 500; }
.lk__act span { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; color: var(--red); font-weight: 700; display: grid; place-items: center; font-size: .9375rem; }
.lk__act:active { background: rgba(255,255,255,.28); }
.lk__banner { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border-radius: 1.25rem; background: #E6F9F1; border: 1px solid #BFEBD7; }
.lk__banner-t { font-weight: 700; font-size: .9375rem; color: #0A8F5B; }
.lk__banner-d { color: #2F6B52; font-size: .8125rem; line-height: 1.35; margin-top: .125rem; }
.lk__x { margin-left: auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: #0A8F5B; font-size: 1.25rem; line-height: 1; display: grid; place-items: center; flex: 0 0 auto; }
.lk__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.lk__quick a { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: .625rem .25rem; border-radius: 1rem; background: var(--surface); font-size: .75rem; font-weight: 500; text-align: center; }
.lk__q-ic { width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; }
.lk__q-ic img { width: 2.25rem; height: 2.25rem; object-fit: contain; mix-blend-mode: multiply; }
.lk__sec { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.lk__sec h2 { margin: 0; }
.lk__scroll { display: flex; gap: .625rem; overflow-x: auto; margin: 0 -1.125rem; padding: 0 1.125rem .25rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lk__scroll::-webkit-scrollbar { display: none; }
.lk__rec { position: relative; flex: 0 0 10.5rem; display: flex; flex-direction: column; gap: .5rem; padding: .875rem; border-radius: 1.25rem; background: var(--tile); border: 1px solid var(--line); scroll-snap-align: start; }
.lk__rec-t { font-weight: 700; font-size: .9375rem; line-height: 1.25; min-height: 2.5rem; }
.lk__rec-p { font-weight: 700; font-size: 1rem; }
.lk__rec-p s { color: var(--muted); font-weight: 400; font-size: .8125rem; margin-left: .25rem; }
.lk__rec .offer__badge { top: .625rem; right: .625rem; }
@media (min-width: 60rem) {
  .scr { top: 73px; }
  .scr__head { margin-top: 0; }
  .lk__head { padding-top: 24px; }
  .lk__quick a { flex-direction: row; justify-content: center; gap: .75rem; font-size: 15px; padding: 14px; }
  .lk__scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .lk__rec { flex: 1 1 calc(25% - .625rem); }
}
@media (prefers-color-scheme: dark) {
  .lk__banner { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.3); }
  .lk__banner-t, .lk__x { color: #34D399; } .lk__banner-d { color: #9FD9C0; }
  .lk__q-ic { background: #262B36 !important; } .lk__q-ic img { mix-blend-mode: normal; border-radius: .5rem; }
}

/* Уведомления */
.lk__cnt { position: absolute; right: .25rem; top: .25rem; min-width: 1.125rem; height: 1.125rem; padding: 0 .3rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .6875rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.lk__note { display: grid; gap: .125rem; padding: .75rem 1rem; border-radius: 1.25rem; background: var(--surface); border-left: 4px solid var(--red); }
.lk__note b { font-size: .9375rem; } .lk__note span { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.is-unread { border-color: rgba(255,0,51,.35); background: rgba(255,0,51,.05); }

.lk__tg { border: 1px solid #CFE3FF; background: linear-gradient(135deg, #EAF3FF, var(--surface)); }
@media (prefers-color-scheme: dark) { .lk__tg { border-color: rgba(8,124,255,.35); background: linear-gradient(135deg, rgba(8,124,255,.16), var(--surface)); } }
