/* PeachVPN — Mini App. Палитры свои: светлая и тёмная. Режим «Как в Telegram» только выбирает между ними
   (по colorScheme Telegram), цвета темы Telegram не берём — иначе «тёмная из Telegram» отличалась бы от «Тёмной». */
:root {
  --accent: #c24e0a;
  --accent-2: #e8732a;
  --accent-soft: rgba(194, 78, 10, .11);
  --btn-text: #fff;
  --bg: #f6f2ee;
  --card: #ffffff;
  --text: #2b2118;
  --hint: #8d7f73;
  --link: #c24e0a;
  --ok: #2f9e44;
  --ok-soft: rgba(47, 158, 68, .12);
  --bad: #e03131;
  --bad-soft: rgba(224, 49, 49, .1);
  --line: rgba(127, 110, 95, .16);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
/* тёмная схема (из Telegram или выбрана вручную) — одна и та же палитра */
:root[data-scheme="dark"] { --bg: #14100d; --card: #211a15; --text: #f3ece6; --hint: #a39486;
  --accent: #ff8a3d; --accent-2: #ffa766; --accent-soft: rgba(255, 138, 61, .14); --btn-text: #1c120b; --link: #ff8a3d; --line: rgba(255, 255, 255, .09); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 "Manrope", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--link); }
img { max-width: 100%; }

#view { padding: 16px 16px calc(96px + var(--safe-b)); max-width: 560px; margin: 0 auto; min-height: 100vh; }
.boot { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.boot img { width: 120px; opacity: .9; }
.fade { animation: fadeIn .4s var(--ease) both; }  /* только прозрачность: transform сломал бы position:fixed у поля ввода */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ----- типографика ----- */
h1 { font-size: 26px; line-height: 1.15; margin: 4px 0 6px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }
h3 { font-size: 15px; margin: 0 0 4px; }
.lead { color: var(--hint); margin: 0 0 14px; }
.hint { color: var(--hint); font-size: 13px; }
.center { text-align: center; }
.section-title { font-size: 13px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: .04em; margin: 22px 4px 8px; }

/* ----- карточки ----- */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card.tight { padding: 6px 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .sub { color: var(--hint); font-size: 13px; }
.row.tap { cursor: pointer; }
.row.tap:active { background: var(--accent-soft); }
.chev { color: var(--hint); }

/* ----- кнопки ----- */
.btn { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-align: center;
  padding: 14px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .25s var(--ease), opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--btn-text); box-shadow: 0 6px 18px var(--accent-soft); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.plain { background: transparent; color: var(--hint); font-weight: 600; }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { padding: 10px 14px; font-size: 14px; border-radius: 12px; width: auto; }
.stack { display: grid; gap: 10px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }

/* ----- чипы и точки ----- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.gray { background: var(--line); color: var(--hint); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--hint); }
.dot.up { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot.down { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

/* ----- главная ----- */
.hero-logo { display: block; width: 150px; height: 120px; object-fit: contain; margin: 4px auto 0; }
.hello { color: var(--hint); font-weight: 600; margin: 2px 4px 10px; }
.status-card { background: linear-gradient(145deg, rgba(255, 154, 82, .18), rgba(242, 107, 29, .06)), var(--card); }
.big-days { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.big-days b { font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.big-days span { color: var(--hint); font-weight: 600; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 12px 0 16px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 6px; transition: width .8s var(--ease); }
.features { display: grid; gap: 2px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; }
.feature .fi { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.feature .fi svg { width: 19px; height: 19px; }
.feature p { margin: 0; color: var(--hint); font-size: 13px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.plans.n3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plans.n3 .plan { padding: 16px 10px 14px; }
.plans.n3 .p-badge { right: 6px; font-size: 10px; padding: 3px 6px; white-space: nowrap; }
.plan { position: relative; background: var(--card); border-radius: var(--radius); padding: 16px 14px; border: 2px solid transparent; cursor: pointer; text-align: left; transition: border-color .25s, transform .25s var(--ease); }
.plan:active { transform: scale(.98); }
.plan.sel { border-color: var(--accent); }
.plan .p-title { font-weight: 700; }
.plan .p-price { font-size: 24px; font-weight: 800; margin: 6px 0 0; letter-spacing: -.02em; }
.plan .p-stars { color: var(--hint); font-size: 13px; }
.plan .p-badge { position: absolute; top: -10px; right: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
/* окно оплаты: тарифы-«аккордеон» */
.plans2 { display: grid; gap: 10px; margin-bottom: 14px; }
.plan2 { position: relative; display: block; width: 100%; background: var(--card); color: inherit; font: inherit; text-align: left;
  border-radius: var(--radius); padding: 14px 16px; border: 2px solid var(--line); cursor: pointer;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease); }
.plan2:active { transform: scale(.99); }
.plan2.sel { border-color: var(--accent); box-shadow: 0 10px 28px var(--accent-soft); cursor: default; }
.plan2 .p-badge { position: absolute; top: -10px; right: 14px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.p2-head { display: flex; align-items: center; gap: 12px; }
.p2-radio { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hint); flex: none; opacity: .6; transition: border-color .35s, opacity .35s; }
.p2-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s var(--ease); }
.plan2.sel .p2-radio { border-color: var(--accent); opacity: 1; }
.plan2.sel .p2-radio::after { transform: scale(1); }
.p2-name { flex: 1; min-width: 0; }
.p2-title { font-weight: 700; font-size: 16px; }
.p2-rub { color: var(--hint); font-size: 13px; margin-top: 2px; }
.p2-price { font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.p2-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s ease; }
.plan2.sel .p2-body { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .45s var(--ease), opacity .35s ease .1s; }
.p2-inner { overflow: hidden; min-height: 0; }
.p2-feats { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.p2-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.p2-feat .fi { width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.p2-feat .fi .svgw { width: 17px; height: 17px; }
.banner { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.banner.warn { background: var(--accent-soft); color: var(--text); }
.banner.bad { background: var(--bad-soft); }
.banner.ok { background: var(--ok-soft); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 14px; cursor: pointer; border: 0; text-align: left; }
.tile:active { transform: scale(.98); }
.tile .t-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile .t-ico svg { width: 18px; height: 18px; }
.tile b { display: block; font-size: 14px; }
.tile span { color: var(--hint); font-size: 12px; }

/* ----- подписка ----- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv span { color: var(--hint); }
.kv b { text-align: right; }
.qr { display: block; margin: 12px auto 0; width: 200px; height: 200px; border-radius: 14px; background: #fff; padding: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }
.guide-app { padding: 12px 0; border-top: 1px solid var(--line); }
.guide-app:first-of-type { border-top: 0; padding-top: 0; }
.guide-app ol { margin: 8px 0 10px; padding-left: 20px; color: var(--text); }
.guide-app li { margin-bottom: 6px; font-size: 14px; }
.tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); background: var(--ok-soft); padding: 2px 6px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.device { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.device + .device { border-top: 1px solid var(--line); }
.device .d-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--line); display: flex; align-items: center; justify-content: center; }
.device .d-ico svg { width: 18px; height: 18px; color: var(--hint); }

/* ----- друзья ----- */
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat span { color: var(--hint); font-size: 12px; }
.linkbox { background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; margin: 8px 0 12px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 6px; }

/* ----- поддержка ----- */
.seg { display: flex; background: var(--card); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--hint); cursor: pointer; }
.seg button.on { background: var(--accent-soft); color: var(--accent); }
.ticket-row .t-subj { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-row .t-last { color: var(--hint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.empty { text-align: center; padding: 28px 12px; color: var(--hint); }
.empty .e-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.empty .e-ico svg { width: 28px; height: 28px; }
.chat-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-meta { display: flex; align-items: center; gap: 8px; }
.msgs { display: flex; flex-direction: column; gap: 6px; padding-bottom: 150px; }
.msg { position: relative; max-width: 84%; padding: 9px 13px 7px; border-radius: 18px; background: var(--card); white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.45; margin-top: 4px; }
.msg.cont { margin-top: 0; }
.msg .m-text { display: block; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #f88a3c, #e85d12); color: #fff; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 6px; background: color-mix(in srgb, var(--card) 88%, var(--text)); border: 1px solid var(--line); }
.msg.sys { align-self: center; background: transparent; border: 0; color: var(--hint); font-size: 13px; text-align: center; max-width: 92%; padding: 4px 8px; }
.msg .m-time { display: block; font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.msg .m-who { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.msg img { display: block; max-width: 100%; border-radius: 10px; margin-top: 4px; min-height: 60px; background: rgba(0,0,0,.05); cursor: zoom-in; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe-b)); background: var(--bg); padding: 8px 12px 10px; z-index: 5; }
.composer .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; background: var(--card); border-radius: 22px; padding: 6px; }
.composer textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; font: inherit; color: var(--text); padding: 8px 6px; max-height: 120px; min-height: 22px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: var(--hint); flex: none; }
.icon-btn.send { background: var(--accent); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }
.attach-preview { max-width: 560px; margin: 0 auto 6px; display: flex; align-items: center; gap: 8px; }
.attach-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.rate { display: flex; gap: 10px; }
.new-area { width: 100%; min-height: 140px; border: 0; outline: 0; background: var(--card); border-radius: 16px; padding: 14px; font: inherit; color: var(--text); resize: vertical; }

/* ----- нижняя навигация ----- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar button { position: relative; flex: 1; min-width: 0; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; color: var(--hint); padding: 4px 0; cursor: pointer; transition: color .2s; }
.tabbar button .ico svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.tabbar button.on { color: var(--accent); }
.tabbar button.on .ico svg { transform: translateY(-1px) scale(1.06); }
.tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10px; font-style: normal; line-height: 16px; padding: 0 4px; }

/* ----- нижние листы и уведомления ----- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20; animation: fadeIn .25s both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--card); border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b)); max-height: 88vh; overflow: auto; animation: slideUp .35s var(--ease) both; max-width: 600px; margin: 0 auto; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet.closing { animation: slideDown .25s ease both; }
.sheet-bg.closing { animation: fadeOut .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes slideDown { to { transform: translateY(100%); } }
.toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 30; background: rgba(30, 24, 20, .92); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: 14px; max-width: 90vw; text-align: center; animation: fadeUp .3s var(--ease) both; }
.viewer { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .2s both; }
.viewer img { max-height: 100%; border-radius: 8px; }
.skeleton { height: 16px; border-radius: 8px; margin: 8px 0; background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .5; } }
.spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.svgw { display: inline-flex; align-items: center; justify-content: center; }
.svgw svg { width: 100%; height: 100%; }
.btn .svgw { width: 18px; height: 18px; }
.tabbar .ico { width: 24px; height: 24px; display: flex; }
.row .t-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.row .t-ico .svgw { width: 18px; height: 18px; }
.feature .fi .svgw, .tile .t-ico .svgw, .device .d-ico .svgw { width: 18px; height: 18px; }
.empty .e-ico .svgw { width: 28px; height: 28px; }
.icon-btn .svgw { width: 20px; height: 20px; }
[hidden] { display: none !important; }

/* поддержка: список обращений */
.tk-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tk-row { min-width: 0; }
.tk-row { background: var(--card); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), border-color .2s; }
.tk-row:active { transform: scale(.99); }
.tk-row.unread-row { border-color: var(--accent); }
.tk-top { display: flex; align-items: baseline; gap: 8px; }
.tk-num { color: var(--hint); font-size: 13px; font-weight: 700; flex: none; }
.tk-subj { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-when { color: var(--hint); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.tk-user { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 2px; }
.tk-bottom { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tk-last { flex: 1; min-width: 0; color: var(--hint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.st { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-open { background: rgba(250, 176, 5, .14); color: #e8a400; }
.st-answered { background: var(--ok-soft); color: var(--ok); }
.st-closed { background: var(--line); color: var(--hint); }
/* поддержка: переписка */
.day-sep { align-self: center; margin: 10px 0 4px; }
.day-sep span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--hint); background: var(--card); padding: 3px 10px; border-radius: 999px; }
/* карточка пользователя (для админа) */
.ucard { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.uc-top { display: flex; align-items: center; gap: 12px; }
.uc-ava { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.uc-name { font-weight: 700; font-size: 16px; }
.uc-sub { color: var(--hint); font-size: 13px; }
.uc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.uc-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 10px; background: var(--line); color: var(--text); border: 0; font-family: inherit; }
.uc-tag.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.uc-tag .uc-copy { color: var(--hint); font-size: 12px; }
.uc-tag.ok { background: var(--ok-soft); color: var(--ok); }
.uc-tag.warn { background: rgba(250, 176, 5, .14); color: #e8a400; }
.uc-tag.bad { background: var(--bad-soft); color: var(--bad); }
.uc-actions { display: flex; gap: 8px; margin-top: 12px; }
.uc-actions .btn { flex: 1; }
.uc-report { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* реферальная программа: поля вывода */
.field { width: 100%; border: 0; outline: 0; background: var(--bg); border-radius: 12px; padding: 12px; margin-top: 4px; font: inherit; color: var(--text); }
.field:focus { box-shadow: 0 0 0 2px var(--accent-soft); }

/* ----- концепт 14.10: цены, плашка, профиль, анимации ----- */
.stagger > * { animation: fadeUp .45s var(--ease) backwards; }
.stagger > *:nth-child(2) { animation-delay: .04s; } .stagger > *:nth-child(3) { animation-delay: .08s; }
.stagger > *:nth-child(4) { animation-delay: .12s; } .stagger > *:nth-child(5) { animation-delay: .16s; }
.stagger > *:nth-child(6) { animation-delay: .2s; } .stagger > *:nth-child(n+7) { animation-delay: .24s; }
.price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.price .old { color: var(--hint); font-size: .62em; font-weight: 600; }
.plans .price { justify-content: flex-start; }
.p-price .price b, .p2-price .price b { font-weight: 800; }
.plan.sel { border-color: var(--accent); }
.btn.alt { width: 100%; font-weight: 600; }
.agree { color: var(--hint); font-size: 12px; text-align: center; margin: 10px 0 2px; }
.agree a { color: var(--hint); text-decoration: underline; }
.sheet-links { display: flex; justify-content: center; gap: 18px; margin-top: 6px; }
.linkbtn { border: 0; background: none; padding: 6px 0; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; }
.linkbtn.strong { display: block; padding: 4px 0 0; font-weight: 800; }
.promo-line { font-size: 13px; }
.offer { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.offer .grow { flex: 1; min-width: 0; }
.offer .btn { flex: none; }
/* плашка сверху главной */
.topbar { display: flex; align-items: flex-start; gap: 10px; border-radius: 16px; padding: 12px 8px 12px 14px; margin-bottom: 12px; font-size: 14px;
  background: var(--accent-soft); animation: slideDownIn .4s var(--ease) both; overflow: hidden; transition: opacity .25s, transform .25s var(--ease); }
.topbar.lte, .topbar.debt { background: var(--bad-soft); }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .tb-ico { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.topbar.lte .tb-ico, .topbar.debt .tb-ico { color: var(--bad); }
.topbar.closing { opacity: 0; transform: translateY(-8px); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .svgw { width: 16px; height: 16px; }
@keyframes slideDownIn { from { opacity: 0; transform: translateY(-10px); } }
/* профиль */
.uc-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-head .uc-ava { width: 56px; height: 56px; font-size: 22px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin: 4px 4px 6px; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 14px; border: 0; background: var(--line); cursor: pointer; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(18px); }
.device .grow { flex: 1; min-width: 0; }
.device .btn { flex: none; }
.pay-row { align-items: flex-start; }
.pr-title { font-weight: 600; }
.pr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; max-width: 45%; text-align: right; }
.pr-right .st { white-space: normal; }
.pr-right .minus { color: var(--hint); }
.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-back { background: var(--line); color: var(--text); }
.st-muted { background: var(--line); color: var(--hint); }
textarea.field { resize: vertical; min-height: 70px; }
/* галочка «готово» */
.success { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: fadeIn .2s both; transition: opacity .35s; }
.success svg { width: 96px; height: 96px; padding: 14px; border-radius: 28px; background: var(--card); box-shadow: 0 16px 50px rgba(0,0,0,.18); fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; animation: pop .45s var(--ease) both; }
.success circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .5s ease .05s forwards; }
.success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s ease .45s forwards; }
.success.out { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .success circle, .success path { stroke-dashoffset: 0; } }

/* ----- окно приложения PeachVPN для Windows (?desktop=1): панель вкладок и «Назад» — у окна ----- */
:root.desk #view { padding-bottom: 24px; min-height: 0; }
:root.desk .tabbar { display: none !important; }
:root.desk { scrollbar-width: none; }
:root.desk ::-webkit-scrollbar { display: none; }
.desk-back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--link);
  font-weight: 700; font-size: 15px; padding: 2px 6px 10px 0; margin-left: -4px; cursor: pointer; }
.desk-back .svgw { width: 22px; height: 22px; }
