/* Личный кабинет — дизайн нового лендинга (public/v2): «Couture Glass».
   Обсидиан, платина, зелёный только для «активно/успех». Unbounded + Inter,
   Material Symbols Rounded, радиусы 28/18/12, кнопки-капсулы, стекло.
   Только вид: id и классы, на которые завязан JS кабинета, те же. */
:root {
  --ink: #050507; --ink-2: #0b0c10; --ink-3: #14151b;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f3f3f5; --mute: #9c9da6; --mute-2: #6d6e77;
  --green: #30d158; --green-soft: rgba(48,209,88,.14); --red: #ff6b6b; --amber: #f5b544;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --isl-top: max(10px, calc(env(safe-area-inset-top) + 6px)); --isl-h: 56px;
  --glass: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
/* Сброс и база кабинета — общий старый файл стилей сайта сюда не подключается. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select { font-family: inherit; }
html, body { overflow-x: clip; }
body.dash-v3 { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased; padding: 0; }
body.dash-v3::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 520px at 80% -10%, rgba(255,255,255,.06), transparent 62%),
              radial-gradient(700px 480px at 6% 110%, rgba(48,209,88,.035), transparent 60%); }
.dash-v3 a { opacity: 1; color: inherit; }
.dash-v3 ul, .dash-v3 ol { list-style: none; }
.dash-v3 button { font-family: inherit; }
.dash-v3 :focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.ms { font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal; font-size: 22px; line-height: 1;
  display: inline-block; font-variation-settings: "FILL" 0, "wght" 400, "opsz" 24; -webkit-font-smoothing: antialiased;
  white-space: nowrap; overflow: hidden; flex: none; }

/* ---------- кнопки-капсулы ---------- */
.dash-v3 .dv-btn, .dash-v3 .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1.2 var(--body); cursor: pointer;
  text-decoration: none; white-space: nowrap; box-sizing: border-box; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, opacity .2s; }
.dash-v3 .dv-btn:active, .dash-v3 .btn:active { transform: scale(.97); }
.dash-v3 .dv-btn-white, .dash-v3 .btn-glow { background: #fff; color: #050507; border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 10px 34px -12px rgba(255,255,255,.4); }
.dash-v3 .dv-btn-white:hover, .dash-v3 .btn-glow:hover { background: #fff; color: #050507; transform: translateY(-1px);
  box-shadow: 0 0 0 1px #fff inset, 0 14px 44px -12px rgba(255,255,255,.55); }
.dash-v3 .dv-btn-dark, .dash-v3 .btn-outline { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--text); box-shadow: none; }
.dash-v3 .dv-btn-dark:hover, .dash-v3 .btn-outline:hover { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.22); }
.dash-v3 .dv-btn-sm, .dash-v3 .btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.dash-v3 .btn-lg { min-height: 54px; font-size: 16px; }
.dash-v3 .dv-btn-block { width: 100%; }
.dash-v3 .dv-btn[disabled], .dash-v3 .btn[disabled], .dash-v3 .dv-btn.disabled, .dash-v3 .btn.disabled { opacity: .4; pointer-events: none; }
.dv-btn .ms, .btn .ms { font-size: 19px; }
.dv-btn.is-done { background: var(--green-soft) !important; border-color: rgba(48,209,88,.4) !important; color: var(--green) !important; box-shadow: none !important; }

/* ---------- остров сверху (как Dynamic Island на v2) ---------- */
.isl-wrap { position: fixed; inset: 0 0 auto; z-index: 70; pointer-events: none;
  padding: var(--isl-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
.isl-wrap::before { content: ""; position: absolute; inset: 0 0 auto; height: env(safe-area-inset-top); background: var(--ink); }
.isl { pointer-events: auto; position: relative; margin: 0 auto; width: 100%; max-width: max(1200px, var(--isl-need, 0px)); border-radius: 30px;
  background: rgba(12,13,17,.66); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .35s, border-radius .5s var(--ease), max-width .5s var(--ease); }
.isl.scrolled { background: rgba(10,11,14,.84); }
.isl.open { background: rgba(10,11,14,.95); border-radius: 28px; }
.isl-bar { display: flex; align-items: center; gap: 14px; height: var(--isl-h); padding: 0 8px 0 18px; }
.dash-v3 .logo { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -.04em; flex: none; }
.logo img { width: 26px; height: 26px; object-fit: contain; }
.logo span { white-space: nowrap; }
.isl-links { display: flex; gap: 2px; margin: 0 auto; font-size: 14.5px; position: relative; }
.dash-v3 .isl-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--mute);
  transition: color .2s, background .25s; white-space: nowrap; }
.isl-links a .ms { font-size: 19px; }
/* Подписи разделов на языке не влезают в капсулу (orris-shell.js, fitIsl) — остаются иконки, подпись во всплывающей подсказке. */
.isl.isl-compact .isl-links a > span:not(.ms):not(.dv-nav-badge) { display: none; }
.dash-v3 .isl.isl-compact .isl-links a { padding: 8px 11px; }
.dash-v3 .isl-links a:hover { color: var(--text); }
.dash-v3 .isl-links a.active { color: var(--text); background: rgba(255,255,255,.08); }
.dv-nav-badge { font-size: 12px; font-weight: 600; color: var(--green); }
.dv-nav-badge:empty { display: none; }
.isl-right { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.isl-links + .isl-right { margin-left: 0; }
.isl-loc { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--mute); font-size: 13.5px; font-weight: 500; cursor: pointer; flex: none;
  transition: color .2s, background .2s, border-color .2s; }
.isl-loc .ms { font-size: 18px; }
.isl-loc:hover { color: var(--text); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.isl-ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: var(--text);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.isl-ic:hover { background: rgba(255,255,255,.12); }
.isl-ic:active { transform: scale(.92); }
.isl-ic .ms { font-size: 20px; }
.isl-me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 4px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.07); color: var(--text); cursor: pointer; flex: none; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.isl-me:hover { background: rgba(255,255,255,.12); }
.isl-me .dv-avatar { width: 32px; height: 32px; border-radius: 50%; font-size: 14px; }
.isl-me .ms { font-size: 20px; color: var(--mute); transition: transform .4s var(--ease); }
.isl.open .isl-me .ms { transform: rotate(180deg); }
.dv-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, #fff, #9a9ba3); color: #050507; font: 700 15px/1 var(--display); }
.isl-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.isl.open .isl-menu { grid-template-rows: 1fr; }
.isl-menu-in { overflow: hidden; min-height: 0; }
.isl-panel { padding: 4px 10px 12px; border-top: 1px solid transparent; opacity: 0; transform: translateY(-6px);
  transition: opacity .3s, transform .4s var(--ease); display: grid; gap: 6px; }
.isl.open .isl-panel { opacity: 1; transform: none; transition-delay: .08s; border-top-color: var(--line); }
.dv-account { display: flex; align-items: center; gap: 12px; padding: 12px 8px 8px; min-width: 0; }
.dv-account-txt { min-width: 0; flex: 1; }
.dv-account-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-account-status { font-size: 13px; font-weight: 600; color: var(--mute-2); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.dv-account-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.dv-account-status:empty::before { display: none; }
.dv-account-status.is-on { color: var(--green); }
.dv-account-status.is-off { color: var(--red); }
.isl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dash-v3 .isl-grid a, .isl-grid button { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 16px; font-size: 15px;
  font-weight: 500; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.isl-grid a span:last-child, .isl-grid button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-v3 .isl-grid a:hover, .isl-grid button:hover, .dash-v3 .isl-grid a:active { background: rgba(255,255,255,.06); }
.isl-grid .ms { font-size: 21px; color: var(--mute); }
.isl-grid .is-danger, .isl-grid .is-danger .ms { color: var(--red); }
.isl-locrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; font-size: 15px; text-align: left; }
.isl-locrow .ms { font-size: 21px; color: var(--mute); }
.isl-locrow-t { font-weight: 500; }
.isl-locrow-v { margin-left: auto; color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.isl-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .35s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.isl-scrim.show { opacity: 1; pointer-events: auto; }

/* ---------- плавающая капсула-навигация снизу (телефон, планшет) ---------- */
.dock { display: none; }
@media (max-width: 1080px) {
  .isl-links { display: none; }
  .isl-links + .isl-right { margin-left: auto; }
  .dock { display: flex; position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
    bottom: max(12px, calc(env(safe-area-inset-bottom) + 6px)); width: calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-width: 520px; padding: 6px; gap: 2px; border-radius: 30px;
    background: rgba(12,13,17,.72); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 18px 50px -14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); }
  .dock-pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 24px; background: rgba(255,255,255,.1);
    transition: transform .45s var(--ease), width .45s var(--ease); pointer-events: none; }
  .dash-v3 .dock a { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; height: 54px; border-radius: 24px; color: var(--mute); font-size: 11px; font-weight: 600; letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent; transition: color .25s, transform .25s var(--ease); }
  .dock a .ms { font-size: 23px; transition: font-variation-settings .3s; }
  .dock a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .dash-v3 .dock a.active { color: var(--text); }
  .dock a.active .ms { font-variation-settings: "FILL" 1, "wght" 500, "opsz" 24; }
  .dock a:active { transform: scale(.94); }
  body.dash-v3 { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .dock a span:last-child { display: none; }
  .dash-v3 .dock a { height: 48px; }
}
@media (min-width: 1081px) { .isl-locrow, .isl-panel .dv-hide-desk { display: none; } }
@media (max-width: 1080px) { .isl-loc { display: none; } }

/* ---------- каркас ---------- */
.dash-wrap { width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box;
  padding: calc(var(--isl-top) + var(--isl-h) + 30px) max(24px, env(safe-area-inset-right)) 120px max(24px, env(safe-area-inset-left)); }
.dash-v3 .dash-wrap { display: block; min-height: 0; }
.dash-v3 .dash-main { min-width: 0; margin: 0; padding: 0; min-height: 0; overflow: visible; flex: none; }
.dash-v3 .dashboard-section { max-width: none; margin: 0; }
.dashboard-section { display: none; }
.dashboard-section.active { display: block; }
.dashboard-section.active > * { animation: dvIn .55s var(--ease) both; }
.dashboard-section.active > *:nth-child(2) { animation-delay: .05s; }
.dashboard-section.active > *:nth-child(3) { animation-delay: .1s; }
.dashboard-section.active > *:nth-child(4) { animation-delay: .15s; }
.dashboard-section.active > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes dvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dv-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-2); line-height: 1.3; }
.dv-muted { color: var(--mute); font-size: 14px; }
.dash-v3 .dash-title { font: 600 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.035em; margin: 0 0 8px; overflow-wrap: break-word; }
.dash-v3 .dash-sub { color: var(--mute); font-size: 16px; margin: 0 0 26px; max-width: 40em; }
.dv-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; min-width: 0; box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.dv-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dv-card-title { font: 600 21px/1.25 var(--display); letter-spacing: -.025em; margin: 0; }
.dv-card-title-lg { font-size: clamp(21px, 2vw, 26px); }
.dv-card-desc { color: var(--mute); font-size: 15px; line-height: 1.55; margin: 8px 0 18px; max-width: 40em; }

/* шапка обзора */
.dv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; flex-wrap: wrap; }
.dv-head-text { min-width: 0; }
.dv-hello { font: 600 clamp(28px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.04em; margin: 10px 0 0; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff 0%, #d9dae0 45%, #9a9ba5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-v3 .sub-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  white-space: nowrap; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--mute); }
.dash-v3 .sub-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dash-v3 .sub-badge.sub-active { color: var(--green); background: var(--green-soft); border-color: rgba(48,209,88,.28); }
.dash-v3 .sub-badge.sub-inactive { color: var(--red); background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.22); }
.dash-v3 .sub-badge.is-blank { visibility: hidden; }

/* стат-плитки */
.dv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dv-stat { display: flex; flex-direction: column; gap: 6px; min-height: 178px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease); }
.dv-stat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.dv-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dv-stat-top .ms { font-size: 20px; color: var(--mute-2); }
.dv-big { font: 600 34px/1.05 var(--display); letter-spacing: -.045em; margin-top: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; }
.dv-big small { font-size: 15px; font-weight: 500; margin-left: 6px; color: var(--mute); letter-spacing: -.01em; }
.dv-big.is-text, .dv-big.dv-big-mid { font-size: 26px; }
.dv-big.is-off { color: var(--red); }
.dv-stat-sub { color: var(--mute); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dv-stat-sub2 { color: var(--mute-2); font-size: 13px; line-height: 1.4; }
.dv-stat-sub2:empty { display: none; }
.dv-stat-link { margin-top: auto; padding-top: 10px; color: var(--text); font-weight: 600; font-size: 14.5px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px; }
.dv-stat-link .ms { font-size: 18px; transition: transform .25s var(--ease); }
.dv-stat-link:hover .ms { transform: translateX(3px); }
.dv-stat-link:empty { display: none; }
.dv-meter { height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.dv-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width 1s var(--ease); }
.dv-meter.is-low i { background: var(--amber); }
.dv-meter[hidden] { display: none; }

/* скелетоны */
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 800px 100%; animation: skel 1.4s infinite linear; }
@keyframes skel { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.skel-l { height: 12px; width: 42%; margin-bottom: 26px; }
.skel-v { height: 34px; width: 64%; }
.skel-s { height: 12px; width: 80%; margin-top: 14px; }
.skel-t { height: 22px; width: 50%; margin-bottom: 18px; }
.skel-row { height: 56px; border-radius: 16px; margin-top: 10px; }
.skel-btn { height: 48px; border-radius: 999px; margin-top: 16px; width: 40%; }
.skel-full { width: 100%; }
.skel-val { display: block; height: 28px; width: 56px; }
#loadingState .dv-stat { min-height: 160px; }
#loadingState > * + * { margin-top: 16px; }

/* ---------- подключение + QR ---------- */
.dv-connect-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 16px; }
.dv-connect-wrap.no-qr { grid-template-columns: minmax(0, 1fr); }
.dv-connect-wrap.no-qr .dv-qr { display: none; }
.dv-seg { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line);
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-sizing: border-box; }
.dv-seg::-webkit-scrollbar { display: none; }
.dv-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease); }
.dv-seg-btn { position: relative; z-index: 1; border: 0; background: none; color: var(--mute); font: 600 14.5px/1 var(--body); padding: 11px 18px;
  border-radius: 999px; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: color .3s; -webkit-tap-highlight-color: transparent; }
.dv-seg-btn:hover { color: var(--text); }
.dv-seg-btn.active { color: #050507; }
.dv-seg:not(.has-pill) .dv-seg-btn.active { background: #fff; }
.dv-own { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid rgba(48,209,88,.24); background: linear-gradient(180deg, rgba(48,209,88,.07), rgba(48,209,88,.015)); }
.dv-own img { width: 42px; height: 42px; border-radius: 11px; flex: none; border: 1px solid var(--line-2); }
.dv-own-txt { flex: 1; min-width: 0; }
.dv-own-title { font-weight: 600; font-size: 15px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dash-v3 .own-app-badge { background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 0; }
.dv-own-lead { font-size: 13.5px; color: var(--mute); margin: 3px 0 0; line-height: 1.4; }
.dv-link-row { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.dv-link { flex: 1 1 auto; min-width: 0; height: 48px; line-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); font: 13.5px/46px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: rgba(243,243,245,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-sizing: border-box; transition: border-color .2s; }
.dv-link:hover { border-color: var(--line-2); }
.dv-link-btns { display: flex; gap: 10px; flex-shrink: 0; }
.dv-link-btns .dv-btn { min-height: 48px; }
.dv-steps { padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dv-steps li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.dv-step-n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  font: 500 13px/1 var(--display); color: var(--mute); flex: none; }
.dv-steps b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.dv-steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.dv-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 20px; color: var(--mute); font-size: 14.5px; font-weight: 600; }
.dv-more:hover { color: var(--text); }
.dv-reissue { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none;
  color: var(--mute); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dv-reissue .ms { font-size: 18px; }
.dv-reissue:hover { color: var(--text); }
.dv-reissue:disabled { opacity: .5; cursor: default; }
.dv-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.dv-qr-box { width: 196px; height: 196px; padding: 12px; border-radius: 22px; background: #fff; display: grid; place-items: center;
  opacity: .12; transform: scale(.96); transition: opacity .5s, transform .6s var(--ease); }
.dv-qr.ready .dv-qr-box { opacity: 1; transform: none; }
.dv-qr-box { box-sizing: border-box; }
/* QR заполняет подложку внутри её белых полей — раньше был ровно с подложку и вылезал на ширину поля */
.dv-qr-box canvas { width: 100% !important; height: 100% !important; display: block; }
.dv-qr p { color: var(--mute); font-size: 14px; line-height: 1.5; margin: 0; max-width: 240px; }

/* пустые состояния (нет подписки / истекла) */
.dv-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; margin-bottom: 16px;
  background: radial-gradient(70% 120% at 100% 0%, rgba(48,209,88,.09), transparent 60%), var(--glass); }
.dv-empty .ms { grid-row: span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 28px; }
.dv-empty.is-expired .ms { color: var(--amber); }
.dv-empty h2 { font: 600 21px/1.25 var(--display); letter-spacing: -.025em; margin: 0; }
.dv-empty p { margin: 0; color: var(--mute); font-size: 15px; }

/* ---------- устройства ---------- */
.dv-devices { margin-bottom: 16px; }
.dv-devices .dv-card-desc { margin-bottom: 14px; }
.dv-dev-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.dv-dev-tools[hidden] { display: none; }
.dv-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 340px; }
.dv-search .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--mute-2); pointer-events: none; }
.dv-search input { width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.3);
  color: var(--text); font: 15px var(--body); outline: none; box-sizing: border-box; transition: border-color .2s; }
.dv-search input:focus { border-color: var(--line-2); }
.dv-search input::placeholder { color: var(--mute-2); }
.dv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dv-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--mute); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.dv-chip b { font-weight: 500; color: var(--mute-2); }
.dv-chip:hover { color: var(--text); border-color: var(--line-2); }
.dv-chip:active { transform: scale(.95); }
.dv-chip[aria-pressed="true"] { background: #fff; color: #050507; border-color: #fff; }
.dv-chip[aria-pressed="true"] b { color: rgba(5,5,7,.55); }
.dv-dev-list { display: flex; flex-direction: column; }
.dv-dev-row { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line); transition: opacity .35s, transform .4s var(--ease); }
.dv-dev-list > .dv-dev-row:first-child, .dv-dev-list > .dv-dev-grp:first-child > .dv-dev-row { border-top: 0; }
.dv-dev-row.is-gone { opacity: 0; transform: translateX(24px); }
.dv-dev-ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); display: grid; place-items: center; }
.dv-dev-ico svg { width: 20px; height: 20px; }
.dv-dev-main { min-width: 0; }
.dv-dev-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.dv-dev-name span { overflow: hidden; text-overflow: ellipsis; }
.dv-dev-x { flex: none; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--mute); }
.dv-dev-meta-m { display: none; color: var(--mute); font-size: 13px; margin-top: 2px; }
.dv-dev-os, .dv-dev-last { color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-grp-toggle { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dv-grp-toggle .ms { font-size: 19px; transition: transform .35s var(--ease); }
.dv-dev-grp.open .dv-grp-toggle .ms { transform: rotate(180deg); }
.dv-grp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.dv-dev-grp.open .dv-grp-body { grid-template-rows: 1fr; }
.dv-grp-in { overflow: hidden; min-height: 0; padding-left: 22px; border-left: 1px solid var(--line); margin-left: 21px; }
.dv-grp-in .dv-dev-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
.dv-dev-more { display: flex; justify-content: center; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 2px; }
.dv-dev-more[hidden] { display: none; }
.dash-v3 .pk-empty { padding: 24px; color: var(--mute); font-size: 14.5px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-md); line-height: 1.55; }
.pk-note { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.dv-upgrade { margin-top: 14px; }
.pk-note-t { font-weight: 600; margin-bottom: 4px; }
.pk-note-d { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
#deviceUpgrade .btn { white-space: normal; text-align: left; line-height: 1.3; height: auto; padding: 10px 18px; margin: 6px 6px 0 0; }
.dv-up-line { display: block; font-size: 12px; opacity: .75; font-weight: 500; }

/* ---------- подписка и оплата ---------- */
.dv-sub-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
/* «Подписка»: слева сколько осталось (едет рядом при прокрутке), справа тарифы сеткой 2×2 */
@media (min-width: 1100px) {
  .dv-sub-grid > .dv-sub-col:first-child { position: sticky; top: calc(var(--isl-top, 10px) + var(--isl-h, 64px) + 18px); }
  .dash-v3 #subRenewSlot .ppm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-v3 #subRenewSlot .ppm-row { align-items: flex-start; }
}
.sub-hero { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sub-hero .dv-big { margin-top: 10px; }
.dv-sub-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-v3 .hero-status { margin: 0; }
.dash-v3 .hero-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dash-v3 .hsg-cell { min-width: 0; }
.dash-v3 .hsg-cell label { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 600; color: var(--mute-2); margin-bottom: 6px; }
.dash-v3 .hsg-cell > span { display: block; font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-v3 .hsg-cell-sub { color: var(--mute); font-size: 13px; }
.dash-v3 .sec-head h3, .dash-v3 .renew-title { font: 600 19px/1.3 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.dash-v3 .renew-block { margin: 0; }
.dash-v3 .pay-plans, .dash-v3 .promo-wrap { display: none; }
.dash-v3 .pay-plans-mobile { display: block; }
.dash-v3 .ppm-card { background: none; border: 0; padding: 0; }
.dash-v3 .ppm-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.dash-v3 .ppm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.dash-v3 .ppm-row:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.dash-v3 .ppm-row:active { transform: scale(.985); }
.dash-v3 .ppm-row.act { border-color: rgba(255,255,255,.6); background: linear-gradient(170deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 70%);
  box-shadow: 0 20px 60px -30px rgba(255,255,255,.25); }
.dash-v3 .ppm-name { font: 600 16px/1.25 var(--body); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); }
.dash-v3 .ppm-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); border: 0; text-transform: none; letter-spacing: 0; }
.dash-v3 .ppm-save { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); border: 0; }
.dash-v3 .ppm-price { font-size: 13.5px; color: var(--mute); margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dash-v3 .ppm-price strong { font: 600 19px/1.1 var(--display); letter-spacing: -.03em; color: var(--text); }
.dash-v3 .ppm-pr-old { text-decoration: line-through; color: var(--mute-2); font-size: 13px; }
.dash-v3 .ppm-dev { font-size: 13px; color: var(--mute); margin: 0 0 6px; }
.dash-v3 .ppm-per { color: var(--mute-2); font-size: 13px; }
.dash-v3 .ppm-extra { color: var(--amber); font-size: 13px; margin: 4px 0 0; line-height: 1.35; }
.dash-v3 .pr-extra { color: var(--amber); font-weight: 600; }
.dash-v3 .ppm-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); display: grid; place-items: center; flex: none; transition: border-color .25s; }
.dash-v3 .ppm-row.act .ppm-radio { border-color: #fff; }
.dash-v3 .ppm-radio-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.dash-v3 .ppm-row.act .ppm-radio-dot { opacity: 1; transform: none; }
.dash-v3 .ppm-promo { display: flex; gap: 8px; align-items: center; margin: 14px 0 6px; }
.dash-v3 .ppm-promo-input, .dash-v3 .sec-input, .dash-v3 .ref-link-input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font: 15px var(--body); outline: none; box-sizing: border-box; transition: border-color .2s; }
.dash-v3 .ppm-promo-input:focus, .dash-v3 .sec-input:focus, .dash-v3 .ref-link-input:focus { border-color: rgba(255,255,255,.3); }
.dash-v3 .ppm-promo-input::placeholder, .dash-v3 .sec-input::placeholder, .dash-v3 .ref-link-input::placeholder { color: var(--mute-2); }
.dash-v3 .ppm-promo-btn { height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text);
  font: 600 14.5px var(--body); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.dash-v3 .ppm-promo-btn:hover { background: rgba(255,255,255,.1); }
.dash-v3 .ppm-promo-btn:active { transform: scale(.96); }
.dash-v3 .ppm-promo-result { font-size: 14px; margin: 4px 4px 6px; animation: dvIn .35s var(--ease); }
.dash-v3 .ppm-cta { width: 100%; min-height: 56px; padding: 0 22px; border-radius: 999px; border: 0; background: #fff; color: #050507; font: 600 16px var(--body);
  cursor: pointer; margin-top: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 12px 40px -12px rgba(255,255,255,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.dash-v3 .ppm-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 16px 50px -10px rgba(255,255,255,.55); }
.dash-v3 .ppm-cta:active { transform: scale(.98); }
.dash-v3 .ppm-cta:disabled { opacity: .6; }
.dv-discount { margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: rgba(48,209,88,.08); border: 1px solid rgba(48,209,88,.2);
  color: var(--green); font-size: 13.5px; font-weight: 500; }
.dv-sub-auto { margin-top: 10px; }
.dv-sub-body { font-size: 14px; line-height: 1.55; color: rgba(243,243,245,.72); }
.dv-stripe-card { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.dv-card-exp { color: var(--mute-2); }
.dv-act { margin-top: 12px; }
.dv-stripe-card .dv-act { margin-top: 8px; }
#accountSubBody .btn, #stripeSubBody .btn { margin-top: 2px; }
#inactiveSubRow { margin-bottom: 16px; }

/* ---------- установка ---------- */
.dash-v3 .platform-tabs { position: relative; display: flex; gap: 2px; padding: 4px; margin: 4px 0 18px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-sizing: border-box; }
.dash-v3 .platform-tabs::-webkit-scrollbar { display: none; }
.dash-v3 .platform-tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 0; border-radius: 999px; background: none;
  color: var(--mute); font: 600 14.5px/1 var(--body); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background .3s, color .3s; }
.dash-v3 .platform-tab svg { width: 15px; height: 15px; }
.dash-v3 .platform-tab:hover { color: var(--text); }
.dash-v3 .platform-tab.active { background: #fff; color: #050507; }
.dash-v3 .platform-guide { display: none; }
.dash-v3 .platform-guide.active { display: block; animation: dvIn .45s var(--ease); background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.dash-v3 .platform-guide h3 { font: 600 21px/1.25 var(--display); letter-spacing: -.025em; margin: 0 0 16px; }
.dash-v3 .platform-desc { color: var(--mute); font-size: 15px; margin: 0 0 18px; line-height: 1.55; }
.dash-v3 .own-app { border: 1px solid rgba(48,209,88,.24); background: linear-gradient(180deg, rgba(48,209,88,.07), rgba(48,209,88,.015));
  border-radius: var(--r-md); padding: 20px; margin: 0 0 28px; max-width: none; }
.dash-v3 .own-app-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-v3 .own-app-icon { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); flex: none; background: var(--ink); }
.own-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.dash-v3 .own-app-compact { padding: 14px 16px; margin: 0 0 22px; }
.dash-v3 .own-app-compact .own-app-lead { margin: 0 0 10px; }
.dash-v3 .own-app-title { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-v3 .own-app-lead { margin: 3px 0 0; font-size: 14px; color: var(--mute); line-height: 1.45; }
.dash-v3 .own-app-steps { margin: 0 0 16px; padding-left: 22px; list-style: decimal; font-size: 14px; color: var(--mute); line-height: 1.6; }
.dash-v3 .own-app-steps li { margin: 0 0 6px; }
.dash-v3 .own-app-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dash-v3 .own-app-note { margin: 12px 0 0; font-size: 13px; color: var(--mute-2); line-height: 1.5; }
.dash-v3 .setup-alt-title, .dash-v3 .setup-other-title { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.dash-v3 .setup-other { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dash-v3 .setup-other-desc { margin: 0 0 10px; font-size: 14px; color: var(--mute); line-height: 1.55; }
.dash-v3 .setup-video { display: block; width: 100%; max-width: 420px; margin: 0 0 18px; border-radius: var(--r-md); border: 1px solid var(--line); }
.dash-v3 .app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0 0 8px; }
.dash-v3 .app-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255,255,255,.025); color: var(--text); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.dash-v3 .app-card:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.dash-v3 .app-card:active { transform: scale(.98); }
.dash-v3 .app-card .rec { position: absolute; top: -9px; right: 12px; background: #0d0e12; border: 1px solid rgba(48,209,88,.4); color: var(--green);
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.dash-v3 .app-card-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.07); }
.dash-v3 .app-card-icon svg { width: 22px; height: 22px; }
.dash-v3 .app-card-info { display: flex; flex-direction: column; min-width: 0; }
.dash-v3 .app-card-name { font-weight: 600; font-size: 15px; }
.dash-v3 .app-card-platform { font-size: 12.5px; color: var(--mute-2); }
.dash-v3 .sub-link-box, .dash-v3 .app-modal-sub { padding: 12px 16px; border-radius: var(--r-sm); background: rgba(0,0,0,.35); border: 1px solid var(--line);
  word-break: break-all; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgba(243,243,245,.75); cursor: pointer; transition: border-color .2s, background .2s; }
.dash-v3 .sub-link-box:hover, .dash-v3 .app-modal-sub:hover { border-color: var(--line-2); }
.dash-v3 .sub-link-box.is-done, .dash-v3 .dv-link.is-done { border-color: rgba(48,209,88,.5); background: rgba(48,209,88,.08); }
.dash-v3 .deeplink-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform .25s var(--ease), background .2s; }
.dash-v3 .deeplink-btn.btn-glow { background: #fff; color: #050507; border: 0; }
.dash-v3 .deeplink-btn.btn-outline { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line-2); }
.dash-v3 .deeplink-btn:active { transform: scale(.97); }
.dash-v3 .deeplink-btn.disabled { opacity: .35; pointer-events: none; }
.setup-paywall-msg { margin-bottom: 20px; }
.setup-paywall-msg h3 { font: 600 21px/1.25 var(--display); letter-spacing: -.025em; margin: 0 0 6px; }
.setup-paywall-msg p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
#setupPaywall { max-width: 560px; }

/* ---------- аккаунт ---------- */
.dv-acc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dv-acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-v3 .dv-logout { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--body); white-space: nowrap; background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.24); color: var(--red);
  transition: background .2s, transform .2s var(--ease); }
.dash-v3 .dv-logout:hover { background: rgba(255,107,107,.14); }
.dash-v3 .dv-logout:active { transform: scale(.96); }
.dash-v3 .dv-logout .ms { font-size: 19px; }
.dash-v3 .dv-cookies { background: rgba(255,255,255,.05); border-color: var(--line-2); color: var(--text); }
.dash-v3 .dv-cookies:hover { background: rgba(255,255,255,.09); }
.dash-v3 #sec-security .sec-block, .dash-v3 .sec-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 26px; margin-top: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.dash-v3 .sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dash-v3 .sec-head h3 { margin: 0; font-size: 17px; }
.dash-v3 .sec-block-desc, .dash-v3 .sec-card .sec-desc { color: var(--mute); font-size: 14px; margin-bottom: 14px; line-height: 1.5; }
.dash-v3 .sec-card h3 { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.dash-v3 .sec-card .btn { align-self: flex-start; margin-top: 4px; }
.dash-v3 .sec-current-row { display: flex; gap: 6px; font-size: 14px; flex-wrap: wrap; }
.dv-stack { display: flex; flex-direction: column; gap: 8px; }
.sec-note { color: var(--mute); font-size: 13px; }
.dash-v3 .sec-code { letter-spacing: 4px; text-align: center; }
.dash-v3 .sec-current-row .lbl { color: var(--mute); }
.dash-v3 .sec-current-row .val { font-weight: 600; overflow-wrap: anywhere; }
.dash-v3 .pk-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.dash-v3 .pk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: border-color .2s; }
.dash-v3 .pk-item:hover { border-color: var(--line-2); }
.dash-v3 .pk-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-v3 .pk-info > div:last-child { min-width: 0; }
.dash-v3 .pk-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; }
.dash-v3 .pk-name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.dash-v3 .pk-meta { font-size: 13px; color: var(--mute-2); margin-top: 2px; }
.dash-v3 .pk-del { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--mute);
  font: 600 13.5px var(--body); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.dash-v3 .pk-del:hover { color: var(--red); border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.06); }
/* Раздел «Аккаунт»: на широком экране две колонки — слева способы входа и passkey
   плитками, справа почта, пароль и уведомления. Плитки появляются по очереди. */
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
@media (min-width: 1100px) { .acc-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.acc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-v3 #sec-security .acc-col > .sec-block, .dash-v3 #sec-security .acc-col > .sec-card { margin-top: 0; }
.acc-contents { display: contents; }
.dash-v3 .acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 10px; margin-top: 4px; }
.dash-v3 .acc-tiles .pk-empty { grid-column: 1 / -1; }
.dash-v3 .acc-tiles .pk-item { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 18px; padding: 16px;
  transition: border-color .2s, background .2s, transform .25s var(--ease); animation: accIn .5s var(--ease) backwards; }
.dash-v3 .acc-tiles .pk-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.035); }
.dash-v3 .acc-tiles .pk-info { flex-direction: column; align-items: flex-start; gap: 12px; }
.dash-v3 .acc-tiles .pk-item > button { align-self: flex-start; margin-left: 0; }
.dash-v3 .acc-tiles .pk-item:nth-child(2) { animation-delay: .06s; }
.dash-v3 .acc-tiles .pk-item:nth-child(3) { animation-delay: .12s; }
.dash-v3 .acc-tiles .pk-item:nth-child(n+4) { animation-delay: .18s; }
.dash-v3 #telegramLinkList .pk-item { animation-delay: .12s; }
/* привязанный способ — зелёная точка на иконке */
.dash-v3 .pk-item .pk-icon { position: relative; transition: transform .25s var(--ease); }
.dash-v3 .pk-item:hover .pk-icon { transform: scale(1.06); }
.dash-v3 .pk-item.is-on .pk-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px var(--ink-2, #0c0c0e); animation: accDot .4s .3s var(--ease) backwards; }
/* Google, Apple и Telegram — всегда три плитки: растягиваем на всю строку, без пустой ячейки */
.dash-v3 .acc-tiles.fit { grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); }
/* Телефон: плитка превращается в компактную строку — иконка и подпись слева, кнопка справа */
@media (max-width: 600px) {
  .dash-v3 .acc-tiles, .dash-v3 .acc-tiles.fit { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dash-v3 .acc-tiles .pk-item { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .dash-v3 .acc-tiles .pk-info { flex-direction: row; align-items: center; flex: 1; }
  .dash-v3 .acc-tiles .pk-item > button { align-self: center; flex: none; }
}
@keyframes accIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes accDot { from { transform: scale(0); } to { transform: scale(1); } }
.dash-v3 .notify-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.dash-v3 .notify-name { font-weight: 600; font-size: 15px; }
.dash-v3 .notify-sub { font-size: 13px; color: var(--mute-2); margin-top: 2px; }
.dash-v3 .toggle { position: relative; display: inline-block; width: 48px; height: 30px; flex: none; cursor: pointer; }
.dash-v3 .toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.dash-v3 .toggle-track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); border: 0; transition: background .35s var(--ease); }
.dash-v3 .toggle-track::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .35s var(--ease); }
.dash-v3 .toggle input:checked + .toggle-track { background: var(--green); }
.dash-v3 .toggle input:checked + .toggle-track::before { transform: translateX(18px); }
.dash-v3 .toggle input:focus-visible + .toggle-track { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }

/* ---------- друзья ---------- */
.dash-v3 .ref-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 28px; margin: 0;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(70% 120% at 100% 0%, rgba(48,209,88,.11), transparent 60%), var(--ink-2); }
.dash-v3 .ref-banner-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.dash-v3 .ref-banner-ic .ms { font-size: 28px; }
.dash-v3 .ref-banner-body { min-width: 0; }
.dash-v3 .ref-banner h2 { font: 600 21px/1.25 var(--display); letter-spacing: -.025em; margin: 0 0 6px; }
.dash-v3 .ref-banner p { color: var(--mute); font-size: 15px; margin: 0; line-height: 1.5; }
.dash-v3 .ref-bonus { display: flex; gap: 10px; }
.dash-v3 .ref-bonus-item { padding: 14px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line); text-align: left; min-width: 110px; }
.dash-v3 .ref-bonus-item .days { font: 600 26px/1 var(--display); letter-spacing: -.04em; color: var(--text); }
.dash-v3 .ref-bonus-item:first-child .days { color: var(--green); }
.dash-v3 .ref-bonus-item .label { font-size: 13px; color: var(--mute); margin-top: 6px; }
.dash-v3 .ref-link-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 16px; }
.dash-v3 .ref-link-box-title { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.dash-v3 .ref-link-section + .ref-link-section { margin-top: 14px; }
.dash-v3 .ref-link-row { display: flex; align-items: center; gap: 8px; }
.dash-v3 .ref-link-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; text-overflow: ellipsis; }
.dash-v3 select.ref-link-input { font-family: var(--body); appearance: none; -webkit-appearance: none; padding-right: 14px; }
.dash-v3 .ref-link-copy { flex: none; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05);
  color: var(--text); font: 600 14.5px var(--body); cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s var(--ease), color .2s, border-color .2s; }
.dash-v3 .ref-link-copy:hover { background: rgba(255,255,255,.1); }
.dash-v3 .ref-link-copy:active { transform: scale(.96); }
.dash-v3 .ref-link-copy.is-done { color: var(--green); border-color: rgba(48,209,88,.45); background: var(--green-soft); }
.dash-v3 .ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dash-v3 .ref-stat { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; text-align: left; }
.dash-v3 .ref-stat .val { font: 600 30px/1.1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dash-v3 .ref-stat .lbl { font-size: 13.5px; color: var(--mute); margin-top: 6px; }
/* «Друзья»: ссылки слева, статистика справа одной карточкой; блок денег — баланс и история
   слева, форма вывода справа. Подпись «Сайт / Telegram» — внутри поля со ссылкой. */
.ref-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .ref-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.dash-v3 .ref-grid > .ref-link-box, .dash-v3 .ref-grid > .ref-stats { margin-top: 0; animation: accIn .5s var(--ease) backwards; }
.dash-v3 .ref-grid > .ref-stats { animation-delay: .08s; }
.ref-link-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-v3 .ref-link-head .ref-link-box-title { margin: 0; }
.dash-v3 .ref-share { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--text); color: var(--ink); font: 600 14px var(--body); transition: transform .2s var(--ease), opacity .2s; }
.dash-v3 .ref-share[hidden] { display: none; }
.dash-v3 .ref-share .ms { font-size: 18px; }
.dash-v3 .ref-share:active { transform: scale(.96); }
.ref-link-field { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; padding-left: 5px; border-radius: 999px; cursor: text;
  border: 1px solid var(--line); background: rgba(0,0,0,.3); transition: border-color .2s, background .2s; }
.ref-link-field:hover { border-color: var(--line-2); }
.ref-link-field:focus-within { border-color: rgba(255,255,255,.3); }
.ref-link-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--mute); font-size: 13px; font-weight: 600; }
.ref-link-tag .ms { font-size: 16px; }
.dash-v3 .ref-link-field .ref-link-input { height: 46px; border: 0; background: transparent; padding: 0 16px 0 12px; }
.dash-v3 .ref-grid .ref-stats { grid-template-columns: minmax(0, 1fr); gap: 0; align-content: center; padding: 8px 26px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--line); }
.dash-v3 .ref-grid .ref-stat { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic lbl val"; align-items: center; gap: 14px;
  padding: 16px 0; background: none; border: 0; border-radius: 0; }
.dash-v3 .ref-grid .ref-stat + .ref-stat { border-top: 1px solid var(--line); }
.dash-v3 .ref-grid .ref-stat > .ms { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: rgba(255,255,255,.06); color: var(--mute); transition: transform .25s var(--ease), color .2s; }
.dash-v3 .ref-grid .ref-stat:hover > .ms { transform: scale(1.08); color: var(--text); }
.dash-v3 .ref-grid .ref-stat .lbl { grid-area: lbl; margin: 0; font-size: 14.5px; }
.dash-v3 .ref-grid .ref-stat .val { grid-area: val; font-size: 26px; }
.dash-v3 .ref-bonus-item { transition: transform .25s var(--ease), border-color .2s; }
.dash-v3 .ref-bonus-item:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dash-v3 .ref-cash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; animation: accIn .5s var(--ease) backwards; }
@media (min-width: 900px) { .dash-v3 .ref-cash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; } }
.ref-cash-col { min-width: 0; }
.ref-cash-form { display: flex; flex-direction: column; gap: 10px; }
.dash-v3 .ref-cash-form .ref-link-box-title { margin-bottom: 4px; }
.dash-v3 .ref-cash-form .ref-link-input { flex: none; width: 100%; }
.wd-row2 { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.wd-note { font-size: 13px; color: var(--mute-2); line-height: 1.5; }
.dash-v3 .wd-submit { width: 100%; background: var(--text); color: var(--ink); border-color: transparent; }
.dash-v3 .wd-submit:hover { background: #fff; }
.ref-balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 26px; }
.ref-bal { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: accIn .45s var(--ease) backwards; }
.ref-bal .val { font: 600 26px/1.1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ref-bal .lbl { font-size: 13px; color: var(--mute); margin-top: 6px; }
.ref-bal.is-empty .val { color: var(--mute); }
.wd-list { display: flex; flex-direction: column; }
.wd-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wd-status { flex: none; font-size: 13px; color: var(--mute); }
.wd-empty { padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--mute-2); font-size: 14px; text-align: center; }
@media (max-width: 600px) {
  .dash-v3 .ref-grid .ref-stats { padding: 4px 20px; }
  .dash-v3 .ref-grid .ref-stat { padding: 14px 0; }
  .dash-v3 .ref-grid .ref-stat .val { font-size: 22px; }
}
@media (max-width: 700px) {
  .ref-link-head { flex-wrap: wrap; }
  .dash-v3 .ref-link-row .ref-link-field { flex-basis: 100%; }
}
.dash-v3 .ref-partner-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--mute); font-size: 14.5px; font-weight: 600; }
.dash-v3 .ref-partner-link:hover { color: var(--text); }
.dv-center { text-align: center; }

/* ---------- окна ---------- */
.dash-v3 .app-modal, .dash-v3 .tg-modal, .dv-confirm { position: fixed; inset: 0; z-index: 2600; display: none; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dash-v3 .app-modal.show, .dash-v3 .tg-modal.show, .dv-confirm { display: flex; animation: dvFade .25s ease both; }
@keyframes dvFade { from { opacity: 0; } }
.dash-v3 .app-modal-card, .dash-v3 .tg-modal-card, .dv-confirm-card { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-sizing: border-box;
  background: #0d0e12; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  animation: dvPop .35s var(--ease) both; }
.dv-confirm-card { width: min(440px, 100%); }
@keyframes dvPop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dash-v3 .tg-modal-title, .dv-confirm-title { font: 600 19px/1.3 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.dash-v3 .tg-modal-text, .dv-confirm-text { font-size: 15px; line-height: 1.55; color: var(--mute); margin-bottom: 18px; }
.dv-confirm-act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dv-btn-danger { background: var(--red) !important; color: #fff !important; border-color: transparent !important; }
.dash-v3 .app-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dash-v3 .app-modal-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.07); }
.dash-v3 .app-modal-icon svg { width: 26px; height: 26px; }
.dash-v3 .app-modal-title { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.dash-v3 .app-modal-platform { font-size: 13px; color: var(--mute); margin-top: 3px; }
.dash-v3 .app-modal-close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text);
  display: grid; place-items: center; cursor: pointer; }
.dash-v3 .app-modal-steps { display: flex; flex-direction: column; gap: 20px; }
.dash-v3 .app-modal-step { display: flex; gap: 14px; }
.dash-v3 .app-modal-step-num { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center;
  font: 500 13px/1 var(--display); color: var(--mute); flex: none; }
.dash-v3 .app-modal-step-body { flex: 1; min-width: 0; }
.dash-v3 .app-modal-step-body h4 { margin: 4px 0 4px; font-size: 16px; font-weight: 600; }
.dash-v3 .app-modal-step-body p { margin: 0 0 12px; font-size: 14px; color: var(--mute); line-height: 1.55; }
.dash-v3 .app-modal-manual { margin: 12px 0 6px !important; font-size: 13px; color: var(--mute-2); }
#cardElement { margin: 10px 0 6px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
#cardElementError { min-height: 1.2em; margin-bottom: 8px; color: var(--red); font-size: 13px; }
#tgLinkWidgetContainer { display: flex; justify-content: center; margin: 8px 0 14px; }
.dv-modal-act { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-v3 .app-modal-step-num { background: rgba(255,255,255,.04); }

/* ---------- уведомления ---------- */
.dash-v3 .toast-container { position: fixed; z-index: 10000; top: calc(var(--isl-top) + var(--isl-h) + 12px); left: 50%; right: auto; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.dash-v3 .toast { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: rgba(14,15,19,.92); border: 1px solid var(--line-2); color: var(--text); font-size: 14.5px; font-weight: 500;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 18px 50px -12px rgba(0,0,0,.9); animation: dvToast .45s var(--ease) both; }
.dash-v3 .toast::before { font-family: "Material Symbols Rounded"; font-size: 21px; line-height: 1; content: "info"; color: var(--mute);
  font-variation-settings: "FILL" 1; flex: none; }
.dash-v3 .toast.success::before { content: "check_circle"; color: var(--green); }
.dash-v3 .toast.error::before { content: "error"; color: var(--red); }
.dash-v3 .toast.error { border-color: rgba(255,107,107,.35); }
@keyframes dvToast { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* ---------- окно «Язык и валюта» (разметка, стиль и логика как в public/v2) ---------- */
.loc { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.loc[hidden] { display: none; }
.loc-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s; }
.loc-card { position: relative; width: 100%; max-width: 760px; max-height: min(680px, 100%); display: flex; flex-direction: column;
  border-radius: 28px; background: #0d0e12; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .3s var(--ease); overflow: hidden; }
.loc.show .loc-scrim { opacity: 1; }
.loc.show .loc-card { opacity: 1; transform: none; }
.loc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 8px 28px; }
.loc-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.loc-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); cursor: pointer; display: grid; place-items: center; }
.loc-x .ms { font-size: 20px; }
.loc-tabs { display: none; }
.loc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 8px 28px 28px; overflow: auto; overscroll-behavior: contain; }
.loc-sub { margin: 10px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--mute-2); text-transform: uppercase; }
.loc-list { display: grid; gap: 2px; }
.loc-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 9px 12px; border-radius: 14px; border: 0;
  background: transparent; cursor: pointer; text-align: left; font-size: 15px; transition: background .15s; }
.loc-opt:hover, .loc-opt:focus-visible { background: rgba(255,255,255,.06); }
.loc-opt.on { background: rgba(255,255,255,.08); }
.loc-opt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.loc-opt-t small { color: var(--mute-2); font-size: 12.5px; margin-top: 2px; }
.loc-opt-s { color: var(--mute-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.loc-opt > .ms { font-size: 20px; color: var(--green); }
.loc-sym { width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center;
  font-size: 14px; font-weight: 600; }
.loc-sym .ms { font-size: 18px; color: var(--mute); }
.loc-note { margin: 14px 4px 0; font-size: 13px; color: var(--mute-2); line-height: 1.5; }
html.loc-lock, html.loc-lock body { overflow: hidden; }

/* телефон и узкий планшет: панель снизу со вкладками, высота по содержимому */
@media (max-width: 700px) {
  .loc { align-items: flex-end; padding: 0; }
  .loc-card { max-width: none; max-height: 88vh; max-height: 88dvh; border-radius: 26px 26px 0 0; border-bottom: 0;
    transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .loc.show .loc-card { transform: none; }
  .loc-head { padding: 18px 16px 6px 22px; }
  .loc-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255,255,255,.18); }
  .loc-tabs { display: flex; gap: 4px; margin: 6px 16px 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); }
  .loc-tabs button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--mute); font-weight: 600; font-size: 14.5px; cursor: pointer; }
  .loc-tabs button[aria-selected="true"] { background: #fff; color: #050507; }
  .loc-body { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 16px; }
  .loc-sub { display: none; }
  .loc[data-tab="lang"] [data-loc-pane="cur"], .loc[data-tab="cur"] [data-loc-pane="lang"] { display: none; }
}
html.loc-lock .osw-launcher, html.loc-lock .dock { display: none !important; }

/* ---------- адаптив ---------- */
@media (max-width: 1199px) {
  .dv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-stat { min-height: 156px; }
  .dv-connect-wrap { grid-template-columns: minmax(0, 1fr); }
  .dv-qr { flex-direction: row; text-align: left; justify-content: flex-start; }
  .dv-qr .dv-eyebrow { display: none; }
  .dv-qr-box { width: 150px; height: 150px; flex: none; }
  .dv-qr-box canvas { width: 100% !important; height: 100% !important; }
  .dv-qr p { max-width: none; }
  .dv-sub-grid { grid-template-columns: minmax(0, 1fr); }
  .dv-dev-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .dv-dev-os, .dv-dev-last { display: none; }
  .dv-dev-meta-m { display: block; }
}
@media (max-width: 860px) {
  .dash-v3 .ref-banner { grid-template-columns: auto minmax(0, 1fr); }
  .dash-v3 .ref-bonus { grid-column: 1 / -1; }
  .dash-v3 .ref-bonus-item { flex: 1; }
}
@media (max-width: 768px) {
  .dv-qr { display: none; }
  .dv-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dv-link-row { flex-direction: column; }
  .dv-link-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .dv-link-btns .dv-btn { padding: 0 12px; min-width: 0; white-space: normal; line-height: 1.2; text-align: center; }
  .dv-seg { width: 100%; }
  .dv-seg-btn { flex: 1 0 auto; padding: 11px 12px; }
  .dv-own { flex-wrap: wrap; }
  .dv-own .dv-btn { width: 100%; }
  .dash-v3 .platform-tabs { width: 100%; }
  .dash-v3 .platform-tab { flex: 1 0 auto; justify-content: center; }
  .dash-v3 input, .dash-v3 select, .dash-v3 textarea { font-size: 16px !important; }
}
@media (max-width: 600px) {
  :root { --isl-h: 52px; }
  .isl-bar { padding: 0 6px 0 14px; gap: 8px; }
  .dash-wrap { padding: calc(var(--isl-top) + var(--isl-h) + 22px) max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
  .dv-card, .dash-v3 .platform-guide.active, .dash-v3 #sec-security .sec-block, .dash-v3 .sec-card, .dash-v3 .ref-link-box, .dash-v3 .ref-banner { padding: 20px; border-radius: 22px; }
  .dv-stats { gap: 10px; }
  .dv-stat { min-height: 0; padding: 16px; gap: 4px; border-radius: 20px; }
  .dv-big { font-size: 26px; margin-top: 10px; }
  .dv-big small { font-size: 13px; margin-left: 4px; }
  .dv-big.is-text, .dv-big.dv-big-mid { font-size: 20px; }
  .dv-stat-sub { font-size: 13px; }
  .dv-stat-top .ms { display: none; }
  .dv-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .dv-head { margin-bottom: 18px; }
  .dv-search { max-width: none; flex-basis: 100%; }
  .dv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px); }
  .dv-chips::-webkit-scrollbar { display: none; }
  .dv-chip { flex: none; }
  .dv-dev-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
  .dv-dev-ico { width: 40px; height: 40px; border-radius: 12px; }
  .dv-grp-in { margin-left: 19px; padding-left: 14px; }
  .dash-v3 .hero-status-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dash-v3 .ref-stats { gap: 8px; }
  .dash-v3 .ref-stat { padding: 16px; border-radius: 20px; }
  .dash-v3 .ref-stat .val { font-size: 22px; }
  .dash-v3 .ref-link-row { flex-wrap: wrap; }
  .dash-v3 .ref-link-row .ref-link-input { flex-basis: 100%; }
  .dash-v3 .ref-link-row .ref-link-copy { flex: 1; }
  .dash-v3 .ppm-promo { flex-wrap: wrap; }
  .dash-v3 .ppm-promo-input { flex-basis: 100%; }
  .dash-v3 .ppm-promo-btn { flex: 1; }
  .dv-empty { grid-template-columns: minmax(0, 1fr); }
  .dv-empty .ms { grid-row: auto; }
  .isl-ic.dv-hide-sm { display: none; }
}
@media (max-width: 420px) {
  .dv-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dv-stat-sub { -webkit-line-clamp: 4; }
  .dash-v3 .ref-stats { grid-template-columns: minmax(0, 1fr); }
  .dv-dev-row > .dv-btn, .dv-dev-row > .dv-grp-toggle { padding: 0 12px; }
}
@media (max-width: 359px) {
  .logo span { display: none; }
  .dash-wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .dv-stats { grid-template-columns: minmax(0, 1fr); }
  .dv-link-btns { grid-template-columns: minmax(0, 1fr); }
  .dv-dev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dv-dev-row > .dv-dev-ico { display: none; }
  .isl-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-v3 .ref-banner { grid-template-columns: minmax(0, 1fr); }
  .dash-v3 .dv-btn, .dash-v3 .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
}
/* телефон боком: невысокий экран — меньше воздуха */
@media (max-height: 500px) and (orientation: landscape) {
  .dash-wrap { padding-top: calc(var(--isl-top) + var(--isl-h) + 16px); }
  .dash-v3 .dock a { height: 44px; flex-direction: row; gap: 6px; }
}
/* большие мониторы: масштаб целиком, как v2 */
@media (min-width: 1800px) { html { zoom: 1.2; } }
@media (min-width: 2300px) { html { zoom: 1.45; } }
@media (min-width: 3200px) { html { zoom: 2; } }

/* баннер cookie: над капсулой навигации, а не под ней */
@media (max-width: 1080px) { .orris-cc { bottom: calc(92px + env(safe-area-inset-bottom)) !important; } }
@media (max-width: 1199px) { .orris-cc.orris-cc-collapsed { display: none !important; } }
@media (min-width: 1200px) { .orris-cc-icon { left: 16px !important; bottom: 16px !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.loc button { color: var(--text); font-family: var(--body); } .loc-card { color: var(--text); }

/* Приветствие и статус — только на «Обзоре»; в остальных разделах свой заголовок. */
body[data-sec]:not([data-sec="overview"]) .dv-head { display: none; }
.dash-v3 #sec-security .sec-input, .dash-v3 .sec-card .sec-input { flex: none; width: 100%; }
.dash-v3 .ref-banner { text-align: left; }
@media (max-width: 420px) { .dash-v3 .ref-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-v3 .ref-stat { padding: 14px; } .dash-v3 .ref-stat .lbl { font-size: 12.5px; } }
@media (max-width: 359px) { .dash-v3 .ref-stats { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .dash-v3 .pk-item { flex-wrap: wrap; } .dash-v3 .pk-item > button { margin-left: auto; } }
/* Нет подписки: главное действие — выбрать тариф — стоит первым, плитки ниже. */
#sec-overview.active { display: flex; flex-direction: column; }
#sec-overview > #inactiveSubRow { order: -1; }
.dv-stat-link { text-align: left; }
@media (min-width: 900px) { #ovPaywall .ppm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } #ovPaywall .ppm-card { max-width: none; } }
.dv-warn { color: var(--amber); }
.dv-load-err { color: var(--red); }
.dv-load-err a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- баннер cookie (разметка и логика — public/js/analytics.js) ---------- */
.orris-cc { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9000; display: none; pointer-events: none; }
.orris-cc.show { display: block; animation: ccIn .5s var(--ease); }
@keyframes ccIn { from { opacity: 0; transform: translateY(16px); } }
.orris-cc-inner { max-width: 600px; margin: 0 auto; pointer-events: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(14,15,19,.88);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.5); }
.orris-cc-text { flex: 1; min-width: 220px; margin: 0; font-size: 13px; line-height: 1.5; color: rgba(243,243,245,.72); }
.orris-cc-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.dash-v3 .orris-cc-more { font-size: 13px; color: rgba(243,243,245,.88); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.orris-cc-ok { padding: 10px 26px; border: 0; border-radius: 999px; background: var(--text); color: var(--ink); font: 700 13.5px var(--body); cursor: pointer;
  transition: transform .2s var(--ease), background .15s; }
.orris-cc-ok:hover { background: #fff; transform: translateY(-1px); }
@media (max-width: 768px) { .orris-cc-inner { padding: 14px 16px; } }
