/* vibefox.net — витрина. Монохром, как логотип. Логические свойства (inline-start/end) — для арабского (rtl). */
:root {
  --fg: #111;
  --bg: #fff;
  --page: #f3f4f6;      /* фон страницы — чуть серее; шапка, подвал, карточки, формы — --bg (владелец 17.10) */
  --muted: #666;
  --line: #e5e5e5;
  --soft: #f5f5f5;
  --radius: 12px;
  --ctl: 8px;           /* одно скругление у полей и кнопок (владелец 17.10) */
  --wrap: 1240px;
  --hdr: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --fg-soft: #333;
  --line-strong: #cfcfcf;
  --err: #b00020;
  --hdr-bg: rgba(255, 255, 255, .96);
  --float-bg: rgba(255, 255, 255, .9);
  --shadow: rgba(0, 0, 0, .08);
  --mono: none;                       /* чёрные картинки на прозрачном фоне (логотип, ASCII-лиса): в тёмной теме — белые */
  color-scheme: light;
}
/* Тёмная тема: по системе, если человек не выбрал сам (кнопка в шапке → html[data-theme]). */
:root[data-theme="dark"] {
  --fg: #ececec; --bg: #111214; --page: #1b1c20; --muted: #9b9b9b; --line: #2a2b2e; --soft: #1b1c1f; --fg-soft: #d0d0d0; --line-strong: #44464b;
  --err: #ff7085; --hdr-bg: rgba(17, 18, 20, .94); --float-bg: rgba(30, 31, 34, .9); --shadow: rgba(0, 0, 0, .5); --mono: invert(1);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fg: #ececec; --bg: #111214; --page: #1b1c20; --muted: #9b9b9b; --line: #2a2b2e; --soft: #1b1c1f; --fg-soft: #d0d0d0; --line-strong: #44464b;
    --err: #ff7085; --hdr-bg: rgba(17, 18, 20, .94); --float-bg: rgba(30, 31, 34, .9); --shadow: rgba(0, 0, 0, .5); --mono: invert(1);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--page); color: var(--fg); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 8px 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.main { min-height: 60vh; padding-bottom: 56px; }
[hidden] { display: none !important; }

/* ---------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--fg); border-radius: var(--ctl); background: var(--fg); color: var(--bg); font: 600 15px/1 var(--font);
  text-decoration: none; cursor: pointer; transition: opacity .15s; }
.btn:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--soft); opacity: 1; }
.btn-line { border-color: var(--line-strong); background: var(--bg); color: var(--fg); }
.btn-line:hover { border-color: var(--fg); opacity: 1; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--soft); }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--fg); color: var(--bg); font: 700 11px/18px var(--font); text-align: center; }

/* ---------- шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--hdr-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { width: 72px; height: auto; display: block; filter: var(--mono); }
.burger { display: none; }
/* меню — второй строкой шапки (владелец 17.10); первая строка: логотип, поиск, иконки */
.hdr-nav { border-top: 1px solid var(--line); }
.nav-head { display: none; }
.nav-list { display: flex; gap: 4px; margin: 0 0 0 -12px; padding: 6px 0; list-style: none; }
[dir="rtl"] .nav-list { margin: 0 -12px 0 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { padding: 10px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-list > li > a:hover { background: var(--soft); }
.sub-toggle { display: none; }
.sub { position: absolute; top: 100%; inset-inline-start: 0; z-index: 75; min-width: 240px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.sub a:hover { background: var(--soft); }
.hdr-tools { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }

.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border-radius: 21px; cursor: pointer;
  list-style: none; font: 600 14px/1 var(--font); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--soft); }
.lang ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; width: 190px; max-height: calc(100vh - 80px); overflow: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px var(--shadow); }
.lang a { display: block; padding: 4px 10px; border-radius: 6px; font-size: 14px; line-height: 1.35; text-decoration: none; }
.lang a:hover { background: var(--soft); }
.lang a[aria-current] { font-weight: 700; }

/* ---------- валюта (EUR / USD): тот же вид, что выбор языка; цены — знак справа, всегда слева направо */
.cur summary { gap: 4px; }
.cur-sym { font-size: 16px; }
.cur ul { width: 120px; }
.cur button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 4px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--fg); font: 15px/1.3 var(--font); text-align: start; cursor: pointer; }
.cur button:hover { background: var(--soft); }
.cur button b { width: 14px; text-align: center; }
.cur button[aria-current] { font-weight: 700; }
[data-eur] { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }

/* ---------- телефон: меню-шторка слева (в rtl — справа) */
@media (max-width: 900px) {
  .hdr-in { gap: 8px; }
  .burger { display: inline-flex; }
  .nav { position: fixed; top: 0; height: 100vh; height: 100dvh; inset-inline-start: 0; z-index: 70; width: min(320px, 86vw); padding: 0 12px 24px;
    background: var(--bg); overflow-y: auto; transform: translateX(-100%); transition: transform .2s; }
  [dir="rtl"] .nav { transform: translateX(100%); }
  body.nav-open .nav { transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .hdr { z-index: 70; }
  .nav-overlay { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .35); }
  .nav-head { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); padding-inline-start: 8px;
    font-weight: 700; }
  .nav-list, [dir="rtl"] .nav-list { flex-direction: column; gap: 0; margin: 0; padding: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 14px 8px; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0;
    background: none; color: var(--fg); cursor: pointer; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; opacity: 1;
    visibility: visible; transform: none; display: none; }
  .has-sub.is-open > .sub { display: block; }
}

/* ---------- главная */
.hero { margin: 24px 0 8px; text-align: center; }
.hero img { width: 100%; max-width: 640px; height: auto; }
.hero img.mono { filter: var(--mono); }
/* мозаика баннеров продуктов (владелец 17.10): 1 большой (2 ряда) + 4 малых; текст — поверх тёмной части картинки */
.promo { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 200px; gap: 16px; margin: 24px 0 8px; }
.promo-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #0b0d14; color: #fff;
  text-decoration: none; isolation: isolate; }
.promo-item[hidden] { display: none; }
.promo-item:first-child { grid-row: span 2; }
.promo-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center;
  transition: transform .4s ease; }
.promo-item::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 8, 14, .82) 0%, rgba(6, 8, 14, .45) 55%, rgba(6, 8, 14, 0) 100%); }
[dir="rtl"] .promo-item::before { background: linear-gradient(270deg, rgba(6, 8, 14, .82) 0%, rgba(6, 8, 14, .45) 55%, rgba(6, 8, 14, 0) 100%); }
.promo-item:hover img { transform: scale(1.04); }
/* справа налево: текст справа — картинку зеркалим, чтобы предметы ушли влево */
[dir="rtl"] .promo-item img { transform: scaleX(-1); object-position: left center; }
[dir="rtl"] .promo-item:hover img { transform: scale(-1.04, 1.04); }
/* блоки платформ на главной: заголовок + «Смотреть все», мини-баннеры подкатегорий, 4 случайных продукта */
.plat { margin: 48px 0 0; }
.plat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.plat-head h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.plat-head h2 a { text-decoration: none; }
.plat-head p { margin: 4px 0 0; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.mini { position: relative; display: flex; align-items: center; height: 116px; padding: 0 24px; overflow: hidden; border-radius: var(--radius);
  background: #0b0d14; color: #fff; text-decoration: none; isolation: isolate; }
.mini img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .4s ease; }
.mini::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 14, .85), rgba(6, 8, 14, .2) 70%, rgba(6, 8, 14, 0)); }
[dir="rtl"] .mini img { transform: scaleX(-1); object-position: left center; }
[dir="rtl"] .mini::before { background: linear-gradient(270deg, rgba(6, 8, 14, .85), rgba(6, 8, 14, .2) 70%, rgba(6, 8, 14, 0)); }
.mini:hover img { transform: scale(1.04); }
[dir="rtl"] .mini:hover img { transform: scale(-1.04, 1.04); }
.mini span { display: flex; flex-direction: column; gap: 2px; max-width: 70%; }
.mini b { font-size: 18px; line-height: 1.25; }
.mini small { color: rgba(255, 255, 255, .72); font-size: 13px; }
.grid.grid-4 { --cols: 4; }
@media (max-width: 560px) {
  .plat { margin-top: 36px; }
  .plat-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .plat-head h2 { font-size: 22px; }
  .mini { height: 96px; padding: 0 16px; }
  .mini b { font-size: 16px; }
  .grid.grid-4 { --cols: 2 !important; gap: 12px; }
  .grid-4 .card-body { padding: 12px; gap: 6px; }
  .grid-4 .card-title { font-size: 15px; }
}
.promo-txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; max-width: 78%; padding: 18px; }
.promo-txt small { color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.promo-txt b { font-size: 17px; line-height: 1.25; }
.promo-item:first-child .promo-txt { max-width: 62%; padding: 32px; gap: 10px; }
.promo-item:first-child .promo-txt b { font-size: 30px; line-height: 1.15; }
.promo-foot { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.promo-price { font-weight: 700; font-size: 16px; }
.promo-item .btn { border-color: #fff; background: #fff; color: #0b0d14; }
.promo-item:not(:first-child) .btn { display: none; }
@media (max-width: 900px) {
  .promo { grid-template-columns: 1fr 1fr; grid-template-rows: 240px; grid-auto-rows: 170px; gap: 12px; }
  .promo-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .promo-item:first-child .promo-txt { max-width: 75%; padding: 22px; }
  .promo-item:first-child .promo-txt b { font-size: 24px; }
}
@media (max-width: 560px) {
  .promo { grid-template-rows: 200px; grid-auto-rows: 150px; }
  .promo-item:first-child .promo-txt { max-width: 85%; padding: 16px; gap: 6px; }
  .promo-item:first-child .promo-txt b { font-size: 20px; }
  .promo-txt { max-width: 100%; padding: 12px; }
  .promo-txt b { font-size: 14px; }
  .promo-txt small { font-size: 10px; }
  .promo-price { font-size: 14px; }
}
.section-title { font-size: 24px; margin: 32px 0 20px; }

/* ---------- хлебные крошки, подкатегории, панель сортировки */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 4px; color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.cat-desc { max-width: 820px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--fg); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0;
  padding: 10px 0; border-block: 1px solid var(--line); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--ctl); background: var(--bg); color: var(--fg);
  font: 14px var(--font); }
.views { display: flex; gap: 4px; }
.view-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid transparent;
  border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.view-btn svg { fill: currentColor; stroke: none; }
.view-btn.is-active { border-color: var(--line); color: var(--fg); background: var(--soft); }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- сетка и карточки */
.grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px var(--shadow); }
.card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.card-title { margin: 0; font-size: 17px; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-price { font-weight: 700; font-size: 18px; }
.card-store { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 1000px) { .grid { --cols: 2 !important; } }
@media (max-width: 560px) {
  .grid { --cols: 1 !important; gap: 16px; }
  .views { display: none; }
}

/* ---------- продукт */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin: 16px 0 40px; }
.prod-info h1 { margin-top: 0; }
.prod-short { color: var(--fg-soft); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.stores-label { width: 100%; color: var(--muted); font-size: 14px; }
.buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin: 20px 0; }
.buy-price { width: 100%; font-size: 30px; font-weight: 700; }
.qty { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.qty input { width: 90px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--ctl); font: 16px var(--font); }
.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prod-desc { padding-top: 32px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .prod { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- слайдер: картинки и видео */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius);
  background: var(--soft); scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.slide > img { width: 100%; height: 100%; object-fit: contain; }
.slide iframe { width: 100%; height: 100%; border: 0; }
.yt { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px;
  background: rgba(0, 0, 0, .75); }
.yt-play::after { content: ""; position: absolute; top: 14px; left: 27px; border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #f00; }
.sl-arrow { position: absolute; top: calc(50% - 60px); width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: var(--float-bg); color: var(--fg); box-shadow: 0 2px 10px var(--shadow); cursor: pointer; }
.sl-prev { inset-inline-start: 10px; }
.sl-next { inset-inline-end: 10px; }
[dir="rtl"] .sl-arrow svg { transform: scaleX(-1); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.thumb { position: relative; flex: 0 0 76px; height: 57px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: var(--soft); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--fg); }
.yt-mini::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* ---------- Help, Changelog, страницы */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--fg); }
.back svg { width: 18px; height: 18px; }
[dir="rtl"] .back svg { transform: scaleX(-1); }
.help { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.help.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--hdr) + 20px); max-height: calc(100vh - var(--hdr) - 40px); overflow: auto; font-size: 14px; }
.toc summary { margin-bottom: 8px; font-weight: 700; cursor: pointer; }
.toc ul { margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 5px 12px; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--fg); }
.toc a.is-active { box-shadow: inset 2px 0 0 var(--fg); }
[dir="rtl"] .toc a.is-active { box-shadow: inset -2px 0 0 var(--fg); }
.toc-l3 a { padding-inline-start: 26px; font-size: 13px; }
@media (max-width: 900px) {
  .help { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .toc { position: static; max-height: none; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
}
.changelog { max-width: 820px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; white-space: normal; }
.page { max-width: 860px; }
.contact-mail { margin-top: 24px; font-size: 18px; }
.notfound { padding: 80px 0; text-align: center; }

/* ---------- текст из редактора */
.content { overflow-wrap: anywhere; }
.content h2 { margin: 1.8em 0 .6em; font-size: 24px; line-height: 1.25; }
.content h3 { margin: 1.5em 0 .5em; font-size: 19px; }
.content h4 { margin: 1.3em 0 .4em; font-size: 17px; }
.content p, .content ul, .content ol { margin: 0 0 1em; }
.content li { margin: .25em 0; }
.content img { border-radius: 8px; }
.content table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.content th, .content td { padding: 8px 12px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.content th { background: var(--soft); }
.content code { padding: 1px 5px; border-radius: 4px; background: var(--soft); font-size: .92em; }
.content pre { padding: 14px; border-radius: 8px; background: var(--soft); overflow-x: auto; }
.content a { text-decoration: underline; }

/* ---------- подвал */
.ftr { border-top: 1px solid var(--line); background: var(--bg); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr-links a { text-decoration: none; }
.ftr-links a:hover { text-decoration: underline; }
.ftr-copy { margin: 0; color: var(--muted); }

/* ================================================================ кабинет покупателя (этап 4) */

/* ---------- формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin: 18px 0 0; font-size: 19px; }
.form-wide { max-width: 760px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fld > span { font-weight: 600; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--ctl);
  background: var(--bg); color: var(--fg); font: 16px/1.4 var(--font); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--fg); outline-offset: -1px; border-color: var(--fg); }
.fld input:disabled { background: var(--soft); color: var(--muted); }
.fld small, .muted { color: var(--muted); font-size: 14px; }
.muted { margin: 0; }
.fld-half { max-width: 50%; }
.fld-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fld-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-err] { color: var(--err); font-size: 13px; font-style: normal; }
[data-err]:empty { display: none; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.chk input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-msg { margin: 0; color: var(--err); }
.form-msg:empty { display: none; }
.form-msg.is-ok { padding: 12px 14px; border-radius: 8px; background: var(--soft); color: var(--fg); }
.form .btn { align-self: flex-start; }
/* Send в формах тикетов и ответов — справа, зелёная (владелец 23.10) */
.form .btn-send { align-self: flex-end; border-color: #1a8f4c; background: #1a8f4c; color: #fff; }
.form button:disabled { opacity: .5; cursor: wait; }
.link { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--muted); font: 14px var(--font); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--fg); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* капча-пазл (_captcha.php): картинка 280×96, кусочек 54×54 двигается ползунком той же ширины; всегда слева направо; по центру формы */
.cap { width: 280px; max-width: 100%; margin-inline: auto; direction: ltr; user-select: none; -webkit-user-select: none; }
.cap-img { position: relative; width: 280px; height: 96px; overflow: hidden; border-radius: var(--ctl); background: var(--soft); }
.cap-bg { display: block; width: 280px; height: 96px; }
.cap-piece { position: absolute; top: 0; left: 0; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); pointer-events: none; }
.cap-img img:not([src]) { visibility: hidden; }
.cap-new { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  padding: 0; border: 0; border-radius: var(--ctl); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.cap-new svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cap-track { position: relative; height: 34px; margin-top: 6px; border: 1px solid var(--line-strong); border-radius: var(--ctl); background: var(--soft); overflow: hidden; }
.cap-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--fg) 12%, transparent); }
.cap-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 56px; color: var(--muted); font-size: 13px;
  pointer-events: none; }
.cap-knob { position: absolute; top: 0; left: 0; width: 54px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: var(--ctl); background: var(--fg); color: var(--bg); cursor: grab; touch-action: none; }
.cap-knob:active { cursor: grabbing; }
.cap-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cap.is-ok .cap-knob { background: #1a8f4c; }
.cap.is-ok .cap-hint { color: #1a8f4c; font-weight: 600; }
.cap.is-bad .cap-knob { background: var(--err); }
.cap.is-bad .cap-hint { color: var(--err); }
.cap.is-busy .cap-knob { opacity: .5; }
.cap [data-err="captcha"] { display: block; text-align: center; }
.cap [data-err="captcha"]:empty { display: none; }
@media (max-width: 640px) { .fld-row, .fld-row3 { grid-template-columns: minmax(0, 1fr); } .fld-half { max-width: none; } }

/* ---------- вход и регистрация */
.auth { max-width: 460px; margin: 32px auto; }
.auth .form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.auth h1 { margin: 0; font-size: 26px; }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.auth-tabs button { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: var(--ctl); background: var(--bg); color: var(--muted);
  font: 600 15px var(--font); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }

/* ---------- кабинет: сверху имя и «Выйти», под ними вкладки разделов */
.acc { margin-top: 24px; }
.acc-main > h1 { margin-top: 0; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.acc-who { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.acc-who small { color: var(--muted); }
.acc-nav { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.acc-nav::-webkit-scrollbar { display: none; }
.acc-nav a { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 2px solid transparent;
  margin-bottom: -1px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.acc-nav a:hover { color: var(--fg); }
.acc-nav a[aria-current] { border-bottom-color: var(--fg); color: var(--fg); }
.pill { min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--fg); color: var(--bg); font-size: 12px; line-height: 22px; text-align: center; }
@media (max-width: 560px) {
  .acc { margin-top: 16px; }
  .acc-nav { margin-inline: -20px; padding-inline: 12px; margin-bottom: 20px; }
  .acc-nav a { padding: 12px 10px; }
}

/* ---------- поддержка: темы 25% и переписка */
.sup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.sup-list { display: flex; flex-direction: column; gap: 6px; }
.sup-list .btn { margin-bottom: 8px; }
.sup-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.sup-item b { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.sup-item small { color: var(--muted); font-size: 12px; }
.sup-item:hover { border-color: var(--fg); }
.sup-item.is-active { border-color: var(--fg); box-shadow: inset 3px 0 0 var(--fg); }
[dir="rtl"] .sup-item.is-active { box-shadow: inset -3px 0 0 var(--fg); }
.sup-item.is-unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 6px; border-radius: 50%; background: var(--fg); vertical-align: middle; }
.sup-title { margin: 0 0 4px; font-size: 24px; overflow-wrap: anywhere; }
.msgs { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; }
.msg { max-width: 85%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.msg-admin { align-self: flex-end; background: var(--soft); }
.msg-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; font-size: 14px; }
.msg-head small { color: var(--muted); }
.msg-body { overflow-wrap: anywhere; }
@media (max-width: 760px) { .sup { grid-template-columns: minmax(0, 1fr); } .msg { max-width: 100%; } }

/* ---------- избранное, окно, контакты */
.prod-title { display: flex; align-items: flex-start; gap: 12px; }
.prod-title h1 { flex: 1; }
.fav-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 50%; background: var(--bg); color: var(--fg); cursor: pointer; }
.fav-btn:hover { border-color: var(--fg); }
.fav-btn.is-on svg { fill: currentColor; }
.fav-grid { --cols: 3; }
.fav-wrap { position: relative; display: flex; }
.fav-wrap .card { flex: 1; }
.fav-wrap .fav-btn { position: absolute; top: 10px; inset-inline-end: 10px; }
.icon-btn.is-in::after { content: ""; position: absolute; bottom: 8px; inset-inline-end: 8px; width: 8px; height: 8px; border: 2px solid var(--bg);
  border-radius: 50%; background: var(--fg); }
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 24px; border: 0; border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25); }
.dlg::backdrop { background: rgba(0, 0, 0, .45); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dlg-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.contact-form { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- переключатель темы (луна — включить тёмную, солнце — светлую) */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}

/* ---------- узкий телефон: шапка с 6 кнопками должна влезать в 320–400px */
@media (max-width: 400px) {
  .hdr-in { gap: 4px; }
  .wrap { padding: 0 14px; }
  .logo img { width: 58px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang summary { padding: 0 6px; gap: 4px; }
  .cur .cur-code { display: none; }
  .cur summary { padding: 0 7px; }
  .acc-nav { margin-inline: -14px; }
}
@media (max-width: 420px) {   /* + валюта: 8–9 кнопок в шапке на 320–420px */
  .hdr-in { gap: 2px; }
  .hdr-in.wrap { padding: 0 8px; }
  .logo img { width: 50px; }
  .icon-btn { width: 33px; height: 36px; }
  .lang summary { padding: 0 4px; }
  .lang:not(.cur) summary span { display: none; }
  .cur summary { padding: 0 6px; }
  /* выпадающие язык и валюта — от правого края экрана (шапка с backdrop-filter — опора для fixed), не уходят за левый край */
  .lang ul { position: fixed; top: calc(var(--hdr) - 4px); inset-inline-end: 8px; width: min(240px, calc(100vw - 16px)); }
}
@media (max-width: 340px) { .icon-btn { width: 31px; } .logo img { width: 46px; } .cur summary { padding: 0 5px; }
  .hdr-tools:has([data-badge="cart"]) .icon-btn { width: 29px; } .hdr-tools:has([data-badge="cart"]) .lang summary { padding: 0 3px; } }

/* ================================================================ поиск в шапке */
.hdr-search { flex: 1; min-width: 0; }
.srch { position: relative; display: flex; gap: 0; max-width: 820px; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: var(--ctl);
  background: var(--bg); }
.srch:focus-within { border-color: var(--fg); }
.srch select { flex: none; max-width: 26%; height: 36px; margin: 4px; padding: 0 6px; border: 0; border-radius: var(--ctl);
  background: var(--soft); color: var(--fg); font: 13px var(--font); cursor: pointer; }
.srch input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--fg); font: 16px var(--font); outline: 0; }
.srch .btn { margin: 4px; min-height: 36px; }
.srch-pop { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 80; max-height: 70vh; overflow: auto; padding: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px var(--shadow); }
.srch-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.srch-item img, .srch-noimg { flex: none; width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.srch-item span { display: flex; flex-direction: column; min-width: 0; }
.srch-item b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-item small { color: var(--muted); font-size: 12px; }
.srch-item:hover, .srch-item.is-active, .srch-all:hover, .srch-all.is-active { background: var(--soft); }
.srch-all { display: block; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; }
.srch-empty { padding: 14px; color: var(--muted); text-align: center; }
.srch-toggle { display: none; }
.search-count { margin-bottom: 16px; }
@media (max-width: 900px) {
  .srch-toggle { display: inline-flex; }
  .hdr-nav { border-top: 0; }
  .hdr-search { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 8px 14px 12px; background: var(--bg);
    border-bottom: 1px solid var(--line); }
  body.search-open .hdr-search { display: block; }
  .srch select { max-width: 34%; }
}

/* ================================================================ магазин (этап 5a): корзина, оформление, заказы */
.buy-added { width: 100%; margin: 0; font-size: 14px; }
.buy-added a { font-weight: 600; }
.buy-note { margin: -8px 0 16px; }

.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-bottom: 24px; }
.co-list { display: flex; flex-direction: column; }
.co-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 42px; gap: 16px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line); }
.co-row:first-child { border-top: 1px solid var(--line); }
.co-img { display: block; width: 72px; height: 72px; border-radius: 8px; background: var(--soft); object-fit: cover; }
.co-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.co-name { font-weight: 600; text-decoration: none; }
.co-name:hover { text-decoration: underline; }
.co-doms { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.co-dom input { max-width: 360px; }
.co-qty { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.co-qty input { width: 76px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--ctl); background: var(--bg);
  color: var(--fg); font: 16px var(--font); }
.co-price { min-width: 80px; padding-top: 22px; font-weight: 700; text-align: end; white-space: nowrap; }
.co-del { margin-top: 14px; }
.co-empty, .co-loading { padding: 32px 0; color: var(--muted); }
.co-empty p { margin: 0 0 16px; }
.co-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.co-side { position: sticky; top: calc(var(--hdr) + 16px); display: flex; flex-direction: column; gap: 16px; }
.co-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.co-box h2 { margin: 0; font-size: 19px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.co-total b { font-size: 26px; }
.co-login p { margin-top: 8px; }
.co-methods { display: flex; flex-direction: column; gap: 8px; }
.co-method { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.co-method:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.co-method input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--fg); }
.co-method span { display: flex; flex-direction: column; gap: 2px; }
.co-method small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.form .co-pay { align-self: stretch; }
.co-pp { min-height: 60px; padding: 8px 8px 0; border-radius: 10px; background: #fff; }   /* кнопки PayPal рисуются на белом — так и в тёмной теме */
.co-auth .auth { margin-top: 40px; }
@media (max-width: 960px) {
  .co { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .co-side { position: static; }
}
@media (max-width: 560px) {
  .co-row { grid-template-columns: 56px minmax(0, 1fr) 42px; gap: 10px 12px; }
  .co-img { width: 56px; height: 56px; }
  .co-info { grid-column: 2; grid-row: 1 / span 2; }
  .co-qty { grid-column: 2; grid-row: 3; flex-direction: row; align-items: center; gap: 8px; }
  .co-price { grid-column: 2 / span 2; grid-row: 3; align-self: center; padding-top: 0; }
  .co-del { grid-column: 3; grid-row: 1; margin-top: 0; }
  .co-dom input { max-width: none; }
  .co-box { padding: 18px; }
}

/* статус заказа: монохром; оплачен — сплошной, ждёт — контур, не прошёл — цвет ошибки */
.st { display: inline-block; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-soft);
  font: 600 12px/24px var(--font); white-space: nowrap; vertical-align: middle; }
.st-paid { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.st-pending { border-style: dashed; border-color: var(--fg); color: var(--fg); }
.st-failed, .st-cancelled { border-color: var(--err); color: var(--err); }
.ord-list { display: flex; flex-direction: column; }
.ord-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto 150px; gap: 16px; align-items: center; padding: 14px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; }
.ord-row:first-child { border-top: 1px solid var(--line); }
.ord-row:hover { background: var(--soft); }
.ord-id { display: flex; flex-direction: column; }
.ord-id small, .ord-what { color: var(--muted); font-size: 14px; }
.ord-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-sum { font-weight: 700; white-space: nowrap; }
.ord-row .st { justify-self: end; }
.ord-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ord-h .st { font-size: 14px; line-height: 28px; }
.ord-state { margin: 20px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--soft); }
.ord-state p { margin: 0 0 10px; }
.ord-state p:last-child { margin: 0; }
.ord-state:empty { display: none; }
.ord-items { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.ord-items th, .ord-items td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.ord-items th { color: var(--muted); font-size: 13px; font-weight: 600; }
.ord-items td small { display: block; color: var(--muted); font-size: 13px; }
.ord-items td:last-child, .ord-items th:last-child { text-align: end; white-space: nowrap; }
.ord-items tfoot td { border-bottom: 0; font-size: 18px; }
@media (max-width: 640px) {
  .ord-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ord-what { grid-column: 1 / -1; grid-row: 2; }
  .ord-sum { grid-column: 2; grid-row: 1; text-align: end; }
  .ord-row .st { grid-column: 2; grid-row: 2; }
  .ord-items thead { display: none; }
  .ord-items tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ord-items td { padding: 2px 0; border: 0; }
  .ord-items tbody td:nth-child(2), .ord-items tbody td:nth-child(3) { grid-column: 1; color: var(--muted); font-size: 14px; }
  .ord-items tbody td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .ord-items tfoot tr { border: 0; }
  .ord-items tfoot td[colspan] { grid-column: 1; }
}
/* лицензии (этап 5b–5c): карточка покупки — продукт, статус, домен / срок / Order ID, ключ, кнопки */
.co-renew { color: var(--fg-soft); font-size: 14px; }
.st-lic-active { border-color: var(--fg); color: var(--fg); }
.st-lic-expired, .st-lic-cancelled { border-color: var(--err); color: var(--err); }
.lic { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.lic-pending { border-style: dashed; }
.lic-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.lic-name { font-weight: 700; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
a.lic-name:hover { text-decoration: underline; }
.lic-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0; }
.lic-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lic-facts dt { color: var(--muted); font-size: 13px; }
.lic-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lic-key { margin: 0 0 12px; }
.lic-key summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.lic-key code, .lic-key-open code { display: block; margin: 8px 0; padding: 10px 12px; border-radius: var(--ctl); background: var(--soft);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.lic-key-label { color: var(--muted); font-size: 13px; }
.lic-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-acts .btn small { opacity: .75; font-weight: 400; }
.lic > .muted { margin-top: 10px; }
.ord-lic { display: block; margin-top: 4px; font-size: 13px; }
.stub { max-width: 560px; margin: 40px auto; padding: 28px; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.stub-btns { display: flex; gap: 12px; flex-wrap: wrap; }
/* этап 5d: счета в списке заказов (строка — растянутая ссылка Order ID, «Invoice (PDF)» — поверх), баланс, домены ключа */
.ord-row { position: relative; }
.ord-link { color: inherit; text-decoration: none; }
.ord-link::after { content: ""; position: absolute; inset: 0; }
.ord-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; justify-self: end; }
.ord-inv { position: relative; z-index: 1; font-size: 13px; white-space: nowrap; }
.ord-items tfoot .ord-sub td { padding-top: 0; font-size: 14px; color: var(--muted); }
.co-sub { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14px; }
.co-sub div { display: flex; justify-content: space-between; gap: 12px; }
.co-sub span:first-child { color: var(--muted); }
.co-bal { padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.co-bal-info { margin: -6px 0 0; font-size: 13px; }
.co-img-bal { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--muted); }
.co-auto { font-size: 13px; }
.bal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; margin-bottom: 28px; }
.bal-now, .bal-topup { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.bal-now { display: flex; flex-direction: column; gap: 6px; }
.bal-sum { font-size: 34px; line-height: 1.2; }
.bal-now p { margin: 6px 0 0; font-size: 14px; }
.bal-topup h2 { margin: 0; font-size: 19px; }
.bal-amt.is-plus { color: var(--fg); font-weight: 700; }
.bal-amt.is-minus { color: var(--muted); }
.lic-doms { margin-top: 12px; }
.lic-dom-list { margin: 10px 0 0; padding-inline-start: 18px; }
.lic-dom-list li { margin: 2px 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ord-end { grid-column: 2; grid-row: 2; }
  .bal { grid-template-columns: 1fr; }
  .bal-now, .bal-topup { padding: 18px; }
  .bal-log tbody td:nth-child(3) { display: none; }
}
