/* Tessera, оформление «Е»: строгие поверхности, две темы, меню слева.
   Подключается после app.css и меняет только цвета, шрифт, скругления и каркас страницы. */
:root, :root[data-theme="light"] {
  --bg: #F4F6FA; --surface: #FFFFFF; --raise: #EEF1F7; --border: #E7EAF1;
  --text: #18233D; --muted: #6C778F; --dim: #A6AEC0;
  --accent: #536BEA; --accent-soft: rgba(83,107,234,.09); --on-accent: #FFFFFF;
  --up: #118A68; --down: #C4566B; --on-trade: #FFFFFF;
  --warn-bg: #FFF4DA; --warn-text: #5C4300;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px; --radius-s: 10px;
  --shadow: 0 1px 2px rgba(24,35,61,.04);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D1424; --surface: #17233B; --raise: #1C2944; --border: #293754;
  --text: #F1F4FC; --muted: #929FB9; --dim: #697792;
  --accent: #7288F5; --accent-soft: rgba(114,136,245,.14); --on-accent: #0B1222;
  --up: #36B995; --down: #D77E91; --on-trade: #0B1222;
  --warn-bg: #2E2A1C; --warn-text: #F0D9A0;
  --shadow: none;
  color-scheme: dark;
}
body { font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; }
.brand span { font-weight: 600; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; }
.panel { box-shadow: var(--shadow); }
button, .btn, .nav > a, .menu > summary, .side a { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; }
.btn:active { transform: scale(.98); }

/* кнопки темы и языка в верхней строке */
.top-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.tool-btn::-webkit-details-marker { display: none; }
.tool-btn:hover { color: var(--text); }
.lang-menu { position: relative; }
.lang-menu > summary::after { content: none; }
.lang-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 190px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(10,16,40,.18); }
.lang-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.lang-list button:hover { background: var(--raise); }
.lang-list button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang-list small { color: var(--muted); font-size: 12px; }

/* меню слева */
.side { display: none; }
@media (min-width: 1081px) {
  body { padding-left: 248px; transition: padding-left .2s ease; }
  body.side-mini { padding-left: 88px; }
  .side { display: flex; flex-direction: column; gap: 2px; position: fixed; left: 16px; top: 16px; bottom: 16px; width: 216px; z-index: 25;
    padding: 16px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
    overflow-y: auto; scrollbar-width: none; transition: width .2s ease; }
  .side::-webkit-scrollbar { display: none; }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 14px; color: var(--text); text-decoration: none; }
  .side-brand b { font-weight: 600; font-size: 16px; letter-spacing: .14em; }
  .side-group { padding: 16px 12px 6px; font-size: 11px; font-weight: 500; color: var(--dim); white-space: nowrap; }
  .side a.side-link { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 12px; border-radius: var(--radius-s);
    color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
  .side a.side-link svg { flex: 0 0 18px; }
  .side a.side-link:hover { background: var(--raise); color: var(--text); }
  .side a.side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .side .badge { margin-left: auto; }
  body.side-mini .side { width: 56px; padding: 16px 8px; }
  body.side-mini .side-brand b, body.side-mini .side a.side-link span { display: none; }
  body.side-mini .side-brand { padding: 4px 5px 14px; }
  body.side-mini .side-group { height: 1px; padding: 0; margin: 8px 6px; background: var(--border); overflow: hidden; color: transparent; }
  body.side-mini .side a.side-link { padding: 0; justify-content: center; }
  .top { background: var(--bg); border-bottom: 0; padding: 16px 24px 8px; }
  .top > .brand, .top > #nav { display: none; }
  .top > .nav-right { margin-left: auto; }
}
@media (max-width: 1080px) { .top-tools { margin-left: 4px; } .tool-btn { height: 40px; } .more-btn { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { body, .side, button, .btn, .side a { transition: none; } }

/* ---------- главная клиента ---------- */
.page:has(.hx), .page:has(.gx-hero) { max-width: 1400px; }
.hx { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.hx-left { flex: 2.6 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hx-right { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hx .panel, .hx-four .panel { border-radius: 16px; padding: 20px; gap: 14px; display: flex; flex-direction: column; margin: 0; }
.hx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.hx-row h2 { margin: 0; font-size: 15px; }
.hx-cap { display: flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 500; }
.hx-eye { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.hx-eye:hover { color: var(--text); }
.hx-main { align-items: flex-end; gap: 16px 32px; }
.hx-total { font-size: 38px; line-height: 1.05; font-weight: 600; letter-spacing: -.022em; white-space: nowrap; }
.hx-total small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.hx-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.hx-sub .hint { font-size: 13px; margin: 0; }
.hx-chip { padding: 2px 7px; border-radius: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.hx-chip.up { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); }
.hx-chip.down { background: color-mix(in srgb, var(--down) 13%, transparent); color: var(--down); }
.hx-spark { flex: 1 1 240px; min-width: 0; height: 76px; }
.hx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-act { flex: 1 1 116px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.hx-cells { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.hx-cell { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; }
.hx-cell small, .hx-stats small, .hx-field small { font-size: 12px; color: var(--muted); }
.hx-cell span { color: var(--muted); } .hx-cell b { color: var(--text); font-weight: 500; }
.hx-chartbox { flex: 1 1 auto; }
.hx-pair { display: flex; align-items: center; gap: 10px; }
.hx-pair .hint { margin: 0; font-size: 12px; }
.hx-coin { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--border); color: var(--accent); font-weight: 600; font-size: 13px; }
.hx-coin.s { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; font-size: 12px; }
.hx-pricebox { display: flex; align-items: baseline; gap: 10px; }
.hx-price { font-size: 26px; line-height: 1; font-weight: 600; letter-spacing: -.022em; }
.hx-stats { display: flex; gap: 24px; margin-left: auto; }
.hx-stats > div { display: flex; flex-direction: column; gap: 2px; } .hx-stats b { font-size: 13px; font-weight: 500; }
.hx-chart { padding: 12px 0 0; border-top: 1px solid var(--border); background: transparent; border-radius: 0; box-shadow: none; min-height: 380px; }
.hx-trade .hint { margin: 0; font-size: 13px; }
.hx-field { display: flex; flex-direction: column; gap: 6px; }
.hx-input { position: relative; display: block; }
.hx-input input { width: 100%; height: 44px; padding: 0 60px 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--raise); color: var(--text); font: inherit; font-weight: 600; font-size: 16px; }
.hx-input i { position: absolute; right: 12px; top: 0; height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 13px; font-style: normal; }
.hx-pcts { display: flex; gap: 6px; }
.hx-pct { flex: 1; min-height: 32px; border: 1px solid var(--border); border-radius: 8px; background: var(--raise); color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.hx-pct:hover { color: var(--text); border-color: var(--dim); }
.hx-kvs { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 13px; }
.hx-kv { display: flex; justify-content: space-between; gap: 8px; } .hx-kv span { color: var(--muted); } .hx-kv b { font-weight: 500; }
.hx-go { min-height: 44px; font-weight: 600; border: 0; }
.hx-go.buy { background: var(--up); color: var(--on-trade); } .hx-go.sell { background: var(--down); color: var(--on-trade); }
.hx-market { flex: 1 1 auto; padding: 20px 12px 12px !important; gap: 8px !important; }
.hx-market > .hx-row { padding: 0 8px; }
.hx-mhead { display: flex; gap: 10px; padding: 4px 8px 0; font-size: 11px; color: var(--muted); }
.hx-mhead span:first-child { flex: 1; } .hx-mhead span:nth-child(2) { flex: 0 0 56px; text-align: center; } .hx-mhead span:last-child { flex: 0 0 96px; text-align: right; }
.hx-mlist { display: flex; flex-direction: column; }
.hx-mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.hx-mrow:hover { background: var(--raise); } .hx-mrow[aria-pressed="true"] { background: var(--accent-soft); }
.hx-mname { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .hx-mname b { font-size: 13px; font-weight: 600; } .hx-mname small { font-size: 11px; color: var(--muted); }
.hx-mini { flex: 0 0 56px; height: 22px; } .hx-mini.up { color: var(--up); } .hx-mini.down { color: var(--down); }
.hx-mpx { flex: 0 0 96px; display: flex; flex-direction: column; text-align: right; line-height: 1.25; } .hx-mpx b { font-size: 13px; font-weight: 600; } .hx-mpx span { font-size: 12px; font-weight: 500; }
.hx-more { margin: auto 8px 0; padding: 10px 0 4px; border-top: 1px solid var(--border); font-weight: 500; font-size: 13px; text-decoration: none; }
.hx-four { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.hx-card { flex: 1 1 230px; min-width: 0; }
.hx-card h2 { margin: 0; font-size: 15px; }
.hx-card .hint { margin: 0; font-size: 12px; }
.hx-port { display: flex; align-items: center; gap: 16px; flex: 1; }
.hx-ringbox { position: relative; flex: 0 0 88px; height: 88px; } .hx-ring { width: 88px; height: 88px; transform: rotate(-90deg); }
.hx-ringbox > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .hx-ringbox b { font-size: 16px; } .hx-ringbox small { font-size: 11px; color: var(--muted); }
.hx-port ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hx-port li { display: flex; align-items: center; gap: 8px; } .hx-port li i { flex: 0 0 8px; height: 8px; border-radius: 50%; } .hx-port li span { color: var(--muted); } .hx-port li b { margin-left: auto; font-weight: 600; }
.hx-heat { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(52px, 1fr); gap: 6px; }
.hx-ht { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 8px; text-decoration: none; font-size: 13px; transition: transform .18s ease; }
.hx-ht:hover { transform: scale(1.03); } .hx-ht small { font-size: 12px; white-space: nowrap; }
.hx-ht.up { background: color-mix(in srgb, var(--up) 10%, transparent); color: var(--up); } .hx-ht.down { background: color-mix(in srgb, var(--down) 11%, transparent); color: var(--down); }
.hx-tech { align-items: center; } .hx-tech h2 { align-self: flex-start; }
.hx-gauge { width: 100%; max-width: 210px; } .hx-gauge g { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hx-verdict { font-size: 16px; font-weight: 600; }
.hx-scale { display: flex; justify-content: space-between; width: 100%; font-size: 12px; color: var(--muted); }
.hx-ops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hx-ops li { display: flex; align-items: center; gap: 10px; }
.hx-opic { flex: 0 0 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--border); color: var(--muted); }
.hx-opt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; } .hx-opt small { font-size: 12px; color: var(--muted); }
.hx-opv { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.hx-optime { flex: 0 0 auto; font-size: 12px; color: var(--muted); white-space: nowrap; align-self: flex-start; }

/* ---------- гостевая главная с горами ---------- */
.gx-hero { position: relative; overflow: hidden; border-radius: 20px; min-height: 520px; padding: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; border: 1px solid var(--border); }
.gx-scene, .gx-scene > div { position: absolute; inset: 0; } .gx-scene svg { width: 100%; height: 100%; display: block; }
.gx-light { display: none; } :root[data-theme="light"] .gx-light { display: block; } :root[data-theme="light"] .gx-dark { display: none; }
.gx-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 62%, transparent), color-mix(in srgb, var(--bg) 18%, transparent) 60%, transparent); }
.gx-text { position: relative; flex: 1.3 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gx-text h1 { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; max-width: 14em; }
.gx-text p { font-size: 17px; max-width: 34em; }
.gx-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.gx-points li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gx-gate { position: relative; flex: 1 1 320px; min-width: 0; max-width: 440px; }
.gx-gate .panel { margin: 0; border-radius: 18px; background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(28px) saturate(1.25); backdrop-filter: blur(28px) saturate(1.25); border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); }
@media (max-width: 760px) { .gx-hero { padding: 24px 16px; min-height: 0; } .gx-text h1 { font-size: 30px; } .hx-total { font-size: 30px; } .hx-stats { margin-left: 0; } }

/* ---------- общая отделка страниц ---------- */
.panel { border: 1px solid var(--border); border-radius: 16px; }
:root[data-theme="dark"] .panel { border-color: color-mix(in srgb, var(--border) 70%, transparent); }
.head h1 { font-size: 22px; }
.panel a:not(.btn):not(.side-link), .dash-cap a { text-decoration: none; font-weight: 500; }
.panel a:not(.btn):hover { text-decoration: underline; }
th { font-size: 12px; font-weight: 500; }
.seg { border: 1px solid var(--border); border-radius: 10px; padding: 2px; gap: 2px; }
.seg button { border-radius: 8px; }
.seg button[aria-pressed="true"]:not(.buy):not(.sell) { box-shadow: 0 0 0 1px var(--border); }
.ico:not(.ico-img) { background: var(--raise) !important; border: 1px solid var(--border); color: var(--accent); border-radius: 9px; font-weight: 600; }
.ico.hx-ico { width: 32px; height: 32px; flex: 0 0 32px; font-size: 10px; display: grid; place-items: center; }
.ico.hx-ico.s { width: 28px; height: 28px; flex-basis: 28px; font-size: 9px; border-radius: 8px; }
img.ico.hx-ico { border-radius: 9px; }
input, select, textarea { border-radius: 10px; }

/* кабинет: внутреннее меню на компьютере становится строкой вкладок, чтобы слева не стояло два меню */
@media (min-width: 1081px) {
  .cab { display: flex; flex-direction: column; gap: 16px; }
  .cab-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; align-self: flex-start; max-width: 100%; }
  .cab-item { padding: 0 12px; min-height: 36px; gap: 8px; border-radius: 8px; font-size: 14px; color: var(--muted); }
  .cab-item svg { width: 16px; height: 16px; }
  .cab-item.on { background: var(--accent-soft); box-shadow: none; color: var(--accent); }
  .cab-sub { padding: 0 10px; min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; border-radius: 8px; }
  .cab-sub[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .cab-main { max-width: none; }
}

/* телефон: верхняя строка помещается целиком */
@media (max-width: 560px) {
  .top { gap: 4px; padding: 8px 8px 8px 12px; }
  .top .brand { gap: 6px; min-width: 0; }
  .top .brand span { font-size: 13px; letter-spacing: .08em; }
  .top .brand-tag { display: none; }
  .top .top-dep span { display: none; }
  .top-tools { gap: 4px; margin-left: 0; }
  .tool-btn { min-width: 36px; height: 36px; padding: 0 7px; }
  .lang-menu .tool-btn span { display: none; }
  .hx .panel, .hx-four .panel { padding: 16px; }
  .hx-chart { min-height: 0; }
}

/* ---------- страницы на широком экране: без пустых полос ---------- */
@media (min-width: 1081px) {
  .cab-main { align-self: stretch; }
  .cab-main:has(> .wallet-top) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 16px; }
  .cab-main:has(> .wallet-top) > * { grid-column: 1 / -1; }
  .cab-main:has(> .wallet-top) > .wallet-top { grid-column: 1; align-self: stretch; }
  .cab-main:has(> .wallet-top) > .wallet-top + .panel { grid-column: 2; align-self: stretch; }
}
@media (min-width: 1101px) {
  .page.wide .grid-fut { grid-template-areas: "chart book form" "orders book form" "tape tape tape"; grid-template-rows: auto 1fr auto; }
  .page.wide .grid-pro .area-pairs { align-self: stretch; }
  .chart-tools { gap: 6px 8px; }
  .chart-tools .ic-btn.ic-text { padding: 0 4px; min-width: 26px; font-size: 12px; }
}
/* телефон: переключатели в одну строку, лишнее прокручивается вбок */
@media (max-width: 560px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 0 0 auto; white-space: nowrap; }
  .seg:has(> button:nth-child(2):last-child) button, .seg:has(> button:nth-child(3):last-child) button { flex: 1 1 auto; }
}

/* ---------- телефон и планшет: удобство пальцем ---------- */
@media (max-width: 760px) {
  /* поля от 16px: Safari на iPhone не приближает страницу при вводе */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px; }
  /* кнопки графика крупнее, строка листается вбок вместо трёх рядов */
  .ic-btn { width: 36px; height: 36px; }
  .ic-btn.ic-text { min-width: 36px; }
  .chart-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -4px; }
  .chart-tools::-webkit-scrollbar { display: none; }
  .chart-group { flex-wrap: nowrap; flex: 0 0 auto; }
  .chip { min-height: 36px; }
  details > summary { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 380px) {
  .fund-tab { padding: 10px 8px; gap: 8px; font-size: 12.5px; min-width: 0; }
  .fund-tab > * { min-width: 0; }
  .sec-list b, .sec-row b { overflow-wrap: anywhere; min-width: 0; }
}
@media (max-width: 760px) {
  details > summary { padding-top: 8px !important; padding-bottom: 8px !important; }
  .lvl { min-height: 30px; }
  .pair-row { min-height: 40px; }
}
@media (max-width: 760px) {
  /* меню аккаунта на телефоне: во всю ширину под шапкой, а не за левым краем экрана */
  .top .menu-right { position: fixed; left: 8px; right: 8px; top: 56px; min-width: 0; width: auto; max-height: calc(100dvh - 56px - 72px); overflow-y: auto; }
}
@media (max-width: 700px) {
  /* карточки вкладов и стратегий: поле и кнопки не шире карточки */
  .pos, .pos > * { min-width: 0; }
  .pos:has(> .earn-form) > .earn-form:not(.finance-form) { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .earn-form input, .earn-form .sel { min-width: 0; width: 100%; }
}
@media (max-width: 700px) {
  .pos .stats { gap: 8px 10px; }
  .pos .stats > * { min-width: 0; }
  .pos .stats span, .pos .stats b { overflow-wrap: anywhere; hyphens: auto; }
  .pos-head { flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 700px) { .copy-row .stats { min-width: 0; width: 100%; } .copy-row { min-width: 0; } }
@media (max-width: 380px) { .pos-list { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 560px) {
  /* в таблицах с длинным текстом в первом столбце текст переносится, чтобы числа справа оставались на экране */
  .page:not(.wide) .scroll table:not(.mk-table) td:first-child, .page:not(.wide) .scroll table:not(.mk-table) th:first-child { white-space: normal; min-width: 96px; }
}

/* планшет и телефон боком: меню кабинета всегда строкой сверху, а не узким столбцом */
@media (max-width: 1080px) {
  .cab { display: flex; flex-direction: column; gap: 14px; }
  .cab-side { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; max-width: 100%; align-self: stretch; }
  .cab-side::-webkit-scrollbar { display: none; }
  .cab-item { flex: none; padding: 8px 12px; border: 1px solid var(--border); background: var(--surface); }
  .cab-item.on { box-shadow: none; border-color: var(--accent); }
  .cab-sub { flex: none; padding: 8px 10px; }
  .cab-main { align-self: stretch; }
}
/* телефон боком: нижняя панель ниже, чтобы странице осталось место */
@media (max-height: 480px) and (orientation: landscape) {
  .tabbar a { flex-direction: row; gap: 6px; min-height: 44px; }
  body { padding-bottom: 44px; }
  .tabbar a svg { width: 18px; height: 18px; }
}
/* iPhone: нижняя панель не залезает под полоску «домой» */
@media (max-width: 1080px) {
  .tabbar { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 760px) { .check input, input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex: none; } }

/* ---------- торговля: вид стакана и строка «отменить все» ---------- */
.book-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book-view { width: 28px; height: 28px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.book-view .bv { display: block; width: 12px; height: 5px; border-radius: 2px; background: var(--dim); }
.bv-all .bv-a, .bv-ask .bv-a, .bv-ask .bv-b { background: var(--down); }
.bv-all .bv-b, .bv-bid .bv-a, .bv-bid .bv-b { background: var(--up); }
.book-view[aria-pressed="false"] .bv { opacity: .55; }
.ord-all { justify-content: flex-end; margin: 0 0 4px; }
@media (max-width: 760px) { .book-view { width: 36px; height: 36px; } }

/* ---------- WalletConnect: ссылка и поле ответа ---------- */
.wc-uri { font-size: 12px; line-height: 1.45; max-height: 92px; overflow-y: auto; overflow-wrap: anywhere; word-break: break-all; }
.wc-row { gap: 8px; }
.wc-box { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--raise); }
.wc-box input { background: var(--surface); }

/* Список пар занимает всю высоту своего окна: окно тянется по соседям, список заполняет его до низа. */
.area-pairs { display: flex; flex-direction: column; }
.area-pairs > * { flex: none; }
.area-pairs > .pairs { flex: 1 1 0; min-height: 300px; max-height: none; }

/* ---------- вход и регистрация ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .seg { margin: 12px 0 4px; }
.auth-card .form { display: grid; gap: 14px; margin-top: 12px; max-width: none; }
.auth-card .form input:not([type=checkbox]), .auth-card .form select { width: 100%; }
.auth-pw { gap: 8px; flex-wrap: nowrap; }
.auth-pw input { flex: 1 1 auto; min-width: 0; }
.auth-eye { flex: none; min-width: 92px; }
.auth-foot { margin: 16px 0 0; }
.auth-forgot summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.auth-forgot p { margin: 8px 0 0; }
.auth-side { border-radius: var(--radius); padding: 28px; background: var(--raise); align-self: stretch; }
.auth-side h2 { font-size: 24px; line-height: 1.25; margin: 0 0 20px; max-width: 16em; }
.auth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-list li { display: flex; gap: 12px; align-items: flex-start; }
.auth-list b { display: block; }
.auth-list small { color: var(--muted); font-size: 14px; }
.auth-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.menu-row.auth-out { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
@media (max-width: 900px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { padding: 20px; } .auth-side h2 { font-size: 20px; } }
@media (max-width: 420px) { .top .auth-in, .top .auth-up { padding-left: 10px; padding-right: 10px; } }
.verify-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 14px; border-radius: var(--radius-s); background: var(--warn-bg); color: var(--warn-text); }
.verify-bar.wait { background: var(--raise); color: var(--text); }
.verify-bar .vb-ic { flex: none; display: grid; place-items: center; }
.verify-bar .vb-text { flex: 1 1 220px; min-width: 0; font-weight: 600; }
.verify-bar .btn { flex: none; }
#nav-right { gap: 8px; }
#nav-right .auth-in, #nav-right .auth-up, #nav-right .auth-adm { white-space: nowrap; flex: none; }
@media (max-width: 760px) { #nav-right .auth-adm { display: none; } }
#nav-right a.btn.auth-up { color: var(--on-accent); }
#nav-right a.btn.auth-in, #nav-right a.btn.auth-adm { color: var(--text); }

/* ================= Фон-сцена и стеклянное меню ================= */
/* Фон: большие сферы с подсвеченным краем. Нарисован градиентами, без картинок. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-repeat: no-repeat;
  background-image:
    radial-gradient(circle 92vmax at 22% calc(100% + 60vmax), #050a2e 0%, #060c36 66%, #08124c 80%, #0b1a6c 90%, #1030a6 95.5%, #1d49da 98.2%, #5f8fff 99.3%, #d6e4ff 99.8%, transparent 100%),
    radial-gradient(circle 78vmax at calc(100% + 6vmax) calc(46% + 58vmax), #04061f 0%, #050826 50%, #070d3a 78%, #0a1660 91%, #1230a6 96.5%, #2c5cf0 99%, #b4ccff 99.8%, transparent 100%),
    radial-gradient(circle 118vmax at -24% calc(100% + 30vmax), #05041400 0%, #060518 0.1%, #070620 62%, #100930 84%, #240d58 94%, #6f1cc4 98.4%, #e25bff 99.6%, transparent 100%),
    linear-gradient(200deg, #6f1cc4 0%, #4b139c 30%, #260a60 62%, #10062a 100%); }
:root[data-theme="light"] body::before {
  background-image:
    radial-gradient(circle 92vmax at 22% calc(100% + 60vmax), #dbe5ff 0%, #d3defd 60%, #c6d4fb 90%, #b3c6fa 98.4%, #ffffff 99.7%, transparent 100%),
    radial-gradient(circle 78vmax at calc(100% + 6vmax) calc(46% + 58vmax), #e6ecfd 0%, #dfe7fc 70%, #cfdafa 96%, #ffffff 99.6%, transparent 100%),
    radial-gradient(circle 118vmax at -24% calc(100% + 30vmax), #f4f6fb 0%, #f1f3fa 80%, #e9e6f9 95%, #d9c8f6 99%, #ffffff 99.7%, transparent 100%),
    linear-gradient(200deg, #e7d6fa 0%, #ece3fb 40%, #f2f0fb 100%); }
:root[data-theme="dark"] { --bg: #0A0B1E; }
@media print { body::before { display: none; } }

@media (min-width: 1081px) {
  .top { background: transparent; }
  /* стекло */
  .side { overflow: visible; padding: 0; gap: 0; border-radius: 24px; transition: width .32s cubic-bezier(.4, 0, .2, 1);
    background: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,.03) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px rgba(3,4,20,.5); }
  .side-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; border-radius: inherit; }
  .side-scroll::-webkit-scrollbar { display: none; }
  .side-brand { padding: 4px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .side-brand b { font-weight: 700; letter-spacing: .16em; white-space: nowrap; overflow: hidden;
    background: linear-gradient(90deg, #4f7dff 0%, #86a8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: opacity .2s ease, max-width .32s cubic-bezier(.4, 0, .2, 1); max-width: 160px; }
  .side-group { margin-top: 10px; padding: 14px 12px 6px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.46); overflow: hidden; transition: color .2s ease; }
  .side-scroll > * { flex: none; }
  .side a.side-link { position: relative; min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; color: rgba(255,255,255,.84); font-weight: 500; white-space: nowrap;
    transition: background-color .25s ease, border-color .25s ease, color .2s ease, box-shadow .25s ease, padding .32s cubic-bezier(.4, 0, .2, 1); }
  .side a.side-link svg { flex: 0 0 18px; transition: transform .25s ease; }
  .side a.side-link > span:not(.badge) { overflow: hidden; text-overflow: ellipsis; max-width: 150px; transition: opacity .2s ease, max-width .32s cubic-bezier(.4, 0, .2, 1); }
  .side a.side-link:hover, .side a.side-link[aria-current="page"] { color: #fff; border-color: rgba(255,255,255,.26);
    background: linear-gradient(90deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.07) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(3,4,20,.28); }
  .side a.side-link[aria-current="page"] { font-weight: 600; }
  .side a.side-link:hover svg { transform: translateX(1px) scale(1.06); }
  .side a.side-link:focus-visible, .side-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .side .badge { background: #fff; color: #0b1222; min-width: 18px; height: 18px; font-size: 11px; font-weight: 700; }
  /* кнопка на краю */
  .side-toggle { position: absolute; top: 20px; right: -13px; width: 26px; height: 26px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff;
    background: rgba(40,44,84,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(3,4,20,.4); transition: background-color .2s ease, transform .2s ease; }
  .side-toggle:hover { background: rgba(70,78,140,.85); transform: scale(1.08); }
  .side-toggle svg { transition: transform .32s cubic-bezier(.4, 0, .2, 1); }
  body.side-mini .side-toggle svg { transform: rotate(180deg); }
  /* свёрнутое меню: подписи плавно уходят */
  body.side-mini .side { width: 64px; padding: 0; }
  body.side-mini .side-scroll { padding: 18px 9px; }
  body.side-mini .side-brand { padding: 4px 8px 16px; }
  body.side-mini .side-brand b { display: block; max-width: 0; opacity: 0; }
  body.side-mini .side a.side-link span:not(.badge) { display: block; max-width: 0; opacity: 0; }
  body.side-mini .side a.side-link { padding: 0; gap: 0; justify-content: center; }
  body.side-mini .side-group { height: 1px; margin: 10px 8px; padding: 0; border-top: 0; background: rgba(255,255,255,.12); color: transparent; }
  body.side-mini .side .badge { position: absolute; top: 3px; right: 3px; min-width: 14px; height: 14px; padding: 0 3px; font-size: 9px; margin: 0; }
  body.side-mini { padding-left: 96px; }

  /* светлая тема: то же стекло, светлое */
  :root[data-theme="light"] .side { background: linear-gradient(155deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.52) 100%); border-color: rgba(255,255,255,.95);
    box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(60,70,130,.16); }
  :root[data-theme="light"] .side-brand, :root[data-theme="light"] .side-group { border-color: rgba(40,50,100,.1); }
  :root[data-theme="light"] .side-group { color: var(--dim); }
  :root[data-theme="light"] body.side-mini .side-group { background: rgba(40,50,100,.12); color: transparent; }
  :root[data-theme="light"] .side a.side-link { color: var(--muted); }
  :root[data-theme="light"] .side a.side-link:hover, :root[data-theme="light"] .side a.side-link[aria-current="page"] { color: var(--text); border-color: rgba(255,255,255,.95);
    background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(60,70,130,.12); }
  :root[data-theme="light"] .side a.side-link:focus-visible, :root[data-theme="light"] .side-toggle:focus-visible { outline-color: var(--accent); }
  :root[data-theme="light"] .side .badge { background: var(--accent); color: #fff; }
  :root[data-theme="light"] .side-toggle { background: rgba(255,255,255,.85); color: var(--text); border-color: #fff; box-shadow: 0 6px 14px rgba(60,70,130,.18); }
  :root[data-theme="light"] .side-toggle:hover { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .side, .side *, .side-toggle, .side-toggle svg { transition: none !important; } }

/* ================= Стеклянные блоки по всему сайту ================= */
:root[data-theme="dark"] {
  --glass: linear-gradient(155deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 42%, rgba(255,255,255,.025) 100%), rgba(9,12,34,.6);
  --glass-flat: rgba(13,17,42,.9);
  --glass-line: rgba(255,255,255,.2);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 44px rgba(3,4,20,.4);
  --raise: rgba(255,255,255,.075); --border: rgba(255,255,255,.13);
}
:root[data-theme="light"] {
  --glass: linear-gradient(155deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.6) 100%);
  --glass-flat: rgba(255,255,255,.94);
  --glass-line: rgba(255,255,255,.95);
  --glass-shadow: inset 0 1px 0 #fff, 0 18px 44px rgba(60,70,130,.12);
}
.panel, .card, .tape, .cab-side, .hm-tile, .hm-fees, .fund-level, .ln-side, .ct-group, .auth-side, .adm-side, .adm-group {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
/* вложенный блок внутри стеклянного: без второго размытия, только лёгкая подложка */
.panel .panel, .panel .card, .card .card, .panel .hm-tile, .panel .ct-group, .panel .fund-level, .cab-side .cab-item {
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: var(--raise); border-color: var(--border); }
/* телефон: размытие дорого при прокрутке, там плотная подложка */
@media (max-width: 760px) {
  .panel, .card, .tape, .cab-side, .hm-tile, .hm-fees, .fund-level, .ln-side, .ct-group, .auth-side {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-flat); box-shadow: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .card, .tape, .cab-side, .hm-tile, .hm-fees, .fund-level, .ln-side, .ct-group, .auth-side, .adm-side, .adm-group, .side { background: var(--glass-flat); }
}
@media print { .panel, .card { background: #fff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ================= Всплывающие подсказки ================= */
.tips-on .ic-btn[data-tip]::after, .tips-on .top-ic[data-tip]::before, .tips-on .fund-level[data-tip]::after { content: none !important; display: none !important; }
.tip-pop { display: none; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; max-width: min(280px, calc(100vw - 16px)); padding: 7px 12px;
  font-size: 12.5px; font-weight: 500; line-height: 1.4; letter-spacing: .01em; color: #fff; text-align: center; overflow-wrap: anywhere;
  background: linear-gradient(155deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 100%), rgba(14,18,46,.86);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.26); border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 12px 32px rgba(3,4,20,.5), 0 0 0 1px rgba(3,4,20,.25);
  opacity: 0; transform: translateY(5px) scale(.96); transform-origin: 50% 100%;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2, .9, .3, 1.2); }
.tip-pop[data-side="bottom"] { transform: translateY(-5px) scale(.96); transform-origin: 50% 0; }
.tip-pop[data-side="right"] { transform: translateX(-6px) scale(.96); transform-origin: 0 50%; text-align: left; }
.tip-pop.on { opacity: 1; transform: none; }
.tip-pop > i { position: absolute; width: 9px; height: 9px; background: rgba(30,35,72,.96); border: 1px solid rgba(255,255,255,.26); border-top: 0; border-left: 0; transform: rotate(45deg); margin-left: -5px; }
.tip-pop[data-side="top"] > i { bottom: -5px; }
.tip-pop[data-side="bottom"] > i { top: -5px; transform: rotate(225deg); }
.tip-pop[data-side="right"] > i { left: 0; margin-left: -5px; margin-top: -5px; transform: rotate(135deg); }
:root[data-theme="light"] .tip-pop { color: #1b2140; background: linear-gradient(155deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 100%); border-color: #fff;
  box-shadow: 0 12px 32px rgba(60,70,130,.22), 0 0 0 1px rgba(40,50,100,.08); }
:root[data-theme="light"] .tip-pop > i { background: #fff; border-color: rgba(40,50,100,.12); }
@media (prefers-reduced-motion: reduce) { .tip-pop { transition: opacity .1s linear; transform: none !important; } }
@media print { .tip-pop { display: none !important; } }

/* Блок WalletConnect (вход, регистрация, пополнение, подтверждения): воздух между частями */
.wc-box, .wc-row.wc-box { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; border-radius: 14px; }
.wc-box > * { margin: 0; }
.wc-box > .hint { line-height: 1.5; }
.wc-box .wc-uri { padding: 12px 14px; border-radius: 10px; }
.wc-box > .row { gap: 10px; }
.wc-box > .field { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.wc-box input { width: 100%; }
.wc-box > .msg:empty { display: none; }
.auth-card > .wc-box { margin-top: 16px; }
.auth-card .form > .wc-box { margin-top: 2px; }
.auth-card > .notice { margin-top: 16px; }
.auth-foot { margin-top: 20px; }

/* Главный блок гостевой страницы: обычный стеклянный блок, без картинки */
.gx-hero { min-height: 0; padding: 40px; border-radius: var(--radius); margin: 0 0 16px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
.gx-hero .gx-gate .panel { background: var(--raise); border-color: var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.gx-hero .gx-points li { background: var(--raise); border-color: var(--border); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 760px) { .gx-hero { padding: 22px 16px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-flat); box-shadow: none; } }

/* ================= Вход и регистрация: карточка из двух половин ================= */
.auth2 { max-width: 980px; margin: 12px auto 0; }
.a2-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 540px; overflow: hidden; border-radius: 26px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
/* светлая половина с наклонным краем: она и есть «линия» между половинами */
.a2-shade { position: absolute; top: 0; bottom: 0; left: 50%; width: 56%; margin-left: -3%; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.035) 60%, rgba(255,255,255,.02) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); transition: transform .6s cubic-bezier(.65, 0, .2, 1); }
.a2-shade::before { content: ""; position: absolute; top: -4%; bottom: -4%; left: 0; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.5) 30%, rgba(255,255,255,.5) 70%, rgba(255,255,255,.05));
  transform-origin: 0 0; transform: skewX(-5.4deg); }
.mode-register .a2-shade { left: 0; margin-left: -3%; clip-path: polygon(0 0, 91% 0, 100% 100%, 0 100%); }
.mode-register .a2-shade::before { left: auto; right: 9%; transform-origin: 100% 0; transform: skewX(-5.4deg); }
.a2-form, .a2-hello { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 44px 48px;
  transition: opacity .26s ease, filter .26s ease, transform .3s ease; }
.mode-login .a2-form { order: 1; } .mode-login .a2-hello { order: 2; padding-left: 64px; }
.mode-register .a2-form { order: 2; } .mode-register .a2-hello { order: 1; padding-right: 64px; }
/* уход: содержимое растворяется, светлая половина едет на другую сторону */
.a2-card.out .a2-form, .a2-card.out .a2-hello { opacity: 0; filter: blur(8px); transform: scale(.985); }
.mode-login .a2-card.out .a2-shade { transform: translateX(-46%); }
.mode-register .a2-card.out .a2-shade { transform: translateX(46%); }
/* приход после переключения: половина доезжает с той стороны, содержимое проявляется */
.auth2.flip .a2-shade { animation: a2-slide-l .62s cubic-bezier(.3, .8, .2, 1) backwards; }
.auth2.flip.mode-login .a2-shade { animation-name: a2-slide-r; }
.auth2 .a2-form, .auth2 .a2-hello { animation: a2-in .5s ease backwards; }
.auth2.flip .a2-form, .auth2.flip .a2-hello { animation: a2-in .55s ease .16s backwards; }
@keyframes a2-slide-l { from { transform: translateX(46%); } to { transform: none; } }
@keyframes a2-slide-r { from { transform: translateX(-46%); } to { transform: none; } }
@keyframes a2-in { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }

.a2-form h1 { font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.a2-lead { color: var(--muted); margin: 0 0 6px; }
.a2-form .seg { margin: 14px 0 2px; align-self: flex-start; }
.a2-form .form { display: grid; gap: 16px; margin-top: 18px; max-width: none; }
.a2-form .a2-field { margin: 0; gap: 6px; }
.a2-form .a2-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a2-line { position: relative; display: flex; align-items: center; gap: 8px; }
.a2-line > input, .a2-line > select, .a2-line > .sel { flex: 1 1 auto; min-width: 0; width: 100%; }
.a2-ic { display: none; }
.a2-eye { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.a2-eye:hover { color: var(--text); background: var(--raise); }
/* в карточке входа поля — линия снизу и значок слева, как на образце */
.a2-form .a2-ic { display: grid; place-items: center; position: absolute; left: 0; top: 0; bottom: 0; width: 26px; color: var(--muted); pointer-events: none; transition: color .2s ease; }
.a2-form .a2-line > input, .a2-form .a2-line .sel-btn, .a2-form .a2-line > select { height: 44px; padding: 0 4px; background: transparent; border: 0; border-bottom: 1px solid var(--glass-line); border-radius: 0; box-shadow: none; outline: none; color: var(--text);
  transition: border-color .25s ease, box-shadow .25s ease; }
.a2-form .has-ic .a2-line > input, .a2-form .has-ic .a2-line .sel-btn, .a2-form .has-ic .a2-line > select { padding-left: 34px; }
.a2-form .a2-line > input::placeholder { color: var(--muted); opacity: 1; }
.a2-form .a2-line > input:focus, .a2-form .a2-line .sel-btn:focus-visible, .a2-form .a2-line > select:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.a2-form .a2-line:focus-within .a2-ic { color: var(--accent); }
.a2-form .a2-eye { position: absolute; right: 0; top: 4px; }
.a2-form .a2-line > input[type=password], .a2-form .a2-line > input#au-pass, .a2-form .a2-line > input#au-pass2 { padding-right: 40px; }
.a2-form .hint { font-size: 13px; }
.a2-form .check { align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.a2-submit { width: 100%; height: 46px; border-radius: 999px; font-weight: 600; }
.a2-form .auth-forgot { text-align: center; }
.a2-form .wc-box { margin-top: 16px; }
.a2-form > .notice { margin-top: 16px; }

.a2-hello h2 { margin: 0 0 14px; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; }
.a2-hello p { margin: 0 0 26px; max-width: 22em; color: var(--muted); font-size: 15px; line-height: 1.55; }
.a2-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; color: var(--text);
  background: linear-gradient(155deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.a2-pill svg { transition: transform .25s ease; }
.a2-pill:hover { border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 3px var(--accent-soft); }
.a2-pill:hover svg { transform: translateX(4px); }
.a2-pill:active { transform: scale(.98); }
.a2-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-theme="light"] .a2-shade { background: linear-gradient(155deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.35) 100%); }
:root[data-theme="light"] .a2-shade::before { background: linear-gradient(180deg, rgba(60,70,130,0), rgba(60,70,130,.22) 30%, rgba(60,70,130,.22) 70%, rgba(60,70,130,0)); }
:root[data-theme="light"] .a2-form .a2-line > input, :root[data-theme="light"] .a2-form .a2-line .sel-btn { border-bottom-color: rgba(40,50,100,.2); }
:root[data-theme="light"] .a2-pill { background: rgba(255,255,255,.7); border-color: rgba(40,50,100,.16); box-shadow: none; }

@media (max-width: 860px) {
  .a2-card { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 22px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-flat); }
  .a2-shade { display: none; }
  .a2-form, .a2-hello, .mode-login .a2-hello, .mode-register .a2-hello { order: 0; padding: 26px 20px; }
  .mode-login .a2-hello, .mode-register .a2-hello { order: 2; border-top: 1px solid var(--border); padding-top: 22px; }
  .a2-hello h2 { font-size: 24px; margin-bottom: 8px; } .a2-hello p { margin-bottom: 16px; }
}

/* ================= Ввод кода по клеточкам ================= */
.otp { position: relative; display: inline-flex; gap: 10px; align-items: center; justify-content: center; }
.otp-box { width: 48px; height: 54px; display: grid; place-items: center; border-radius: 13px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text);
  background: rgba(8,10,28,.45); border: 1px solid var(--glass-line); box-shadow: inset 0 2px 6px rgba(3,4,20,.35);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, width .45s cubic-bezier(.6, 0, .2, 1), margin .45s cubic-bezier(.6, 0, .2, 1), opacity .3s ease, background-color .3s ease; }
:root[data-theme="light"] .otp-box { background: rgba(255,255,255,.8); border-color: rgba(40,50,100,.18); box-shadow: inset 0 1px 3px rgba(40,50,100,.08); }
.otp-box.filled { border-color: color-mix(in srgb, var(--text) 38%, transparent); }
.otp-box.active { border-color: var(--accent); box-shadow: inset 0 2px 6px rgba(3,4,20,.35), 0 0 0 3px var(--accent-soft), 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-1px); }
.otp-box.active:empty::after { content: ""; width: 2px; height: 22px; border-radius: 2px; background: var(--accent); animation: otp-caret 1s steps(2, start) infinite; }
@keyframes otp-caret { to { visibility: hidden; } }
.otp-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; opacity: 0; font-size: 16px; cursor: text; }
.otp .otp-in:focus { outline: none; }
.otp.bad { animation: otp-shake .4s ease; }
.otp.bad .otp-box { border-color: var(--down); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 22%, transparent); }
@keyframes otp-shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
/* принято: клеточки съезжаются в одну, в ней рисуется галочка */
.otp.ok { gap: 0; }
.otp.ok .otp-box { color: transparent; width: 0; margin: 0; border-width: 0; opacity: 0; }
.otp.ok .otp-box:first-child { width: 56px; height: 56px; opacity: 1; border-width: 2px; border-color: var(--up); background: color-mix(in srgb, var(--up) 14%, rgba(8,10,28,.5));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 16%, transparent), 0 0 26px color-mix(in srgb, var(--up) 45%, transparent); }
.otp.ok .otp-in { display: none; }
.otp-check { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; pointer-events: none; }
:root[data-theme="light"] .otp-check { stroke: var(--up); }
.otp-check path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.otp.ok .otp-check { opacity: 1; }
.otp.ok .otp-check path { animation: otp-draw .42s cubic-bezier(.5, 0, .3, 1) .46s forwards; }
@keyframes otp-draw { to { stroke-dashoffset: 0; } }
.otp.ok .otp-box:first-child { animation: otp-pop .5s cubic-bezier(.3, 1.6, .5, 1) .42s both; }
@keyframes otp-pop { from { transform: scale(.86); } to { transform: none; } }
/* карточка */
.otp-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 28px 28px; margin-top: 14px; border-radius: 20px; overflow: hidden;
  background: var(--raise); border: 1px solid var(--border); transition: border-color .5s ease, background-color .5s ease; }
.otp-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: radial-gradient(120% 90% at 50% 60%, color-mix(in srgb, var(--up) 34%, transparent) 0%, color-mix(in srgb, var(--up) 12%, transparent) 55%, transparent 100%); }
.otp-card.ok { border-color: color-mix(in srgb, var(--up) 55%, transparent); }
.otp-card.ok::before { opacity: 1; }
.otp-card > * { position: relative; }
.otp-title { margin: 0; font-size: 19px; font-weight: 600; transition: opacity .2s ease, transform .2s ease; }
.otp-sub { margin: 0 0 12px; max-width: 30em; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; transition: opacity .2s ease, transform .2s ease; }
.otp-title.swap, .otp-sub.swap { opacity: 0; transform: translateY(4px); }
.otp-note { margin: -4px 0 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; }
.otp-note b { font-variant-numeric: tabular-nums; letter-spacing: .12em; font-weight: 700; }
.otp-card.ok .otp-note, .otp-card.ok .otp-foot { display: none; }
.otp-card > .msg:empty { display: none; } .otp-card > .msg { margin: 6px 0 0; }
.otp-foot { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.otp-actions { justify-content: center; margin-top: 8px; }
.otp-wrap { max-width: 520px; margin: 0 auto 16px; }
.otp-wrap .otp-card { background: var(--glass); border-color: var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.otp-wrap .otp-card.ok { border-color: color-mix(in srgb, var(--up) 55%, transparent); }
/* код подтверждения в обычных формах (вывод, «Безопасность»): клеточки поменьше, по левому краю */
.field > .otp { align-self: flex-start; gap: 8px; }
.field > .otp .otp-box { width: 40px; height: 46px; font-size: 20px; border-radius: 11px; }
@media (max-width: 420px) { .otp { gap: 7px; } .otp-box { width: 42px; height: 50px; } .field > .otp { gap: 6px; } .field > .otp .otp-box { width: 36px; height: 44px; } .otp-card { padding: 26px 16px 22px; } }
@media (prefers-reduced-motion: reduce) {
  .a2-shade, .a2-form, .a2-hello, .otp-box, .otp-card, .otp-card::before { transition: none !important; animation: none !important; }
  .auth2 .a2-form, .auth2 .a2-hello, .auth2.flip .a2-shade { animation: none !important; }
  .otp.bad { animation: none; } .otp.ok .otp-check path { animation: none; stroke-dashoffset: 0; } .otp.ok .otp-box:first-child { animation: none; }
}

.otp.still .otp-check path { animation: none; stroke-dashoffset: 0; } .otp.still .otp-box:first-child { animation: none; }

/* ================= Кнопки, значки и плитки монет в стиле сайта ================= */
/* --- кнопки: главная светится цветом биржи, вторая — стекло --- */
.btn { position: relative; border: 1px solid transparent; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #fff) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 86%, #1a1f66) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 8px 22px color-mix(in srgb, var(--accent) 34%, transparent);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .22s ease, transform .12s ease, filter .2s ease; }
.btn:hover:not(:disabled) { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px color-mix(in srgb, var(--accent) 48%, transparent); }
.btn.quiet { background: linear-gradient(160deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.05) 100%); border-color: var(--glass-line); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn.quiet:hover:not(:disabled) { filter: none; border-color: color-mix(in srgb, var(--accent) 70%, #fff); background: linear-gradient(160deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 0 0 3px var(--accent-soft); }
.btn.buy { background: linear-gradient(180deg, color-mix(in srgb, var(--up) 84%, #fff), var(--up) 50%, color-mix(in srgb, var(--up) 86%, #063)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px color-mix(in srgb, var(--up) 30%, transparent); }
.btn.sell { background: linear-gradient(180deg, color-mix(in srgb, var(--down) 84%, #fff), var(--down) 50%, color-mix(in srgb, var(--down) 86%, #501)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 22px color-mix(in srgb, var(--down) 30%, transparent); }
.btn:disabled { box-shadow: none; filter: none; }
.btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }
.a2-submit { border-radius: 999px; }
:root[data-theme="light"] .btn.quiet { background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); border-color: rgba(40,50,100,.14); box-shadow: 0 2px 8px rgba(60,70,130,.08); }
:root[data-theme="light"] .btn.quiet:hover:not(:disabled) { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* --- шапка: «Войти», «Регистрация», язык, тема, значки — стеклянные таблетки --- */
#nav-right .btn.small, .tool-btn { height: 40px; min-height: 40px; padding: 0 16px; border-radius: 999px; }
#nav-right a.btn.auth-in, #nav-right a.btn.auth-adm, #nav-right .btn.quiet, .tool-btn {
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%); border: 1px solid rgba(255,255,255,.26); color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 6px 18px rgba(3,4,20,.25); }
#nav-right a.btn.auth-in:hover, #nav-right a.btn.auth-adm:hover, #nav-right .btn.quiet:hover, .tool-btn:hover { background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.1) 100%); border-color: rgba(255,255,255,.5); color: #fff; }
.tool-btn { min-width: 40px; padding: 0 12px; }
.tool-btn svg { opacity: .95; }
.top-ic, .nav > a.top-ic, .menu > summary.top-ic { border-radius: 50%; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.top-ic:hover, .nav > a.top-ic[aria-current="page"], .menu-ic[open] > summary { color: #fff; border-color: rgba(255,255,255,.26);
  background: linear-gradient(160deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.06) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.24); }
:root[data-theme="light"] #nav-right a.btn.auth-in, :root[data-theme="light"] #nav-right a.btn.auth-adm, :root[data-theme="light"] #nav-right .btn.quiet, :root[data-theme="light"] .tool-btn {
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); border-color: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(60,70,130,.12); }
:root[data-theme="light"] .top-ic:hover, :root[data-theme="light"] .menu-ic[open] > summary { color: var(--text); background: rgba(255,255,255,.9); border-color: #fff; box-shadow: 0 4px 14px rgba(60,70,130,.12); }

/* --- маленькие кнопки-значки (в графике, стакане и т. п.) --- */
.ic-btn { border-radius: 9px; border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.ic-btn:hover, .ic-btn[aria-pressed="true"] { background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); border-color: var(--glass-line); color: var(--text); }
.ic-btn[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
:root[data-theme="light"] .ic-btn:hover, :root[data-theme="light"] .ic-btn[aria-pressed="true"] { background: #fff; border-color: rgba(40,50,100,.14); }

/* --- значки: ровнее линия, у выбранного пункта меню мягкое свечение --- */
.side a.side-link svg, .top-ic svg, .menu-row svg, .cab-item svg, .tabbar svg { stroke-width: 1.6; }
.side a.side-link svg { opacity: .82; transition: opacity .2s ease, filter .25s ease, transform .25s ease; }
.side a.side-link:hover svg { opacity: 1; }
.side a.side-link[aria-current="page"] svg { opacity: 1; color: #a9bcff; filter: drop-shadow(0 0 6px rgba(120,150,255,.75)); }
:root[data-theme="light"] .side a.side-link[aria-current="page"] svg { color: var(--accent); filter: none; }
.tabbar a[aria-current="page"] svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 70%, transparent)); }

/* --- плитки монет: круглый «жетон» своего цвета с бликом --- */
.ico:not(.ico-img) { --h: 230; --h2: 264; width: 32px; height: 32px; border-radius: 50%; border: 0 !important; color: #fff !important; font-weight: 700; font-size: 10px; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  background:
    radial-gradient(120% 90% at 30% 12%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 34%, transparent 58%),
    linear-gradient(150deg, hsl(var(--h) 78% 60%) 0%, hsl(var(--h2) 72% 42%) 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), inset 0 -6px 10px rgba(0,0,0,.2), 0 4px 12px hsl(var(--h) 80% 45% / .38); }
.ico.ico-3:not(.ico-img) { font-size: 9px; letter-spacing: 0; }
.ico.hx-ico:not(.ico-img) { border-radius: 50%; } .ico.hx-ico.s:not(.ico-img) { border-radius: 50%; font-size: 8px; }
/* --- загруженные логотипы: без рамки и обрезки, с мягкой тенью, чёткие --- */
img.ico-img, img.ico.hx-ico { border-radius: 50%; object-fit: contain; background: none; image-rendering: auto; filter: drop-shadow(0 3px 8px rgba(3,4,20,.35)); }
:root[data-theme="light"] img.ico-img { filter: drop-shadow(0 2px 6px rgba(60,70,130,.22)); }
@media (prefers-reduced-motion: reduce) { .btn, .top-ic, .ic-btn, .side a.side-link svg { transition: none; } }

/* ================= Сайт для гостя (лендинг) ================= */
/* пока не ясно, вошёл ли человек, не показываем ни одно из меню: так ничего не мигает при загрузке */
body:not(.acc-ready) .side, body:not(.acc-ready) .lp-nav { visibility: hidden; }
.lp-nav { display: none; }
body.is-guest .lp-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lp-nav a { padding: 9px 12px; border-radius: 999px; border: 1px solid transparent; color: rgba(255,255,255,.86); font-weight: 500; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background-color .22s ease, border-color .22s ease, color .2s ease, box-shadow .22s ease; }
.lp-nav a:hover, .lp-nav a[aria-current="page"] { color: #fff; border-color: rgba(255,255,255,.26); background: linear-gradient(160deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.06) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.lp-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:root[data-theme="light"] .lp-nav a { color: var(--muted); }
:root[data-theme="light"] .lp-nav a:hover, :root[data-theme="light"] .lp-nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.9); border-color: #fff; box-shadow: 0 4px 14px rgba(60,70,130,.1); }
body.is-guest .side, body.is-guest #nav, body.is-guest #more-btn, body.is-guest #tabbar, body.is-guest .tabbar { display: none !important; }
body.is-guest { padding-bottom: 0; }
body.is-guest .page { max-width: 1240px; }
@media (min-width: 1081px) {
  body.is-guest, body.is-guest.side-mini { padding-left: 0; }
  body.is-guest .top { display: flex; align-items: center; gap: 14px; max-width: 1400px; margin: 0 auto; padding: 18px 24px 10px; }
  body.is-guest .top > .brand { display: inline-flex; flex: none; margin-right: 6px; }
  body.is-guest .lp-nav { flex: 1 1 auto; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  body.is-guest .lp-nav::-webkit-scrollbar { display: none; }
  body.is-guest .top > .nav-right, body.is-guest .top > .top-tools { flex: none; }
}
@media (max-width: 1080px) {
  body.is-guest .top { flex-wrap: wrap; row-gap: 6px; }
  body.is-guest .lp-nav { order: 20; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
  body.is-guest .lp-nav::-webkit-scrollbar { display: none; }
  .lp-nav a { padding: 8px 12px; font-size: 14px; }
}
/* главная */
.lp-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 56px 20px 40px; }
.lp-hero h1 { margin: 0; max-width: 15em; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
.lp-lead { margin: 0; max-width: 40em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,.82); text-wrap: pretty; }
:root[data-theme="light"] .lp-lead { color: var(--muted); }
.lp-cta { justify-content: center; gap: 12px; }
.btn.lp-big { min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; }
.lp-hero .gx-points { justify-content: center; }
.lp-hero .gx-points li { background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-sec { padding: 28px; }
.lp-sec > h2, .lp-sec .dash-cap h2 { font-size: 22px; margin: 0 0 18px; }
.lp-sec .dash-cap { align-items: baseline; margin-bottom: 4px; } .lp-sec .dash-cap h2 { margin: 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-step { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--raise); border: 1px solid var(--border); }
.lp-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.lp-step b, .lp-card b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.lp-step p, .lp-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-card { padding: 20px; border-radius: 16px; background: var(--raise); border: 1px solid var(--border); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.lp-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, #fff); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(3,4,20,.28); }
.lp-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 78%, #fff), color-mix(in srgb, var(--accent) 86%, #1a1f66)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px color-mix(in srgb, var(--accent) 36%, transparent); }
.lp-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 20px 28px; }
.lp-final h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.lp-final p { margin: 0 0 6px; color: var(--muted); }
/* новости рынка */
.wn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.wn-list.wn-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wn-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--raise); border: 1px solid var(--border); transition: border-color .25s ease, transform .25s ease; }
.wn-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, #fff); transform: translateY(-2px); }
.wn-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.wn-date { font-variant-numeric: tabular-nums; }
.wn-src { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; }
.wn-title { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 600; text-wrap: balance; }
.wn-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1 1 auto; }
.wn-link { align-self: flex-start; font-size: 13.5px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.wn-link:hover { text-decoration: underline; }
@media (max-width: 1000px) { .lp-steps, .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wn-list.wn-three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .lp-steps, .lp-cards, .wn-list { grid-template-columns: minmax(0, 1fr); } .lp-hero { padding: 28px 4px 18px; } .lp-sec { padding: 20px 16px; } .btn.lp-big { width: 100%; } .lp-cta { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lp-card, .wn-item, .lp-nav a { transition: none; } .lp-card:hover, .wn-item:hover { transform: none; } }

/* --- лендинг: язык, тема и админка убраны в меню «три полоски» --- */
.lp-menu { display: none; }
body.is-guest .lp-menu { display: block; position: relative; flex: none; }
body.is-guest .top-tools, body.is-guest #nav-right .auth-adm { display: none !important; }
.lp-burger { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%); border: 1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 6px 18px rgba(3,4,20,.25);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.lp-burger::-webkit-details-marker { display: none; }
.lp-burger:hover, .lp-menu[open] > .lp-burger { border-color: rgba(255,255,255,.5); background: linear-gradient(160deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.1) 100%); }
.lp-burger svg { transition: transform .25s ease; } .lp-menu[open] > .lp-burger svg { transform: rotate(90deg); }
.lp-burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 248px; padding: 14px; border-radius: 18px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(155deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.05) 100%), rgba(14,18,46,.9); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 24px 60px rgba(3,4,20,.55);
  animation: lp-pop-in .18s ease both; transform-origin: 100% 0; }
@keyframes lp-pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-pop-cap { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 2px 4px 0; }
.lp-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 4px; }
.lp-langs button { height: 36px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,.07); color: rgba(255,255,255,.86); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.lp-langs button:hover { background: rgba(255,255,255,.14); }
.lp-langs button[aria-current="true"] { color: #fff; border-color: rgba(255,255,255,.4); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.lp-pop-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; background: none; color: rgba(255,255,255,.9); font: inherit; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease; }
.lp-pop-row:hover { color: #fff; border-color: rgba(255,255,255,.24); background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); }
.lp-pop-row:focus-visible, .lp-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
:root[data-theme="light"] .lp-burger { color: var(--text); background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(255,255,255,.7)); border-color: #fff; box-shadow: 0 4px 14px rgba(60,70,130,.12); }
:root[data-theme="light"] .lp-pop { background: rgba(255,255,255,.96); border-color: #fff; box-shadow: 0 24px 60px rgba(60,70,130,.22); }
:root[data-theme="light"] .lp-pop-cap { color: var(--dim); }
:root[data-theme="light"] .lp-langs button { background: rgba(40,50,100,.06); color: var(--text); }
:root[data-theme="light"] .lp-langs button[aria-current="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
:root[data-theme="light"] .lp-pop-row { color: var(--text); } :root[data-theme="light"] .lp-pop-row:hover { color: var(--text); background: rgba(40,50,100,.06); border-color: rgba(40,50,100,.1); }
:root[data-theme="light"] .lp-burger:focus-visible, :root[data-theme="light"] .lp-pop-row:focus-visible, :root[data-theme="light"] .lp-langs button:focus-visible { outline-color: var(--accent); }
@media (min-width: 1081px) { body.is-guest .lp-nav { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .lp-pop { animation: none; } .lp-burger svg { transition: none; } }

/* лендинг: рядом с названием нет приставки, а меню страниц никогда не заезжает под название */
body.is-guest .brand-tag { display: none !important; }
@media (min-width: 1081px) { body.is-guest .top > .brand { position: relative; z-index: 1; } body.is-guest .lp-nav { justify-content: safe center; } }

/* ================= Страница «О бирже» ================= */
.lp-cards.ab-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-cards.ab-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ab-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ab-tile { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; border-radius: var(--radius); text-align: center;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
.ab-tile b { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff 0%, color-mix(in srgb, var(--accent) 55%, #fff) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .ab-tile b { background: linear-gradient(120deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.ab-tile span { color: var(--muted); font-size: 13.5px; }
.ab-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ab-two > .panel { margin: 0; }
.ab-text { margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; }
.lp-sec .list { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.lp-sec .list.ab-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.lp-sec .list li::marker { color: var(--accent); }
@media (max-width: 1100px) { .lp-cards.ab-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ab-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lp-cards.ab-three, .lp-cards.ab-five, .ab-two, .lp-sec .list.ab-cols { grid-template-columns: minmax(0, 1fr); } .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ab-tile { padding: 16px 12px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-flat); box-shadow: none; } }
.lp-sec .list { max-width: none; }

/* «Выйти» в меню аккаунта: такая же строка, как остальные, отделена линией и стоит последней */
.menu-list button.menu-row.auth-out { display: flex; flex-direction: row; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 9px 10px 8px; margin-top: 6px;
  border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-s) var(--radius-s); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  transition: background-color .18s ease, color .18s ease; }
.menu-list button.menu-row.auth-out svg { color: var(--muted); flex: none; transition: color .18s ease, transform .2s ease; }
.menu-list button.menu-row.auth-out:hover { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }
.menu-list button.menu-row.auth-out:hover svg { color: var(--down); transform: translateX(2px); }
.menu-list button.menu-row.auth-out:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 720px) { .menu-list button.menu-row.auth-out { padding: 11px 12px 10px; } }

/* ---------- меню «три полоски»: выбор языка как в основном меню биржи (кнопка с кодом → список «название + код») ---------- */
.lp-lang-head .lp-lang-cur { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.lp-lang-chev { flex: none; width: 7px; height: 7px; margin: -3px 2px 0 -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .6; transform: rotate(45deg); transition: transform .2s ease; }
.lp-lang-head[aria-expanded="true"] .lp-lang-chev { transform: rotate(225deg); margin-top: 3px; }
.lp-langs { display: flex; flex-direction: column; gap: 2px; margin: -2px 0 2px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); animation: lp-pop-in .16s ease both; transform-origin: 50% 0; }
.lp-langs button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: rgba(255,255,255,.9); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.lp-langs button small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.5); }
.lp-langs button:hover { background: rgba(255,255,255,.12); }
.lp-langs button[aria-current="true"] { border: 0; color: #fff; font-weight: 600; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.lp-langs button[aria-current="true"] small { color: rgba(255,255,255,.8); }
:root[data-theme="light"] .lp-lang-head .lp-lang-cur { color: var(--muted); }
:root[data-theme="light"] .lp-langs { background: rgba(40,50,100,.04); border-color: rgba(40,50,100,.08); }
:root[data-theme="light"] .lp-langs button { background: none; color: var(--text); }
:root[data-theme="light"] .lp-langs button small { color: var(--muted); }
:root[data-theme="light"] .lp-langs button:hover { background: rgba(40,50,100,.07); }
:root[data-theme="light"] .lp-langs button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); border: 0; }
:root[data-theme="light"] .lp-langs button[aria-current="true"] small { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .lp-langs { animation: none; } .lp-lang-chev { transition: none; } }

/* ---------- подвал: дополнительные сведения (задаются в закрытом разделе админки) ---------- */
.foot-extra { max-width: 720px; margin: -2px auto 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.foot-extra p { margin: 0; }
.foot [data-brand-foot] { overflow-wrap: anywhere; }
#vl-foot-text { width: 100%; resize: vertical; min-height: 110px; }

/* ---------- закрытый раздел: памятка «Перед переносом на сервер» ---------- */
.vl-todo { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vl-todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--raise); }
.vl-todo b { grid-column: 1; font-weight: 600; }
.vl-todo span { grid-column: 1; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.vl-todo em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 4px 10px; border-radius: 999px; color: var(--warn-text); background: var(--warn-bg); }

/* ================= Блоки и тексты — то же стекло, что у сайдбара =================
 * Раньше под блоками лежала тёмная подложка, и они выглядели плотнее сайдбара. Теперь: та же прозрачность, тот же светлый кант,
 * тот же блик сверху, те же скругления; тексты — как в сайдбаре (белый основной, приглушённый белый для второстепенного).
 * Телефоны не трогаем: там по-прежнему плотная подложка без размытия. */
@media (min-width: 761px) {
  :root[data-theme="dark"] {
    --glass: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,.03) 100%), rgba(8,10,30,.2);
    --glass-line: rgba(255,255,255,.24);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.04), 0 24px 60px rgba(3,4,20,.5);
    --muted: rgba(255,255,255,.74); --dim: rgba(255,255,255,.52);
    --raise: rgba(255,255,255,.085); --border: rgba(255,255,255,.15);
    --up: #4FE0B5; --down: #FF9DB0;   /* ярче: блоки стали прозрачными, под ними бывает яркий фон */
  }
  :root[data-theme="light"] {
    --glass: linear-gradient(155deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.52) 100%);
    --glass-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(60,70,130,.16);
  }
  .panel, .card, .tape, .cab-side, .hm-tile, .hm-fees, .fund-level, .ln-side, .ct-group, .adm-side, .adm-group, .gx-hero { border-radius: 22px; }
  .panel .panel, .panel .card, .card .card, .panel .hm-tile, .panel .ct-group, .panel .fund-level { border-radius: 14px; }
  /* заголовки блоков и мелкие подписи — как названия групп в сайдбаре */
  :root[data-theme="dark"] .panel h1, :root[data-theme="dark"] .panel h2, :root[data-theme="dark"] .panel h3, :root[data-theme="dark"] .card h2, :root[data-theme="dark"] .card h3 { color: #fff; }
  :root[data-theme="dark"] .panel a:not(.btn):not(.side-link), :root[data-theme="dark"] .card a:not(.btn) { color: #a9bcff; }
  :root[data-theme="dark"] th { color: rgba(255,255,255,.5); font-weight: 500; }
  /* строки таблиц и списков: при наведении та же подсветка, что у пункта сайдбара */
  :root[data-theme="dark"] .panel tbody tr { transition: background-color .18s ease; }
  :root[data-theme="dark"] .panel tbody tr:hover { background: linear-gradient(90deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 100%); }
  :root[data-theme="light"] .panel tbody tr:hover { background: linear-gradient(90deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.45) 100%); }
  :root[data-theme="dark"] .panel td, :root[data-theme="dark"] .panel th { border-color: rgba(255,255,255,.1); }
  /* переключатели внутри блоков: выбранный вариант — как активный пункт сайдбара */
  :root[data-theme="dark"] .seg { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
  :root[data-theme="dark"] .seg button { color: rgba(255,255,255,.74); }
  :root[data-theme="dark"] .seg button[aria-pressed="true"]:not(.buy):not(.sell) { color: #fff; background: linear-gradient(90deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(255,255,255,.26), 0 6px 18px rgba(3,4,20,.28); }
}
@media (min-width: 761px) {
  /* вложенные плитки, которые оставались плотно-тёмными: теперь лёгкое стекло, как пункт сайдбара */
  :root[data-theme="dark"] .pos, :root[data-theme="dark"] .quote, :root[data-theme="dark"] .tile, :root[data-theme="dark"] a.fund-level {
    background: linear-gradient(90deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.045) 100%); border: 1px solid rgba(255,255,255,.15); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
  :root[data-theme="dark"] tr.me td { background: rgba(255,255,255,.1); }
  :root[data-theme="dark"] .p2p-amount, :root[data-theme="dark"] .chart-group { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
  /* предупреждения: янтарное стекло вместо плотной плашки */
  :root[data-theme="dark"] { --warn-bg: rgba(255,196,84,.17); --warn-text: #FFE3A3; }
  :root[data-theme="dark"] .verify-bar, :root[data-theme="dark"] .notice { border: 1px solid rgba(255,210,120,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
  :root[data-theme="dark"] .panel .notice { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) { .panel tbody tr { transition: none; } }

/* ---------- полоса разделов кабинета: на всю ширину, пункты просторные и ведут себя как пункты сайдбара ---------- */
@media (min-width: 761px) {
  .cab-side { align-self: stretch; gap: 6px; padding: 7px; border-radius: 20px; }
  .cab-side .cab-item { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 0 10px; gap: 9px; border-radius: 13px; font-size: 14.5px; font-weight: 500; white-space: nowrap;
    background: none; border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
  .cab-side .cab-item svg { width: 18px; height: 18px; }
  /* подпункты выбранного раздела — отдельной строкой под основными, чтобы основная строка не ломалась */
  .cab-side:has(.cab-sub)::after { content: ""; order: 1; flex: 0 0 100%; height: 1px; margin: 1px 6px; background: var(--border); }
  .cab-side .cab-sub { order: 2; flex: none; min-height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13.5px; border: 1px solid transparent; }
  :root[data-theme="dark"] .cab-side .cab-sub { color: rgba(255,255,255,.74); }
  :root[data-theme="dark"] .cab-side .cab-sub:hover { color: #fff; background: rgba(255,255,255,.08); }
  :root[data-theme="dark"] .cab-side .cab-sub[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.2); }
  :root[data-theme="light"] .cab-side .cab-sub:hover { background: rgba(40,50,100,.06); }
  .cab-side .cab-item .badge { margin-left: 2px; }
  :root[data-theme="dark"] .cab-side .cab-item { color: rgba(255,255,255,.84); }
  :root[data-theme="dark"] .cab-side .cab-item:hover, :root[data-theme="dark"] .cab-side .cab-item.on { color: #fff; border-color: rgba(255,255,255,.26);
    background: linear-gradient(90deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.07) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(3,4,20,.28); }
  :root[data-theme="dark"] .cab-side .cab-item.on { font-weight: 600; }
  :root[data-theme="dark"] .cab-side .cab-item.on svg { color: #a9bcff; filter: drop-shadow(0 0 6px rgba(120,150,255,.75)); }
  :root[data-theme="light"] .cab-side .cab-item { color: var(--muted); }
  :root[data-theme="light"] .cab-side .cab-item:hover, :root[data-theme="light"] .cab-side .cab-item.on { color: var(--text); border-color: rgba(255,255,255,.95);
    background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.6) 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(60,70,130,.12); }
  :root[data-theme="light"] .cab-side .cab-item.on { font-weight: 600; } :root[data-theme="light"] .cab-side .cab-item.on svg { color: var(--accent); }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) { .cab-side .cab-item { transition: none; } }
/* узкое окно: пункты не помещаются в одну строку, поэтому не растягиваем их, а ставим подряд */
@media (min-width: 761px) and (max-width: 1279px) { .cab-side .cab-item { flex: 0 1 auto; padding: 0 14px; min-height: 40px; } }

/* ================= Настройки: строки «название слева — переключатель справа» ================= */
.set-list { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--border); }
.set-row:first-child { border-top: 0; padding-top: 2px; } .set-row:last-child { padding-bottom: 2px; }
.set-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.set-text b { font-weight: 600; } .set-text span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.set-ctl { flex: none; max-width: 100%; } .set-ctl select, .set-ctl .sel { min-width: 200px; }
@media (max-width: 760px) { .set-ctl { width: 100%; } .set-ctl .seg { width: 100%; } .set-ctl .seg button { flex: 1 1 0; } .set-ctl select, .set-ctl .sel { width: 100%; } }
/* настройка «Прозрачность и размытие: выключено» — плотные блоки без размытия */
:root.fx-flat[data-theme="dark"] { --glass: rgba(13,17,42,.94); }
:root.fx-flat[data-theme="light"] { --glass: rgba(255,255,255,.96); }
:root.fx-flat *, :root.fx-flat *::before, :root.fx-flat *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:root.fx-flat .side, :root.fx-flat .lp-pop, :root.fx-flat .tip-pop { background: var(--glass-flat); }
/* настройка «Анимации: выключены» */
:root.fx-still *, :root.fx-still *::before, :root.fx-still *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }

/* ================= Пополнение и вывод: плитки «Пополнить / Вывести / Мои адреса» — ниже, стеклянные, со значком-жетоном ================= */
.fund-top .fund-bar { align-items: start; }
.fund-tab { padding: 9px 14px 9px 10px; gap: 11px; min-height: 54px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.fund-tab:hover { border-color: rgba(255,255,255,.4); }
.fund-tab:active { transform: scale(.99); }
.fund-tab.on { border-color: color-mix(in srgb, var(--accent) 80%, #fff); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent); }
.fund-tab-text b { font-size: 14.5px; } .fund-tab-text small { font-size: 12px; }
/* значок: маленький стеклянный жетон с бликом; у выбранной плитки — в цвет акцента со свечением */
.fund-tab .sec-ic, .fund-top .fund-level .sec-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--text);
  background: linear-gradient(155deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 100%); border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 12px rgba(3,4,20,.28); }
.fund-tab .sec-ic svg, .fund-top .fund-level .sec-ic svg { width: 16px; height: 16px; stroke-width: 1.7; }
.fund-tab .sec-ic.on { color: #fff; border-color: rgba(255,255,255,.45);
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 70%, #fff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #1a1f6b) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px color-mix(in srgb, var(--accent) 55%, transparent); }
.fund-top .fund-level { min-height: 54px; padding: 9px 14px 9px 10px; border-radius: 16px; }
:root[data-theme="light"] .fund-tab:hover { border-color: color-mix(in srgb, var(--accent) 40%, #fff); }
:root[data-theme="light"] .fund-tab .sec-ic, :root[data-theme="light"] .fund-top .fund-level .sec-ic { background: linear-gradient(155deg, #fff 0%, rgba(255,255,255,.6) 100%); border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(60,70,130,.14); }
:root[data-theme="light"] .fund-tab .sec-ic.on { color: #fff; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 75%, #fff) 0%, var(--accent) 100%); border-color: transparent; }
@media (max-width: 760px) { .fund-tab { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-flat); box-shadow: none; min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .fund-tab { transition: none; } }

/* ================= Правки по итогам полной проверки ================= */
/* телефон: зоны нажатия не ниже 36 точек (малые кнопки, значки, быстрые суммы, ссылки-источники) */
@media (max-width: 760px) {
  .btn.small, #view .btn.quiet, .verify-bar .btn { min-height: 36px; }
  #view .ic-btn { min-width: 36px; min-height: 36px; }
  #view .chip { min-height: 34px; }
  .wn-link { display: inline-flex; align-items: center; min-height: 36px; }
  .mk-line { min-height: 36px; }
}
/* «Активы → Счета»: очень длинные суммы переносятся, строка не вылезает за край */
.cab .place { flex-wrap: wrap; min-width: 0; }
.cab .place .place-num { flex: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* самый узкий телефон: подписи плиток «Пополнить / Вывести / Мои адреса» не упираются в край */
@media (max-width: 360px) { .fund-tab { padding: 9px 8px; } .fund-tab-text b { font-size: 13px; overflow-wrap: anywhere; } }

.sheet-list a.sheet-tab { display: none; }
/* телефон лежит на боку: нижняя панель убрана, чтобы странице досталась вся высота; все разделы остаются в меню «три полоски» */
@media (max-height: 480px) and (orientation: landscape) {
  .tabbar, #tabbar { display: none !important; }
  body { padding-bottom: 0 !important; }
  .sheet-list a.sheet-tab { display: flex; order: -1; }
}

/* фон сцены чуть спокойнее: насыщенность цвета снижена, форма и яркость сфер те же */
body::before { filter: saturate(.68); }
:root[data-theme="light"] body::before { filter: saturate(.74); }
