/* vn.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 1: токени, шрифти, базові компоненти.
   Увімкнення: ?design=b → кукі arz_design=b → клас .vn на <html> (lib/web/app.rb,
   views/layout.erb). Усе в цьому файлі діє лише під .vn — без кукі сайт не змінюється.

   Токени tokens.css (docs/redesign/prototype/) писані для голого :root, але їхні
   імена (--bg, --text, --surface, --yellow, …) уже зайняті існуючою палітрою
   style.css — підключення в голому :root замінило б кольори старого дизайну.
   Тому тут усі змінні з префіксом --vn- і лежать у html.vn (відповідність
   записана в docs/redesign/STACK.md).

   /admin/* виключено з усіх правил (:not([data-section="admin"])) — ROUTES.md
   лишає адмінку відкритим питанням користувачу (поза скоупом Vice Neon, доки
   не підтверджено інакше); адмінка й так має свій public/css/admin.css і
   багато <table>/<label> у views/admin_*.erb, які не повинні раптом змінитись
   від самого лише кукі-перемикача.

   Елементні селектори (table/label) тут НЕ використовуються без класу: на живих
   сторінках (item.erb, chat.erb, notifications.erb, chats.erb, online_analytics.erb,
   api_docs.erb) вже є звичайні <table>/<label>, які етап 1 ще не переносив —
   голий `table { … }` чи `label { … }` зламав би їх одним лише ?design=b.
   Тому таблиці й колонки полів — за явним класом-обгорткою (.b-table, .b-field).
   ────────────────────────────────────────────────────────────────────────── */

/* Tokens only (custom properties, no visible rules) — defined for the admin too, whose Vice Neon shell
   (public/css/vn-admin.css, stage 6) reads every --vn-* value; without them its logo, buttons and accents
   resolved to nothing. Component rules below stay scoped to :not([data-section="admin"]). */
html.vn {
  /* Legacy components read --font (style.css: Inter); in Vice Neon they use Manrope, so Inter isn't loaded at all. */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --vn-bg: #0B0A12;
  --vn-surface: #141320;
  --vn-surface-2: #1A1426;
  --vn-line: #2A2735;
  --vn-text: #F3F1F8;
  --vn-text-2: #CFC9E0;
  --vn-muted: #A39FB5;
  --vn-muted-2: #8A86A0;
  --vn-pink: #FF4FA3;
  --vn-pink-soft: #FF8CC4;
  --vn-orange: #FF9F45;
  --vn-cyan: #2EE6D6;
  --vn-purple: #B98CFF;
  --vn-yellow: #FFE27A;
  --vn-red: #FF5A7A;
  --vn-ink: #14061A;
  --vn-common: #A39FB5;
  --vn-rare: #B98CFF;
  --vn-epic: #FF4FA3;
  --vn-named: #2EE6D6;
  --vn-legendary: #FFE27A;
  --vn-grad-brand: linear-gradient(90deg, #FF4FA3, #FF9F45);
  --vn-grad-cool: linear-gradient(90deg, #2EE6D6, #B98CFF);
  --vn-font-display: 'Unbounded', sans-serif;
  --vn-font-body: 'Manrope', sans-serif;
  --vn-font-mono: 'JetBrains Mono', monospace;
  --vn-radius-field: 14px;
  --vn-radius-card: 22px;
  --vn-radius-section: 28px;
  --vn-radius-pill: 999px;
  --vn-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ─── База сторінки ─────────────────────────────────────────── */
html.vn:not([data-section="admin"]) body {
  background: var(--vn-bg);
  color: var(--vn-text);
  font-family: var(--vn-font-body), system-ui, sans-serif;
}
html.vn:not([data-section="admin"]) h1,
html.vn:not([data-section="admin"]) h2,
html.vn:not([data-section="admin"]) h3 {
  font-family: var(--vn-font-display), sans-serif;
}
html.vn:not([data-section="admin"]) code,
html.vn:not([data-section="admin"]) kbd,
html.vn:not([data-section="admin"]) .b-mono {
  font-family: var(--vn-font-mono);
}
html.vn:not([data-section="admin"]) a { color: var(--vn-cyan); }
/* Native form controls (the open <select> list, date pickers, scrollbars) in the dark scheme — otherwise the
   browser draws a white list under our light option text. Options get the panel colours explicitly too. */
html.vn { color-scheme: dark; }
html.vn select option, html.vn select optgroup { background-color: var(--vn-surface); color: var(--vn-text); }
html.vn select option:disabled { color: var(--vn-muted); }
/* The site's own drop-down list (public/js/vn-select.js) — replaces the browser's pop-up on desktop. */
html.vn .vn-sel {
  position: fixed; z-index: 10000; max-width: min(420px, calc(100vw - 16px)); max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 14px; background: var(--vn-surface-2); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 79, 163, .08);
  font: 500 14px/1.35 var(--vn-font-body), system-ui, sans-serif; color: var(--vn-text); outline: none;
  animation: vn-sel-in .12s ease-out; scrollbar-width: thin;
}
html.vn .vn-sel[hidden] { display: none; }
html.vn .vn-sel.is-up { animation-name: vn-sel-in-up; }
@keyframes vn-sel-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes vn-sel-in-up { from { opacity: 0; transform: translateY(4px); } }
html.vn .vn-sel__o {
  position: relative; display: flex; align-items: center; min-height: 36px; padding: 7px 34px 7px 12px; border-radius: 10px;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.vn .vn-sel__o span { overflow: hidden; text-overflow: ellipsis; }
html.vn .vn-sel__o.is-active { background: rgba(255, 255, 255, .07); }
html.vn .vn-sel.is-kb .vn-sel__o.is-active { box-shadow: inset 0 0 0 2px var(--vn-cyan); }
html.vn .vn-sel__o[aria-selected="true"] { color: #FF8CC4; font-weight: 700; }
html.vn .vn-sel__o[aria-selected="true"]::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 10px; height: 5px; margin-top: -4px;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
html.vn .vn-sel__o[aria-disabled="true"] { color: var(--vn-muted-2); cursor: default; }
html.vn .vn-sel__g {
  padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vn-muted);
}
html.vn .vn-sel__g:first-child { padding-top: 4px; }
@media (prefers-reduced-motion: reduce) { html.vn .vn-sel { animation: none; } }
html.vn:not([data-section="admin"]) a:hover { color: #8FF5EC; }
/* «Перейти до вмісту»: cyan link colour on the cyan button was unreadable (1.75:1) — dark text, ≥ 4.5:1. */
html.vn a.skip-link, html.vn a.skip-link:hover { background: #2EE6D6; color: #14061A; }

/* ─── Анімації (bRise/bIn/bFade/… з DesignSystemB) ─────────────── */
@keyframes bRise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes bIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bHue { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes bPulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 214, .6); } 100% { box-shadow: 0 0 0 10px rgba(46, 230, 214, 0); } }
@keyframes bPop { 0% { opacity: 0; transform: scale(.85); } 70% { transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes bSpin { to { transform: rotate(360deg); } }
@keyframes bFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bDraw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes bShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px) rotate(-2deg); } 75% { transform: translateX(4px) rotate(2deg); } }
@keyframes bConf { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(220px) rotate(540deg); } }
@keyframes bToast { 0% { opacity: 0; transform: translate(-50%, 40px); } 12% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes skSh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

html.vn:not([data-section="admin"]) .b-rise { display: inline-block; animation: bRise .9s var(--vn-ease) both; }
html.vn:not([data-section="admin"]) .b-fade { animation: bFade .7s var(--vn-ease) both; }
html.vn:not([data-section="admin"]) .b-in { animation: bIn .55s var(--vn-ease) both; }
html.vn:not([data-section="admin"]) .b-pop { animation: bPop .4s var(--vn-ease) both; }
html.vn:not([data-section="admin"]) .sk {
  display: inline-block;
  background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .05) 75%);
  background-size: 200% 100%;
  animation: skSh 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) *,
  html.vn:not([data-section="admin"]) *::before,
  html.vn:not([data-section="admin"]) *::after { animation: none !important; transition: none !important; }
}

/* ─── Кнопки: .b-btn (основна), .b-ghost (другорядна) ──────────── */
html.vn:not([data-section="admin"]) .b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border: 0; border-radius: var(--vn-radius-pill);
  background: var(--vn-grad-brand); color: var(--vn-ink);
  font: 800 15px var(--vn-font-body); white-space: nowrap;
  transition: transform .2s, box-shadow .25s;
}
html.vn:not([data-section="admin"]) .b-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 79, 163, .45); }
html.vn:not([data-section="admin"]) .b-btn[aria-disabled="true"] {
  background: rgba(255, 255, 255, .25); color: var(--vn-ink); cursor: not-allowed; transform: none; box-shadow: none;
}
html.vn:not([data-section="admin"]) .b-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 18px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--vn-text);
  font-weight: 700; transition: background .2s, border-color .2s;
}
html.vn:not([data-section="admin"]) .b-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }

/* ─── Чипи й мітки: .b-chip ─────────────────────────────────────── */
html.vn:not([data-section="admin"]) .b-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: var(--vn-radius-pill); font: 700 13px var(--vn-font-body);
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--vn-text);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .b-chip:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
html.vn:not([data-section="admin"]) .b-chip[aria-pressed="true"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18);
}

/* ─── Поля: .b-input, .b-range, .b-sw (перемикач), .b-field (колонка) ───── */
html.vn:not([data-section="admin"]) .b-input {
  height: 46px; padding: 0 14px; border-radius: var(--vn-radius-field);
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--vn-text); font: 600 15px var(--vn-font-body); width: 100%; box-sizing: border-box;
}
html.vn:not([data-section="admin"]) .b-input::placeholder { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .b-input[aria-invalid="true"] { border-color: var(--vn-red); }
html.vn:not([data-section="admin"]) .b-range { accent-color: var(--vn-pink); width: 100%; min-height: 28px; cursor: pointer; }
html.vn:not([data-section="admin"]) .b-sw[role="switch"] {
  position: relative; width: 48px; height: 28px; padding: 0; border: 0; border-radius: var(--vn-radius-pill);
  background: rgba(255, 255, 255, .18); cursor: pointer; transition: background .2s;
}
html.vn:not([data-section="admin"]) .b-sw[role="switch"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--vn-text); transition: left .2s;
}
html.vn:not([data-section="admin"]) .b-sw[role="switch"][aria-checked="true"] { background: var(--vn-pink); box-shadow: 0 0 14px rgba(255, 79, 163, .35); }
html.vn:not([data-section="admin"]) .b-sw[role="switch"][aria-checked="true"]::after { left: 23px; }

/* .b-field — колонка «підпис + поле», на телефоні поле на всю ширину (mobile.css, крок 4).
   Клас-обгортка замінює прив'язку прототипу до будь-якого <label> — голий `label{}`
   зламав би вже наявні інлайн-лейбли (чекбокси/радіо) на живих сторінках. */
html.vn:not([data-section="admin"]) .b-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.vn:not([data-section="admin"]) .b-field > input,
html.vn:not([data-section="admin"]) .b-field > select,
html.vn:not([data-section="admin"]) .b-field > textarea {
  width: 100%; min-width: 0; box-sizing: border-box;
}

/* ─── Картки: .b-card ───────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .b-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 16px; border-radius: var(--vn-radius-card); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08); color: var(--vn-text); text-decoration: none;
  transition: transform .35s var(--vn-ease), border-color .3s, box-shadow .35s;
}
html.vn:not([data-section="admin"]) .b-card:hover {
  transform: translateY(-5px) rotate(-.4deg); border-color: rgba(255, 79, 163, .5) !important;
  box-shadow: 0 20px 50px rgba(255, 79, 163, .16);
}
@media (hover: none) { html.vn:not([data-section="admin"]) .b-card:hover { transform: none !important; } }

/* ─── Списки: .b-row, .b-link ─────────────────────────────────────── */
html.vn:not([data-section="admin"]) .b-row { border-radius: 12px; transition: background .2s, transform .2s; }
html.vn:not([data-section="admin"]) .b-row:hover { background: rgba(255, 255, 255, .05); transform: translateX(4px); }
html.vn:not([data-section="admin"]) .b-link { display: inline-block; padding: 3px 0; color: var(--vn-muted); text-decoration: none; font-weight: 800; transition: color .2s; }
html.vn:not([data-section="admin"]) .b-link:hover { color: var(--vn-text); }

/* ─── Таблиці: .b-table (клас-обгортка, не голий <table>) ───────────
   У DesignSystemB немає зразка таблиці (лише списки .b-row) — .b-table тут
   за аналогією з іншими base-prototype.css компонентами; голий `table{}`
   зачепив би вже наявні таблиці на item.erb/chat.erb/notifications.erb/
   chats.erb/online_analytics.erb/api_docs.erb без жодної зміни їхньої розмітки. */
html.vn:not([data-section="admin"]) .b-table { width: 100%; border-collapse: collapse; font: 600 14px var(--vn-font-body); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .b-table th {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--vn-line);
  font: 800 12px var(--vn-font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .b-table td { padding: 12px; border-bottom: 1px solid var(--vn-line); }
html.vn:not([data-section="admin"]) .b-table tbody tr:hover { background: rgba(255, 255, 255, .05); }

/* ─── Сповіщення: .b-banner, .b-toast ────────────────────────────── */
html.vn:not([data-section="admin"]) .b-banner {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px;
  font: 600 14px var(--vn-font-body); color: var(--vn-text);
  background: rgba(46, 230, 214, .07); border: 1px solid rgba(46, 230, 214, .4);
}
html.vn:not([data-section="admin"]) .b-banner[data-tone="warning"] { background: rgba(255, 226, 122, .08); border-color: rgba(255, 226, 122, .4); }
html.vn:not([data-section="admin"]) .b-banner[data-tone="error"] { background: rgba(255, 90, 122, .08); border-color: rgba(255, 90, 122, .4); }
html.vn:not([data-section="admin"]) .b-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 10px;
  border-radius: var(--vn-radius-pill); background: var(--vn-ink); border: 1px solid rgba(255, 79, 163, .5);
  box-shadow: 0 0 40px rgba(255, 79, 163, .35); color: var(--vn-text); font-weight: 800;
  animation: bToast 2.6s var(--vn-ease) both; pointer-events: none;
}

/* ─── Доступність: фокус, зони натискання (CLAUDE.md, правило 4) ─────
   Обмежено класами .b-* (а не button/[role] узагалі) — живі сторінки вже мають
   свої кнопки й поля, не під .vn-компонентами; стаж 1 не повинен змінювати їхній
   розмір чи фокус-кільце. */
html.vn:not([data-section="admin"]) .b-btn:focus-visible,
html.vn:not([data-section="admin"]) .b-ghost:focus-visible,
html.vn:not([data-section="admin"]) .b-chip:focus-visible,
html.vn:not([data-section="admin"]) .b-link:focus-visible,
html.vn:not([data-section="admin"]) .b-input:focus-visible,
html.vn:not([data-section="admin"]) .b-sw:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 214, .65) !important;
}
html.vn:not([data-section="admin"]) .b-chip,
html.vn:not([data-section="admin"]) .b-btn,
html.vn:not([data-section="admin"]) .b-ghost,
html.vn:not([data-section="admin"]) .b-sw[role="switch"] {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; cursor: pointer;
  min-width: 24px; min-height: 24px;
}
html.vn:not([data-section="admin"]) .b-chip:active,
html.vn:not([data-section="admin"]) .b-btn:active,
html.vn:not([data-section="admin"]) .b-ghost:active { transform: scale(.96); }

/* Чипи — мінімум 40 px на телефоні (CLAUDE.md, правило 4) */
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .b-chip { min-height: 40px; }
  html.vn:not([data-section="admin"]) .b-link { display: inline-block; padding: 6px 0; }
}
@media (pointer: coarse) {
  html.vn:not([data-section="admin"]) .b-chip { min-height: 42px; padding-left: 14px; padding-right: 14px; }
  html.vn:not([data-section="admin"]) .b-range { height: 36px; }
}

/* ─── Стани списків: .b-skel-card/.b-skel-row (скелет), .b-state (порожньо/помилка) ──
   docs/redesign/prototype/StatesB.dc.html: однаковий скелет/порожньо/помилка-блок для
   кожного списку сайту. Жодна сторінка каталогу ще не перейшла на .vn (ROUTES.md,
   «прототип не надійшов») — тут самі компоненти (демо на views/design_system.erb),
   конкретні сторінки підключать їх зі своїми даними, коли прийде їхній прототип. */
html.vn:not([data-section="admin"]) .b-skel-card {
  border-radius: var(--vn-radius-card); overflow: hidden; background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06); display: flex; flex-direction: column;
}
html.vn:not([data-section="admin"]) .b-skel-card__top { height: 140px; }
html.vn:not([data-section="admin"]) .b-skel-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .b-skel-row {
  display: grid; grid-template-columns: 40px 1fr 120px 90px; gap: 14px; align-items: center;
  padding: 14px 16px; border-top: 1px solid var(--vn-line);
}
html.vn:not([data-section="admin"]) .b-skel-row:first-child { border-top: 0; }

html.vn:not([data-section="admin"]) .b-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 30px 16px; border-radius: var(--vn-radius-card);
  border: 1px dashed rgba(255, 255, 255, .16);
}
html.vn:not([data-section="admin"]) .b-state__ic {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); color: var(--vn-muted); flex: none;
}
html.vn:not([data-section="admin"]) .b-state__t { font: 900 20px var(--vn-font-display); text-transform: uppercase; }
html.vn:not([data-section="admin"]) .b-state__s { max-width: 46ch; color: var(--vn-muted); line-height: 1.55; }
html.vn:not([data-section="admin"]) .b-state__acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
html.vn:not([data-section="admin"]) .b-state[data-tone="error"] { border: 1px solid rgba(255, 79, 163, .3); background: rgba(255, 79, 163, .05); }
html.vn:not([data-section="admin"]) .b-state[data-tone="error"] .b-state__ic {
  background: var(--vn-pink); color: var(--vn-ink); font: 900 26px var(--vn-font-display);
}
html.vn:not([data-section="admin"]) .b-state code { color: var(--vn-pink-soft); }

/* .m-foot a — відступи (mobile.css, крок 4) */
html.vn:not([data-section="admin"]) .m-foot a { display: inline-block; padding: 3px 4px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .m-foot a { padding: 8px 4px; }
}

/* vn-shell.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 2: оболонка сайту (шапка, палітра, нижня панель,
   футер, службові стани). Токени й базові компоненти — public/css/vn.css
   (етап 1). Усе тут — під html.vn:not([data-section="admin"]), той самий
   принцип, що в vn.css (адмінка поза скоупом, docs/redesign/ROUTES.md).

   Нова шапка (views/_nav_vn.erb) рендериться ЗАМІСТЬ _nav_sidebar+_nav_topbar
   (views/layout.erb, _vn_shell) — не поруч із ними, тож тут немає правил, що
   ховають старий сайдбар/топбар: їх просто немає в DOM на .vn-сторінках.
   ────────────────────────────────────────────────────────────────────────── */

/* views/_nav_mobile.erb (old phone tab bar + «Ще» sheet, #nav-pal) still renders unconditionally
   (views/layout.erb) — .vn reuses its #nav-pal as-is but replaces the tab bar with its own
   (.vn-tabbar below); style.css's ≤767px rule for .mobile-tabbar has no .vn exclusion, so it must be
   silenced here instead (higher specificity beats load order). */
html.vn:not([data-section="admin"]) .mobile-tabbar { display: none; }

/* ─── Шапка: .vn-topbar ─────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vn-topbar {
  position: sticky; top: 14px; z-index: 40; padding: 0 20px; font-family: var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .vn-topbar__bar {
  position: relative; max-width: 1240px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 6px;
  padding: 0 10px 0 20px; background: rgba(20, 18, 32, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--vn-radius-pill); box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
html.vn:not([data-section="admin"]) .vn-logo {
  margin-right: 14px; font-family: var(--vn-font-display), sans-serif; font-weight: 900; font-size: 18px;
  text-decoration: none; background: var(--vn-grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  flex: none;
}
html.vn:not([data-section="admin"]) .vn-logo span { color: transparent; }

html.vn:not([data-section="admin"]) .vn-links { display: flex; align-items: center; gap: 2px; min-width: 0; }
html.vn:not([data-section="admin"]) .vn-link {
  height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--vn-radius-pill);
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--vn-text-2); background: transparent; white-space: nowrap;
  transition: background .2s, color .2s; cursor: pointer;
}
html.vn:not([data-section="admin"]) .vn-link:hover { background: rgba(255, 255, 255, .06); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vn-link[aria-current="page"],
html.vn:not([data-section="admin"]) .vn-link.nav-link--active,
html.vn:not([data-section="admin"]) .vn-grp__h.is-on {
  color: var(--vn-pink-soft); background: rgba(255, 79, 163, .1);
}
html.vn:not([data-section="admin"]) .vn-link__count {
  font-family: var(--vn-font-mono); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: var(--vn-radius-pill);
  background: rgba(255, 159, 69, .18); color: var(--vn-orange);
}
html.vn:not([data-section="admin"]) .vn-grp { position: relative; }
html.vn:not([data-section="admin"]) .vn-grp__chev { transition: transform .3s; }
html.vn:not([data-section="admin"]) .vn-grp__h[aria-expanded="true"] .vn-grp__chev { transform: rotate(180deg); }

/* ─── Мега-панель груп ──────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vn-mega {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 45; min-width: 320px; max-width: 560px;
  padding: 14px; border-radius: 22px; background: rgba(20, 18, 32, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 79, 163, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: bPop .2s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .vn-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
html.vn:not([data-section="admin"]) .vn-mega__it {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none;
  color: var(--vn-text); background: rgba(255, 255, 255, .025); font-size: 14px; font-weight: 700; transition: background .2s;
}
html.vn:not([data-section="admin"]) .vn-mega__it:hover { background: rgba(255, 255, 255, .07); }
html.vn:not([data-section="admin"]) .vn-mega__it.is-on { background: rgba(255, 79, 163, .12); }
html.vn:not([data-section="admin"]) .vn-mega__ic { flex: none; width: 20px; height: 20px; color: var(--vn-pink); }

/* ─── Правий блок: пошук, дзвінок, профіль/мова, ☰ ─────────────────────── */
html.vn:not([data-section="admin"]) .vn-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
html.vn:not([data-section="admin"]) .vn-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); color: var(--vn-text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; flex: none;
}
html.vn:not([data-section="admin"]) .vn-icon-btn:hover { background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vn-search-btn { width: auto; height: 40px; padding: 0 12px; border-radius: var(--vn-radius-pill); gap: 8px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vn-kbd {
  font-family: var(--vn-font-mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .16); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .vn-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: var(--vn-radius-pill); background: var(--vn-pink); color: var(--vn-ink); font-family: var(--vn-font-mono);
  font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid var(--vn-bg);
}
html.vn:not([data-section="admin"]) .nav-menu__item .vn-badge,
html.vn:not([data-section="admin"]) .vn-drawer__item .vn-badge { position: static; border: 0; margin-left: auto; }

html.vn:not([data-section="admin"]) .vn-btn {
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: var(--vn-radius-pill);
  background: var(--vn-grad-brand); color: var(--vn-ink); font-weight: 800; font-size: 13.5px; text-decoration: none; flex: none;
}
html.vn:not([data-section="admin"]) .vn-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: var(--vn-text); }

/* Профіль (кнопка в шапці) — панель використовує ту саму .nav-menu__panel-поведінку (public/js/nav.js) */
html.vn:not([data-section="admin"]) .vn-me {
  height: 40px; padding: 0 6px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .06); color: var(--vn-text); cursor: pointer; flex: none;
}
html.vn:not([data-section="admin"]) .vn-me__name { font-weight: 800; font-size: 13px; padding-right: 6px; }
html.vn:not([data-section="admin"]) .vn-ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
html.vn:not([data-section="admin"]) .vn-ava--letter {
  display: grid; place-items: center; background: conic-gradient(from 200deg, var(--vn-cyan), var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  color: var(--vn-ink); font-family: var(--vn-font-display); font-weight: 900; font-size: 13px;
}
html.vn:not([data-section="admin"]) .vn-ava--lg { width: 44px; height: 44px; font-size: 16px; }

html.vn:not([data-section="admin"]) .vn-menu__panel {
  position: absolute; right: 0; top: 48px; z-index: 46; width: 260px; padding: 6px; border-radius: 18px;
  background: #1A1428; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 2px; animation: bPop .2s var(--vn-ease) both;
}
/* public/js/nav.js закриває панель через panel.hidden = true (атрибут [hidden]) — без цього правила
   display:flex вище має ту саму специфічність, що й UA-стиль [hidden]{display:none}, і виграє за
   порядком підключення, тож панель ніколи не ховається (style.css має такий самий рядок для старого
   .nav-menu__panel, тут його не було). */
html.vn:not([data-section="admin"]) .vn-menu__panel[hidden] { display: none; }
html.vn:not([data-section="admin"]) .vn-menu__panel--sm { width: 180px; }
html.vn:not([data-section="admin"]) .vn-menu__head { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vn-menu__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html.vn:not([data-section="admin"]) .vn-role { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .08); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vn-role--owner,
html.vn:not([data-section="admin"]) .vn-role--admin { background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vn-role--moderator { background: rgba(46, 230, 214, .14); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vn-menu__item {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; text-decoration: none;
  color: var(--vn-text); font-weight: 700; font-size: 13.5px;
}
html.vn:not([data-section="admin"]) .vn-menu__item:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vn-menu__item--danger { color: var(--vn-red); }
html.vn:not([data-section="admin"]) .vn-menu__sep { height: 1px; margin: 4px 6px; background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vn-lang { display: flex; gap: 4px; padding: 4px 6px; }
html.vn:not([data-section="admin"]) .vn-lang__btn {
  flex: 1; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
  color: var(--vn-muted); font-family: var(--vn-font-mono); font-size: 12px; font-weight: 800; text-decoration: none;
}
html.vn:not([data-section="admin"]) .vn-lang__btn:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vn-lang__btn.lang-btn--active { background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); }

html.vn:not([data-section="admin"]) .vn-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); align-items: center; justify-content: center; flex: none; }

/* ─── ≤900px: ☰ замість лінків і груп ───────────────────────────────────── */
@media (max-width: 900px) {
  html.vn:not([data-section="admin"]) .vn-links { display: none; }
  html.vn:not([data-section="admin"]) .vn-burger { display: inline-flex; }
}

/* Між 901 і ~1200 px пункти меню з довгими підписами (ru/be) й ім’ям користувача не вміщаються:
   спершу стискаємо відступи, ховаємо «Ctrl K» та ім’я; якщо й так не влазить — nav-vn.js ставить .is-tight → ☰. */
@media (max-width: 1200px) {
  html.vn:not([data-section="admin"]) .vn-link { padding: 0 10px; }
  html.vn:not([data-section="admin"]) .vn-logo { margin-right: 6px; }
  html.vn:not([data-section="admin"]) .vn-kbd { display: none; }
}
@media (max-width: 1080px) {
  html.vn:not([data-section="admin"]) .vn-me__name { display: none; }
}
html.vn:not([data-section="admin"]) .vn-topbar__bar.is-tight .vn-links { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
html.vn:not([data-section="admin"]) .vn-topbar__bar.is-tight .vn-burger { display: inline-flex; }

/* ─── Шторка ≤900px: .vn-drawer ─────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vn-drawer { position: fixed; inset: 0; z-index: 90; }
html.vn:not([data-section="admin"]) .vn-drawer__bg { position: absolute; inset: 0; background: rgba(6, 5, 12, .62); backdrop-filter: blur(6px); }
html.vn:not([data-section="admin"]) .vn-drawer__panel {
  position: absolute; left: 12px; right: 12px; top: 68px; max-height: 80vh; overflow-y: auto; padding: 12px;
  border-radius: 26px; background: rgba(20, 18, 32, .97); border: 1px solid rgba(255, 79, 163, .3); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; font-family: var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .vn-drawer__item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 10px; border: 0; background: none; width: 100%;
  text-decoration: none; font-weight: 800; font-size: 16px; color: var(--vn-text); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
html.vn:not([data-section="admin"]) .vn-drawer__item[aria-current="page"],
html.vn:not([data-section="admin"]) .vn-drawer__item.nav-link--active { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vn-drawer__grp-h { justify-content: space-between; }
html.vn:not([data-section="admin"]) .vn-drawer__chev { transition: transform .3s; }
html.vn:not([data-section="admin"]) .vn-drawer__grp-h[aria-expanded="true"] .vn-drawer__chev { transform: rotate(180deg); }
html.vn:not([data-section="admin"]) .vn-drawer__sub { display: flex; flex-direction: column; padding: 0 0 10px 10px; }
html.vn:not([data-section="admin"]) .vn-drawer__sub[hidden] { display: none; }
html.vn:not([data-section="admin"]) .vn-drawer__subit {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--vn-text);
  text-decoration: none; font-weight: 600;
}
html.vn:not([data-section="admin"]) .vn-drawer__subit:hover,
html.vn:not([data-section="admin"]) .vn-drawer__subit.nav-link--active { background: rgba(255, 79, 163, .1); }
html.vn:not([data-section="admin"]) .vn-drawer__sep { height: 1px; margin: 6px 10px; background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vn-drawer__item--danger { color: var(--vn-red); }

/* ─── Основний контейнер контенту (без сайдбара) ────────────────────────── */
html.vn:not([data-section="admin"]) .vn-main {
  /* width: батько — flex-контейнер, без явної ширини сторінка стискалась під свій вміст (етап 4a) */
  width: 100%; box-sizing: border-box;
  max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 24px; min-height: 50vh;
}
html.vn:not([data-section="admin"]) .vn-main .hidden-page-note { order: -1; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vn-main { padding: 22px 16px 118px; gap: 18px; }
  html.vn:not([data-section="admin"]) .vn-topbar { padding: 0 10px; }
  html.vn:not([data-section="admin"]) .vn-me__name { display: none; }
}

/* ─── Футер: .m-foot (views/_footer_vn.erb, docs/redesign/prototype/footer.html) ──
   Клас .m-foot — той самий, що в прототипі; vn.css (етап 1) уже стилізує .m-foot a
   (зона натискання 3px/8px на телефоні) під цим ім'ям, тож тут лише решта вигляду.
   #arz-recent — порожній контейнер до етапу 7 («Нещодавно переглянуті»). */
html.vn:not([data-section="admin"]) .m-foot {
  max-width: 1240px; margin: 0 auto; padding: 0 20px 40px; color: var(--vn-muted-2); font-size: 12.5px;
  line-height: 20px; font-family: var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .vn-foot__row {
  border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 16px; display: flex; flex-wrap: wrap;
  gap: 8px 18px; justify-content: space-between;
}
html.vn:not([data-section="admin"]) .vn-foot__about { max-width: 80ch; }
html.vn:not([data-section="admin"]) .vn-foot__about b { color: var(--vn-muted); }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .m-foot { padding: 0 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* m-hide: приховати на телефоні (той самий намір, що в base-prototype.css, але лише в межах .vn-topbar) */
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vn-topbar .m-hide { display: none !important; }
}

/* ─── Нижня панель ≤760px: .vn-tabbar (views/_nav_vn.erb) ───────────────────
   Головна · Пошук (window.ArzNav.open(), public/js/nav-vn.js) · Гараж (центр,
   піднятий) · Сповіщення · Профіль. .vn-main уже має запас 118px знизу під неї
   (вище, @media 760px), а spa.js (syncShell) заміняє .vn-tabbar цілком при
   клієнтській навігації — так само, як .vn-topbar. */
html.vn:not([data-section="admin"]) .vn-tabbar { display: none; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vn-tabbar {
    display: flex; align-items: stretch; gap: 2px; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50; height: 66px; padding: 6px; box-sizing: border-box;
    border-radius: 24px; background: rgba(20, 18, 32, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .55); font-family: var(--vn-font-body), sans-serif;
  }
}
html.vn:not([data-section="admin"]) .vn-tabbar__it {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border: 0; border-radius: 18px; background: none; color: var(--vn-muted); font-size: 11px; font-weight: 800;
  text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer; min-height: 24px;
}
html.vn:not([data-section="admin"]) .vn-tabbar__it[aria-current="page"],
html.vn:not([data-section="admin"]) .vn-tabbar__it.nav-link--active { color: var(--vn-pink-soft); background: rgba(255, 79, 163, .1); }
html.vn:not([data-section="admin"]) .vn-tabbar__icwrap { position: relative; width: 24px; height: 24px; display: grid; place-items: center; }
html.vn:not([data-section="admin"]) .vn-tabbar__ic { width: 22px; height: 22px; }
html.vn:not([data-section="admin"]) .vn-tabbar__it--mid.nav-link--active,
html.vn:not([data-section="admin"]) .vn-tabbar__it--mid[aria-current="page"] { background: none; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vn-tabbar__it--mid .vn-tabbar__icwrap {
  width: 46px; height: 46px; margin-top: -24px; border-radius: 50%; background: var(--vn-grad-brand); color: var(--vn-ink);
  box-shadow: 0 12px 26px rgba(255, 79, 163, .45); border: 3px solid var(--vn-bg);
}
html.vn:not([data-section="admin"]) .vn-tabbar__ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
html.vn:not([data-section="admin"]) .vn-tabbar__ava.nav-ava--letter {
  display: grid; place-items: center; background: conic-gradient(from 200deg, var(--vn-cyan), var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  color: var(--vn-ink); font-family: var(--vn-font-display); font-weight: 900; font-size: 10px;
}

/* ─── Палітра Ctrl+K: #nav-pal (views/_nav_mobile.erb, public/js/nav.js) ────
   Позиціювання й розміри (fixed/flex/width/max-height) лишаються зі style.css —
   тут лише колір, шрифт, радіуси, тінь під .vn. Класи й поведінка не змінені:
   .nav-pal__g/.nav-pal__it/.is-sel/.nav-pal__empty генерує public/js/nav.js. */
html.vn:not([data-section="admin"]) .nav-pal__bg { background: rgba(6, 5, 12, .62); backdrop-filter: blur(6px); }
html.vn:not([data-section="admin"]) .nav-pal__box {
  border-radius: 22px; background: #17121F; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7); font-family: var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .nav-pal__in { gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .nav-pal__in input { color: var(--vn-text); font: 700 16px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .nav-pal__in input::placeholder { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .nav-pal kbd {
  font-family: var(--vn-font-mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .16); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .nav-pal__list { padding: 8px; }
html.vn:not([data-section="admin"]) .nav-pal__g { color: var(--vn-muted-2); font-weight: 800; }
html.vn:not([data-section="admin"]) .nav-pal__it { border-radius: 14px; font: 600 14.5px var(--vn-font-body); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .nav-pal__it svg { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .nav-pal__it small { color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .nav-pal__it.is-sel { background: rgba(46, 230, 214, .12); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .nav-pal__it.is-sel svg { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .nav-pal__empty { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .nav-pal__foot { border-top: 1px solid rgba(255, 255, 255, .08); color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .nav-pal__foot a { color: var(--vn-pink-soft); font-weight: 800; text-decoration: none; }


/* Pages hidden from visitors (Admin › Меню й кольори) — admins still see them in the menu, struck through */
html.vn:not([data-section="admin"]) .vn-link.is-off, html.vn:not([data-section="admin"]) .vn-mega__it.is-off { opacity: .55; text-decoration: line-through; }

/* vn-home.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3a: головна сторінка (views/_home_vn.erb, Main.dc.html).
   Токени й базові компоненти — public/css/vn.css (етап 1), оболонка — vn-shell.css
   (етап 2). Усе тут — під html.vn:not([data-section="admin"]) .vn-home, щоб не
   зачепити інші .vn-сторінки (поки на них свого прототипу не прийшло, ROUTES.md).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .vn-home { display: flex; flex-direction: column; gap: 88px; }
/* hero й стрічка — на всю ширину вікна (margin: calc(50% - 50vw)); зайве обрізаємо на body, не на .vn-home */
html.vn[data-section="home"] body { overflow-x: clip; }

/* ─── Герой (на всю ширину, як у Main.dc.html) ───────────────────────────── */
html.vn:not([data-section="admin"]) .vh-hero {
  --sx: 50%; --sy: 40%;
  position: relative; margin: -28px calc(50% - 50vw) 0; padding: 72px 20px 80px; overflow: hidden;
  background: radial-gradient(520px circle at var(--sx) var(--sy), rgba(255, 79, 163, .16), transparent 60%),
              radial-gradient(70% 60% at 85% 20%, rgba(46, 230, 214, .10), transparent 70%);
}
html.vn:not([data-section="admin"]) .vh-hero__in { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
html.vn:not([data-section="admin"]) .vh-hero__col { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
html.vn:not([data-section="admin"]) .vh-hero__pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px;
  border-radius: var(--vn-radius-pill); border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08);
  color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .vh-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vn-cyan); animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .vh-hero__h {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.035em;
}
html.vn:not([data-section="admin"]) .vh-hero__line { display: block; overflow: hidden; }
html.vn:not([data-section="admin"]) .vh-hero__line + .vh-hero__line { padding-bottom: 6px; }
html.vn:not([data-section="admin"]) .vh-hero__line .b-rise { animation-delay: .05s; }
html.vn:not([data-section="admin"]) .vh-hero__hl {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bRise .9s .18s var(--vn-ease) both, bHue 8s ease-in-out infinite !important;
}
html.vn:not([data-section="admin"]) .vh-hero__p { margin: 0; max-width: 44ch; font-size: 18px; line-height: 29px; color: var(--vn-muted); animation-delay: .35s; }
html.vn:not([data-section="admin"]) .vh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; animation-delay: .45s; }
html.vn:not([data-section="admin"]) .vh-hero__btn {
  height: 54px; padding: 0 26px; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--vn-radius-pill);
  background: linear-gradient(90deg, var(--vn-pink), #FF7A6B); color: var(--vn-ink); font-weight: 800; font-size: 15px; text-decoration: none;
}
html.vn:not([data-section="admin"]) .vh-hero__ghost {
  height: 54px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); color: var(--vn-text);
  font-weight: 700; font-size: 15px; text-decoration: none;
}
html.vn:not([data-section="admin"]) .vh-hero__art { flex: 1 1 460px; min-width: 0; position: relative; height: 480px; }
html.vn:not([data-section="admin"]) .vh-pc { position: absolute; transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .25s ease-out; }
html.vn:not([data-section="admin"]) .vh-pc--1 { left: 4%; top: 30px; width: 58%; height: 330px; }
html.vn:not([data-section="admin"]) .vh-pc--2 { right: 0; top: 0; width: 46%; height: 250px; }
html.vn:not([data-section="admin"]) .vh-pc--3 { right: 6%; bottom: 0; width: 56%; height: 230px; }
html.vn:not([data-section="admin"]) .vh-pc__in {
  width: 100%; height: 100%; position: relative; overflow: hidden; border: 6px solid var(--vn-text); border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55); animation: bIn 1s .2s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .vh-pc--1 .vh-pc__in { transform: rotate(-6deg); background: linear-gradient(180deg, #2A1450 0%, var(--vn-pink) 58%, var(--vn-orange) 78%, #2A1450 78.5%); }
html.vn:not([data-section="admin"]) .vh-pc--2 .vh-pc__in { transform: rotate(5deg); background: linear-gradient(180deg, #0F1A3A, #2C1A5C); animation-delay: .35s; }
html.vn:not([data-section="admin"]) .vh-pc--3 .vh-pc__in { transform: rotate(-2deg); background: linear-gradient(160deg, var(--vn-cyan) 0%, #3B2A8C 70%); animation-delay: .5s; }
html.vn:not([data-section="admin"]) .vh-pc__sun {
  position: absolute; left: 50%; top: 34%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%;
  background: linear-gradient(180deg, var(--vn-yellow), #FF7A6B); animation: bSun 6s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .vh-pc__palm { position: absolute; left: 6%; bottom: 0; width: 110px; height: 240px; }
html.vn:not([data-section="admin"]) .vh-pc__sea { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 9px), #2A1450; }
html.vn:not([data-section="admin"]) .vh-pc--2 svg { position: absolute; inset: 0; width: 100%; height: 100%; }
html.vn:not([data-section="admin"]) .vh-pc__win { position: absolute; width: 5px; height: 7px; animation: bWin 2s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .vh-pc__road { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vh-pc__car { position: absolute; left: 8%; bottom: 14%; width: 84%; }
html.vn:not([data-section="admin"]) .vh-pc__tag { position: absolute; left: 12px; top: 10px; font-family: var(--vn-font-display); font-weight: 900; font-size: 22px; color: var(--vn-ink); letter-spacing: -.02em; }
@keyframes bSun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes bWin { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vh-hero { margin-top: -22px; padding: 56px 16px 40px; }
  html.vn:not([data-section="admin"]) .vh-hero__art { display: none; }
  html.vn:not([data-section="admin"]) .vh-hero__p { font-size: 16px; line-height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .vh-pc { transition: none; }
  html.vn:not([data-section="admin"]) .vh-pc__sun, html.vn:not([data-section="admin"]) .vh-pc__win { animation: none; }
}

/* ─── Стрічка-марківка (декор): на всю ширину, нахилена ─────────────────── */
html.vn:not([data-section="admin"]) .vh-marquee {
  overflow: hidden; margin: -20px calc(50% - 50vw) 0; padding: 14px 0; transform: rotate(-1.2deg);
  border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); background: var(--vn-pink);
}
html.vn:not([data-section="admin"]) .vh-marquee__track {
  display: flex; gap: 40px; white-space: nowrap; animation: bMarq 30s linear infinite;
  font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: 22px; color: var(--vn-ink);
}
@keyframes bMarq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html.vn:not([data-section="admin"]) .vh-marquee__track { animation: none; } }

/* ─── Спільні заголовки секцій ───────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vh-sec { display: flex; flex-direction: column; gap: 16px; }
html.vn:not([data-section="admin"]) .vh-h2 {
  margin: 0; font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em;
}

/* ─── Категорії (бенто) ──────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vh-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { html.vn:not([data-section="admin"]) .vh-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html.vn:not([data-section="admin"]) .vh-cats { grid-template-columns: 1fr; } html.vn:not([data-section="admin"]) .vh-cat { min-height: 130px; } }
html.vn:not([data-section="admin"]) .vh-cat {
  position: relative; overflow: hidden; min-height: 170px; padding: 22px; display: flex; flex-direction: column; gap: 16px;
  justify-content: space-between; border-radius: var(--vn-radius-card); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: var(--vn-text); transition: transform .3s var(--vn-ease), border-color .3s;
}
html.vn:not([data-section="admin"]) .vh-cat:hover { transform: translateY(-4px); border-color: var(--vh-cat-c); }
@media (hover: none) { html.vn:not([data-section="admin"]) .vh-cat:hover { transform: none; } }
html.vn:not([data-section="admin"]) .vh-cat__ic { width: 30px; height: 30px; color: var(--vh-cat-c); }
html.vn:not([data-section="admin"]) .vh-cat__glow { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--vh-cat-c) 28%, transparent), transparent 70%); }
html.vn:not([data-section="admin"]) .vh-cat__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
html.vn:not([data-section="admin"]) .vh-cat__ar { font-size: 22px; color: var(--vh-cat-c); transition: transform .3s var(--vn-ease); }
html.vn:not([data-section="admin"]) .vh-cat:hover .vh-cat__ar { transform: translate(3px, -3px); }
html.vn:not([data-section="admin"]) .vh-cat__tx { position: relative; display: flex; flex-direction: column; gap: 2px; }
html.vn:not([data-section="admin"]) .vh-cat__s { font-size: 14px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vh-cat__t { font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: -.02em; }

/* ─── Топ серверів + «Авто тижня» ────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vh-sec--row { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 20px; }
html.vn:not([data-section="admin"]) .vh-board {
  flex: 1 1 480px; min-width: 0; padding: 22px; border-radius: var(--vn-radius-section); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 14px;
}
html.vn:not([data-section="admin"]) .vh-board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .vh-board__live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vn-cyan); font-weight: 700; }
html.vn:not([data-section="admin"]) .vh-board__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vn-cyan); animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .vh-board__list { display: flex; flex-direction: column; }
html.vn:not([data-section="admin"]) .vh-board__row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 100px 64px; gap: 12px; align-items: center;
  padding: 10px 8px; border-radius: 12px; text-decoration: none; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vh-board__rank { font-family: var(--vn-font-display); font-weight: 900; font-size: 17px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vh-board__name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vh-board__bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .vh-board__fill { display: block; height: 100%; border-radius: 8px; background: var(--vn-grad-brand); }
html.vn:not([data-section="admin"]) .vh-board__num { text-align: right; font-family: var(--vn-font-mono); font-weight: 700; font-size: 13px; }
html.vn:not([data-section="admin"]) .vh-vow { flex: 1 1 380px; min-width: 0; min-height: 380px; position: relative; overflow: hidden; padding: 26px; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(160deg, #3B2A8C, #14061A 70%); color: var(--vn-text); text-decoration: none;
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--vn-ease), border-color .3s; }
html.vn:not([data-section="admin"]) .vh-vow:hover { transform: translateY(-4px); border-color: #2EE6D6; }
@media (hover: none) { html.vn:not([data-section="admin"]) .vh-vow:hover { transform: none; } }
html.vn:not([data-section="admin"]) .vh-vow__tag { align-self: flex-start; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px;
  background: #2EE6D6; color: #14061A; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
html.vn:not([data-section="admin"]) .vh-vow__t { font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .vh-vow__why { font-size: 13px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vh-vow__img { margin-top: auto; display: grid; place-items: center; min-height: 140px; color: rgba(243, 241, 248, .5); }
html.vn:not([data-section="admin"]) .vh-vow__img img { width: 100%; height: 200px; object-fit: contain; border-radius: 16px; }
html.vn:not([data-section="admin"]) .vh-vow__sp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.vn:not([data-section="admin"]) .vh-vow__s { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; }
html.vn:not([data-section="admin"]) .vh-vow__s small { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vh-vow__s b { font: 700 18px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vh-vow__s b.is-hot { color: #FF9F45; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vh-board__row { grid-template-columns: 28px minmax(0, 1fr) 64px; }
  html.vn:not([data-section="admin"]) .vh-board__bar { display: none; }
}

/* ─── ARZDATA у цифрах ───────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .vh-stat {
  padding: 16px 18px; border-radius: var(--vn-radius-card); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 2px;
}
html.vn:not([data-section="admin"]) .vh-stat__n { font-family: var(--vn-font-mono); font-weight: 900; font-size: 24px; }
html.vn:not([data-section="admin"]) .vh-stat__l { font-size: 13px; color: var(--vn-muted); }

/* ─── Популярні категорії + останні коментарі ────────────────────────────── */
html.vn:not([data-section="admin"]) .vh-cols { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.vn:not([data-section="admin"]) .vh-cols__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
html.vn:not([data-section="admin"]) .vh-col {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .vh-col__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
html.vn:not([data-section="admin"]) .vh-col__t { flex: 1; min-width: 0; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vh-col__n { font-family: var(--vn-font-mono); font-size: 12px; color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .vh-comments { display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .vh-comment {
  display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .vh-comment__av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #14061A; font: 900 13px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .vh-comment__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.vn:not([data-section="admin"]) .vh-comment__when { color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .vh-comment__meta { font-size: 12.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vh-comment__meta b { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vh-comment__body { font-size: 14px; line-height: 1.45; }

/* ── Анонс + «Ти нещодавно дивився» (Main.dc.html 294–311) ───────────────── */
html.vn .vh-top { display: flex; flex-direction: column; gap: 22px; margin-bottom: -40px; }
html.vn .vh-top:not(:has(> :not([hidden]))) { display: none; }
html.vn .vh-ann {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 18px 22px; border-radius: 24px; color: #F3F1F8; text-decoration: none;
  background: linear-gradient(100deg, #0B1E3A, #2A4F8C 60%, #7FD1FF); border: 1px solid rgba(127, 209, 255, .4);
}
html.vn a.vh-ann:hover { border-color: #7FD1FF; }
html.vn .vh-ann__snow { position: absolute; inset: 0; pointer-events: none; }
html.vn .vh-ann__snow i {
  position: absolute; top: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .8;
  animation: vhFall var(--d) linear infinite; animation-delay: var(--dl);
}
@keyframes vhFall { to { transform: translate(14px, 140px); opacity: 0; } }
html.vn .vh-ann > :not(.vh-ann__snow) { position: relative; }
html.vn .vh-ann__tag {
  padding: 5px 12px; border-radius: 999px; background: rgba(11, 10, 18, .7); color: #7FD1FF;
  font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
html.vn .vh-ann__t { color: #F3F1F8; flex: 1 1 260px; font-family: var(--vn-font-display); font-weight: 900; font-size: 22px; text-transform: uppercase; line-height: 1.15; }
html.vn .vh-ann__s { color: #F3F1F8; font-size: 14px; padding: 4px 10px; border-radius: 10px; background: rgba(11, 10, 18, .55); }
html.vn .vh-ann__go { font-size: 22px; font-weight: 900; color: #0B0A12; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #F3F1F8; }

html.vn .vh-recent__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
html.vn .vh-recent__h { margin: 0; font-family: var(--vn-font-display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #A39FB5; }
html.vn .vh-recent__clr { flex: none; white-space: nowrap; min-height: 32px; padding: 4px 12px; border: 1px solid rgba(243, 241, 248, .16); border-radius: 999px; background: none; color: #A39FB5; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
html.vn .vh-recent__clr:hover { color: #F3F1F8; border-color: #2EE6D6; }
html.vn .vh-recent__row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
html.vn .vh-recent__card {
  flex: 0 0 220px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; min-width: 0;
  background: rgba(243, 241, 248, .04); border: 1px solid rgba(243, 241, 248, .1); color: #F3F1F8; text-decoration: none;
}
html.vn .vh-recent__card:hover { border-color: rgba(46, 230, 214, .5); }
html.vn .vh-recent__ico { position: relative; overflow: hidden; flex: 0 0 54px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #0B0A12; background: #FF9F45; }
html.vn .vh-recent__ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2px; background: #15131F; }
html.vn .vh-recent__card--vehicle .vh-recent__ico img { object-fit: cover; padding: 0; }
html.vn .vh-recent__ico.has-img svg { visibility: hidden; }
html.vn .vh-recent__card--vehicle .vh-recent__ico { background: #2EE6D6; }
html.vn .vh-recent__card--server .vh-recent__ico { background: #B98CFF; }
html.vn .vh-recent__tx { display: flex; flex-direction: column; min-width: 0; }
html.vn .vh-recent__tx b { color: #F3F1F8; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn .vh-recent__tx small { font-size: 12px; color: #A39FB5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  html.vn .vh-top { margin-bottom: -24px; }
  html.vn .vh-ann__t { font-size: 18px; }
  html.vn .vh-recent__card { flex-basis: 200px; }
}
@media (prefers-reduced-motion: reduce) { html.vn .vh-ann__snow { display: none; } }

/* ── Найближчі події (Main.dc.html 313–345) ─────────────────────────────── */
html.vn .vh-h2--32 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.03em; }
html.vn .vh-y { color: #FFE27A; }
html.vn .vh-evs__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
html.vn .vh-evs__chips, html.vn .vh-evs__srv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.vn .vh-evs__chips .b-link { font-size: 14px; margin-left: 6px; }
html.vn .vh-evs__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
html.vn .vh-pd, html.vn .vh-rs { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 26px; color: #F3F1F8; }
html.vn .vh-pd { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, rgba(255, 79, 163, .3), transparent 60%), #160F22; border: 1px solid rgba(255, 79, 163, .45); }
html.vn .vh-pd__k, html.vn .vh-rs__k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FF8CC4; }
html.vn .vh-pd__t { font: 900 48px/1 var(--vn-font-mono); letter-spacing: -.02em; text-shadow: 0 0 30px rgba(255, 79, 163, .6); }
html.vn .vh-pd__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
html.vn .vh-pd__bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #FF4FA3, #FF9F45); transition: width .4s; }
html.vn .vh-pd__at, html.vn .vh-rs__at { font-size: 13px; color: #CFC9E0; }
html.vn .vh-rs { background: rgba(255, 255, 255, .035); border: 1px solid rgba(46, 230, 214, .3); }
html.vn .vh-rs .vh-rs__k { color: #2EE6D6; }
html.vn .vh-rs.is-on { border-color: rgba(255, 90, 122, .45); }
html.vn .vh-rs.is-on .vh-rs__k { color: #FF5A7A; }
html.vn .vh-rs__t { font: 900 40px/1 var(--vn-font-mono); }
html.vn .vh-evlist { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn .vh-ev { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
html.vn .vh-ev.is-live { background: rgba(46, 230, 214, .08); }
html.vn .vh-ev__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
html.vn .vh-ev__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn .vh-ev__tx b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn .vh-ev__tx b a, html.vn .vh-ev__tx b span { color: #F3F1F8; text-decoration: none; }
html.vn .vh-ev__tx b a:hover { color: #2EE6D6; }
html.vn .vh-ev__tx small { font-size: 12px; color: #A39FB5; }
html.vn .vh-ev__left { font: 800 15px var(--vn-font-mono); color: #F3F1F8; white-space: nowrap; }
html.vn .vh-ev.is-live .vh-ev__left { color: #2EE6D6; }
html.vn .vh-ev.is-soon .vh-ev__left { color: #FFE27A; }
html.vn .vh-ev__rm { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #A39FB5; padding: 0; cursor: pointer; }
html.vn .vh-ev__rm[aria-pressed="true"] { border-color: #FFE27A; background: rgba(255, 226, 122, .14); color: #FFE27A; }
html.vn .vh-ev__none { margin: auto; padding: 12px; font-size: 13px; color: #A39FB5; }
html.vn .vh-evs__note { margin: 0; font-size: 12.5px; color: #8A86A0; }
@media (max-width: 760px) {
  html.vn .vh-pd__t { font-size: 40px; }
  html.vn .vh-rs__t { font-size: 32px; }
  html.vn .vh-evs__srv .b-chip { min-height: 40px; }
  html.vn .vh-evlist { padding: 10px; }
  html.vn .vh-ev { display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "ic tx rm" "ic left rm"; column-gap: 12px; row-gap: 2px; }
  html.vn .vh-ev__ic { grid-area: ic; }
  html.vn .vh-ev__tx { grid-area: tx; }
  html.vn .vh-ev__left { grid-area: left; font-size: 13px; }
  html.vn .vh-ev__rm { grid-area: rm; width: 40px; height: 40px; }
}

/* ── Добірка дня: ряд листівок (Main.dc.html 347–391) ──────────────────── */
html.vn .vh-h2--40 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
html.vn .vh-c { color: #2EE6D6; }
html.vn .vh-pk { gap: 22px; }
html.vn .vh-pk__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
html.vn .vh-pk__ctl { display: flex; align-items: center; gap: 12px; }
html.vn .vh-pk__hint { font-size: 13px; color: #A39FB5; }
html.vn .vh-pk__hint--m { display: none; }
html.vn .vh-pk__arr { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); color: #F3F1F8; transition: opacity .2s; }
html.vn .vh-pk__arr--next { border: 0; background: #2EE6D6; color: #14061A; }
html.vn .vh-pk__arr[aria-disabled="true"] { opacity: .35; cursor: default; }
html.vn .vh-pk__arr--next[aria-disabled="true"] { background: rgba(255, 255, 255, .2); }
html.vn .vh-pk.is-static .vh-pk__arr, html.vn .vh-pk.is-static .vh-pk__dots { display: none; }
html.vn .vh-pk__wrap { position: relative; }
html.vn .vh-pk__wrap::before, html.vn .vh-pk__wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; transition: opacity .25s; }
html.vn .vh-pk__wrap::before { left: -4px; background: linear-gradient(90deg, #0B0A12, transparent); }
html.vn .vh-pk__wrap::after { right: -4px; background: linear-gradient(270deg, #0B0A12, transparent); }
html.vn .vh-pk.is-start .vh-pk__wrap::before, html.vn .vh-pk.is-end .vh-pk__wrap::after { opacity: 0; }
html.vn .vh-pk__row { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 30px; margin: 0 -4px; cursor: grab; scrollbar-width: none; }
html.vn .vh-pk__row::-webkit-scrollbar { display: none; }
html.vn .vh-pk__row.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
html.vn .vh-pk__dots { display: flex; justify-content: center; gap: 6px; margin-top: -10px; }
html.vn .vh-pk__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: width .25s, background .25s; }
html.vn .vh-pk__dots i.is-on { width: 26px; background: #2EE6D6; }

html.vn .vh-pc-card { flex: 0 0 260px; scroll-snap-align: start; transform: rotate(var(--r, 0deg)); transition: transform .25s;
  background: #F3F1F8; color: #14061A; border-radius: 8px; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
html.vn .vh-pc-card:hover, html.vn .vh-pc-card:focus-within { transform: rotate(0deg) translateY(-4px); }
html.vn .vh-pc-card__media { position: relative; height: 200px; border-radius: 4px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #2EE6D6, #3B2A8C); }
html.vn .vh-pc-card--vehicle .vh-pc-card__media { background: linear-gradient(160deg, #FF9F45, #FF4FA3); }
html.vn .vh-pc-card--discount .vh-pc-card__media { background: linear-gradient(160deg, #6b54b0, #14061A); }
html.vn .vh-pc-card__media img { max-width: 80%; max-height: 160px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .4)); pointer-events: none; }
html.vn .vh-pc-card--vehicle .vh-pc-card__media img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; filter: none; }
html.vn .vh-pc-card__ph { color: #F3F1F8; display: grid; place-items: center; }
html.vn .vh-pc-card__ph[hidden] { display: none; }
html.vn .vh-pc-card__tag { position: absolute; left: 8px; top: 8px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px;
  background: #14061A; color: #2EE6D6; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
html.vn .vh-pc-card--vehicle .vh-pc-card__tag, html.vn .vh-pc-card--discount .vh-pc-card__tag { color: #FF9F45; }
html.vn .vh-pc-card__fav { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(20, 6, 26, .75); color: #F3F1F8; }
html.vn .vh-pc-card__fav svg { fill: none; }
html.vn .vh-pc-card__fav[aria-pressed="true"] { background: #FF4FA3; color: #14061A; }
html.vn .vh-pc-card__fav[aria-pressed="true"] svg { fill: currentColor; }
html.vn .vh-pc-card__tx { padding: 0 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html.vn:not([data-section="admin"]) .vh-pc-card a.vh-pc-card__t, html.vn .vh-pc-card__tx b { font-family: var(--vn-font-display); font-weight: 800; font-size: 17px; line-height: 22px; letter-spacing: -.02em; color: #14061A; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.vn a.vh-pc-card__t::after { content: ""; position: absolute; inset: 0; }
html.vn .vh-pc-card { position: relative; }
html.vn .vh-pc-card__fav, html.vn .vh-pc-card__tag { z-index: 1; }
html.vn .vh-pc-card__tx span { font-size: 13px; color: #4E4762; font-weight: 600; }
html.vn .vh-pc-card__t:focus-visible { outline: none; }
html.vn .vh-pc-card:has(.vh-pc-card__t:focus-visible) { outline: 3px solid #2EE6D6; outline-offset: 4px; }

html.vn .vh-pc-card--gold { --r: -2deg; background: linear-gradient(145deg, #FFF3B0, #FFD24A 40%, #C8901A 70%, #FFE27A); box-shadow: 0 0 0 2px #FFE27A, 0 20px 50px rgba(255, 210, 74, .45); }
html.vn .vh-pc-card--gold .vh-pc-card__media { width: 100%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 50% 40%, #FFF6C8, #E0A41C 60%, #7A4A08); }
html.vn .vh-pc-card--gold .vh-pc-card__media:disabled { cursor: default; }
html.vn .vh-pc-card--gold .vh-pc-card__media svg { filter: drop-shadow(0 10px 12px rgba(122, 74, 8, .6)); }
html.vn .vh-pc-card--gold .vh-pc-card__tag { color: #FFE27A; }
html.vn .vh-pc-card--gold .vh-pc-card__tx b { font-weight: 900; }
html.vn .vh-pc-card--gold .vh-pc-card__tx span { color: #5A3A06; font-weight: 700; }
html.vn .vh-pc-card--gold[data-done] .vh-pc-card__shine { display: none; }
html.vn .vh-pc-card__shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); background-size: 250% 100%; animation: vhGoldSh 2.6s ease-in-out infinite; }
@keyframes vhGoldSh { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
@media (max-width: 760px) {
  html.vn .vh-pk__arr, html.vn .vh-pk__wrap::before, html.vn .vh-pk__wrap::after, html.vn .vh-pk__dots { display: none; }
  html.vn .vh-pk__hint { display: none; }
  html.vn .vh-pk__hint--m { display: inline; }
  html.vn .vh-pc-card { flex-basis: 230px; }
  html.vn .vh-pc-card__fav { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html.vn .vh-pc-card__shine { animation: none; } html.vn .vh-pc-card { transition: none; } }

/* ── Для тебе (Main.dc.html 393–409) ──────────────────────────────────── */
html.vn .vh-p { color: #FF4FA3; }
html.vn .vh-fy { gap: 14px; }
html.vn .vh-fy__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
html.vn .vh-fy__ttl { display: flex; flex-direction: column; gap: 4px; }
html.vn .vh-fy__ttl .vh-h2 { font-weight: 900; line-height: 1; }
html.vn .vh-fy__sub { font-size: 14px; color: #A39FB5; }
html.vn .vh-fy__tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
html.vn .vh-fy__tabs .b-link { font-size: 13px; margin-left: 6px; }
html.vn .vh-fy__n { opacity: .7; font-family: var(--vn-font-mono); }
html.vn .vh-fy__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
html.vn .vh-fy__it { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); --k: #FF4FA3; --g: linear-gradient(135deg, #B98CFF, #2A1450); }
html.vn .vh-fy__it[hidden] { display: none; }
html.vn .vh-fy__it--edit { --k: #2EE6D6; --g: linear-gradient(135deg, #3B2A8C, #FF4FA3); }
html.vn .vh-fy__it--server { --k: #FFE27A; --g: linear-gradient(135deg, #2EE6D6, #0B2E4A); }
html.vn .vh-fy__top { display: flex; align-items: center; gap: 10px; }
html.vn .vh-fy__ic { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--g); display: grid; place-items: center; color: #F3F1F8; overflow: hidden; }
html.vn .vh-fy__ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; background: #15131F; }
html.vn .vh-fy__it--edit .vh-fy__ic img[src*="vehicle_photos"] { object-fit: cover; padding: 0; }
html.vn .vh-fy__ic.has-img svg { visibility: hidden; }
html.vn .vh-fy__rec { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn .vh-fy__rec b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn .vh-fy__rec small { font-size: 12px; color: #A39FB5; }
html.vn .vh-fy__kind { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); border: 1px solid color-mix(in srgb, var(--k) 40%, transparent); }
html.vn .vh-fy__t { margin: 0; font-size: 14.5px; line-height: 1.5; color: #E4E0EE; }
html.vn .vh-fy__ft { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-top: auto; }
html.vn .vh-fy__why { color: #A39FB5; flex: 1; }
html.vn .vh-fy__ft .b-link { font-weight: 800; }
html.vn .vh-fy__x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: #A39FB5; padding: 0; cursor: pointer; font-size: 16px; line-height: 1; }
html.vn .vh-fy__x:hover { color: #F3F1F8; background: rgba(255, 255, 255, .12); }
html.vn .vh-fy__empty { margin: 0; padding: 26px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); text-align: center; color: #A39FB5; }
@media (max-width: 760px) {
  html.vn .vh-fy__grid { grid-template-columns: 1fr; }
  html.vn .vh-fy__tabs .b-chip { min-height: 40px; }
  html.vn .vh-fy__x { width: 40px; height: 40px; }
}

/* Розміри заголовків нижніх блоків — як у прототипі */
html.vn:not([data-section="admin"]) .vh-board .vh-h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; }
html.vn:not([data-section="admin"]) .vh-cols .vh-h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 900; }
@media (max-width: 760px) { html.vn:not([data-section="admin"]) .vh-vow { min-height: 0; } html.vn:not([data-section="admin"]) .vh-vow__img { min-height: 100px; } }

/* vn-search.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3a: сторінка пошуку (views/_search_vn.erb, SearchB.dc.html).
   Під html.vn:not([data-section="admin"]) .vn-search — нуль впливу на інші .vn-сторінки.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .vn-search { display: flex; flex-direction: column; gap: 24px; }

/* ─── Шапка пошуку ───────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vs-hero { display: flex; flex-direction: column; gap: 12px; max-width: 860px; width: 100%; margin: 0 auto; text-align: center; }
html.vn:not([data-section="admin"]) .vs-h1 {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px); line-height: 1;
}
html.vn:not([data-section="admin"]) .vs-box { position: relative; }
html.vn:not([data-section="admin"]) .vs-field {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 2px solid rgba(255, 255, 255, .14);
}
html.vn:not([data-section="admin"]) .vs-field:has(.vs-field__in:focus) { border-color: var(--vn-cyan); box-shadow: 0 0 0 6px rgba(46, 230, 214, .12); }
html.vn:not([data-section="admin"]) .vs-field__ic { width: 20px; height: 20px; color: var(--vn-cyan); flex: none; }
html.vn:not([data-section="admin"]) .vs-field__in { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--vn-text); font: 700 17px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .vs-field__in::placeholder { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vs-field__clear {
  width: 32px; height: 32px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08);
  color: var(--vn-muted); font-size: 16px;
}
html.vn:not([data-section="admin"]) .vs-hint { margin: 0; font-size: 13.5px; color: var(--vn-muted); }

/* ─── Автопідказки ───────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vs-sug {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 8px; border-radius: 18px;
  background: #1A1428; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column; gap: 2px;
}
html.vn:not([data-section="admin"]) .vs-sug__it {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none;
  color: var(--vn-text); background: transparent;
}
html.vn:not([data-section="admin"]) .vs-sug__it.is-sel { background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vs-sug__ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vs-sug__ic svg { width: 16px; height: 16px; }
html.vn:not([data-section="admin"]) .vs-sug__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vs-sug__t mark { background: rgba(255, 226, 122, .25); color: var(--vn-yellow); border-radius: 4px; padding: 0 1px; }
html.vn:not([data-section="admin"]) .vs-sug__k { font-size: 12px; color: var(--vn-muted-2); flex: none; }

/* ─── Таби й групи результатів ───────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vs-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
html.vn:not([data-section="admin"]) .vs-tab {
  height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .1);
  background: transparent; color: var(--vn-text-2); font-weight: 800;
}
html.vn:not([data-section="admin"]) .vs-tab.is-on { border-color: var(--vn-cyan); background: rgba(46, 230, 214, .14); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vs-tab__n { font-family: var(--vn-font-mono); font-size: 12px; opacity: .7; }
html.vn:not([data-section="admin"]) .vs-groups { display: flex; flex-direction: column; gap: 18px; max-width: 980px; width: 100%; margin: 0 auto; }
html.vn:not([data-section="admin"]) .vs-group__h { font-family: var(--vn-font-display); font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--vn-cyan); margin-bottom: 8px; }
html.vn:not([data-section="admin"]) .vs-group__rows { display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .vs-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .vs-row__ic { position: relative; width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(46, 230, 214, .12); color: var(--vn-cyan); overflow: hidden; }
html.vn:not([data-section="admin"]) .vs-row__ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
html.vn:not([data-section="admin"]) .vs-row__ph { display: none; align-items: center; justify-content: center; }
html.vn:not([data-section="admin"]) .vs-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn:not([data-section="admin"]) .vs-row__t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vs-row__s { font-size: 12.5px; color: var(--vn-muted); }

/* vn-catalog.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3b: каталог транспорту (docs/redesign/prototype/VehiclesB.dc.html).
   .fc-* / .vc-* / .vc (facets shell, public/js/facets.js + vehicles-catalog.js) — СПІЛЬНИЙ шар
   для /vehicles, /items, /cases, /discounts, /online (style.css). За рішенням користувача
   рескін тут глобальний під .vn — усі ці сторінки отримають той самий вигляд одразу, ще до
   власного етапу (ROUTES.md), замість дубльованої розмітки лише для /vehicles.

   Навмисно КОСМЕТИЧНИЙ рескін: кольори/шрифти/радіуси/тінь, без display/position/grid-template-
   columns/width/height — макет (десктоп-колонки, мобільна шторка фільтрів, усі брейкпоінти) лишається
   тим самим, що в style.css, тож JS (facets.js, catalog.js, vehicles-catalog.js) і сама логіка
   відкриття/закриття шторки не зачеплені.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .fc-page { font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .fc-head h1 { font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
html.vn:not([data-section="admin"]) .fc-head p { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .catalog-crumbs { color: var(--vn-muted-2); font-size: 13px; }
html.vn:not([data-section="admin"]) .catalog-crumbs [aria-current] { color: var(--vn-text); }

/* ─── Бічна панель фільтрів ──────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .fc-side { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
html.vn:not([data-section="admin"]) .fc-side__head { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .fc-x {
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .fc-q, html.vn:not([data-section="admin"]) .fc-find {
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--vn-radius-pill); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .fc-q:focus-within, html.vn:not([data-section="admin"]) .fc-find:focus-within { border-color: var(--vn-cyan); box-shadow: 0 0 0 4px rgba(46, 230, 214, .14); }
html.vn:not([data-section="admin"]) .fc-q input, html.vn:not([data-section="admin"]) .fc-find input { color: var(--vn-text); font-family: var(--vn-font-body); }
html.vn:not([data-section="admin"]) .fc-q kbd { border-color: rgba(255, 255, 255, .16); color: var(--vn-muted); font-family: var(--vn-font-mono); }

html.vn:not([data-section="admin"]) .fc-g { border-top-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .fc-g__h { color: var(--vn-text); font-family: var(--vn-font-body); font-weight: 800; }
html.vn:not([data-section="admin"]) .fc-g__name { letter-spacing: -.01em; }
html.vn:not([data-section="admin"]) .fc-new { background: rgba(46, 230, 214, .16); color: var(--vn-cyan); border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .fc-sel { background: var(--vn-pink); color: var(--vn-ink); border-radius: var(--vn-radius-pill); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .fc-hint { color: var(--vn-muted); }

html.vn:not([data-section="admin"]) .fc-chip {
  border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: var(--vn-text); font-weight: 700; font-family: var(--vn-font-body); transition: border-color .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .fc-chip:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }
html.vn:not([data-section="admin"]) .fc-chip[aria-pressed="true"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .3);
}
html.vn:not([data-section="admin"]) .fc-chip.is-zero { opacity: .45; }
html.vn:not([data-section="admin"]) .fc-n { color: var(--vn-muted-2); font-family: var(--vn-font-mono); }

html.vn:not([data-section="admin"]) .fc-o label:hover { background: rgba(255, 255, 255, .05); }
html.vn:not([data-section="admin"]) .fc-o__t { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .fc-box { border-radius: 5px; border-color: rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .2); color: transparent; }
html.vn:not([data-section="admin"]) .fc-o input:checked + .fc-box { background: var(--vn-pink); border-color: var(--vn-pink); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .fc-sw { border-radius: 50%; }
html.vn:not([data-section="admin"]) .fc-more { color: var(--vn-cyan); font-family: var(--vn-font-body); font-weight: 700; }

/* ─── Швидкість: гістограма й повзунок ───────────────────────────────────── */
html.vn:not([data-section="admin"]) .vc-modes { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .vc-modes button { font-family: var(--vn-font-display); font-weight: 800; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc-modes button[aria-checked="true"] { color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vc-hist i { background: rgba(255, 255, 255, .12); border-radius: 4px 4px 0 0; }
html.vn:not([data-section="admin"]) .vc-hist i.is-in { background: linear-gradient(180deg, var(--vn-pink), var(--vn-orange)); }
html.vn:not([data-section="admin"]) .vc-rng__track { background: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .vc-rng__fill { background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange)); }
html.vn:not([data-section="admin"]) .vc-rng__track input[type="range"] { accent-color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .vc-rng__in label { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .14); color: var(--vn-muted); border-radius: var(--vn-radius-field); }
html.vn:not([data-section="admin"]) .vc-rng__in input { color: var(--vn-text); font-family: var(--vn-font-mono); }

html.vn:not([data-section="admin"]) .fc-apply {
  background: var(--vn-grad-brand); color: var(--vn-ink); font-family: var(--vn-font-body); font-weight: 800; border-radius: var(--vn-radius-pill);
}
html.vn:not([data-section="admin"]) .fc-sheet-bg { background: rgba(6, 5, 12, .62); backdrop-filter: blur(6px); }

/* ─── Панель результатів ─────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .fc-fbtn {
  border-radius: var(--vn-radius-pill); border: 1px solid var(--vn-pink); background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); font-weight: 800;
}
html.vn:not([data-section="admin"]) .fc-fbtn__n { color: var(--vn-ink); background: var(--vn-pink-soft); border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .fc-found { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .fc-found b { color: var(--vn-cyan); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .fc-sort { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .fc-sort select { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--vn-text); border-radius: var(--vn-radius-pill); font-family: var(--vn-font-body); }
html.vn:not([data-section="admin"]) .fc-dens button { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--vn-muted); border-radius: 10px; }
html.vn:not([data-section="admin"]) .fc-dens button[aria-pressed="true"] { border-color: var(--vn-cyan); color: var(--vn-cyan); background: rgba(46, 230, 214, .12); }

html.vn:not([data-section="admin"]) .fc-ac { background: rgba(255, 79, 163, .14); border-color: rgba(255, 79, 163, .4); color: var(--vn-pink-soft); border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .fc-ac small { opacity: .8; }
html.vn:not([data-section="admin"]) .fc-clear { color: var(--vn-muted); font-weight: 700; }
html.vn:not([data-section="admin"]) .fc-clear:hover { color: var(--vn-text); }

html.vn:not([data-section="admin"]) .fc-empty { border-color: rgba(255, 255, 255, .16); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .fc-empty b { font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .fc-empty__btn {
  display: inline-flex; margin-top: 10px; height: 44px; padding: 0 20px; align-items: center; border-radius: var(--vn-radius-pill);
  background: var(--vn-pink); color: var(--vn-ink); font-weight: 800; text-decoration: none;
}

/* ─── Картка транспорту: .vc ─────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vc {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--vn-radius-card);
  color: var(--vn-text); transition: transform .3s var(--vn-ease), border-color .3s, box-shadow .3s;
}
html.vn:not([data-section="admin"]) .vc:hover {
  border-color: rgba(255, 79, 163, .5); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(255, 79, 163, .16);
}
@media (hover: none) { html.vn:not([data-section="admin"]) .vc:hover { transform: none; } }
html.vn:not([data-section="admin"]) .vc__art { background: linear-gradient(160deg, #221A3A, #120F1C); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__kind { background: rgba(11, 10, 18, .75); color: var(--vn-muted); border-radius: 8px; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vc__cert { background: var(--vn-cyan); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vc__ltd { background: var(--vn-yellow); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vc__nm { font-family: var(--vn-font-display); font-weight: 800; letter-spacing: -.01em; }
html.vn:not([data-section="admin"]) .vc__br { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__sp > b { font-family: var(--vn-font-mono); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vc__sp > b em { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__none { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__alt { color: var(--vn-muted-2); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vc__bar { background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vc__bar i { background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange)); }
html.vn:not([data-section="admin"]) .vc__tags span { background: rgba(255, 255, 255, .06); color: var(--vn-muted); border-radius: 6px; }

/* ─── Швидкий перегляд (.vn лише, views/_vehicle_tile.erb + public/js/vehicles-catalog-vn.js) ───── */
html.vn:not([data-section="admin"]) .vc { position: relative; }
html.vn:not([data-section="admin"]) .vc__eye {
  position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(11, 10, 18, .72); color: var(--vn-text); display: grid; place-items: center; padding: 0;
}
html.vn:not([data-section="admin"]) .vc__eye svg { width: 17px; height: 17px; }
html.vn:not([data-section="admin"]) .vc__qv {
  position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 18px; background: rgba(17, 13, 27, .97); border: 1px solid rgba(255, 79, 163, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); animation: bIn .18s var(--vn-ease) both;
  font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vc__qv[hidden] { display: none; }
html.vn:not([data-section="admin"]) .vc__qv-head { display: flex; align-items: center; gap: 10px; }
html.vn:not([data-section="admin"]) .vc__qv-dot { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255, 79, 163, .2); border: 1px solid rgba(255, 79, 163, .6); box-shadow: 0 0 14px rgba(255, 79, 163, .4); }
html.vn:not([data-section="admin"]) .vc__qv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn:not([data-section="admin"]) .vc__qv-t b { font-family: var(--vn-font-display); font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vc__qv-t span { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__qv-rows { display: flex; flex-direction: column; gap: 6px; }
html.vn:not([data-section="admin"]) .vc__qv-row { display: grid; grid-template-columns: 54px 1fr 50px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc__qv-track { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
html.vn:not([data-section="admin"]) .vc__qv-track i { display: block; height: 100%; border-radius: 6px; background: var(--vn-grad-brand); }
html.vn:not([data-section="admin"]) .vc__qv-row b { font-family: var(--vn-font-mono); font-size: 12.5px; text-align: right; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vc__qv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
html.vn:not([data-section="admin"]) .vc__qv-facts div { padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
html.vn:not([data-section="admin"]) .vc__qv-facts span { display: block; font-size: 11px; color: var(--vn-muted-2); text-transform: uppercase; letter-spacing: .06em; }
html.vn:not([data-section="admin"]) .vc__qv-facts b { font-size: 12.5px; }
html.vn:not([data-section="admin"]) .vc__qv-cta {
  display: block; text-align: center; height: 38px; line-height: 38px; border-radius: var(--vn-radius-pill);
  background: var(--vn-grad-brand); color: var(--vn-ink); font-weight: 800; font-size: 13px;
}

/* ─── Збережені пошуки ───────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vc-save-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html.vn:not([data-section="admin"]) .vc-saved-label { font-size: 13px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vc-saved-list { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .vc-saved {
  display: inline-flex; align-items: center; border-radius: var(--vn-radius-pill); overflow: hidden;
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .1);
}
html.vn:not([data-section="admin"]) .vc-saved a {
  height: 32px; padding: 0 10px 0 12px; display: inline-flex; align-items: center; color: var(--vn-text);
  font-weight: 700; font-size: 12.5px; text-decoration: none;
}
html.vn:not([data-section="admin"]) .vc-saved button {
  height: 32px; width: 28px; border: 0; background: none; color: var(--vn-muted); font-size: 14px; cursor: pointer;
}

/* ─── Каталог предметів: .ic (views/_item_tile.erb, етап 3c) ────────────────
   Та сама логіка швидкого перегляду, що в .vc (public/js/catalog-vn.js) — .ic__qv/.ic__eye лише
   позиціювання, вміст (.vc__qv-*) спільний з транспортом. */
html.vn:not([data-section="admin"]) .ic__art--rarity { box-shadow: inset 0 0 0 2px var(--cc); }
html.vn:not([data-section="admin"]) .ic { position: relative; }
html.vn:not([data-section="admin"]) .ic__eye {
  position: absolute; left: 6px; bottom: 6px; z-index: 2; width: 26px; height: 26px; border-radius: 7px; border: 0;
  background: rgba(11, 10, 18, .72); color: var(--vn-text); display: grid; place-items: center; padding: 0;
}
html.vn:not([data-section="admin"]) .ic__eye svg { width: 14px; height: 14px; }
html.vn:not([data-section="admin"]) .ic__qv {
  position: absolute; left: 6px; right: 6px; top: 6px; z-index: 3; display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: 16px; background: rgba(17, 13, 27, .97); border: 1px solid rgba(255, 79, 163, .4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); backdrop-filter: blur(10px); animation: bIn .18s var(--vn-ease) both;
  font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .ic__qv[hidden] { display: none; }

html.vn:not([data-section="admin"]) .ic__a {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--vn-radius-card);
  color: var(--vn-text); transition: transform .3s var(--vn-ease), border-color .3s, box-shadow .3s;
}
html.vn:not([data-section="admin"]) .ic__a:hover { border-color: rgba(255, 79, 163, .5); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(255, 79, 163, .16); }
@media (hover: none) { html.vn:not([data-section="admin"]) .ic__a:hover { transform: none; } }
html.vn:not([data-section="admin"]) .ic__art { background: var(--vn-surface-2); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .ic__lock, html.vn:not([data-section="admin"]) .ic__lv { background: rgba(11, 10, 18, .75); color: var(--vn-text); border-radius: 7px; }
html.vn:not([data-section="admin"]) .ic__lv { color: var(--vn-orange); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .ic__coll { background: rgba(11, 10, 18, .75); color: var(--cc, var(--vn-muted)); font-family: var(--vn-font-mono); border-radius: 6px; }
html.vn:not([data-section="admin"]) .ic__b b { font-family: var(--vn-font-body); font-weight: 700; }
html.vn:not([data-section="admin"]) .ic__fav { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .ic__fav:hover { color: var(--vn-text); background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .ic__fav[aria-pressed="true"] { color: var(--vn-yellow); }

/* ─── Банер колекції (items.erb) ─────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .fc-banner {
  border-radius: var(--vn-radius-field); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .fc-banner__sw { background: var(--cc, var(--vn-pink)); color: var(--vn-ink); border-radius: 8px; font-family: var(--vn-font-display); font-weight: 900; }

/* ─── /items за прототипом ItemsB.dc.html (views/items.erb під @design_b) ─────────────────────── */
html.vn:not([data-section="admin"]) .ivn-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
html.vn:not([data-section="admin"]) .ivn-hero__col { min-width: 0; }
html.vn:not([data-section="admin"]) .ivn-rar { display: flex; gap: 8px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .ivn-rar__t { padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; color: #F3F1F8; text-decoration: none; transition: border-color .2s; }
html.vn:not([data-section="admin"]) .ivn-rar__t:hover { border-color: var(--cc); }
html.vn:not([data-section="admin"]) .ivn-rar__t span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #A39FB5; font-weight: 700; }
html.vn:not([data-section="admin"]) .ivn-rar__t i { width: 8px; height: 8px; border-radius: 3px; background: var(--cc); }
html.vn:not([data-section="admin"]) .ivn-rar__t b { font: 800 18px var(--vn-font-display); }

html.vn:not([data-section="admin"]) .ivn-bar { position: sticky; top: 86px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; margin-bottom: 12px;
  border-radius: 22px; background: rgba(20, 18, 32, .88); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .ivn-bar__q { flex: 1 1 260px; min-width: 0; }
html.vn:not([data-section="admin"]) .ivn-bar .fc-q { height: 42px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .ivn-bar__f { display: none; height: 42px; border-color: #FF4FA3; background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); font-weight: 800; }
html.vn:not([data-section="admin"]) .ivn-chips { display: flex; gap: 6px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .ivn-view { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 0; }
html.vn:not([data-section="admin"]) .ivn-view button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #A39FB5; display: grid; place-items: center; cursor: pointer; }
html.vn:not([data-section="admin"]) .ivn-view button[aria-pressed="true"] { background: #F3F1F8; color: #14061A; }
html.vn:not([data-section="admin"]) .ivn-save { margin-bottom: 18px; }

html.vn:not([data-section="admin"]) .ivn-nv { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; margin-bottom: 12px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(46, 230, 214, .12), rgba(255, 159, 69, .08)); border: 1px solid rgba(46, 230, 214, .35); }
html.vn:not([data-section="admin"]) .ivn-nv[hidden] { display: none; }
html.vn:not([data-section="admin"]) .ivn-nv__dot { width: 10px; height: 10px; border-radius: 50%; background: #2EE6D6; box-shadow: 0 0 10px #2EE6D6; animation: bPulse 2s infinite; }
html.vn:not([data-section="admin"]) .ivn-nv__t { flex: 1 1 260px; font-size: 14px; }
html.vn:not([data-section="admin"]) .ivn-nv a.b-chip { text-decoration: none; }
html.vn:not([data-section="admin"]) .ivn-found { margin-bottom: 10px; }
html.vn:not([data-section="admin"]) .ivn-found .fc-found { margin: 0; color: #A39FB5; }
html.vn:not([data-section="admin"]) .ivn-found .fc-found b { color: #F3F1F8; }
html.vn:not([data-section="admin"]) .ivn-found__hint { font-size: 12.5px; color: #8A86A0; }
html.vn:not([data-section="admin"]) .ivn-more { display: flex; margin: 18px auto 0; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 800; cursor: pointer; }
html.vn:not([data-section="admin"]) .ivn-more:disabled { opacity: .6; cursor: progress; }
/* Пагінація каталогу (pagination_html: .pagination / .page-btn) — «таблетки» як «Показати ще» і пагінація
   нерухомості (vn-estate.css); активна сторінка — рожева обводка з легкою заливкою. */
html.vn:not([data-section="admin"]) .fc-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 22px 0 6px; }
html.vn:not([data-section="admin"]) .fc-page .page-btn {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--vn-text);
  font: 700 14px var(--vn-font-mono); text-decoration: none; transition: border-color .15s, background-color .15s, color .15s;
}
html.vn:not([data-section="admin"]) .fc-page .page-btn:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .07); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .fc-page .page-btn:focus-visible { outline: 2px solid var(--vn-cyan); outline-offset: 2px; }
html.vn:not([data-section="admin"]) .fc-page .page-btn--active { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: #FF8CC4; }
html.vn:not([data-section="admin"]) .fc-page .page-btn--disabled { opacity: .4; }
html.vn:not([data-section="admin"]) .fc-page .page-ellipsis { color: var(--vn-muted); font-family: var(--vn-font-mono); line-height: 44px; padding: 0 2px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .fc-page .pagination { gap: 4px; }
  html.vn:not([data-section="admin"]) .fc-page .page-btn { min-width: 34px; height: 34px; padding: 0 8px; font-size: 13px; }
  html.vn:not([data-section="admin"]) .fc-page .page-ellipsis { line-height: 34px; }
}

/* Плитка */
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__a { border-radius: 22px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__art { aspect-ratio: auto; height: 140px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cc, #B98CFF) 33%, transparent), transparent 65%), rgba(11, 10, 18, .5); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__art--rarity { box-shadow: none; }
/* Pixel limits, not %: a percentage height inside the auto-height grid row resolved to the 256px picture and got cropped. */
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__art img { width: auto; height: auto; max-width: 78%; max-height: 112px; object-fit: contain; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--cc, #B98CFF) 60%, transparent)); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__rar { position: absolute; left: 10px; top: 10px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: var(--cc); background: rgba(11, 10, 18, .8); border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__lock { left: auto; top: auto; right: 10px; bottom: 10px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__new { position: absolute; left: 10px; bottom: 10px; height: 22px; padding: 0 8px; border-radius: 999px; background: #2EE6D6; color: #14061A;
  font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; display: grid; place-items: center; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__b { padding: 12px 14px 14px; gap: 4px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__b b { font-size: 15px; line-height: 1.25; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__meta { font-size: 12.5px; color: #A39FB5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__b small { font: 600 12px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__fav { top: 10px; right: 10px; bottom: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 10, 18, .7); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__fav[aria-pressed="true"] { color: #FF4FA3; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__eye { left: auto; bottom: auto; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__fav ~ .ic__eye { right: 52px; }

/* Вигляд «Списком» (data-size="l" у фасетному каталозі предметів) */
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] { grid-template-columns: 1fr; gap: 6px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__a { flex-direction: row; align-items: center; gap: 12px; padding: 10px 96px 10px 12px; border-radius: 18px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__art { width: 48px; height: 48px; flex: none; border-radius: 14px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__art > :not(img):not(svg) { display: none; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__b { padding: 0; min-height: 0; flex: 1; min-width: 0; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__b b { -webkit-line-clamp: 1; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__fav, html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__eye { top: 50%; transform: translateY(-50%); }

@media (max-width: 859px) {
  html.vn:not([data-section="admin"]) .ivn-bar { position: static; }
  html.vn:not([data-section="admin"]) .ivn-bar__f { display: inline-flex; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-bar, html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-fbtn { display: none; }
  html.vn:not([data-section="admin"]) .ivn-chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  html.vn:not([data-section="admin"]) .ivn-chips .b-chip { flex: none; min-height: 40px; }
  html.vn:not([data-section="admin"]) .ivn-view button { width: 40px; height: 40px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn:not([data-section="admin"]) .ivn-found__hint { display: none; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__rar { top: auto; bottom: 10px; max-width: calc(100% - 52px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__new { bottom: 40px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__eye, html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__fav { width: 40px; height: 40px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__fav ~ .ic__eye { right: 56px; }
}
html.vn:not([data-section="admin"]) .fc-new { font-size: 11px; }

/* ─── /vehicles за прототипом VehiclesB.dc.html (views/vehicles.erb під @design_b) ───────────────── */
html.vn:not([data-section="admin"]) .vvn-found { margin: 10px 0 8px; font-size: 15px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vvn-found b { font: 700 15px var(--vn-font-mono); color: #2EE6D6; }
html.vn:not([data-section="admin"]) .vvn-modes { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 360px; max-width: 100%; height: 52px; padding: 5px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; }
html.vn:not([data-section="admin"]) .vvn-modes__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n)); border-radius: 999px;
  background: linear-gradient(90deg, #FF4FA3, #FF9F45); box-shadow: 0 6px 24px rgba(255, 79, 163, .4); transform: translateX(calc(var(--i) * 100%)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
html.vn:not([data-section="admin"]) .vvn-modes button { position: relative; background: none; border: 0; border-radius: 999px; font: 800 13px var(--vn-font-display); color: #A39FB5; cursor: pointer; transition: color .3s; }
html.vn:not([data-section="admin"]) .vvn-modes button[aria-checked="true"] { color: #14061A; background: linear-gradient(90deg, #FF4FA3, #FF9F45); box-shadow: 0 6px 24px rgba(255, 79, 163, .4); }
html.vn:not([data-section="admin"]) .vvn-modes__pill { display: none; }
html.vn:not([data-section="admin"]) .vvn-modes:has(button:nth-of-type(2)[aria-checked="true"]) { --i: 1; }
html.vn:not([data-section="admin"]) .vvn-modes:has(button:nth-of-type(3)[aria-checked="true"]) { --i: 2; }
html.vn:not([data-section="admin"]) .vvn-modes:has(button:nth-of-type(1)[aria-checked="true"]) { --i: 0; }

html.vn:not([data-section="admin"]) .vvn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
html.vn:not([data-section="admin"]) .vvn-kinds { border: 0; padding: 0; margin: 0; background: none; }
html.vn:not([data-section="admin"]) .vvn-kinds .fc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn:not([data-section="admin"]) .vvn-kinds a.b-chip { text-decoration: none; }
html.vn:not([data-section="admin"]) .vvn-kinds .b-chip[aria-pressed="true"] { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vvn-q { margin-left: auto; flex: 0 1 340px; min-width: 220px; }
html.vn:not([data-section="admin"]) .vvn-q .fc-q { height: 46px; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .vvn-sorts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
html.vn:not([data-section="admin"]) .vvn-sorts__l { font-size: 13px; color: #A39FB5; margin-right: 4px; }
html.vn:not([data-section="admin"]) .vvn-sorts .b-chip { height: 34px; }
html.vn:not([data-section="admin"]) .vvn-empty { padding: 60px 20px; text-align: center; border-radius: 26px; border: 1px dashed rgba(255, 255, 255, .16); display: flex; flex-direction: column; align-items: center; gap: 10px; }
html.vn:not([data-section="admin"]) .vvn-empty__t { font: 900 34px var(--vn-font-display); text-transform: uppercase; background: linear-gradient(90deg, #FF4FA3, #FF9F45); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.vn:not([data-section="admin"]) .vvn-empty p { margin: 0; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vvn-empty__btn { margin-top: 6px; height: 46px; padding: 0 22px; border-radius: 999px; background: #FF4FA3; color: #14061A; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; }

/* Плитка */
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .fc-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc { border-radius: 22px; padding: 10px 10px 0; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__art { height: 130px; aspect-ratio: auto; border-radius: 16px;
  background: radial-gradient(70% 80% at 50% 100%, rgba(255, 79, 163, .35), transparent 70%), linear-gradient(160deg, #221A3A, #120F1C); }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__kind { top: auto; bottom: 10px; left: 10px; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__id { position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(11, 10, 18, .75); font: 600 11px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__lines i { position: absolute; height: 2px; left: 10%; right: 10%; top: 42%; background: linear-gradient(90deg, transparent, #2EE6D6, transparent); opacity: .7; animation: vvnLine 2.4s ease-in-out infinite; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__lines i + i { left: 20%; right: 25%; top: 60%; background: linear-gradient(90deg, transparent, #FF4FA3, transparent); animation-delay: .3s; }
@keyframes vvnLine { 0%, 100% { transform: translateX(-12%); opacity: .2; } 50% { transform: translateX(12%); opacity: .8; } }
/* The photo stays absolutely placed (style.css: inset 0, contain) so it always fits the 130px box — only lifted
   above the speed lines. A relative photo took its natural height and got cropped. */
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__art img { z-index: 1; object-fit: contain; padding: 6px; box-sizing: border-box; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__ph { position: relative; z-index: 1; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__b { padding: 14px 6px 12px; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__nm { font-size: 15px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__sp > b { font-size: 26px; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__quals { display: flex; gap: 4px; justify-content: flex-end; margin-top: -2px; }
html.vn:not([data-section="admin"]) .vc__q { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #A39FB5; box-shadow: 0 0 8px currentColor; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vc__q--rare { background: #2EE6D6; color: #2EE6D6; }
html.vn:not([data-section="admin"]) .vc__q--legendary { background: #FF9F45; color: #FF9F45; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__cmp { margin: 0 6px 14px; width: calc(100% - 12px); justify-content: center; height: 38px; position: relative; z-index: 2; cursor: pointer; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__cmp[aria-pressed="true"] { border-color: #2EE6D6; background: rgba(46, 230, 214, .14); color: #2EE6D6; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__cmp:disabled { opacity: .5; cursor: not-allowed; }

/* Панель порівняння (body > #vcmp-tray) */
html.vn .vcmp-tray { position: fixed; left: 50%; bottom: 22px; z-index: 45; width: min(1000px, calc(100% - 32px)); transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 10px 10px 22px; background: rgba(20, 6, 26, .94); backdrop-filter: blur(14px); border: 1px solid rgba(255, 79, 163, .5); border-radius: 999px; box-shadow: 0 0 40px rgba(255, 79, 163, .3);
  color: #F3F1F8; font-family: var(--vn-font-body); animation: vvnUp .4s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes vvnUp { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
html.vn .vcmp-tray__t { font: 800 13px var(--vn-font-display); text-transform: uppercase; }
html.vn .vcmp-tray__c { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 700; max-width: 100%; }
html.vn .vcmp-tray__c b { font: 700 12px var(--vn-font-mono); color: #2EE6D6; }
html.vn .vcmp-tray__c button, html.vn .vcmp-tray__x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #F3F1F8; cursor: pointer; padding: 0; }
html.vn .vcmp-tray__h { font-size: 12px; color: #A39FB5; }
html.vn:not([data-section="admin"]) a.vcmp-tray__go { margin-left: auto; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A; font-weight: 800; font-size: 14px; text-decoration: none; }
html.vn a.vcmp-tray__go + .vcmp-tray__x { margin-left: 0; }
html.vn .vcmp-tray__h + .vcmp-tray__x { margin-left: auto; }

/* Сторінка порівняння */
html.vn:not([data-section="admin"]) .vvn-cmp { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
html.vn:not([data-section="admin"]) .vvn-cmp__hd .b-link { font-weight: 800; }
html.vn:not([data-section="admin"]) .vvn-cmp__wrap { overflow-x: auto; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); }
html.vn:not([data-section="admin"]) .vvn-cmp__t { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; }
html.vn:not([data-section="admin"]) .vvn-cmp__t th, html.vn:not([data-section="admin"]) .vvn-cmp__t td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vvn-cmp__t tbody th { font-size: 13px; color: #A39FB5; font-weight: 700; width: 180px; }
html.vn:not([data-section="admin"]) .vvn-cmp__t thead th { position: relative; }
html.vn:not([data-section="admin"]) .vvn-cmp__card { display: flex; flex-direction: column; gap: 4px; color: #F3F1F8; text-decoration: none; }
html.vn:not([data-section="admin"]) .vvn-cmp__card b { font: 800 15px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .vvn-cmp__card small { color: #A39FB5; font-size: 12.5px; }
html.vn:not([data-section="admin"]) .vvn-cmp__art { height: 110px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; color: #A39FB5;
  background: radial-gradient(70% 80% at 50% 100%, rgba(255, 79, 163, .35), transparent 70%), linear-gradient(160deg, #221A3A, #120F1C); }
html.vn:not([data-section="admin"]) .vvn-cmp__art img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; }
html.vn:not([data-section="admin"]) .vvn-cmp__rm { position: absolute; right: 22px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 10, 18, .75); color: #F3F1F8; text-decoration: none; }
html.vn:not([data-section="admin"]) .vvn-cmp__n { font: 700 18px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vvn-cmp__n small { font-size: 12px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vvn-cmp__bar { display: block; margin-top: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .vvn-cmp__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FF4FA3, #FF9F45); }
html.vn:not([data-section="admin"]) .vvn-cmp__t td.is-best .vvn-cmp__n { color: #2EE6D6; }
html.vn:not([data-section="admin"]) .vvn-cmp__t td.is-best .vvn-cmp__bar i { background: linear-gradient(90deg, #2EE6D6, #FF4FA3); }
html.vn:not([data-section="admin"]) .vvn-cmp__q { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12.5px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vvn-cmp__q span { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 859px) {
  html.vn:not([data-section="admin"]) .vvn-row .ivn-bar__f { display: inline-flex; }
  html.vn:not([data-section="admin"]) .vvn-q { margin-left: 0; flex: 1 1 100%; }
  html.vn:not([data-section="admin"]) .vvn-kinds { flex: 1 1 100%; min-width: 0; }
  html.vn:not([data-section="admin"]) .vvn-kinds .fc-chips, html.vn:not([data-section="admin"]) .vvn-sorts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html.vn:not([data-section="admin"]) .vvn-kinds .b-chip, html.vn:not([data-section="admin"]) .vvn-sorts .b-chip { flex: none; min-height: 40px; }
  html.vn:not([data-section="admin"]) .vvn-sorts__l { display: none; }
  html.vn:not([data-section="admin"]) .vvn-modes { width: 100%; }
  html.vn .vcmp-tray { border-radius: 24px; bottom: 84px; padding: 10px 12px; }
  html.vn .vcmp-tray__h { display: none; }
  html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__cmp { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__lines i, html.vn .vcmp-tray { animation: none; } }

html.vn:not([data-section="admin"]) .vc__alt small { color: #A39FB5; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__cert { top: 10px; right: 52px; left: auto; z-index: 2; }

/* ─── /items: бічна панель і рядок результатів точно як у прототипі ItemsB (views/_ivn_group.erb) ─── */
@media (min-width: 860px) {
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-side { position: sticky; top: 160px; max-height: calc(100vh - 180px); overflow: auto; display: flex; flex-direction: column; gap: 18px;
    padding: 18px; border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-side__head { display: flex; justify-content: space-between; align-items: center; padding: 0; margin: 0; border: 0; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-side__head .fc-x { display: none; }
}
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-side__head b { font: 800 15px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .ivn-reset { margin-left: auto; margin-right: 12px; font-size: 13px; font-weight: 800; }
@media (min-width: 860px) { html.vn:not([data-section="admin"]) .ivn-reset { margin-right: 0; } }
html.vn:not([data-section="admin"]) .ivn-g { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; border: 0; }
html.vn:not([data-section="admin"]) .ivn-g__t { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 12px var(--vn-font-body); letter-spacing: .08em; text-transform: uppercase; color: #A39FB5; }
html.vn:not([data-section="admin"]) .ivn-g__new { height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; letter-spacing: .04em;
  color: #2EE6D6; background: rgba(46, 230, 214, .12); border: 1px solid rgba(46, 230, 214, .35); }
html.vn:not([data-section="admin"]) .ivn-g__hint { margin: 0; font-size: 12px; color: #8A86A0; line-height: 1.4; }
html.vn:not([data-section="admin"]) .ivn-g--list .ivn-g__b { display: flex; flex-direction: column; gap: 4px; }
html.vn:not([data-section="admin"]) .ivn-g--chips .ivn-g__b { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .ivn-row { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 12px; border: 0; background: transparent;
  color: #D9D5E6; text-align: left; font: 700 14px var(--vn-font-body); text-decoration: none; cursor: pointer; width: 100%; }
html.vn:not([data-section="admin"]) .ivn-row:hover { background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .ivn-row[aria-pressed="true"], html.vn:not([data-section="admin"]) a.ivn-row[aria-current="true"] { background: rgba(255, 79, 163, .14); color: #F3F1F8; }
html.vn:not([data-section="admin"]) .ivn-row__ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #A39FB5; }
html.vn:not([data-section="admin"]) .ivn-row[aria-pressed="true"] .ivn-row__ic, html.vn:not([data-section="admin"]) a.ivn-row[aria-current="true"] .ivn-row__ic { background: #FF4FA3; color: #14061A; }
html.vn:not([data-section="admin"]) .ivn-row__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.vn:not([data-section="admin"]) .ivn-row__n { font: 500 12px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .ivn-row:disabled, html.vn:not([data-section="admin"]) .ivn-check:disabled, html.vn:not([data-section="admin"]) .ivn-chip:disabled { opacity: .45; cursor: default; }
html.vn:not([data-section="admin"]) .ivn-check { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px; border-radius: 10px; border: 0; background: transparent;
  color: #F3F1F8; text-align: left; font: 600 14px var(--vn-font-body); cursor: pointer; width: 100%; }
html.vn:not([data-section="admin"]) .ivn-check__box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center;
  color: #14061A; font-size: 12px; font-weight: 900; }
html.vn:not([data-section="admin"]) .ivn-check[aria-pressed="true"] .ivn-check__box { border-color: #FF4FA3; background: #FF4FA3; }
html.vn:not([data-section="admin"]) .ivn-check[aria-pressed="true"] .ivn-check__box::after { content: "✓"; }
html.vn:not([data-section="admin"]) .ivn-chip { height: 32px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
html.vn:not([data-section="admin"]) .ivn-chip__sq { width: 10px; height: 10px; border-radius: 3px; background: var(--cc); }
html.vn:not([data-section="admin"]) .ivn-chip__m { font-weight: 900; }
html.vn:not([data-section="admin"]) .ivn-g--fresh .ivn-chip { align-self: flex-start; height: 38px; }
html.vn:not([data-section="admin"]) .ivn-found { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .ivn-found #vc-save-search { height: 34px; }
html.vn:not([data-section="admin"]) .ivn-save { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
html.vn:not([data-section="admin"]) .ivn-save:not(:has(.vc-saved)) { display: none; }

/* Картка предмета — як у прототипі ItemsB: світіння й світна іконка кольору категорії (--cc із _item_tile.erb) */
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__art { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--cc, #B98CFF) 33%, transparent), transparent 65%), rgba(11, 10, 18, .5); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__ph { display: block; width: 64px; height: 64px; color: var(--cc, #B98CFF); stroke-width: 1.5; filter: drop-shadow(0 0 12px var(--cc, #B98CFF)); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__ph--fallback { display: none; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__art.is-noimg .ic__ph--fallback { display: block; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__a { background: rgba(255, 255, 255, .035); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__b small { color: #D9D5E6; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__ph { width: 26px; height: 26px; }
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__id, html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__kind,
html.vn:not([data-section="admin"]) #fc[data-key="vehicles"] .vc__ltd { z-index: 2; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid[data-size="l"] .ic__art img { max-width: 40px; max-height: 40px; }

/* ─── Картки предметів як картки донату (/discounts, .dvn-card): градієнтна обкладинка в кольорі категорії,
   чип категорії зліва вгорі, рожева наліпка «+N» справа, назва Unbounded, кнопки — внизу картки. Лише сітка;
   режим списку (data-size="l") — як був. ─── */
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__a { border-radius: 24px; }
@media (hover: hover) { html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__a:hover { border-color: rgba(255, 79, 163, .45); box-shadow: none; } }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__art { height: 150px;
  background: linear-gradient(160deg, var(--cc, #B98CFF) 0%, color-mix(in srgb, var(--cc, #B98CFF) 35%, #2A1450) 60%, #14061A 100%); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__art img { max-width: 62%; max-height: 120px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__ph { color: #F3F1F8; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .ic__kind { position: absolute; left: 12px; top: 12px; max-width: 60%; height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: rgba(11, 10, 18, .75); color: #F3F1F8; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__lv { left: auto; right: 12px; top: 12px; padding: 4px 10px; border-radius: 12px; background: #FF4FA3; color: #14061A;
  font: 900 16px var(--vn-font-display); transform: rotate(6deg); box-shadow: 0 8px 20px rgba(255, 79, 163, .4); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__lock { right: 12px; bottom: 12px; border-radius: 8px; background: rgba(11, 10, 18, .75); }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__new { left: 12px; bottom: 12px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b { padding: 14px 16px 16px; gap: 6px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b b { font-family: var(--vn-font-display); font-weight: 800; font-size: 15px; line-height: 20px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b small { margin-top: auto; padding-top: 4px; min-height: 34px; display: flex; align-items: center;
  padding-right: 84px; font: 700 13px var(--vn-font-mono); color: #2EE6D6; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav,
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__eye { top: auto; bottom: 16px; right: 16px; left: auto; width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #A39FB5; transform: none; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav[aria-pressed="true"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .2); color: #FF4FA3; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav ~ .ic__eye { right: 56px; }
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__eye:hover,
html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav:hover { color: #F3F1F8; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 859px) {
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__art { height: 130px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b { padding: 12px 12px 64px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b b { font-size: 14px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__b small { padding-right: 0; min-height: 0; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav,
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__eye { width: 40px; height: 40px; bottom: 12px; right: 12px; }
  html.vn:not([data-section="admin"]) #fc[data-key="items"] .fc-grid:not([data-size="l"]) .ic__fav ~ .ic__eye { right: 60px; }
}

/* vn-vehicle.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3b: картка транспорту (docs/redesign/prototype/VehicleB.dc.html).
   .itemp/.ip-*/.vp-*/.car-* (views/vehicle.erb; .itemp/.ip-* спільні з views/item.erb) — за тим самим
   рішенням, що й каталог (.fc-*): рескін глобальний під .vn, /items/:id отримає той самий вигляд
   одразу. Косметика лише — кольори/шрифти/радіуси/тінь, без display/position/grid — 3D-перегляд,
   галерея, світчер швидкості, коментарі (public/js/vehicle.js, model-viewer.js, _community.erb)
   лишаються на своїй логіці.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .itemp { font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .ip-crumbs, html.vn:not([data-section="admin"]) .ip-crumbs ol { color: var(--vn-muted-2); font-size: 13px; }
html.vn:not([data-section="admin"]) .ip-crumbs a { color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .ip-crumbs a:hover { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .ip-crumbs b[aria-current] { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .ip-back {
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .item-alert { border-radius: var(--vn-radius-field); background: rgba(255, 90, 122, .1); border: 1px solid rgba(255, 90, 122, .35); color: var(--vn-text); }

/* ─── Заголовок ───────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vp-head h1, html.vn:not([data-section="admin"]) #car-title {
  font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em;
}
html.vn:not([data-section="admin"]) .ip-mt {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--vn-radius-pill);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .ip-mt small { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .ip-mt b { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vp-ql { border-radius: var(--vn-radius-pill); font-weight: 800; }
html.vn:not([data-section="admin"]) .vp-ql--limited { background: var(--vn-yellow); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vp-ql--junk { background: var(--vn-muted); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vp-ql--rare { background: var(--vn-purple); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vp-ql--legendary { background: var(--vn-orange); color: var(--vn-ink); }

/* ─── Кнопки / іконки (спільні .btn/.icon-btn) ───────────────────────────── */
html.vn:not([data-section="admin"]) .btn {
  border-radius: var(--vn-radius-pill); font-family: var(--vn-font-body); font-weight: 800;
}
html.vn:not([data-section="admin"]) .btn--primary { background: var(--vn-grad-brand); color: var(--vn-ink); border: 0; }
html.vn:not([data-section="admin"]) .btn:not(.btn--primary):not(.btn--edit) { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .icon-btn {
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .icon-btn:hover { background: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .ip-mono { font-family: var(--vn-font-mono); }

/* ─── Галерея ─────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .car-gallery__main { background: linear-gradient(160deg, #221A3A, #120F1C); border-radius: var(--vn-radius-card); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .car-gallery__count {
  background: rgba(11, 10, 18, .75); color: var(--vn-text); border-radius: var(--vn-radius-pill); font-family: var(--vn-font-mono);
}
html.vn:not([data-section="admin"]) .car-gallery__full, html.vn:not([data-section="admin"]) .car-gallery__nav {
  background: rgba(11, 10, 18, .72); color: var(--vn-text); border-radius: 50%; border: 0;
}
html.vn:not([data-section="admin"]) .car-gallery__thumb { border-radius: 12px; border: 2px solid transparent; }
html.vn:not([data-section="admin"]) .car-gallery__thumb[aria-selected="true"] { border-color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .car-gallery__thumb-3d-ic { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vs-caption { color: var(--vn-muted); font-size: 13px; }

/* ─── Картки блоків (.ip-card) ────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .ip-card {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--vn-radius-card); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .ip-c-h h2 { font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: -.01em; }
html.vn:not([data-section="admin"]) .ip-c-h { border-bottom-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vp-q { border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp-qtip { color: var(--vn-muted); background: rgba(255, 255, 255, .04); border-radius: var(--vn-radius-field); }

/* ─── Швидкість ───────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vp-sp {
  border-radius: var(--vn-radius-field); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .vp-sp.is-on, html.vn:not([data-section="admin"]) .vp-sp--static {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .14); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vp-sp--main .vp-sp__v { color: var(--vn-pink-soft); font-family: var(--vn-font-mono); font-weight: 900; }
html.vn:not([data-section="admin"]) .vp-sp__v { font-family: var(--vn-font-mono); font-weight: 800; }
html.vn:not([data-section="admin"]) .vp-sbar { background: rgba(255, 255, 255, .08); border-radius: 6px; }
html.vn:not([data-section="admin"]) .vp-sbar span { background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange)); border-radius: 6px; }
html.vn:not([data-section="admin"]) .vp-snote { color: var(--vn-muted); }

/* ─── Характеристики ──────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vp-spec dt { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp-spec dd { color: var(--vn-text); font-weight: 700; }

/* ─── Джерело/сертифікат, кейси, магазин ─────────────────────────────────── */
html.vn:not([data-section="admin"]) .vp-from, html.vn:not([data-section="admin"]) .vp-case {
  border-radius: var(--vn-radius-field); background: rgba(255, 255, 255, .03); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .vp-from:hover, html.vn:not([data-section="admin"]) .vp-case:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vp-more { color: var(--vn-cyan); font-weight: 800; text-decoration: none; }
html.vn:not([data-section="admin"]) .vp-cnt { background: var(--vn-pink); color: var(--vn-ink); border-radius: var(--vn-radius-pill); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vp-shop__t { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp-shop__t a { color: var(--vn-cyan); }

/* ─── Властивості/файли ───────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .ip-props li span { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .ip-props__val { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .car-file, html.vn:not([data-section="admin"]) .car-file--missing {
  border-radius: var(--vn-radius-field); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .car-file:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .car-file__ext { background: rgba(46, 230, 214, .16); color: var(--vn-cyan); border-radius: 6px; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .car-file__sub { color: var(--vn-muted); }

/* ─── Схожі за швидкістю ──────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vp-sim-note, html.vn:not([data-section="admin"]) .vp-sim-few { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp-si {
  border-radius: var(--vn-radius-field); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); color: var(--vn-text); text-decoration: none;
}
html.vn:not([data-section="admin"]) .vp-si:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vp-si__sv b { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vp-si__sv .is-up { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vp-si__sv .is-down { color: var(--vn-red); }
html.vn:not([data-section="admin"]) .vp-si__sv .is-same { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp-incase { color: var(--vn-yellow); }

/* ─── Тост і лайтбокс фото ────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .ip-toast {
  background: var(--vn-ink); border: 1px solid rgba(255, 79, 163, .5); color: var(--vn-text); border-radius: var(--vn-radius-pill);
  box-shadow: 0 0 40px rgba(255, 79, 163, .35); font-weight: 700;
}
html.vn:not([data-section="admin"]) .vlightbox-overlay { background: rgba(6, 5, 12, .92); }
html.vn:not([data-section="admin"]) .vlightbox__close, html.vn:not([data-section="admin"]) .vlightbox__nav {
  background: rgba(255, 255, 255, .08); color: var(--vn-text); border-radius: 50%;
}
html.vn:not([data-section="admin"]) .vlightbox__caption { color: var(--vn-muted); }

/* ─── QR-модалка (vp-qr-modal, public/js/vehicle-share-vn.js) ───────────── */
html.vn:not([data-section="admin"]) .vp-qr-modal { position: fixed; inset: 0; z-index: 90; }
html.vn:not([data-section="admin"]) .vp-qr-modal[hidden] { display: none; }
html.vn:not([data-section="admin"]) .vp-qr-modal__bg { position: absolute; inset: 0; background: rgba(6, 5, 12, .7); backdrop-filter: blur(6px); }
html.vn:not([data-section="admin"]) .vp-qr-modal__box {
  position: relative; z-index: 1; margin: 14vh auto 0; width: min(300px, calc(100% - 40px)); padding: 24px;
  border-radius: 24px; background: #17121F; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--vn-text);
  font-family: var(--vn-font-body), sans-serif; animation: bPop .2s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .vp-qr-modal__box p { margin: 0; color: var(--vn-muted); font-size: 13.5px; }
html.vn:not([data-section="admin"]) .vp-qr-modal__box canvas { border-radius: 14px; background: #fff; padding: 10px; }
html.vn:not([data-section="admin"]) .vp-qr-modal__x {
  position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .08); color: var(--vn-text); display: grid; place-items: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   Розкладка за VehicleB (лише картка транспорту .vp — /items/:id не зачіпає):
   чипи над великим заголовком, галерея-«полароїд» на всю ширину, далі сітки карток.
   ══════════════════════════════════════════════════════════════════════════ */
html.vn:not([data-section="admin"]) .vp { display: flex; flex-direction: column; gap: 22px; }
html.vn:not([data-section="admin"]) .vp > * { margin-top: 0; margin-bottom: 0; }

/* Заголовок */
html.vn:not([data-section="admin"]) .vp-head { align-items: flex-end; gap: 16px; }
html.vn:not([data-section="admin"]) .vp-head__main { gap: 12px; }
html.vn:not([data-section="admin"]) .vp-head__main .ip-meta { order: -1; display: flex; flex-wrap: wrap; gap: 8px; }
html.vn:not([data-section="admin"]) .vp-head h1 {
  font-size: clamp(34px, 4.8vw, 66px); line-height: .95; letter-spacing: -.04em; padding-bottom: 4px; text-wrap: balance;
}
html.vn:not([data-section="admin"]) .vp-hue {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: vpHue 8s ease-in-out infinite;
}
@keyframes vpHue { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
html.vn:not([data-section="admin"]) .vp #vp-id { background: rgba(46, 230, 214, .08); border-color: rgba(46, 230, 214, .35); color: var(--vn-cyan); cursor: pointer; }
html.vn:not([data-section="admin"]) .vp #vp-id small, html.vn:not([data-section="admin"]) .vp #vp-id b { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vp .ip-mt { height: 34px; font-size: 13px; }
html.vn:not([data-section="admin"]) .vp .ip-mt:hover { border-color: rgba(255, 255, 255, .24); }
html.vn:not([data-section="admin"]) .vp .ip-acts { gap: 8px; }
html.vn:not([data-section="admin"]) .vp .ip-acts__seg { gap: 8px; }
html.vn:not([data-section="admin"]) .vp .ip-acts .btn { height: 44px; padding: 0 16px; font-size: 14px; border-radius: var(--vn-radius-pill); margin: 0; }
html.vn:not([data-section="admin"]) .vp .ip-acts .collection-btn[aria-pressed="true"] { border-color: rgba(46, 230, 214, .55); background: rgba(46, 230, 214, .1); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vp .ip-acts .collection-btn[data-collection="wish"][aria-pressed="true"] { border-color: rgba(255, 79, 163, .55); background: rgba(255, 79, 163, .12); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vp .ip-acts__icons .icon-btn { width: 44px; height: 44px; }
html.vn:not([data-section="admin"]) .vp .ip-acts .btn--edit { border: 1px solid rgba(255, 159, 69, .55); background: rgba(255, 159, 69, .08); color: var(--vn-orange); }

/* Галерея на всю ширину: біла рамка-«полароїд», мініатюри під нею */
html.vn:not([data-section="admin"]) .vp-hero { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
html.vn:not([data-section="admin"]) .vp-hero > * { width: 100%; max-width: none; }
html.vn:not([data-section="admin"]) .vp .car-gallery { display: flex; flex-direction: column; gap: 14px; }
html.vn:not([data-section="admin"]) .vp .car-gallery__main {
  height: 470px; aspect-ratio: auto; border: 8px solid var(--vn-text); border-radius: 8px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6); color: var(--vn-muted);
  background: radial-gradient(60% 50% at 50% 62%, rgba(255, 79, 163, .22), transparent 70%), linear-gradient(180deg, #2A1450, #14061A);
}
html.vn:not([data-section="admin"]) .vp .car-gallery__main.is-photo { background: #14061A; }
html.vn:not([data-section="admin"]) .vp .car-gallery__ph { width: 160px; height: 160px; color: rgba(243, 241, 248, .55); }
html.vn:not([data-section="admin"]) .vp .car-gallery__nav {
  width: 48px; height: 48px; background: rgba(243, 241, 248, .92); color: #14061A; box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
html.vn:not([data-section="admin"]) .vp .car-gallery__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .vp .car-gallery__thumb { width: 92px; height: 56px; flex: none; overflow: hidden; background: rgba(255, 255, 255, .04); transition: transform .25s var(--vn-ease), border-color .2s; }
html.vn:not([data-section="admin"]) .vp .car-gallery__thumb[aria-selected="true"] { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(255, 79, 163, .35); }

/* Картки під галереєю: сітки, що самі складаються в одну колонку */
html.vn:not([data-section="admin"]) .vp-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
html.vn:not([data-section="admin"]) .vp .ip-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
html.vn:not([data-section="admin"]) .vp .ip-card { border-radius: 26px; }
html.vn:not([data-section="admin"]) .vp .ip-c-h h2 { color: var(--vn-text); font-size: 15px; letter-spacing: -.01em; }
html.vn:not([data-section="admin"]) .vp .vp-q { width: 24px; height: 24px; font-size: 12px; font-weight: 900; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vp .vp-q[aria-expanded="true"] { background: rgba(46, 230, 214, .16); border-color: rgba(46, 230, 214, .5); }
html.vn:not([data-section="admin"]) .vp .vp-qtip { background: #1A1428; border: 1px solid rgba(46, 230, 214, .4); border-radius: 16px; color: #D9D5E6; }

/* Швидкість: плитки 18px, смуга з повзунком */
html.vn:not([data-section="admin"]) .vp .vp-speeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.vn:not([data-section="admin"]) .vp .vp-sp { border-radius: 18px; padding: 12px; }
html.vn:not([data-section="admin"]) .vp .vp-sp small, html.vn:not([data-section="admin"]) .vp .vp-sp em { color: var(--vn-muted); font-size: 12px; }
html.vn:not([data-section="admin"]) .vp .vp-sp.is-on small { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vp .vp-sp__v { font-family: var(--vn-font-display); letter-spacing: -.02em; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vp .vp-sp.is-on .vp-sp__v, html.vn:not([data-section="admin"]) .vp .vp-sp--static .vp-sp__v { font-size: 30px; color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vp .vp-sp:not(.is-on):not(.vp-sp--static) .vp-sp__v { font-size: 20px; }
html.vn:not([data-section="admin"]) .vp .vp-sbar { height: 10px; margin-top: 16px; overflow: visible; background: rgba(255, 255, 255, .07); border-radius: 999px; }
html.vn:not([data-section="admin"]) .vp .vp-sbar span { position: relative; background: linear-gradient(90deg, var(--vn-cyan), var(--vn-pink), var(--vn-orange)); border-radius: 999px; }
html.vn:not([data-section="admin"]) .vp .vp-sbar span::after {
  content: ''; position: absolute; right: -9px; top: -4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vn-text); box-shadow: 0 0 0 4px rgba(255, 79, 163, .35);
}
html.vn:not([data-section="admin"]) .vp .vp-snote { margin-top: 12px; font-size: 14px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-snote b { color: var(--vn-text); }

/* Характеристики: плитки з кольоровою іконкою */
html.vn:not([data-section="admin"]) .vp .vp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.vn:not([data-section="admin"]) .vp .vp-spec {
  --c: var(--vn-cyan); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center;
  padding: 12px; border-radius: 18px; background: rgba(11, 10, 18, .5); border: 1px solid rgba(255, 255, 255, .06);
}
html.vn:not([data-section="admin"]) .vp .vp-spec--pink { --c: var(--vn-pink); }
html.vn:not([data-section="admin"]) .vp .vp-spec--orange { --c: var(--vn-orange); }
html.vn:not([data-section="admin"]) .vp .vp-spec--violet { --c: var(--vn-purple); }
html.vn:not([data-section="admin"]) .vp .vp-spec__ic {
  grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
html.vn:not([data-section="admin"]) .vp .vp-spec dt { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-spec dd { padding: 0; border: 0; background: none; font-size: 16px; font-weight: 800; }
html.vn:not([data-section="admin"]) .vp .vp-spec dd small { color: var(--vn-muted); }

/* Отримується з предмета — помаранчевий відтінок */
html.vn:not([data-section="admin"]) .vp .ip-card:has(.vp-from) {
  background: linear-gradient(160deg, rgba(255, 159, 69, .10), rgba(255, 255, 255, .03)); border-color: rgba(255, 159, 69, .28);
}
html.vn:not([data-section="admin"]) .vp .vp-from { border: 0; border-radius: 18px; background: rgba(11, 10, 18, .55); }
html.vn:not([data-section="admin"]) .vp .vp-from:hover { background: rgba(11, 10, 18, .8); }
html.vn:not([data-section="admin"]) .vp .vp-from__th {
  border-radius: 14px; color: var(--vn-orange); border: 1px solid rgba(255, 159, 69, .35);
  background: radial-gradient(70% 70% at 50% 35%, rgba(255, 159, 69, .28), transparent 75%), linear-gradient(160deg, #2A1A2E, #140E1C);
}
html.vn:not([data-section="admin"]) .vp .vp-from__th img { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
html.vn:not([data-section="admin"]) .vp .vp-from__t b { font-weight: 800; }
html.vn:not([data-section="admin"]) .vp .vp-from__t small, html.vn:not([data-section="admin"]) .vp .vp-from > svg { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-ql-line { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-ql { padding: 4px 10px; font-size: 12px; }

/* Випадає з кейсів / донат-магазин */
html.vn:not([data-section="admin"]) .vp-get { gap: 16px; }
html.vn:not([data-section="admin"]) .vp .vp-case { gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(11, 10, 18, .5); }
html.vn:not([data-section="admin"]) .vp .vp-case:hover { border-color: rgba(255, 79, 163, .4); background: rgba(11, 10, 18, .75); }
html.vn:not([data-section="admin"]) .vp .vp-case__th { width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-case__t b { font-weight: 800; }
html.vn:not([data-section="admin"]) .vp .vp-case__t small { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-shop {
  background: linear-gradient(160deg, rgba(46, 230, 214, .08), rgba(255, 255, 255, .03)); border-color: rgba(46, 230, 214, .26);
}
html.vn:not([data-section="admin"]) .vp .vp-shop__t { font-size: 14px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-shop__t a { color: var(--vn-text); font-weight: 800; }
html.vn:not([data-section="admin"]) .vp .vp-more { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; }

/* Властивості */
html.vn:not([data-section="admin"]) .vp .ip-props li { border-bottom-color: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .vp .ip-props__val.ip-mono {
  padding: 4px 10px; border-radius: 10px; background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-weight: 700;
}
html.vn:not([data-section="admin"]) .vp .ip-props time { font-family: var(--vn-font-mono); }

/* Файли моделі: плитка-розширення за типом, кругла кнопка завантаження */
html.vn:not([data-section="admin"]) .vp .car-files__list { gap: 8px; }
html.vn:not([data-section="admin"]) .vp .car-file { gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: 16px; background: rgba(11, 10, 18, .5); }
html.vn:not([data-section="admin"]) .vp a.car-file:hover { border-color: rgba(46, 230, 214, .35); background: rgba(11, 10, 18, .75); }
html.vn:not([data-section="admin"]) .vp .car-file__ext {
  --c: var(--vn-muted); width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  font: 800 11px var(--vn-font-mono); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
html.vn:not([data-section="admin"]) .vp .car-file__ext--dff { --c: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vp .car-file__ext--txd { --c: var(--vn-purple); }
html.vn:not([data-section="admin"]) .vp .car-file__name { font: 700 15px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vp .car-file__sub { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .car-file__dl {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(46, 230, 214, .1); color: var(--vn-cyan); transition: background .2s;
}
html.vn:not([data-section="admin"]) .vp a.car-file:hover .car-file__dl { background: var(--vn-cyan); color: #14061A; }
/* Файл є в списку, але не завантажений: без прозорості (контраст), пунктирна рамка */
html.vn:not([data-section="admin"]) .vp .car-file--missing { opacity: 1; background: transparent; border-style: dashed; border-color: rgba(255, 255, 255, .14); }
html.vn:not([data-section="admin"]) .vp .car-file--missing .car-file__name { color: var(--vn-muted); }

/* Схожі за швидкістю */
html.vn:not([data-section="admin"]) .vp .vp-sim { column-gap: 18px; row-gap: 6px; }
html.vn:not([data-section="admin"]) .vp .vp-si { grid-template-columns: 76px minmax(0, 1fr) auto; padding: 8px; border: 0; border-radius: 16px; background: transparent; }
html.vn:not([data-section="admin"]) .vp .vp-si:hover { background: rgba(255, 255, 255, .05); }
html.vn:not([data-section="admin"]) .vp .vp-si__th { width: 76px; height: 50px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .vp .vp-nophoto, html.vn:not([data-section="admin"]) .vp .vp-si__nm small,
html.vn:not([data-section="admin"]) .vp .vp-si__sv em, html.vn:not([data-section="admin"]) .vp .vp-sim-note { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vp .vp-si__nm b { font-weight: 800; }
html.vn:not([data-section="admin"]) .vp .vp-si__sv b { font-size: 15px; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vp { gap: 18px; }
  html.vn:not([data-section="admin"]) .vp-head h1 { font-size: clamp(28px, 8.5vw, 38px); }
  html.vn:not([data-section="admin"]) .vp .ip-acts { width: 100%; flex-wrap: wrap; overflow: visible; }
  html.vn:not([data-section="admin"]) .vp .car-gallery__main { height: auto; aspect-ratio: 4 / 3; border-width: 6px; }
  html.vn:not([data-section="admin"]) .vp .car-gallery__ph { width: 110px; height: 110px; }
  html.vn:not([data-section="admin"]) .vp .car-gallery__nav { width: 40px; height: 40px; }
  html.vn:not([data-section="admin"]) .vp .car-gallery__thumb { width: 72px; height: 46px; }
  html.vn:not([data-section="admin"]) .vp-side, html.vn:not([data-section="admin"]) .vp .ip-stack { grid-template-columns: minmax(0, 1fr); }
  html.vn:not([data-section="admin"]) .vp .vp-sp { padding: 10px; }
  html.vn:not([data-section="admin"]) .vp .vp-sp.is-on .vp-sp__v, html.vn:not([data-section="admin"]) .vp .vp-sp--static .vp-sp__v { font-size: 24px; }
  html.vn:not([data-section="admin"]) .vp .vp-sp:not(.is-on):not(.vp-sp--static) .vp-sp__v { font-size: 17px; }
  html.vn:not([data-section="admin"]) .vp .vp-si { grid-template-columns: 64px minmax(0, 1fr) auto; }
  html.vn:not([data-section="admin"]) .vp .vp-si__th { width: 64px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .vp-hue { animation: none; }
  html.vn:not([data-section="admin"]) .vp .car-gallery__thumb { transition: none; }
}

/* ─── 3D-перегляд (public/js/model-viewer.js) за VehicleB: темна сцена, бірюзовий чип «3D»,
       кнопки камери — темні «пігулки», активна — рожева. Логіка та розмітка без змін. ─── */
html.vn:not([data-section="admin"]) .mv3d {
  background: radial-gradient(60% 55% at 50% 58%, rgba(185, 140, 255, .16), transparent 70%), linear-gradient(180deg, #1B1030, #0B0A12);
}
html.vn:not([data-section="admin"]) .mv3d__badge {
  left: 14px; top: 14px; gap: 8px; padding: 0 12px 0 0; border-radius: 999px; background: rgba(11, 10, 18, .85); color: #CFC9E0; font: 700 13px var(--vn-font-body), sans-serif;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
html.vn:not([data-section="admin"]) .mv3d__badge-tag {
  height: 28px; padding: 0 12px; background: var(--vn-cyan); color: #14061A; font: 900 12px var(--vn-font-display), sans-serif; text-shadow: none;
}
html.vn:not([data-section="admin"]) .mv3d__hint, html.vn:not([data-section="admin"]) .mv3d__state { color: #CFC9E0; }
html.vn:not([data-section="admin"]) .mv3d__cube { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .mv3d__ltitle { font: 800 15px var(--vn-font-display), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .mv3d__lsub { font-family: var(--vn-font-mono); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mv3d__lbar { width: min(340px, 80%); height: 6px; background: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .mv3d__lbar-fill { background: linear-gradient(90deg, var(--vn-pink), var(--vn-cyan)); }
html.vn:not([data-section="admin"]) .mv3d__panel { left: 14px; right: 14px; bottom: 14px; justify-content: flex-start; gap: 6px; }
html.vn:not([data-section="admin"]) .mv3d__pgroup { gap: 6px; }
html.vn:not([data-section="admin"]) .mv3d__pbtn, html.vn:not([data-section="admin"]) .mv3d__rotate {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(11, 10, 18, .88);
  color: var(--vn-text); font: 800 13px var(--vn-font-body), sans-serif; backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); /* світлі моделі (білий кузов) під кнопками не «з'їдають» текст */
}
html.vn:not([data-section="admin"]) .mv3d__pbtn--icon { width: 34px; min-width: 34px; padding: 0; font-size: 18px; }
html.vn:not([data-section="admin"]) .mv3d__pbtn:hover, html.vn:not([data-section="admin"]) .mv3d__rotate:hover { border-color: rgba(255, 255, 255, .45); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .mv3d__pbtn.is-on, html.vn:not([data-section="admin"]) .mv3d__rotate.is-on {
  border-color: var(--vn-pink); background: #3A1530; color: #FF8CC4;
}
html.vn:not([data-section="admin"]) .mv3d__edit {
  right: 16px; top: 14px; border-color: rgba(255, 255, 255, .28); background: rgba(11, 10, 18, .85); color: var(--vn-muted);
  font: 900 11px var(--vn-font-display), sans-serif; letter-spacing: .14em;
}
html.vn:not([data-section="admin"]) .vp .car-gallery__main.is-3d-active { background: #0B0A12; }
html.vn:not([data-section="admin"]) .vp .car-gallery__thumb--3d { color: var(--vn-cyan); background: rgba(46, 230, 214, .06); }
/* Телефон: кнопки камери — одна прокручувана смуга внизу, щоб не закривали модель */
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .mv3d__badge { font-size: 0; gap: 0; }
  html.vn:not([data-section="admin"]) .mv3d__badge-tag { font-size: 12px; }
  html.vn:not([data-section="admin"]) .mv3d__panel {
    left: 0; right: 0; bottom: 0; padding: 8px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    background: linear-gradient(0deg, rgba(11, 10, 18, .85), transparent);
  }
  html.vn:not([data-section="admin"]) .mv3d__panel::-webkit-scrollbar { display: none; }
  html.vn:not([data-section="admin"]) .mv3d__pgroup { flex: none; }
  html.vn:not([data-section="admin"]) .mv3d__pbtn { flex: none; height: 40px; white-space: nowrap; }
  html.vn:not([data-section="admin"]) .mv3d__pbtn--icon { width: 40px; min-width: 40px; }
  html.vn:not([data-section="admin"]) .mv3d__edit { top: 12px; right: 12px; }
}
/* Фари / поворотники увімкнені — «ніч»: сцена темніша, світіння видно краще */
html.vn:not([data-section="admin"]) .mv3d.is-night { background: radial-gradient(60% 55% at 50% 60%, rgba(46, 230, 214, .06), transparent 70%), #05040A; }
html.vn:not([data-section="admin"]) .mv3d__pbtn--light.is-on { border-color: var(--vn-yellow); background: #3A3214; color: var(--vn-yellow); }
/* Сцена (buildStage): захід сонця за силуетами; вночі — темно-синє небо */
html.vn:not([data-section="admin"]) .mv3d.has-stage { background: linear-gradient(180deg, #1B0E33 0%, #4A1D5C 42%, #B8456B 72%, #FF8A4F 100%); }
html.vn:not([data-section="admin"]) .mv3d.has-stage.is-night { background: linear-gradient(180deg, #05040C 0%, #0D0B24 55%, #2A1438 100%); }
html.vn:not([data-section="admin"]) .mv3d__loading {
  background: radial-gradient(60% 55% at 50% 50%, rgba(185, 140, 255, .14), transparent 70%), linear-gradient(180deg, #1B1030, #0B0A12);
}

/* vn-item.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3c: картка предмета (docs/redesign/prototype/ItemB.dc.html).
   .itemp/.ip-* — спільні з карткою транспорту (public/css/vn-vehicle.css) й уже рескінені там.
   Тут лише своє: --rc (колір рамки фото) за реальною рідкістю (lib/web/routes/items.rb,
   ITEM_RARITY_TOKEN — рангове зіставлення з tokens.css, не вигадані кольори).

   «Лавки» (ціни гравців, market_listings/market_price_history) сюди НЕ увійшли: ці таблиці свідомо
   видалені з сайту й Telegram-бота (db/migrations/064_drop_market_price_tracking.rb) — фічу прибрали,
   а не просто ще не наповнили. Дані для цінника предметів наразі немає.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .ip-hero[data-rarity="common"]    { --rc: var(--vn-common); }
html.vn:not([data-section="admin"]) .ip-hero[data-rarity="rare"]      { --rc: var(--vn-rare); }
html.vn:not([data-section="admin"]) .ip-hero[data-rarity="epic"]      { --rc: var(--vn-epic); }
html.vn:not([data-section="admin"]) .ip-hero[data-rarity="legendary"] { --rc: var(--vn-named); }
html.vn:not([data-section="admin"]) .ip-hero[data-rarity="mythic"]    { --rc: var(--vn-legendary); }

/* ──────────────────────────────────────────────────────────────────────────
   Сторінка предмета як у прототипі ItemB (views/item.erb, гілка @design_b): .ivp-*
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .itemp { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; padding-bottom: 80px; }
html.vn .ivp-warn { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 226, 122, .07); border: 1px solid rgba(255, 226, 122, .3); margin-bottom: -12px; }
html.vn .ivp-warn__i { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #FFE27A; color: #14061A; font-weight: 900; }
html.vn .ivp-warn__t { flex: 1 1 260px; font-size: 14px; color: #F3E6B0; }

html.vn .ivp-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
html.vn .ivp-card-w { flex: 0 1 440px; min-width: 0; perspective: 900px; animation: bIn 1s cubic-bezier(.2, .8, .2, 1) both; }
html.vn .ivp-card { --cc: #2EE6D6; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; display: block; width: 100%; height: 520px; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  border: 8px solid #F3F1F8; border-radius: 8px; overflow: hidden; cursor: zoom-in;
  background: linear-gradient(165deg, var(--cc) 0%, #3B2A8C 62%, #14061A 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s ease-out; }
html.vn div.ivp-card, html.vn .ivp-card:disabled { cursor: default; }
html.vn .ivp-card:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 4px; }
html.vn .ivp-card__glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(300px circle at var(--gx) var(--gy), rgba(255, 255, 255, .25), transparent 60%); }
html.vn .ivp-card__spark { position: absolute; width: 8px; height: 8px; background: #F3F1F8; pointer-events: none;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: ivpSpark 3s ease-in-out infinite; }
@keyframes ivpSpark { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
html.vn .ivp-card__top { position: absolute; left: 0; right: 0; top: 14px; padding: 0 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
html.vn .ivp-card__tag { height: 28px; max-width: 70%; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: #14061A;
  color: var(--cc); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn .ivp-card__lv { position: static; height: 28px; min-width: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: #F3F1F8; color: #14061A; font: 700 14px 'JetBrains Mono', monospace; border: 0; box-shadow: none; transition: background .3s; }
html.vn .ivp-card__lv.is-on { background: #FFE27A; color: #14061A; }
html.vn .ivp-card__art { position: absolute; inset: 60px 0 90px; display: grid; place-items: center; }
html.vn .ivp-card__art img { max-width: 78%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .55)); animation: bFloat 5s ease-in-out infinite; }
html.vn .ivp-card__ph { display: none; width: 160px; height: 160px; color: #F3F1F8; filter: drop-shadow(0 0 18px var(--cc)); }
html.vn .ivp-card.is-noimg .ivp-card__ph { display: block; }
html.vn .ivp-card.is-noimg img { display: none; }
html.vn .ivp-card__plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; background: #F3F1F8; color: #14061A; display: flex; flex-direction: column; gap: 2px; }
html.vn .ivp-card__plate b { font-family: Unbounded, sans-serif; font-weight: 900; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; text-transform: uppercase;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
html.vn .ivp-card__plate small { font: 600 12px 'JetBrains Mono', monospace; color: #4E4762; text-transform: uppercase; }

html.vn .ivp-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; animation: bFade .7s ease both; }
html.vn .ivp-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
html.vn .ivp-top__name { min-width: 0; }
html.vn .ivp-h1 { margin: 0; font-family: Unbounded, sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 4.4vw, 60px);
  line-height: .98; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; overflow-wrap: anywhere; }
html.vn .ivp-h1 .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn .ivp-hue { background: linear-gradient(90deg, #2EE6D6, #FF4FA3, #FF9F45, #2EE6D6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .ivp-body .vo-fresh__dot.is-warn { background: #FFE27A; }
html.vn .ivp-orig { color: #A39FB5; font-size: 14px; margin-top: 6px; }
html.vn .ivp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
html.vn .ivp-fav, html.vn .ivp-edit { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px;
  font: 800 14px Manrope, sans-serif; cursor: pointer; text-decoration: none; }
html.vn .ivp-fav { border: 0; background: #F3F1F8; color: #14061A; fill: none; }
html.vn .ivp-fav[aria-pressed="true"] { background: #FFE27A; }
html.vn .ivp-fav[aria-pressed="true"] svg { fill: currentColor; }
html.vn .ivp-edit { border: 1px solid rgba(46, 230, 214, .45); background: rgba(46, 230, 214, .08); color: #2EE6D6; }
html.vn .ivp-fav:focus-visible, html.vn .ivp-edit:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 3px; }

html.vn .ivp-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: rgba(255, 226, 122, .06); border: 1px dashed rgba(255, 226, 122, .4); }
html.vn .ivp-note:focus-within { outline: 3px solid #2EE6D6; outline-offset: 2px; }
html.vn .ivp-note svg { flex: none; }
html.vn .ivp-note input { flex: 1; min-width: 0; height: 34px; border: 0; background: none; outline: none; color: #FFF0B8; font: 600 15px Manrope, sans-serif; }
html.vn .ivp-note input::placeholder { color: #A39FB5; opacity: 1; }

html.vn .ivp-stats, html.vn .ivp-sharp { padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 16px; }
html.vn .ivp-st { --c: #2EE6D6; display: flex; flex-direction: column; gap: 6px; padding: 0; background: none; border: 0; min-height: 0; }
html.vn .ivp-st[data-tone="def"] { --c: #2EE6D6; }
html.vn .ivp-st[data-tone="arm"] { --c: #B98CFF; }
html.vn .ivp-st[data-tone="dmg"] { --c: #FF5A7A; }
html.vn .ivp-st[data-tone="stun"] { --c: #FFE27A; }
html.vn .ivp-st__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
html.vn .ivp-st__k { font-weight: 700; font-size: 14px; color: #A39FB5; }
html.vn .ivp-st__v { font: 700 18px 'JetBrains Mono', monospace; white-space: nowrap; }
html.vn .ivp-st__v small { font-size: 12px; color: #A39FB5; margin-left: 3px; }
html.vn .ivp-st [data-d] { font-size: 12px; color: #2EE6D6; margin-left: 6px; }
html.vn .ivp-st [data-d]:empty { display: none; }
html.vn .ivp-st__bar { position: relative; display: block; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn .ivp-st__up, html.vn .ivp-st__base { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; transition: width .35s ease; }
html.vn .ivp-st__up { background: linear-gradient(90deg, #FF4FA3, #FF9F45); box-shadow: 0 0 12px rgba(255, 79, 163, .5); }
html.vn .ivp-st__base { background: var(--c); }
html.vn .ivp-legend { display: flex; gap: 16px; font-size: 12px; color: #A39FB5; flex-wrap: wrap; }
html.vn .ivp-legend span { display: inline-flex; align-items: center; gap: 6px; }
html.vn .ivp-legend i { width: 10px; height: 10px; border-radius: 3px; }
html.vn .ivp-legend__b { background: #2EE6D6; }
html.vn .ivp-legend__u { background: linear-gradient(90deg, #FF4FA3, #FF9F45); }

html.vn .ivp-sharp { padding: 18px 22px; gap: 12px; }
html.vn .ivp-sharp__l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
html.vn .ivp-sharp__l b { font-family: Unbounded, sans-serif; font-weight: 900; font-size: 20px; color: #FF4FA3; }
html.vn .ivp-sharp__l small, html.vn .ivp-sharp__note { color: #A39FB5; font-weight: 600; font-size: 13px; }
html.vn .ivp-sharp input[type="range"] { width: 100%; min-height: 24px; accent-color: #FF4FA3; }
html.vn .ivp-sharp input[type="range"]:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 3px; border-radius: 6px; }

html.vn .ivp-flags { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn .ivp-flag { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, .06); color: #F3F1F8; }
html.vn .ivp-flag--ok { background: rgba(46, 230, 214, .12); color: #2EE6D6; }
html.vn .ivp-flag--off { background: rgba(255, 90, 122, .12); color: #FF5A7A; }

html.vn .ivp-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
html.vn .ivp-sec-h h2, html.vn .ivp-how__h { margin: 0; font: 800 22px Unbounded, sans-serif; text-transform: uppercase; }
html.vn .ivp-3d { display: flex; flex-direction: column; gap: 12px; }
html.vn .ivp-3d .mv3d { border: 8px solid #F3F1F8; border-radius: 10px; overflow: hidden; min-height: 360px; }

html.vn .ivp-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
html.vn .ivp-info > :only-child { grid-column: 1 / -1; }
html.vn .ivp-desc, html.vn .ivp-how { padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.vn .ivp-gd { color: #F3F1F8; font-size: 15px; line-height: 1.6; }
html.vn .ivp-raw-t { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #F3F1F8; font: 700 13px Manrope, sans-serif; cursor: pointer; }
html.vn .ivp-desc .ip-raw { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 13px/1.5 'JetBrains Mono', monospace; color: #A39FB5; }
html.vn .ivp-src { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); color: #F3F1F8; text-decoration: none; min-height: 48px; }
html.vn a.ivp-src:hover { border-color: rgba(46, 230, 214, .45); }
html.vn a.ivp-src:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
html.vn .ivp-src__ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #14061A; background: linear-gradient(135deg, #2EE6D6, #B98CFF); }
html.vn .ivp-src--craft .ivp-src__ic { background: linear-gradient(135deg, #FF9F45, #FFE27A); }
html.vn .ivp-src--case .ivp-src__ic { background: linear-gradient(135deg, #FF4FA3, #FF9F45); }
html.vn .ivp-src__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.vn .ivp-src__t b { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
html.vn .ivp-src__t > span { font-size: 13px; color: #A39FB5; }
html.vn .ivp-src__go { font-weight: 900; color: #2EE6D6; }
html.vn .ivp-src.is-ended { opacity: .8; }

@media (max-width: 900px) { html.vn .ivp-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .itemp { gap: 24px; padding-top: 16px; }
  html.vn .ivp-hero { gap: 24px; }
  html.vn .ivp-card-w { flex-basis: 100%; }
  html.vn .ivp-card { height: 420px; }
  html.vn .ivp-card__plate b { font-size: 18px; }
  html.vn .ivp-body { flex-basis: 100%; }
  html.vn .ivp-stats, html.vn .ivp-desc, html.vn .ivp-how { padding: 16px; border-radius: 20px; }
  html.vn .ivp-fav, html.vn .ivp-edit { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn .ivp-card-w, html.vn .ivp-body, html.vn .ivp-h1 .b-rise, html.vn .ivp-hue, html.vn .ivp-card__spark, html.vn .ivp-card__art img { animation: none; }
  html.vn .ivp-card { transition: none; }
}
html.vn .ivp-st [data-d].is-bad { color: #FF5A7A; }

/* vn-online.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 3d: онлайн серверів / сторінка сервера / аналітика
   (docs/redesign/prototype/OnlineB.dc.html, ServerB.dc.html, AnalyticsB.dc.html).

   Нова розмітка (.vo-*) поруч зі старою (views/online.erb, views/_online_group_vn.erb
   та ін. під @design_b) — дані й поведінка (favourites/watch/live-update/Chart.js) ті самі,
   що в старому дизайні, лише новий вигляд. Елементи, які потрібні JS (public/js/catalog.js),
   лишають свої оригінальні класи/id/data-атрибути поруч із новими .vo-* — див. коментарі
   в самих шаблонах.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .vo-page { font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-hero {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 8px 0 4px;
}
html.vn:not([data-section="admin"]) .vo-hero__live {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px;
  border-radius: var(--vn-radius-pill); border: 1px solid rgba(46, 230, 214, .35);
  background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .vo-hero__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vn-cyan); animation: bPulse 1.6s infinite;
}
html.vn:not([data-section="admin"]) .vo-hero__h {
  margin: 14px 0 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.6vw, 64px); line-height: .98; letter-spacing: -.03em; overflow: hidden; padding-bottom: 4px;
}
html.vn:not([data-section="admin"]) .vo-hero__sub { margin: 10px 0 0; max-width: 56ch; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-hero__fresh { display: block; margin-top: 10px; font-size: 13px; color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .vo-hero__total { text-align: right; }
html.vn:not([data-section="admin"]) .vo-hero__num {
  font: 700 clamp(34px, 4.2vw, 54px)/1 var(--vn-font-mono); letter-spacing: -.02em; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vo-hero__num-sub { margin-top: 4px; font-size: 13.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-hero__links { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* ─── Project jump nav ──────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-jump {
  position: sticky; top: 86px; z-index: 15; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px; border-radius: 20px; background: rgba(20, 18, 32, .85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .vo-jump__n { font: 700 11px var(--vn-font-mono); opacity: .7; }

/* ─── Project totals (summary cards) ───────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .vo-summary__card { padding: 16px; gap: 8px; }
html.vn:not([data-section="admin"]) .vo-summary__card--on { border-color: var(--vn-pink) !important; box-shadow: 0 0 0 2px rgba(255, 79, 163, .3); }
html.vn:not([data-section="admin"]) .vo-summary__title { font-weight: 800; font-size: 13.5px; }
html.vn:not([data-section="admin"]) .vo-summary__nums { font: 700 22px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vo-summary__meta { font-size: 12.5px; color: var(--vn-muted); }

/* ─── Favourites ────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-fav {
  padding: 20px; border-radius: var(--vn-radius-section);
  background: linear-gradient(135deg, rgba(255, 79, 163, .12), rgba(46, 230, 214, .06));
  border: 1px solid rgba(255, 79, 163, .3);
}
html.vn:not([data-section="admin"]) .vo-fav__head { margin-bottom: 14px; }
html.vn:not([data-section="admin"]) .vo-fav__title {
  display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--vn-font-display);
  font-weight: 800; text-transform: uppercase; font-size: 18px; color: var(--vn-pink-soft);
}
html.vn:not([data-section="admin"]) .vo-fav__title .group__icon--fav { fill: var(--vn-pink); }

/* ─── Toolbar ───────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-toolbar {
  position: sticky; top: 86px; z-index: 15; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px; border-radius: 20px; background: rgba(20, 18, 32, .85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .vo-search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--vn-radius-pill); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .vo-search__input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--vn-text); font: 600 14px var(--vn-font-body);
}
html.vn:not([data-section="admin"]) .vo-search__input::placeholder { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-select {
  height: 42px; padding: 0 14px; border-radius: var(--vn-radius-pill); background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .14); color: var(--vn-text); font: 700 13px var(--vn-font-body);
}

/* ─── Test/inactive disclosure ──────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-test { margin-top: 8px; }
html.vn:not([data-section="admin"]) .vo-test__summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--vn-muted); font-weight: 700; font-size: 13.5px;
}
html.vn:not([data-section="admin"]) .vo-test__count {
  display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center;
  border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .08); font: 700 12px var(--vn-font-mono);
}
html.vn:not([data-section="admin"]) .vo-test__body { margin-top: 12px; display: flex; flex-direction: column; gap: 18px; }

/* ─── Project section header ────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 170px; margin-top: 10px; }
html.vn:not([data-section="admin"]) .vo-group__head { display: flex; align-items: center; gap: 14px; }
html.vn:not([data-section="admin"]) .vo-group__ab {
  width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center;
  color: var(--vn-ink); font-family: var(--vn-font-display); font-weight: 900; font-size: 15px;
}
html.vn:not([data-section="admin"]) .vo-group__t { display: flex; flex-direction: column; min-width: 0; }
html.vn:not([data-section="admin"]) .vo-group__name {
  font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: -.01em;
}
html.vn:not([data-section="admin"]) .vo-group__meta { font-size: 13px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-group__sum { margin-left: auto; font: 700 18px var(--vn-font-mono); flex: none; }

/* ─── Card grid ─────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ─── Server card ───────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-card {
  position: relative; border-radius: var(--vn-radius-card); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden;
  transition: transform .3s var(--vn-ease), border-color .3s, box-shadow .3s;
}
@media (hover: hover) {
  html.vn:not([data-section="admin"]) .vo-card:hover {
    transform: translateY(-4px); border-color: rgba(255, 79, 163, .45); box-shadow: 0 16px 40px rgba(255, 79, 163, .14);
  }
}
html.vn:not([data-section="admin"]) .vo-card__photo { position: relative; display: block; height: 78px; overflow: hidden; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vo-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.vn:not([data-section="admin"]) .vo-card__photo--empty { display: grid; place-items: center; }
html.vn:not([data-section="admin"]) .vo-card__photo--empty svg { width: 28px; height: 28px; opacity: .55; }
html.vn:not([data-section="admin"]) .vo-card__num {
  position: absolute; left: 10px; top: 8px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center;
  border-radius: var(--vn-radius-pill); background: rgba(11, 10, 18, .7); font: 700 11px var(--vn-font-mono); color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vo-card__fav {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(11, 10, 18, .6); color: var(--vn-text); display: grid; place-items: center; padding: 0;
}
html.vn:not([data-section="admin"]) .vo-card__fav.fav-btn--on { border-color: var(--vn-pink); background: var(--vn-pink); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .vo-card__fav svg { fill: none; }
html.vn:not([data-section="admin"]) .vo-card__fav.fav-btn--on svg { fill: currentColor; }

html.vn:not([data-section="admin"]) .vo-card__body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .vo-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html.vn:not([data-section="admin"]) .vo-card__name {
  font-family: var(--vn-font-display); font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; color: var(--vn-text);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.vn:not([data-section="admin"]) .vo-card__name:hover { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vo-card__badges { display: flex; flex-wrap: wrap; gap: 4px; flex: none; }
html.vn:not([data-section="admin"]) .vo-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--vn-radius-pill);
  font-size: 10.5px; font-weight: 800; white-space: nowrap;
}
html.vn:not([data-section="admin"]) .vo-badge--rec { background: rgba(255, 226, 122, .18); color: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .vo-badge--donate { background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vo-badge--xp { background: rgba(46, 230, 214, .16); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vo-badge--lock { background: rgba(255, 255, 255, .08); color: var(--vn-muted); }

html.vn:not([data-section="admin"]) .vo-card__stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
html.vn:not([data-section="admin"]) .vo-card__nums { font: 700 20px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vo-online { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vo-card__sep { font-size: 12px; color: var(--vn-muted); margin: 0 1px; }
html.vn:not([data-section="admin"]) .vo-card__max { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-card__pct { font: 700 12px var(--vn-font-mono); color: var(--vn-muted); }

html.vn:not([data-section="admin"]) .vo-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .vo-bar__fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--vn-cyan), var(--vn-pink)); transition: width .8s var(--vn-ease); }
html.vn:not([data-section="admin"]) .vo-bar__fill.load--medium { background: linear-gradient(90deg, var(--vn-yellow), var(--vn-orange)); }
html.vn:not([data-section="admin"]) .vo-bar__fill.load--high { background: linear-gradient(90deg, var(--vn-orange), var(--vn-pink)); }

html.vn:not([data-section="admin"]) .vo-card__chart { height: 46px; margin: 2px 0; }
html.vn:not([data-section="admin"]) .vo-card__chart canvas { width: 100%; height: 100%; display: block; }

html.vn:not([data-section="admin"]) .vo-card__foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .vo-status {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--vn-radius-pill);
  font-size: 11px; font-weight: 800; background: rgba(46, 230, 214, .12); color: var(--vn-cyan);
}
html.vn:not([data-section="admin"]) .vo-status.load--medium { background: rgba(255, 226, 122, .14); color: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .vo-status.load--high { background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vo-queue {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--vn-radius-pill);
  background: rgba(255, 159, 69, .14); color: var(--vn-orange); font-size: 11px; font-weight: 800; visibility: hidden;
}
html.vn:not([data-section="admin"]) .vo-queue.queue-badge--visible { visibility: visible; }
html.vn:not([data-section="admin"]) .vo-queue strong { font-size: 11px; }
html.vn:not([data-section="admin"]) .vo-icon-btn {
  width: 30px; height: 30px; margin-left: auto; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); color: var(--vn-muted); display: grid; place-items: center; text-decoration: none;
}
html.vn:not([data-section="admin"]) .vo-icon-btn + .vo-icon-btn { margin-left: 0; }
html.vn:not([data-section="admin"]) .vo-icon-btn:hover { color: var(--vn-text); border-color: rgba(255, 255, 255, .3); }
html.vn:not([data-section="admin"]) .vo-icon-btn.watch-btn.is-set { border-color: var(--vn-cyan); color: var(--vn-cyan); background: rgba(46, 230, 214, .12); }

/* ─── Server page (views/online_server.erb) ──────────────────────────────── */
html.vn:not([data-section="admin"]) .vo-server-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
html.vn:not([data-section="admin"]) .vo-server-hero__photo {
  position: relative; flex: 1 1 420px; min-width: 260px; height: 220px; border-radius: var(--vn-radius-card);
  overflow: hidden; display: flex; align-items: flex-end; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vo-server-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html.vn:not([data-section="admin"]) .vo-server-hero__photo--empty { align-items: center; justify-content: center; }
html.vn:not([data-section="admin"]) .vo-server-hero__photo--empty svg { width: 40px; height: 40px; opacity: .5; }
html.vn:not([data-section="admin"]) .vo-server-hero__name {
  position: relative; z-index: 1; margin: 0; padding: 16px; font-family: var(--vn-font-display);
  font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 4vw, 48px); line-height: .95;
  letter-spacing: -.03em; text-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}
html.vn:not([data-section="admin"]) .vo-server-hero__info { flex: 1 1 320px; min-width: 260px; display: flex; flex-direction: column; gap: 16px; }
html.vn:not([data-section="admin"]) .vo-server-hero__top { display: flex; align-items: center; gap: 20px; }
html.vn:not([data-section="admin"]) .vo-donut { width: 100px; height: 100px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: background .8s; }
html.vn:not([data-section="admin"]) .vo-donut__hole {
  width: 80px; height: 80px; border-radius: 50%; background: var(--vn-bg); display: grid; place-items: center; text-align: center;
}
html.vn:not([data-section="admin"]) .vo-donut__hole span { font: 700 19px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vo-donut__hole small { display: block; margin-top: 3px; font: 600 10.5px var(--vn-font-body); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-server-hero__nums { font: 700 32px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vo-server-hero__nums small { font-size: 15px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-server-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
html.vn:not([data-section="admin"]) .vo-how { margin: 0; padding: 14px 16px 14px 34px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 6px; }

html.vn:not([data-section="admin"]) .vo-birthday {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--vn-radius-section);
  background: rgba(255, 255, 255, .03); border: 1px dashed rgba(255, 255, 255, .14); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .vo-birthday__ic { font-size: 22px; opacity: .6; }
html.vn:not([data-section="admin"]) .vo-birthday b { display: block; color: var(--vn-text); font-weight: 800; }
html.vn:not([data-section="admin"]) .vo-birthday span { font-size: 13.5px; }

html.vn:not([data-section="admin"]) .vo-card {
  padding: 20px; border-radius: var(--vn-radius-section); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .vo-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
html.vn:not([data-section="admin"]) .vo-card-head h2 {
  margin: 0; font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase; font-size: 16px;
}
html.vn:not([data-section="admin"]) .vo-pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .vo-chart-wrap { position: relative; height: 260px; }
html.vn:not([data-section="admin"]) .vo-heat-best { font-size: 13px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-heat-best b { color: var(--vn-cyan); }

html.vn:not([data-section="admin"]) .vo-split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
html.vn:not([data-section="admin"]) .vo-heat-card { flex: 2 1 560px; min-width: 0; }
html.vn:not([data-section="admin"]) .vo-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
html.vn:not([data-section="admin"]) .vo-heatmap-scroll { overflow-x: auto; }
html.vn:not([data-section="admin"]) .vo-heatmap { display: grid; gap: 3px; min-width: 0; }
html.vn:not([data-section="admin"]) .vo-heatmap__hl,
html.vn:not([data-section="admin"]) .vo-heatmap__dl { font: 500 11px var(--vn-font-mono); color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .vo-heatmap__dl { text-align: left; }
html.vn:not([data-section="admin"]) .vo-heatmap__cell { height: 20px; border-radius: 4px; }

html.vn:not([data-section="admin"]) .vo-stat-list { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 8px; }
html.vn:not([data-section="admin"]) .vo-stat-list dt { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .vo-stat-list dd { margin: 0; font: 700 15px var(--vn-font-mono); text-align: right; }
html.vn:not([data-section="admin"]) .vo-muted { color: var(--vn-muted); font-size: 13.5px; margin: 0; }
html.vn:not([data-section="admin"]) .vo-alt-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; gap: 10px; align-items: center; padding: 8px 6px; text-decoration: none; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .vo-alt-row__free { font: 700 12px var(--vn-font-mono); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .b-chip[aria-checked="true"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft);
}

/* ─── Analytics page (views/online_analytics.erb) ──────────────────────────── */
html.vn:not([data-section="admin"]) .vo-trio { display: flex; flex-wrap: wrap; gap: 14px; }
html.vn:not([data-section="admin"]) .vo-trio > .vo-card { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .vo-chance { font: 900 clamp(22px, 2.6vw, 30px) var(--vn-font-display); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .vo-chance--high { color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .vo-chance--medium { color: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .vo-chance--low { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .vo-stat-pill {
  font-size: 12px; font-weight: 700; color: var(--vn-muted); background: rgba(255, 255, 255, .05);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
html.vn:not([data-section="admin"]) .vo-heatmap__cell--now { outline: 2px solid var(--vn-text); outline-offset: -2px; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vo-hero { align-items: flex-start; }
  html.vn:not([data-section="admin"]) .vo-hero__total { text-align: left; }
  html.vn:not([data-section="admin"]) .vo-hero__links { justify-content: flex-start; }
  html.vn:not([data-section="admin"]) .vo-jump,
  html.vn:not([data-section="admin"]) .vo-toolbar { position: static; }
  html.vn:not([data-section="admin"]) .vo-grid { grid-template-columns: minmax(0, 1fr); }
  html.vn:not([data-section="admin"]) .vo-heatmap__cell,
  html.vn:not([data-section="admin"]) .vo-heatmap__hl { height: 16px; font-size: 0; }
}

/* ─── /online за прототипом OnlineB.dc.html (шапка, «Обране», панель, секції, картки, список, жести) ─── */
html.vn:not([data-section="admin"]) .vo-page { display: flex; flex-direction: column; gap: 34px; min-width: 0; max-width: 100%; }
html.vn:not([data-section="admin"]) .vo-page > * { min-width: 0; }
html.vn:not([data-section="admin"]) .vo-hint { display: none; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px;
  background: rgba(46, 230, 214, .07); border: 1px dashed rgba(46, 230, 214, .35); font-size: 12.5px; color: #CFCBDD; }
html.vn:not([data-section="admin"]) .vo-hero__h { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.04em; padding-bottom: 6px; }
html.vn:not([data-section="admin"]) .vo-hero__hue { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #FF4FA3); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
@keyframes bHue { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
html.vn:not([data-section="admin"]) .vo-hero__num { font-size: clamp(40px, 5vw, 64px); letter-spacing: -.03em; }
html.vn:not([data-section="admin"]) .vo-hero__num-sub { font-size: 14px; }
html.vn:not([data-section="admin"]) .vo-fresh { position: relative; margin-top: 12px; max-width: 520px; }
html.vn:not([data-section="admin"]) .vo-fresh summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 700; color: #F3F1F8; }
html.vn:not([data-section="admin"]) .vo-fresh summary::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) .vo-fresh__dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6D6; }
html.vn:not([data-section="admin"]) .vo-fresh__pop { margin-top: 8px; padding: 14px 16px; border-radius: 18px; background: #17121F; border: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
html.vn:not([data-section="admin"]) .vo-fresh__note { color: #A39FB5; }

/* «Обране» */
html.vn:not([data-section="admin"]) .vo-fav { padding: 22px; border-radius: 28px; display: flex; flex-direction: column; gap: 16px; }
html.vn:not([data-section="admin"]) .vo-fav__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
html.vn:not([data-section="admin"]) .vo-fav__title { font-size: 20px; color: #F3F1F8; }
html.vn:not([data-section="admin"]) .vo-fav__n { font: 700 13px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-fav__hint { margin-left: auto; font-size: 13px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-fav__empty { margin: 0; padding: 26px; border-radius: 20px; border: 1px dashed rgba(255, 255, 255, .2); text-align: center; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-fav__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .vo-fav__grid:empty { display: none; }
html.vn:not([data-section="admin"]) .vo-favc { padding: 14px 16px; border-radius: 20px; background: rgba(11, 10, 18, .7); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 10px; }
html.vn:not([data-section="admin"]) .vo-favc__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
html.vn:not([data-section="admin"]) .vo-favc__sq { width: 10px; height: 10px; border-radius: 3px; flex: none; }
html.vn:not([data-section="admin"]) .vo-favc__t { font-family: var(--vn-font-display); font-weight: 800; font-size: 16px; color: #F3F1F8; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .vo-favc__p { font-size: 12px; color: #A39FB5; white-space: nowrap; }
html.vn:not([data-section="admin"]) .vo-favc__btns { margin-left: auto; display: flex; gap: 4px; flex: none; }
html.vn:not([data-section="admin"]) .vo-favc__btns .vo-icon-btn { margin: 0; width: 32px; height: 32px; }
html.vn:not([data-section="admin"]) .vo-favc__x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); background: none; color: #A39FB5; padding: 0; cursor: pointer; }
html.vn:not([data-section="admin"]) .vo-favc__mid { display: flex; align-items: baseline; justify-content: space-between; }
html.vn:not([data-section="admin"]) .vo-favc__o { font: 700 24px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .vo-favc__o small { font-size: 12px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-favc__st { font-size: 12px; font-weight: 800; color: #2EE6D6; }
html.vn:not([data-section="admin"]) .vo-favc.is-queue .vo-favc__st, html.vn:not([data-section="admin"]) .vo-favc.is-full .vo-favc__st { color: #FF9F45; }
html.vn:not([data-section="admin"]) .vo-favc__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .vo-favc__bar div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2EE6D6, #FF4FA3); transition: width .8s; }
html.vn:not([data-section="admin"]) .vo-favc.is-queue .vo-favc__bar div, html.vn:not([data-section="admin"]) .vo-favc.is-full .vo-favc__bar div { background: linear-gradient(90deg, #FF9F45, #FF4FA3); }

/* Закріплена панель */
html.vn:not([data-section="admin"]) .vo-bar-sticky { border-radius: 22px; z-index: 20; }
html.vn:not([data-section="admin"]) .vo-bar-sticky .vo-jump { position: static; padding: 0; border: 0; background: none; backdrop-filter: none; gap: 6px; }
html.vn:not([data-section="admin"]) .vo-jump__a { gap: 8px; }
html.vn:not([data-section="admin"]) .vo-jump__dot { width: 8px; height: 8px; border-radius: 2px; }
html.vn:not([data-section="admin"]) .vo-toolbar__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .vo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .vo-chip-link { text-decoration: none; font-weight: 800; }
html.vn:not([data-section="admin"]) .vo-chip-link--cyan { border-color: rgba(46, 230, 214, .4); color: #2EE6D6; }
html.vn:not([data-section="admin"]) .vo-chip-link--violet { border-color: rgba(185, 140, 255, .4); color: #B98CFF; }
html.vn:not([data-section="admin"]) .vo-bar-sticky .vo-search { margin-left: auto; flex: 0 1 220px; min-width: 180px; height: 38px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .vo-view { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .vo-view button { width: 36px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: #A39FB5; display: grid; place-items: center; cursor: pointer; padding: 0; }
html.vn:not([data-section="admin"]) .vo-view button[aria-checked="true"] { background: #FF4FA3; color: #14061A; }

/* Секції проєктів */
html.vn:not([data-section="admin"]) .vo-group { margin-top: 0; }
html.vn:not([data-section="admin"]) .vo-group__head { width: 100%; padding: 0; border: 0; background: none; color: #F3F1F8; text-align: left; cursor: pointer; font: inherit; }
html.vn:not([data-section="admin"]) .vo-group__ab { background: var(--pc); color: #14061A; }
html.vn:not([data-section="admin"]) .vo-group__name { font-size: 22px; letter-spacing: -.02em; }
html.vn:not([data-section="admin"]) .vo-group__sum { display: flex; align-items: center; gap: 12px; }
html.vn:not([data-section="admin"]) .vo-group__chev { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; transition: transform .25s; }
html.vn:not([data-section="admin"]) .vo-group.is-closed .vo-group__chev { transform: rotate(-90deg); }
html.vn:not([data-section="admin"]) .vo-group.is-closed .vo-group__body { display: none; }
html.vn:not([data-section="admin"]) .vo-group__line { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--pc), transparent); }
html.vn:not([data-section="admin"]) .vo-group__body { display: flex; flex-direction: column; gap: 12px; }
html.vn:not([data-section="admin"]) .vo-group__empty { margin: 0; padding: 18px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .16); color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-group__more { align-self: center; height: 42px; padding: 0 20px; }
html.vn:not([data-section="admin"]) .vo-group__more[hidden], html.vn:not([data-section="admin"]) .vo-card[hidden] { display: none; }
html.vn:not([data-section="admin"]) .vo-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Картка */
html.vn:not([data-section="admin"]) .vo-card { border-radius: 22px; }
html.vn:not([data-section="admin"]) .vo-card__photo { height: 78px; }
html.vn:not([data-section="admin"]) .vo-card__sun { position: absolute; top: 14px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, #FFE27A, #FF7A6B); animation: voDrift 10s ease-in-out infinite alternate; }
@keyframes voDrift { to { transform: translateX(18px); } }
html.vn:not([data-section="admin"]) .vo-card__city { position: absolute; left: 0; bottom: 0; width: 100%; height: 34px; }
html.vn:not([data-section="admin"]) .vo-card__n { display: none; font: 700 12px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .vo-card__head { gap: 8px; }
html.vn:not([data-section="admin"]) .vo-card__name { flex: 1; min-width: 0; font-size: 15px; letter-spacing: -.02em; }
html.vn:not([data-section="admin"]) .vo-card__badges:empty { display: none; }
html.vn:not([data-section="admin"]) .vo-status { flex: none; gap: 6px; height: 24px; padding: 0 9px; font-size: 11.5px; }
html.vn:not([data-section="admin"]) .vo-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .vo-card__stats { align-items: flex-end; }
html.vn:not([data-section="admin"]) .vo-card__nums { font-size: 22px; }
html.vn:not([data-section="admin"]) .vo-card__pct { display: none; }
html.vn:not([data-section="admin"]) .vo-card__chart { width: 80px; height: 26px; margin: 0; flex: none; }
html.vn:not([data-section="admin"]) .vo-card__barrow { display: flex; align-items: center; gap: 10px; }
html.vn:not([data-section="admin"]) .vo-card__barrow .vo-bar { flex: 1; }
html.vn:not([data-section="admin"]) .vo-card__fav { position: static; width: 34px; height: 34px; flex: none; background: transparent; border-color: rgba(255, 255, 255, .14); cursor: pointer; }
html.vn:not([data-section="admin"]) .vo-card__foot .vo-queue { visibility: visible; }
html.vn:not([data-section="admin"]) .vo-card__foot .vo-queue:not(.queue-badge--visible) { display: none; }
html.vn:not([data-section="admin"]) .vo-card__foot .vo-icon-btn:first-of-type, html.vn:not([data-section="admin"]) .vo-card__foot .watch-btn { margin-left: auto; }
html.vn:not([data-section="admin"]) .vo-card__foot .watch-btn + .vo-icon-btn { margin-left: 0; }

/* Вигляд «Список» */
html.vn:not([data-section="admin"]) .vo-list .vo-grid { display: flex; flex-direction: column; gap: 0; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .vo-list .vo-card { border: 0; background: none; border-radius: 14px; transform: none; box-shadow: none; }
html.vn:not([data-section="admin"]) .vo-list .vo-card:hover { background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .vo-list .vo-card__photo, html.vn:not([data-section="admin"]) .vo-list .vo-card__chart,
html.vn:not([data-section="admin"]) .vo-list .vo-card__badges, html.vn:not([data-section="admin"]) .vo-list .vo-card__foot { display: none; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__body { display: grid; grid-template-columns: minmax(0, 1fr) 150px 100px; gap: 12px; align-items: center; padding: 10px 12px; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__n { display: inline; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__head { order: 1; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__barrow { order: 2; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__stats { order: 3; justify-content: flex-end; }
html.vn:not([data-section="admin"]) .vo-list .vo-card__nums { font-size: 14px; }

/* Жести на телефоні */
.vo-ptr { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 60; display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px;
  border-radius: 999px; background: #14061A; border: 1px solid rgba(255, 255, 255, .2); color: #F3F1F8; font: 800 13px var(--vn-font-body, sans-serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.vo-ptr.is-on { display: flex; }
.vo-ptr__ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #A39FB5; color: #14061A; }
.vo-ptr.is-ready, .vo-ptr.is-busy { border-color: #2EE6D6; }
.vo-ptr.is-ready .vo-ptr__ic, .vo-ptr.is-busy .vo-ptr__ic { background: #2EE6D6; }
.vo-ptr.is-busy .vo-ptr__ic { animation: voSpin .8s linear infinite; }
@keyframes voSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  html.vn:not([data-section="admin"]) .vo-bar-sticky .vo-search { margin-left: 0; flex: 1 1 200px; }
}
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .vo-hint { display: flex; }
  html.vn:not([data-section="admin"]) .vo-hero__total { text-align: left; }
  html.vn:not([data-section="admin"]) .vo-fav__hint { margin-left: 0; flex-basis: 100%; }
  html.vn:not([data-section="admin"]) .vo-bar-sticky { position: static; }
  html.vn:not([data-section="admin"]) .vo-bar-sticky .b-chip { min-height: 40px; }
  html.vn:not([data-section="admin"]) .vo-toolbar__sep { display: none; }
  html.vn:not([data-section="admin"]) .vo-bar-sticky .vo-jump, html.vn:not([data-section="admin"]) .vo-bar-sticky .vo-chips { flex: 1 1 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  html.vn:not([data-section="admin"]) .vo-bar-sticky .b-chip { flex: none; white-space: nowrap; }
  html.vn:not([data-section="admin"]) .vo-view button { width: 40px; height: 40px; }
  html.vn:not([data-section="admin"]) .vo-card__fav, html.vn:not([data-section="admin"]) .vo-favc__x, html.vn:not([data-section="admin"]) .vo-favc__btns .vo-icon-btn { width: 40px; height: 40px; }
  html.vn:not([data-section="admin"]) .vo-list .vo-card__body { grid-template-columns: minmax(0, 1fr) 80px; }
  html.vn:not([data-section="admin"]) .vo-list .vo-card__barrow .vo-bar { display: none; }
  html.vn:not([data-section="admin"]) .vo-list .vo-card__barrow { order: 4; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .vo-hero__hue, html.vn:not([data-section="admin"]) .vo-card__sun, html.vn:not([data-section="admin"]) .vo-status::before { animation: none; }
}
html.vn:not([data-section="admin"]) .vo-reset { text-decoration: none; font-weight: 800; border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .vo-reset:hover { background: rgba(255, 79, 163, .28); }

/* vn-passes.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: пропуски (/passes, /passes/:slug, /passes/:slug/tasks)
   за docs/redesign/prototype/PassB.dc.html.

   Розмітку малює той самий public/js/passes.js (реальні дані з routes/passes.rb, фільтри,
   пошук, перехід до рівня) — тут лише новий вигляд: старі змінні (--card, --primary, --prem,
   --pc-*, --req-* …) перевизначено токенами Vice Neon у межах .passes-page, а трек нагород
   перебудовано з таблиці «рівень | звичайна | преміум» на колонки рівнів, що переносяться
   рядками, як у прототипі (без горизонтального скролу). Чого в прототипі є, а в даних немає
   (XP за рівень/завдання, «ціль», прогрес гравця) — не додано: сайт не бачить прогресу в грі.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .passes-page {
  --card: rgba(255, 255, 255, .035);
  --surface: var(--vn-surface);
  --surface-2: var(--vn-surface-2);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --faint: var(--vn-muted-2);
  --primary: var(--vn-pink);
  --primary-soft: rgba(255, 79, 163, .16);
  --on-primary: var(--vn-ink);
  --accent-line: var(--vn-pink);
  --accent-strong: var(--vn-pink-soft);
  --good: var(--vn-cyan);
  --live: var(--vn-cyan);
  --warn: var(--vn-yellow);
  --warn-bg: rgba(255, 226, 122, .08);
  --bp: var(--vn-pink);
  --ev: var(--vn-cyan);
  --prem: var(--vn-orange);
  --prem-soft: rgba(255, 159, 69, .07);
  --prem-line: rgba(255, 159, 69, .3);
  --pc-1: var(--vn-pink);
  --pc-2: var(--vn-purple);
  --pc-3: var(--vn-cyan);
  --pc-4: var(--vn-yellow);
  --pc-5: var(--vn-orange);
  --pc-6: var(--vn-pink-soft);
  --pc-7: var(--vn-red);
  --pc-other: var(--vn-muted);
  --req-lvl: var(--vn-purple);
  --req-car: var(--vn-cyan);
  --req-roul: var(--vn-yellow);
  --req-job: var(--vn-orange);
  --req-fam: var(--vn-pink-soft);
  --req-item: var(--vn-purple);
  --req-gps: var(--vn-cyan);
  --font: var(--vn-font-body);
  --f-mono: var(--vn-font-mono);
  width: 100%; box-sizing: border-box;
  gap: 24px;
  font-family: var(--vn-font-body), sans-serif;
  color: var(--vn-text);
}

/* ─── Заголовки ─────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .passes-page .page-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .passes-page .ps-sec-t {
  font-family: var(--vn-font-display); font-weight: 800; font-size: 16px; letter-spacing: 0; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .passes-page .ps-foot { font-size: 12.5px; }
html.vn:not([data-section="admin"]) .passes-page .ps-empty--card { border-radius: var(--vn-radius-card); }

/* ─── Пігулки статусу / теги / таймлайн ─────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-st {
  height: 26px; padding: 0 10px; border-color: rgba(255, 255, 255, .16); background: rgba(11, 10, 18, .7);
  font-size: 12px; font-weight: 800;
}
html.vn:not([data-section="admin"]) .passes-page .ps-st.is-live { border-color: rgba(46, 230, 214, .45); background: rgba(46, 230, 214, .1); }
html.vn:not([data-section="admin"]) .passes-page .ps-st.is-live i { animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .passes-page .ps-tg { padding: 3px 10px; border-radius: var(--vn-radius-pill); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .passes-page .ps-tg--bp { background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .passes-page .ps-tl__bar { height: 8px; background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .passes-page .ps-tl__bar span { background: var(--vn-grad-brand); }
html.vn:not([data-section="admin"]) .passes-page .ps-kind--event .ps-tl__bar span,
html.vn:not([data-section="admin"]) .passes-page .ps-kind--event.ps-ph .ps-tl__bar span { background: var(--vn-grad-cool); }
html.vn:not([data-section="admin"]) .passes-page .ps-tl__l { font-size: 12px; color: var(--vn-muted-2); }

/* ─── Список: «Зараз» і архів сезонів ───────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-nc,
html.vn:not([data-section="admin"]) .passes-page .ps-ss {
  border-radius: var(--vn-radius-card); background: var(--card); border-color: var(--border);
  transition: transform .25s var(--vn-ease), border-color .25s, box-shadow .25s;
}
html.vn:not([data-section="admin"]) .passes-page .ps-nc { padding: 20px; }
html.vn:not([data-section="admin"]) .passes-page .ps-nc__k {
  align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: var(--vn-radius-pill); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent); font-size: 12px; letter-spacing: .04em;
}
html.vn:not([data-section="admin"]) .passes-page .ps-nc h3 { font-family: var(--vn-font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; }
html.vn:not([data-section="admin"]) .passes-page .ps-nc__a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--vn-radius-pill);
  background: var(--vn-grad-brand); color: var(--vn-ink); font-weight: 800;
}
html.vn:not([data-section="admin"]) .passes-page .ps-kind--event .ps-nc__a,
html.vn:not([data-section="admin"]) .passes-page .ps-nc.ps-kind--event .ps-nc__a { background: var(--vn-grad-cool); }
html.vn:not([data-section="admin"]) .passes-page .ps-nc__a:hover { background: var(--vn-grad-brand); filter: brightness(1.08); }
html.vn:not([data-section="admin"]) .passes-page .ps-cover { height: 110px; }
html.vn:not([data-section="admin"]) .passes-page .ps-cover b { font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
html.vn:not([data-section="admin"]) .passes-page .ps-cells { background: var(--border); }
html.vn:not([data-section="admin"]) .passes-page .ps-cells div { background: var(--vn-bg); }
html.vn:not([data-section="admin"]) .passes-page .ps-cells b { font-size: 15px; }
@media (hover: hover) {
  html.vn:not([data-section="admin"]) .passes-page .ps-ss:hover { transform: translateY(-3px); border-color: rgba(255, 79, 163, .5); box-shadow: 0 18px 40px rgba(255, 79, 163, .14); }
}

/* ─── Перемикачі: сегменти, вкладки, чипи ───────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-seg { gap: 6px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .passes-page .ps-seg button,
html.vn:not([data-section="admin"]) .passes-page .ps-chip,
html.vn:not([data-section="admin"]) .passes-page .ps-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; margin: 0;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .03);
  color: var(--vn-text); font: 700 13px var(--vn-font-body); white-space: nowrap; box-sizing: border-box;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .passes-page .ps-seg button:hover,
html.vn:not([data-section="admin"]) .passes-page .ps-chip:hover,
html.vn:not([data-section="admin"]) .passes-page .ps-tab:hover { border-color: rgba(255, 255, 255, .35); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .passes-page .ps-seg button[aria-pressed="true"],
html.vn:not([data-section="admin"]) .passes-page .ps-chip[aria-pressed="true"],
html.vn:not([data-section="admin"]) .passes-page .ps-tab[aria-current="page"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18);
}
html.vn:not([data-section="admin"]) .passes-page .ps-seg__c,
html.vn:not([data-section="admin"]) .passes-page .ps-chip__c,
html.vn:not([data-section="admin"]) .passes-page .ps-tab__c { font: 700 11px var(--vn-font-mono); color: inherit; opacity: .7; }
html.vn:not([data-section="admin"]) .passes-page .ps-tabs { gap: 6px; flex-wrap: wrap; border-bottom: 0; }
html.vn:not([data-section="admin"]) .passes-page .ps-crumbs { font-size: 13px; }
html.vn:not([data-section="admin"]) .passes-page .ps-crumbs a { display: inline-block; padding: 3px 0; }

/* поля */
html.vn:not([data-section="admin"]) .passes-page .ps-q {
  height: 42px; padding: 0 14px; border-radius: var(--vn-radius-pill); border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
}
html.vn:not([data-section="admin"]) .passes-page .ps-q input::placeholder { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .passes-page .ps-q:focus-within,
html.vn:not([data-section="admin"]) .passes-page .ps-jump input:focus { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .passes-page .ps-jump input { height: 40px; border-radius: var(--vn-radius-field); border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .passes-page mark { background: rgba(255, 79, 163, .3); }

/* ─── Шапка пропуску ────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-ph {
  padding: 28px; border-radius: var(--vn-radius-section); border-color: var(--border);
  background: radial-gradient(60% 80% at 90% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
              radial-gradient(50% 60% at 0% 10%, rgba(255, 79, 163, .08), transparent 70%), var(--card);
}
html.vn:not([data-section="admin"]) .passes-page .ps-ph.has-cover {
  background: linear-gradient(90deg, rgba(11, 10, 18, .96) 20%, rgba(11, 10, 18, .8) 50%, rgba(11, 10, 18, .6)), var(--cover) right center / cover no-repeat, var(--vn-bg);
}
html.vn:not([data-section="admin"]) .passes-page .ps-ph__k {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
html.vn:not([data-section="admin"]) .passes-page .ps-kind--bp .ps-ph__k,
html.vn:not([data-section="admin"]) .passes-page .ps-ph.ps-kind--bp .ps-ph__k { border-color: rgba(255, 79, 163, .4); background: rgba(255, 79, 163, .1); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .passes-page .ps-ph h1 {
  margin: 14px 0 14px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 64px); line-height: .98; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .passes-page .ps-stats { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn:not([data-section="admin"]) .passes-page .ps-stats > div {
  padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
html.vn:not([data-section="admin"]) .passes-page .ps-stats span { font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .passes-page .ps-stats b { font: 800 18px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .passes-page .ps-stats > div:nth-child(2) b { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .passes-page .ps-stats > div:nth-child(3) b { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .passes-page .ps-miss { border-radius: 18px; }
html.vn:not([data-section="admin"]) .passes-page .ps-miss li { color: var(--vn-text-2); }

/* ─── Панель вкладки: картка-секція ─────────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-pane {
  padding: 20px; border-radius: var(--vn-radius-section); background: rgba(255, 255, 255, .035); border: 1px solid var(--border);
}
html.vn:not([data-section="admin"]) .passes-page .ps-note { font-size: 13.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .passes-page .ps-sm { border-radius: 18px; padding: 12px 14px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .passes-page .ps-sm b { font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; }
html.vn:not([data-section="admin"]) .passes-page .ps-sm[aria-pressed="true"] { background: color-mix(in srgb, var(--cc) 12%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 35%, transparent); }

/* ─── Трек нагород: колонки рівнів (прототип) ───────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-track { display: flex; flex-wrap: wrap; gap: 8px; background: none; border: 0; border-radius: 0; }
html.vn:not([data-section="admin"]) .passes-page .ps-tr-h {
  position: static; flex: 0 0 100%; display: flex; gap: 14px; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
html.vn:not([data-section="admin"]) .passes-page .ps-tr-h > div { padding: 0; }
html.vn:not([data-section="admin"]) .passes-page .ps-tr-h > div:first-child { display: none; }
html.vn:not([data-section="admin"]) .passes-page .ps-tr-h > div:nth-child(2) { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .passes-page .ps-tr-h > .ps-tr-h__p { display: block; background: none; color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .passes-page .ps-tr {
  display: flex; flex-direction: column; gap: 6px; flex: 0 0 calc((100% - 7 * 8px) / 8); min-width: 0;
  border: 0; border-radius: 20px; scroll-margin-top: 110px;
}
html.vn:not([data-section="admin"]) .passes-page .ps-tr.is-ms { background: none; }
html.vn:not([data-section="admin"]) .passes-page .ps-lv {
  height: 30px; flex: none; border: 0; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .05);
  color: var(--vn-muted); font: 700 12px var(--vn-font-mono);
}
html.vn:not([data-section="admin"]) .passes-page .ps-tr.is-ms .ps-lv { background: var(--vn-grad-brand); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .passes-page .ps-tr.is-ms .ps-lv::after { display: none; }
html.vn:not([data-section="admin"]) .passes-page .ps-tr.is-hit { animation: vnPsHit 1.6s ease; }
@keyframes vnPsHit { 0%, 40% { box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); } 100% { box-shadow: 0 0 0 3px rgba(46, 230, 214, 0); } }
html.vn:not([data-section="admin"]) .passes-page .ps-rw {
  flex: 1 0 auto; min-height: 96px; justify-content: flex-start; align-items: stretch; gap: 8px; padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; background: rgba(255, 255, 255, .03);
}
html.vn:not([data-section="admin"]) .passes-page .ps-tr .ps-rw--p {
  grid-column: auto; border: 1px solid var(--prem-line); border-top: 1px solid var(--prem-line); background: var(--prem-soft);
}
html.vn:not([data-section="admin"]) .passes-page .ps-rw--none { background: none; border-style: dashed; opacity: .45; }
html.vn:not([data-section="admin"]) .passes-page .ps-rwi { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
html.vn:not([data-section="admin"]) .passes-page .ps-ri { width: 40px; height: 40px; border-radius: 12px; }
html.vn:not([data-section="admin"]) .passes-page .ps-ri img { width: 30px; height: 30px; }
html.vn:not([data-section="admin"]) .passes-page .ps-ri svg { width: 22px; height: 22px; }
html.vn:not([data-section="admin"]) .passes-page .ps-rwi b { font-size: 12px; font-weight: 700; line-height: 1.25; }
html.vn:not([data-section="admin"]) .passes-page .ps-rwi b a { display: inline-block; min-height: 24px; padding: 4px 0; box-sizing: border-box; }
html.vn:not([data-section="admin"]) .passes-page .ps-ri__x { font-size: 11px; }
html.vn:not([data-section="admin"]) .passes-page .ps-rwi__tags { justify-content: center; }
html.vn:not([data-section="admin"]) .passes-page .ps-rwi__tags .ps-tg { padding: 1px 7px; border-radius: 8px; font-size: 11px; }

/* ─── Завдання: картки сіткою ───────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .passes-page .ps-rewards { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
html.vn:not([data-section="admin"]) .passes-page .ps-rt { border-radius: 20px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .passes-page .ps-rt h3 { font-family: var(--vn-font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; }
html.vn:not([data-section="admin"]) .passes-page .ps-rt.is-prem { border-color: var(--prem-line); background: var(--prem-soft); }
html.vn:not([data-section="admin"]) .passes-page .ps-tasks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px;
  overflow: visible; border: 0; border-radius: 0; background: none;
}
html.vn:not([data-section="admin"]) .passes-page .ps-tk {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 20px;
  background: rgba(255, 255, 255, .03); animation: bIn .55s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .passes-page .ps-tk:last-child { border-bottom: 1px solid var(--border); }
html.vn:not([data-section="admin"]) .passes-page .ps-tk b { font-size: 14.5px; font-weight: 700; }
html.vn:not([data-section="admin"]) .passes-page .ps-tk p { font-size: 12.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .passes-page .ps-tk__t { justify-content: flex-start; max-width: none; }
html.vn:not([data-section="admin"]) .passes-page .ps-rq { padding: 3px 10px; border-radius: var(--vn-radius-pill); font: 700 12px var(--vn-font-mono); white-space: normal; }
html.vn:not([data-section="admin"]) .passes-page .ps-more {
  grid-column: 1 / -1; justify-self: center; width: auto; min-height: 40px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .04); color: var(--vn-text); font-weight: 700;
}
html.vn:not([data-section="admin"]) .passes-page .ps-more:hover { background: rgba(255, 255, 255, .08); }

/* ─── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  html.vn:not([data-section="admin"]) .passes-page .ps-tr { flex-basis: calc((100% - 5 * 8px) / 6); }
}
@media (max-width: 900px) {
  html.vn:not([data-section="admin"]) .passes-page .ps-tr { flex-basis: calc((100% - 3 * 8px) / 4); }
}
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .passes-page { gap: 18px; }
  html.vn:not([data-section="admin"]) .passes-page .ps-ph,
  html.vn:not([data-section="admin"]) .passes-page .ps-pane { padding: 16px; }
  html.vn:not([data-section="admin"]) .passes-page .ps-tr { flex-basis: calc((100% - 2 * 8px) / 3); }
  html.vn:not([data-section="admin"]) .passes-page .ps-seg button,
  html.vn:not([data-section="admin"]) .passes-page .ps-chip,
  html.vn:not([data-section="admin"]) .passes-page .ps-tab { min-height: 40px; }
  html.vn:not([data-section="admin"]) .passes-page .ps-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn:not([data-section="admin"]) .passes-page .ps-q input { font-size: 16px; }
  html.vn:not([data-section="admin"]) .passes-page .ps-q kbd { display: none; }
}
@media (max-width: 640px) {
  /* скасовуємо мобільну сітку старого трека (style.css) — тут колонки, не рядки */
  html.vn:not([data-section="admin"]) .passes-page .ps-tr-h > div:nth-child(3) { display: block; }
  html.vn:not([data-section="admin"]) .passes-page .ps-tr .ps-lv { grid-row: auto; }
}
@media (max-width: 380px) {
  html.vn:not([data-section="admin"]) .passes-page .ps-tr { flex-basis: calc((100% - 8px) / 2); }
}

/* картка архіву — це <a>: текст усередині не має фарбуватись у колір посилання */
html.vn:not([data-section="admin"]) .passes-page a.ps-ss,
html.vn:not([data-section="admin"]) .passes-page a.ps-ss:hover,
html.vn:not([data-section="admin"]) .passes-page a.ps-ss b { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .passes-page a.ps-ss .ps-cells span { color: var(--vn-muted); }

/* vn-jobs.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: роботи (/jobs, /jobs/:slug) за docs/redesign/prototype/JobsB.dc.html.

   Розмітку малює той самий public/js/jobs.js (реальні ставки й бонуси з routes/jobs.rb, рівень
   гравця, збережені бонуси, години сесії); формула — public/js/job-calc.js (тести:
   test/js/job_calc.test.js). Тут лише вигляд: старі змінні (--card, --money, --primary …) перевизначено
   токенами Vice Neon у межах .jobs-page, плюс картки/калькулятор/бонуси як у прототипі.
   Ставка на сайті — $ за годину (так її вносять редактори), тож повзунка «одиниць за годину» з
   прототипу немає: множити нема на що.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .jobs-page {
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --bg: var(--vn-bg);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --faint: var(--vn-muted-2);
  --primary: var(--vn-pink);
  --primary-soft: rgba(255, 79, 163, .14);
  --on-primary: var(--vn-ink);
  --accent-strong: var(--vn-pink-soft);
  --money: var(--vn-cyan);
  --money-soft: rgba(46, 230, 214, .14);
  --on-money: var(--vn-ink);
  --job: var(--vn-orange);
  --job-soft: rgba(255, 159, 69, .14);
  --side-c: var(--vn-purple);
  --side-soft: rgba(185, 140, 255, .14);
  --bad: var(--vn-red);
  --bad-soft: rgba(255, 90, 122, .14);
  --bk-item: var(--vn-cyan);
  --bk-skin: var(--vn-pink);
  --bk-tune: var(--vn-orange);
  --bk-flag: var(--vn-purple);
  --bk-house: var(--vn-yellow);
  --font: var(--vn-font-body);
  --f-mono: var(--vn-font-mono);
  --focus-ring: 0 0 0 3px rgba(46, 230, 214, .6);
  width: 100%; box-sizing: border-box;
  gap: 22px;
  font-family: var(--vn-font-body), sans-serif;
  color: var(--vn-text);
}

/* ─── Заголовок ─────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .jobs-page .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .jobs-page .page-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-snap {
  min-height: 36px; padding: 0 14px; border-radius: var(--vn-radius-pill); border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04); color: var(--vn-text); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .jobs-page .jb-snap i { background: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .jobs-page .jb-foot { font-size: 12.5px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-empty { border-radius: var(--vn-radius-card); }

/* ─── KPI і панель фільтрів ─────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi { padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi span { font-weight: 700; line-height: 1.35; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi b { font: 800 20px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi:nth-child(1) b { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi:nth-child(2) b { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi:nth-child(4) b { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .jobs-page .jb-kpi > small { color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .jobs-page .jb-toolbar { gap: 12px; padding: 12px; border-radius: 24px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-seg { gap: 6px; padding: 0; border: 0; background: none; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .jobs-page .jb-seg button,
html.vn:not([data-section="admin"]) .jobs-page .jb-qa button,
html.vn:not([data-section="admin"]) .jobs-page .jb-lnk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .03);
  color: var(--vn-text); font: 700 13px var(--vn-font-body); white-space: nowrap; transition: background .2s, border-color .2s;
}
html.vn:not([data-section="admin"]) .jobs-page .jb-seg button:hover,
html.vn:not([data-section="admin"]) .jobs-page .jb-qa button:hover,
html.vn:not([data-section="admin"]) .jobs-page .jb-lnk:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .jobs-page .jb-seg button[aria-pressed="true"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18);
}
html.vn:not([data-section="admin"]) .jobs-page .jb-seg__c { font: 700 11px var(--vn-font-mono); opacity: .7; }
html.vn:not([data-section="admin"]) .jobs-page .jb-stp { border-radius: var(--vn-radius-pill); padding: 3px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-stp button { width: 32px; height: 32px; border-radius: 50%; color: var(--vn-text); font-weight: 700; }
html.vn:not([data-section="admin"]) .jobs-page .jb-stp:focus-within { box-shadow: var(--focus-ring); }
html.vn:not([data-section="admin"]) .jobs-page .jb-sel select { height: 40px; border-radius: var(--vn-radius-pill); padding-left: 16px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .jobs-page .jb-sel select option { background: var(--vn-surface); }
html.vn:not([data-section="admin"]) .jobs-page .jb-sw { min-height: 36px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-sw__t { width: 40px; height: 22px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-sw__t::after { width: 16px; height: 16px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-sw input:checked + .jb-sw__t::after { left: 20px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-sw input:checked + .jb-sw__t { box-shadow: 0 0 14px rgba(255, 79, 163, .35); }

/* ─── Картки робіт ──────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .jobs-page a.jb-jc {
  padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .035); color: var(--vn-text);
  transition: transform .25s var(--vn-ease), border-color .25s, box-shadow .25s;
}
html.vn:not([data-section="admin"]) .jobs-page a.jb-jc:hover { color: var(--vn-text); border-color: rgba(255, 79, 163, .5); background: rgba(255, 79, 163, .06); }
@media (hover: hover) {
  html.vn:not([data-section="admin"]) .jobs-page a.jb-jc:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255, 79, 163, .14); }
}
html.vn:not([data-section="admin"]) .jobs-page .jb-jc__n { font-weight: 800; font-size: 16px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-rk { font-size: 12px; color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .jobs-page .jb-ji { border-radius: 14px; background: var(--c); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .jobs-page .jb-ji--lg { border-radius: 20px; box-shadow: 0 10px 30px color-mix(in srgb, var(--c) 35%, transparent); }
html.vn:not([data-section="admin"]) .jobs-page .jb-tg { padding: 3px 10px; border-radius: var(--vn-radius-pill); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .jobs-page .jb-pay b { font-size: 20px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-pay em { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .jobs-page .jb-pbar { height: 8px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-pbar__b { background: var(--vn-grad-cool); }
html.vn:not([data-section="admin"]) .jobs-page .jb-pbar__m { background: rgba(255, 159, 69, .35); }

/* ─── Сторінка роботи ───────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .jobs-page .jb-crumbs a { display: inline-block; padding: 3px 0; }
html.vn:not([data-section="admin"]) .jobs-page .jb-jh h1 {
  font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .jobs-page .jb-card { border-radius: var(--vn-radius-card); }
html.vn:not([data-section="admin"]) .jobs-page .jb-card__h h2 { font-family: var(--vn-font-display); font-weight: 800; font-size: 14px; letter-spacing: 0; }

/* калькулятор: помаранчево-рожева картка, сума за годину бірюзова, за сесію — помаранчева */
html.vn:not([data-section="admin"]) .jobs-page .jb-calc {
  top: 96px; padding: 22px; border-radius: var(--vn-radius-section);
  background: linear-gradient(160deg, rgba(255, 159, 69, .14), rgba(255, 79, 163, .06)), var(--vn-bg);
  border: 1px solid rgba(255, 159, 69, .3); animation: bPop .4s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .jobs-page .jb-calc__k { font-size: 12px; font-weight: 800; color: var(--vn-orange); letter-spacing: .06em; }
html.vn:not([data-section="admin"]) .jobs-page .jb-calc__big { font: 700 clamp(30px, 3.6vw, 40px)/1.05 var(--vn-font-mono); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .jobs-page .jb-calc__sub { font-size: 13px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-calc__sub b.is-up { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .jobs-page .jb-mbar { height: 12px; gap: 3px; background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .jobs-page .jb-mbar span { border-radius: var(--vn-radius-pill); transition: width .7s var(--vn-ease); }
html.vn:not([data-section="admin"]) .jobs-page .jb-mbar__b,
html.vn:not([data-section="admin"]) .jobs-page .jb-dot--b { background: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .jobs-page .jb-mbar__x,
html.vn:not([data-section="admin"]) .jobs-page .jb-dot--x { background: var(--vn-pink); }
html.vn:not([data-section="admin"]) .jobs-page .jb-mleg { font-size: 12px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-hrs { font-size: 13px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-hrs b { margin-left: auto; font: 700 24px var(--vn-font-mono); color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .jobs-page .jb-qa button:disabled { opacity: .45; }

html.vn:not([data-section="admin"]) .jobs-page .jb-info { background: var(--border); }
html.vn:not([data-section="admin"]) .jobs-page .jb-info div { background: var(--vn-bg); }
html.vn:not([data-section="admin"]) .jobs-page .jb-info span { font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .jobs-page .jb-info b { font: 800 17px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .jobs-page .jb-info b.jb-money { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .jobs-page .jb-note { font-size: 13px; }

/* бонуси: рожеві прапорці, як checkbox у прототипі */
html.vn:not([data-section="admin"]) .jobs-page .jb-bn { min-height: 44px; transition: background .2s; }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn:hover { background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn:focus-visible { box-shadow: inset 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn.is-on { background: rgba(255, 79, 163, .07); }
html.vn:not([data-section="admin"]) .jobs-page .jb-ck { width: 22px; height: 22px; border-radius: 7px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn.is-on .jb-ck { background: var(--vn-pink); border-color: var(--vn-pink); box-shadow: 0 0 12px rgba(255, 79, 163, .4); }
html.vn:not([data-section="admin"]) .jobs-page .jb-bi { border-radius: 12px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn b a { display: inline-block; padding: 3px 0; }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn__ex { border-radius: var(--vn-radius-pill); padding: 1px 8px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-vb { padding: 4px 10px; font-size: 12.5px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-bn.is-on .jb-vb { background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .jobs-page .jb-rng input { height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .jobs-page .jb-rng input:focus { border-color: var(--vn-cyan); box-shadow: var(--focus-ring); }

/* інші роботи */
html.vn:not([data-section="admin"]) .jobs-page .jb-oj { top: 96px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-oj a { min-height: 44px; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .jobs-page .jb-oj a.is-on { background: rgba(255, 79, 163, .1); box-shadow: inset 3px 0 0 var(--vn-pink); }
html.vn:not([data-section="admin"]) .jobs-page .jb-oj .jb-ji--sm { border-radius: 9px; }
html.vn:not([data-section="admin"]) .jobs-page .jb-mini span { background: var(--vn-grad-cool); }
html.vn:not([data-section="admin"]) .jobs-page .jb-grp { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .jobs-page .jb-toast {
  min-height: 48px; display: flex; align-items: center; padding: 0 20px; border-radius: var(--vn-radius-pill);
  background: var(--vn-ink); border: 1px solid rgba(255, 79, 163, .5); box-shadow: 0 0 40px rgba(255, 79, 163, .35); font-weight: 700;
}

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .jobs-page { gap: 18px; }
  html.vn:not([data-section="admin"]) .jobs-page .jb-calc { padding: 16px; }
  html.vn:not([data-section="admin"]) .jobs-page .jb-seg button,
  html.vn:not([data-section="admin"]) .jobs-page .jb-qa button,
  html.vn:not([data-section="admin"]) .jobs-page .jb-lnk { min-height: 40px; }
  html.vn:not([data-section="admin"]) .jobs-page .jb-stp input,
  html.vn:not([data-section="admin"]) .jobs-page .jb-rng input,
  html.vn:not([data-section="admin"]) .jobs-page .jb-sel select { font-size: 16px; }
  html.vn:not([data-section="admin"]) .jobs-page .jb-toast { bottom: 92px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Роботи як у прототипі JobsB (views/_jobs_vn.erb, ArzJobs.vn): список ліворуч, калькулятор праворуч.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .jbv { display: flex; flex-direction: column; gap: 28px; padding-top: 44px; padding-bottom: 90px; min-width: 0; width: 100%; max-width: min(1240px, 100%); color: #F3F1F8; }
html.vn .jbv-head { display: flex; flex-direction: column; align-items: flex-start; }
html.vn .jbv-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(46, 230, 214, .35);
  background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; }
html.vn .jbv-h1 { margin: 14px 0 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 76px);
  line-height: .95; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; }
html.vn .jbv-h1 .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn .jbv-hue { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #FF4FA3); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn .jbv-sub { margin: 10px 0 0; max-width: 60ch; color: #A39FB5; }

html.vn .jbv-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
html.vn .jbv-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.vn .jbv-lvl { padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 6px; }
html.vn .jbv-lvl__h, html.vn .jbv-rng__h { display: flex; justify-content: space-between; font-weight: 700; }
html.vn .jbv-lvl__h b, html.vn .jbv-rng__h b { font-family: var(--vn-font-mono); color: #FF8CC4; }
html.vn .jbv-lvl__n { font-size: 12.5px; color: #A39FB5; }
html.vn .jbv input[type="range"] { width: 100%; min-height: 24px; accent-color: #FF4FA3; }
html.vn .jbv input:focus-visible, html.vn .jbv a:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
html.vn .jbv-list { display: flex; flex-direction: column; gap: 12px; }
html.vn .jbv-job { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03); color: #F3F1F8; text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
html.vn .jbv-job:hover { border-color: rgba(255, 255, 255, .3); color: #F3F1F8; }
html.vn .jbv-job[aria-current="page"] { border-color: #FF9F45; background: rgba(255, 159, 69, .1); }
html.vn .jbv-job.is-locked { opacity: .55; }
html.vn .jbv-job__i { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #14061A; background: linear-gradient(135deg, #FF9F45, #FFE27A); }
html.vn .jbv-job__i--side { background: linear-gradient(135deg, #B98CFF, #FF4FA3); }
html.vn .jbv-job__i svg { width: 22px; height: 22px; stroke-width: 2; }
html.vn .jbv-job__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn .jbv-job__t b { font-size: 15px; color: #F3F1F8; overflow-wrap: anywhere; }
html.vn .jbv-job__t > span { font-size: 12.5px; color: #A39FB5; }
html.vn .jbv-job__l { font: 700 13px var(--vn-font-mono); color: #2EE6D6; white-space: nowrap; }
html.vn .jbv-job.is-locked .jbv-job__l { color: #FF5A7A; }

html.vn .jbv-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
html.vn .jbv-hero { padding: 22px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 159, 69, .14), rgba(255, 79, 163, .06)); border: 1px solid rgba(255, 159, 69, .3);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; animation: bPop .5s var(--vn-ease) both; }
html.vn .jbv-hero__t { min-width: 0; display: flex; flex-direction: column; }
html.vn .jbv-hero__k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #FF9F45; }
html.vn .jbv-hero h2 { margin: 4px 0 0; font-family: var(--vn-font-display); font-weight: 900; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
html.vn .jbv-hero__d { color: #A39FB5; }
html.vn .jbv-hero__p { text-align: right; margin-left: auto; }
html.vn .jbv-hero__p b { display: block; font: 700 clamp(30px, 3.6vw, 40px)/1 var(--vn-font-mono); color: #2EE6D6; }
html.vn .jbv-hero__p span { font-size: 13px; color: #A39FB5; }
html.vn .jbv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
html.vn .jbv-card { padding: 20px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.vn .jbv-rng { display: flex; flex-direction: column; gap: 6px; }
html.vn .jbv-bon { display: flex; flex-direction: column; gap: 6px; }
html.vn .jbv-bon__h { font-weight: 700; }
html.vn .jbv-b { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
html.vn .jbv-b--sub { padding-left: 28px; }
html.vn .jbv-b input { width: 18px; height: 18px; flex: none; accent-color: #FF4FA3; }
html.vn .jbv-b__t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
html.vn .jbv-b__t small { display: block; font-size: 12px; color: #A39FB5; }
html.vn .jbv-b__v { font: 700 12px var(--vn-font-mono); color: #2EE6D6; white-space: nowrap; }
html.vn .jbv-none { margin: 0; font-size: 13.5px; color: #A39FB5; }
html.vn .jbv-none b { color: #F3F1F8; }
html.vn .jbv-parts { display: flex; flex-direction: column; gap: 12px; }
html.vn .jbv-part { display: flex; flex-direction: column; gap: 4px; }
html.vn .jbv-part__h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
html.vn .jbv-part__h .num { font-family: var(--vn-font-mono); white-space: nowrap; }
html.vn .jbv-part__bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn .jbv-part__bar span { display: block; height: 100%; border-radius: 8px; transition: width .35s ease; }
html.vn .jbv-total { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
html.vn .jbv-total span { font-weight: 800; }
html.vn .jbv-total b { font: 700 26px var(--vn-font-mono); color: #FF9F45; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .jbv { padding-top: 20px; gap: 20px; }
  html.vn .jbv-hero__p { text-align: left; margin-left: 0; }
  html.vn .jbv-total b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn .jbv-h1 .b-rise, html.vn .jbv-hue, html.vn .jbv-hero { animation: none; }
}
html.vn:not([data-section="admin"]) .jbv-empty { margin-top: 24px; border-radius: var(--vn-radius-card); }

/* vn-events.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn): «Розклад подій» (/events, views/events.erb). The live block (PayDay, restart, upcoming)
   is the home page's .vh-evs (vn-home.css, views/_events_box.erb); here the heading and the whole week.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .ve-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; padding-top: 44px; padding-bottom: 90px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .ve-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(255, 226, 122, .35); background: rgba(255, 226, 122, .08); color: var(--vn-yellow); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .ve-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .ve-grad {
  background: linear-gradient(90deg, var(--vn-yellow), var(--vn-orange), var(--vn-pink), var(--vn-yellow)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .ve-sub { margin: 10px 0 0; max-width: 62ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }

html.vn:not([data-section="admin"]) .ve-h2 { margin: 0 0 14px; font: 800 22px var(--vn-font-display), sans-serif; }
html.vn:not([data-section="admin"]) .ve-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .ve-day { padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .ve-day.is-today { border-color: rgba(255, 226, 122, .55); box-shadow: 0 0 0 1px rgba(255, 226, 122, .2); }
html.vn:not([data-section="admin"]) .ve-day h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 15px var(--vn-font-display), sans-serif; }
html.vn:not([data-section="admin"]) .ve-day__now { padding: 2px 8px; border-radius: 999px; background: rgba(255, 226, 122, .14); color: var(--vn-yellow); font: 700 11px var(--vn-font-body), sans-serif; text-transform: uppercase; letter-spacing: .04em; }
html.vn:not([data-section="admin"]) .ve-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html.vn:not([data-section="admin"]) .ve-day__none, html.vn:not([data-section="admin"]) .ve-none { margin: 0; color: var(--vn-muted); font-size: 13.5px; }
html.vn:not([data-section="admin"]) .ve-ev { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .ve-ev__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
html.vn:not([data-section="admin"]) .ve-ev__t { min-width: 0; }
html.vn:not([data-section="admin"]) .ve-ev__t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .ve-ev__t b a { color: var(--vn-text); text-decoration: none; }
html.vn:not([data-section="admin"]) .ve-ev__t b a:hover { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .ve-ev__t small { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .ve-ev__at { font: 700 14px var(--vn-font-mono); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .ve-note { margin: 14px 0 0; color: var(--vn-muted); font-size: 12.5px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .ve-page { padding-top: 22px; gap: 22px; }
  html.vn:not([data-section="admin"]) .ve-days { grid-template-columns: minmax(0, 1fr); }
}

/* vn-commands.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: довідник команд (/commands, /commands/:slug) за CommandsB.dc.html.
   Розмітку малює той самий public/js/commands.js (команди з БД, пошук, категорії, панель
   деталей / шторка на телефоні, копіювання, пропозиція правки) — тут лише вигляд. Кольори
   категорій під .vn сервер віддає з палітри (COMMAND_CATEGORY_VN_COLORS у routes/commands.rb).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .cmds {
  --card: rgba(255, 255, 255, .035);
  --surface: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --accent: var(--vn-pink);
  --accent-line: var(--vn-pink);
  --accent-strong: var(--vn-pink-soft);
  --accent-ink: var(--vn-ink);
  --good: var(--vn-cyan);
  --secondary: var(--vn-cyan);
  --f-mono: var(--vn-font-mono);
  width: 100%; box-sizing: border-box; gap: 24px;
  font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}

/* заголовок */
html.vn:not([data-section="admin"]) .cmds .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .cmds .page-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .cmds .cmd-stat { padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .cmds .cmd-stat b { font: 800 22px/1.3 var(--vn-font-display); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .cmds .cmd-stat + .cmd-stat b { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .cmds .cmd-stat span { font-size: 12px; font-weight: 700; }

/* пошук: пігулка з рожевим «/» */
html.vn:not([data-section="admin"]) .cmds .cmd-search {
  height: 56px; padding: 0 20px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12);
}
html.vn:not([data-section="admin"]) .cmds .cmd-search svg { color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .cmds .cmd-search:focus-within { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .cmds .cmd-search input { font-size: 17px; }

/* категорії — чипи */
html.vn:not([data-section="admin"]) .cmds .cmd-pill {
  min-height: 36px; height: auto; padding: 0 14px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .03);
  border-color: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, border-color .2s;
}
html.vn:not([data-section="admin"]) .cmds .cmd-pill:hover { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .cmds .cmd-pill__count { padding: 0; background: none; font: 700 11px var(--vn-font-mono); opacity: .7; color: inherit; }
html.vn:not([data-section="admin"]) .cmds .cmd-pill[aria-pressed="true"] {
  background: rgba(255, 79, 163, .16); border-color: var(--vn-pink); color: var(--vn-pink-soft);
  box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18);
}
html.vn:not([data-section="admin"]) .cmds .cmd-pill[aria-pressed="true"] .cmd-pill__count { background: none; color: inherit; }

/* картки команд */
html.vn:not([data-section="admin"]) .cmds .cmd-found { font-size: 13px; }
html.vn:not([data-section="admin"]) .cmds .cmd-cards { gap: 10px; }
html.vn:not([data-section="admin"]) .cmds .cmd-card {
  gap: 8px; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .035);
  animation: bIn .55s var(--vn-ease) both; transition: background .2s, border-color .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .cmds .cmd-card:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
@media (hover: hover) { html.vn:not([data-section="admin"]) .cmds .cmd-card:hover { transform: translateX(4px); } }
html.vn:not([data-section="admin"]) .cmds .cmd-card[aria-current="true"] { background: rgba(255, 79, 163, .08); border-color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .cmds .cmd-card .cmd-name {
  padding: 4px 12px; border-radius: 10px; background: var(--vn-ink); border: 1px solid rgba(255, 79, 163, .35);
  font: 700 16px/22px var(--vn-font-mono); color: var(--vn-pink-soft);
}
html.vn:not([data-section="admin"]) .cmds .cmd-args { font-size: 14px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cmds .cmd-tag { padding: 3px 10px; border-radius: var(--vn-radius-pill); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .cmds .cmd-card__desc { font-size: 15px; }
html.vn:not([data-section="admin"]) .cmds .cmd-empty-state { border-radius: 24px; }

/* панель деталей */
html.vn:not([data-section="admin"]) .cmds .cmd-detail {
  top: 96px; padding: 22px; border-radius: var(--vn-radius-section); background: var(--vn-surface); border-color: rgba(255, 255, 255, .1);
}
html.vn:not([data-section="admin"]) .cmds .cmd-detail h2 .cmd-name { font-weight: 700; color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .cmds .cmd-d-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
html.vn:not([data-section="admin"]) .cmds .cmd-example { border-radius: 16px; background: var(--vn-ink); }
html.vn:not([data-section="admin"]) .cmds .cmd-copy {
  border-radius: var(--vn-radius-pill); background: rgba(255, 79, 163, .14); border-color: rgba(255, 79, 163, .5); color: var(--vn-pink-soft); font-weight: 700;
}
html.vn:not([data-section="admin"]) .cmds .cmd-copy.is-done { background: rgba(46, 230, 214, .12); border-color: var(--vn-cyan); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .cmds .cmd-chat { border-radius: 16px; background: #05030A; }
html.vn:not([data-section="admin"]) .cmds .cmd-tip { border-radius: 16px; background: rgba(46, 230, 214, .08); border: 1px solid rgba(46, 230, 214, .25); }
html.vn:not([data-section="admin"]) .cmds .cmd-related button { border-radius: var(--vn-radius-pill); font-weight: 700; }
html.vn:not([data-section="admin"]) .cmds .cmd-related button:hover { border-color: var(--vn-pink); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .cmds .community-suggest summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

@media (max-width: 768px) {
  /* чипи переносяться, без горизонтального скролу (як у прототипі) */
  html.vn:not([data-section="admin"]) .cmds .cmd-pills { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  html.vn:not([data-section="admin"]) .cmds .cmd-pill { min-height: 40px; }
  html.vn:not([data-section="admin"]) .cmds .cmd-detail {
    border-radius: 26px 26px 0 0; background: #100E1A; border-top: 1px solid rgba(255, 79, 163, .4); box-shadow: 0 -30px 80px rgba(0, 0, 0, .7);
  }
  html.vn:not([data-section="admin"]) .cmds .cmd-sheet-close { min-width: 40px; min-height: 40px; border-radius: 50%; }
}

/* vn-terms.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: словник RP-термінів (/terms, views/terms.erb) за TermsB.dc.html.
   Дані — rp_terms (редагуються в /admin/terms); картки — <details>, фільтр — public/js/terms.js.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .tm-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .tm-page .tm-k--rule { --c: var(--vn-pink); --cb: rgba(255, 79, 163, .14); }
html.vn:not([data-section="admin"]) .tm-page .tm-k--chat { --c: var(--vn-cyan); --cb: rgba(46, 230, 214, .14); }
html.vn:not([data-section="admin"]) .tm-page .tm-k--base { --c: var(--vn-orange); --cb: rgba(255, 159, 69, .14); }

/* заголовок */
html.vn:not([data-section="admin"]) .tm-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .tm-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 76px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .tm-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .tm-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }

/* пошук і типи */
html.vn:not([data-section="admin"]) .tm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html.vn:not([data-section="admin"]) .tm-q {
  flex: 1 1 320px; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-radius: var(--vn-radius-pill);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .tm-q:focus-within { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .tm-q input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; box-shadow: none; color: var(--vn-text); font-size: 16px; }
html.vn:not([data-section="admin"]) .tm-q input:focus-visible { box-shadow: none !important; }
html.vn:not([data-section="admin"]) .tm-count { font: 700 13px var(--vn-font-mono); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .tm-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .tm-kinds .b-chip i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
html.vn:not([data-section="admin"]) .tm-page:not(.is-js) .tm-bar,
html.vn:not([data-section="admin"]) .tm-page:not(.is-js) .tm-abc { display: none; }

/* абетка */
html.vn:not([data-section="admin"]) .tm-abc { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .tm-abc button {
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); color: var(--vn-text); font: 700 14px var(--vn-font-mono); cursor: pointer;
  transition: background .2s, border-color .2s;
}
html.vn:not([data-section="admin"]) .tm-abc button:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .tm-abc button[aria-pressed="true"] { background: var(--vn-pink); border-color: var(--vn-pink); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .tm-abc button:disabled { opacity: .3; cursor: default; }
html.vn:not([data-section="admin"]) .tm-abc button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }

/* картки */
html.vn:not([data-section="admin"]) .tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 10px; align-items: start; }
html.vn:not([data-section="admin"]) .tm-card {
  border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
  animation: bIn .55s var(--vn-ease) both; transition: border-color .25s;
}
html.vn:not([data-section="admin"]) .tm-card[hidden] { display: none; }
html.vn:not([data-section="admin"]) details.tm-card[open] { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
html.vn:not([data-section="admin"]) .tm-card__h { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; list-style: none; }
html.vn:not([data-section="admin"]) summary.tm-card__h { cursor: pointer; border-radius: 22px; }
html.vn:not([data-section="admin"]) summary.tm-card__h::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) summary.tm-card__h:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .tm-ab {
  flex: none; min-width: 64px; height: 48px; padding: 0 10px; box-sizing: border-box; display: grid; place-items: center;
  border-radius: 14px; background: var(--cb); color: var(--c); font: 800 17px var(--vn-font-display); letter-spacing: -.02em;
}
html.vn:not([data-section="admin"]) .tm-card__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
html.vn:not([data-section="admin"]) .tm-card__n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.vn:not([data-section="admin"]) .tm-card__n b { font-size: 15px; font-weight: 800; }
html.vn:not([data-section="admin"]) .tm-tag { padding: 2px 9px; border-radius: var(--vn-radius-pill); background: var(--cb); color: var(--c); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .tm-card__d { font-size: 14px; line-height: 21px; color: var(--vn-text-2); }
html.vn:not([data-section="admin"]) .tm-card__x { flex: none; align-self: center; color: var(--vn-muted); font-size: 14px; transition: transform .25s var(--vn-ease); }
html.vn:not([data-section="admin"]) details[open] .tm-card__x { transform: rotate(180deg); }
html.vn:not([data-section="admin"]) .tm-ex { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px 96px; animation: bFade .4s var(--vn-ease) both; }
html.vn:not([data-section="admin"]) .tm-ex p { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 20px; }
html.vn:not([data-section="admin"]) .tm-ex__bad { background: rgba(255, 90, 122, .1); border: 1px solid rgba(255, 90, 122, .3); }
html.vn:not([data-section="admin"]) .tm-ex__bad b { color: var(--vn-red); }
html.vn:not([data-section="admin"]) .tm-ex__good { background: rgba(46, 230, 214, .08); border: 1px solid rgba(46, 230, 214, .28); }
html.vn:not([data-section="admin"]) .tm-ex__good b { color: var(--vn-cyan); }

html.vn:not([data-section="admin"]) .tm-empty,
html.vn:not([data-section="admin"]) .tm-none { padding: 40px 20px; border-radius: 24px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .tm-empty[hidden] { display: none; }
html.vn:not([data-section="admin"]) .tm-none h2 { margin: 0 0 6px; font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .tm-none p { margin: 0; }
html.vn:not([data-section="admin"]) .tm-foot { margin: 0; font-size: 12.5px; color: var(--vn-muted-2); }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .tm-ex { padding: 0 14px 14px; }
  html.vn:not([data-section="admin"]) .tm-card__h { padding: 14px; gap: 12px; }
  html.vn:not([data-section="admin"]) .tm-abc button { min-width: 40px; height: 40px; }
}

/* vn-bdays.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: дні народження серверів (/online/birthdays, views/server_bdays.erb)
   за BdaysB.dc.html. Дані — servers.launched_on (редагуються в /admin/server-dates).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .bd-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }

/* заголовок і найближче свято */
html.vn:not([data-section="admin"]) .bd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
html.vn:not([data-section="admin"]) .bd-head__t { flex: 1 1 520px; min-width: 0; }
html.vn:not([data-section="admin"]) .bd-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(255, 79, 163, .4); background: rgba(255, 79, 163, .1); color: var(--vn-pink-soft); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .bd-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 70px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .bd-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .bd-sub { margin: 10px 0 0; max-width: 56ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .bd-next {
  position: relative; overflow: hidden; flex: 0 1 380px; min-width: 260px; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  border-radius: var(--vn-radius-card); background: linear-gradient(160deg, rgba(255, 159, 69, .14), rgba(255, 79, 163, .06));
  border: 1px solid rgba(255, 159, 69, .3);
}
html.vn:not([data-section="admin"]) .bd-next.is-today { background: linear-gradient(135deg, rgba(255, 79, 163, .25), rgba(255, 159, 69, .18)); border-color: rgba(255, 79, 163, .55); }
html.vn:not([data-section="admin"]) .bd-next > span, html.vn:not([data-section="admin"]) .bd-next > b { position: relative; }
html.vn:not([data-section="admin"]) .bd-next__k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .bd-next__t { font: 900 28px/1.1 var(--vn-font-display); text-transform: uppercase; letter-spacing: -.02em; }
html.vn:not([data-section="admin"]) .bd-next__s { font-size: 14px; color: var(--vn-text-2); }
html.vn:not([data-section="admin"]) .bd-conf { position: absolute; inset: 0; pointer-events: none; }
html.vn:not([data-section="admin"]) .bd-conf i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; animation: bConf linear infinite; }

/* місяці (посилання-чипи) */
html.vn:not([data-section="admin"]) .bd-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; }
html.vn:not([data-section="admin"]) .bd-m {
  display: flex; flex-direction: column; gap: 8px; min-height: 92px; padding: 12px 14px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--vn-text); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .bd-m:hover { color: var(--vn-text); border-color: rgba(255, 255, 255, .3); }
html.vn:not([data-section="admin"]) .bd-m.is-cur { border-color: rgba(46, 230, 214, .5); }
html.vn:not([data-section="admin"]) .bd-m.is-on { border-color: var(--vn-pink); background: rgba(255, 79, 163, .12); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35); }
html.vn:not([data-section="admin"]) .bd-m.is-empty { opacity: .6; }
html.vn:not([data-section="admin"]) .bd-m__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
html.vn:not([data-section="admin"]) .bd-m__h b { font-size: 14px; font-weight: 800; }
html.vn:not([data-section="admin"]) .bd-m__n { font: 700 12px var(--vn-font-mono); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .bd-m__d { display: flex; flex-wrap: wrap; gap: 4px; }
html.vn:not([data-section="admin"]) .bd-m__d span { padding: 2px 8px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .bd-m__d span.is-today { background: var(--vn-pink); color: var(--vn-ink); }

/* список */
html.vn:not([data-section="admin"]) .bd-list {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--vn-radius-section);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .bd-list__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
html.vn:not([data-section="admin"]) .bd-list__h h2 { margin: 0; font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; }
html.vn:not([data-section="admin"]) .bd-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px;
  border-radius: 18px; color: var(--vn-text); text-decoration: none; transition: background .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .bd-row:hover { color: var(--vn-text); background: rgba(255, 255, 255, .05); }
@media (hover: hover) { html.vn:not([data-section="admin"]) .bd-row:hover { transform: translateX(4px); } }
html.vn:not([data-section="admin"]) .bd-row.is-today { background: rgba(255, 79, 163, .08); }
html.vn:not([data-section="admin"]) .bd-row__d {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .06);
}
html.vn:not([data-section="admin"]) .bd-row.is-today .bd-row__d { background: var(--vn-grad-brand); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .bd-row__d b { font: 800 20px/1 var(--vn-font-display); }
html.vn:not([data-section="admin"]) .bd-row__d span { font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .bd-row__t { display: flex; flex-direction: column; min-width: 0; }
html.vn:not([data-section="admin"]) .bd-row__t b { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .bd-row.is-today .bd-row__t b { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .bd-row__t span { font-size: 12.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .bd-row__a { font-size: 13px; color: var(--vn-text-2); }
html.vn:not([data-section="admin"]) .bd-row__l {
  min-width: 96px; text-align: center; padding: 5px 12px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .06);
  font: 700 12px var(--vn-font-mono); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .bd-row__l.is-soon { background: rgba(255, 159, 69, .16); color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .bd-row.is-today .bd-row__l { background: var(--vn-pink); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .bd-empty { margin: 0; padding: 20px; color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .bd-none { padding: 40px 20px; border-radius: 24px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .bd-none h2 { margin: 0 0 6px; font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .bd-none p { margin: 0 0 14px; }
html.vn:not([data-section="admin"]) .bd-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--vn-radius-pill); color: var(--vn-text); font-weight: 700; text-decoration: none; }
html.vn:not([data-section="admin"]) .bd-foot { margin: 0; font-size: 12.5px; color: var(--vn-muted-2); }
/* банер на /online/server, коли дата відома */
html.vn:not([data-section="admin"]) .vo-birthday.is-today { border-color: rgba(255, 79, 163, .55); }
html.vn:not([data-section="admin"]) .vo-birthday a { display: inline-block; padding: 3px 0; font-weight: 700; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .bd-list { padding: 12px; }
  html.vn:not([data-section="admin"]) .bd-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
  html.vn:not([data-section="admin"]) .bd-row__a { display: none; }
  html.vn:not([data-section="admin"]) .bd-row__d { height: 48px; }
  html.vn:not([data-section="admin"]) .bd-row__l { min-width: 0; }
  html.vn:not([data-section="admin"]) .bd-months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn:not([data-section="admin"]) .bd-next { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .bd-conf { display: none; }
}

/* vn-crafts.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: калькулятор крафтів (/crafts) за CraftB.dc.html.
   Розмітку малює той самий public/js/crafts.js (рецепти з БД, перки гравця, обране); формула —
   public/js/craft-calc.js (тести test/js/craft_calc.test.js). Під .vn crafts.js додає «Вже маю» до кожного
   ресурсу (Calc.missingResources) — стилі цього блоку тут же. Старий вигляд не змінено.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .crafts {
  --card: rgba(255, 255, 255, .035);
  --surface: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --bg: var(--vn-bg);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --faint: var(--vn-muted-2);
  --accent: var(--vn-pink);
  --accent-line: var(--vn-pink);
  --accent-strong: var(--vn-pink-soft);
  --primary-soft: rgba(255, 79, 163, .14);
  --on-primary: var(--vn-ink);
  --good: var(--vn-cyan);
  --good-soft: rgba(46, 230, 214, .14);
  --warning: var(--vn-yellow);
  --chance-low: var(--vn-red);
  --chance-mid: var(--vn-orange);
  --chance-hi: var(--vn-cyan);
  --r-common: var(--vn-common);
  --r-rare: var(--vn-rare);
  --r-epic: var(--vn-epic);
  --r-leg: var(--vn-legendary);
  --r-myth: var(--vn-named);
  --font: var(--vn-font-body);
  --f-mono: var(--vn-font-mono);
  width: 100%; max-width: none; box-sizing: border-box; gap: 22px;
  font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}

/* заголовок і пошук */
html.vn:not([data-section="admin"]) .crafts .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .crafts .page-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .crafts .cr-q { height: 48px; padding: 0 18px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .crafts .cr-q:focus-within { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .crafts .cr-q input::placeholder { color: var(--vn-muted); }

/* вкладки категорій — чипи */
html.vn:not([data-section="admin"]) .crafts .cr-tabs { flex-wrap: wrap; gap: 6px; padding: 0; border: 0; background: none; overflow: visible; }
html.vn:not([data-section="admin"]) .crafts .cr-tab {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); color: var(--vn-text); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .crafts .cr-tab:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); }
html.vn:not([data-section="admin"]) .crafts .cr-tab[aria-selected=true] {
  background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18); border-color: var(--vn-pink);
}
html.vn:not([data-section="admin"]) .crafts .cr-tab__n { background: none; font-size: 11px; color: inherit; opacity: .7; }

/* список рецептів */
html.vn:not([data-section="admin"]) .crafts .cr-list { top: 96px; border-radius: var(--vn-radius-card); }
html.vn:not([data-section="admin"]) .crafts .cr-items { max-height: calc(100vh - 180px); }
html.vn:not([data-section="admin"]) .crafts .cr-it { min-height: 56px; transition: background .2s; }
html.vn:not([data-section="admin"]) .crafts .cr-it.is-on { background: rgba(255, 79, 163, .1); }
html.vn:not([data-section="admin"]) .crafts .cr-it.is-on::before { background: var(--vn-pink); }
html.vn:not([data-section="admin"]) .crafts .cr-it__txt b { font-weight: 800; }
html.vn:not([data-section="admin"]) .crafts .cr-it__txt span { font-size: 12px; }
html.vn:not([data-section="admin"]) .crafts .cr-ico { border-radius: 14px; }
html.vn:not([data-section="admin"]) .crafts .cr-fav { min-width: 32px; min-height: 32px; }

/* картка рецепта */
html.vn:not([data-section="admin"]) .crafts .cr-sheet { border-radius: var(--vn-radius-section); }
html.vn:not([data-section="admin"]) .crafts .cr-sheet__in { padding: 22px; }
html.vn:not([data-section="admin"]) .crafts .cr-hero h2 { font-family: var(--vn-font-display); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: -.02em; }
html.vn:not([data-section="admin"]) .crafts .cr-ico--lg { border-radius: 20px; }
html.vn:not([data-section="admin"]) .crafts .cr-tag { padding: 3px 10px; border-radius: var(--vn-radius-pill); font-size: 12px; font-weight: 700; }
html.vn:not([data-section="admin"]) .crafts .cr-fav--lg { border-radius: 50%; }
html.vn:not([data-section="admin"]) .crafts .cr-box { border-radius: 22px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .crafts .cr-box h3,
html.vn:not([data-section="admin"]) .crafts .cr-sec-h h3 { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
html.vn:not([data-section="admin"]) .crafts .cr-box h3 em,
html.vn:not([data-section="admin"]) .crafts .cr-res-chip { border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .crafts .cr-pk {
  min-height: 36px; padding: 0 14px; border-radius: var(--vn-radius-pill); border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: var(--vn-text); font-weight: 700;
}
html.vn:not([data-section="admin"]) .crafts .cr-pk:hover { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .crafts .cr-pk[aria-pressed=true] {
  background: rgba(255, 79, 163, .16); border-color: var(--vn-pink); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .3);
}
html.vn:not([data-section="admin"]) .crafts .cr-pk__ck { width: 16px; height: 16px; }
html.vn:not([data-section="admin"]) .crafts .cr-steps { border-radius: var(--vn-radius-pill); padding: 4px; }
html.vn:not([data-section="admin"]) .crafts .cr-steps button { min-height: 32px; border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .crafts .cr-steps button[aria-pressed=true] { background: var(--vn-pink); color: var(--vn-ink); }
html.vn:not([data-section="admin"]) .crafts .cr-inp { height: 40px; border-radius: var(--vn-radius-field); }
html.vn:not([data-section="admin"]) .crafts .cr-inp input { height: 100%; }
html.vn:not([data-section="admin"]) .crafts .cr-box h3 em.is-zero,
html.vn:not([data-section="admin"]) .crafts .cr-res-chip.is-zero { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .crafts .cr-inp:focus-within,
html.vn:not([data-section="admin"]) .crafts .cr-qty input:focus { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .crafts .cr-formula { border-radius: 16px; }
html.vn:not([data-section="admin"]) .crafts .cr-formula code { border-radius: 8px; }
html.vn:not([data-section="admin"]) .crafts .cr-sec-h button { min-height: 32px; border-radius: var(--vn-radius-pill); }

/* ресурси + «Вже маю» */
html.vn:not([data-section="admin"]) .crafts .cr-res { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
html.vn:not([data-section="admin"]) .crafts .cr-rs { border-radius: 20px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .crafts .cr-rs b { font-weight: 800; }
html.vn:not([data-section="admin"]) .crafts .cr-rs__cnt strong { font-size: 20px; }
html.vn:not([data-section="admin"]) .crafts .cr-rs__lock { border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .crafts .cr-rs__have { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .crafts .cr-rs__have input {
  width: 72px; height: 34px; padding: 0 10px; box-sizing: border-box; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14);
  background: var(--vn-bg); color: var(--vn-text); font: 700 13px var(--vn-font-mono); text-align: right; outline: none;
}
html.vn:not([data-section="admin"]) .crafts .cr-rs__have input:focus { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .crafts .cr-rs__miss { font: 700 12px var(--vn-font-mono); color: var(--vn-red); }
html.vn:not([data-section="admin"]) .crafts .cr-rs__miss.is-ok { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .crafts .cr-miss {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 90, 122, .08); border: 1px solid rgba(255, 90, 122, .3);
  font-size: 13.5px; font-weight: 700; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .crafts .cr-miss.is-ok { background: rgba(46, 230, 214, .08); border-color: rgba(46, 230, 214, .3); }

/* підсумок */
html.vn:not([data-section="admin"]) .crafts .cr-bar { border-radius: 0 0 var(--vn-radius-section) var(--vn-radius-section); background: #100E1A; }
html.vn:not([data-section="admin"]) .crafts .cr-qty button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .crafts .cr-qty input { height: 36px; border-radius: var(--vn-radius-field); }
html.vn:not([data-section="admin"]) .crafts .cr-stat > span { font-size: 12px; font-weight: 800; }
html.vn:not([data-section="admin"]) .crafts .cr-stat b { font-size: 18px; }
html.vn:not([data-section="admin"]) .crafts #cr-s-time { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .crafts .cr-total b { font-size: 22px; color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .cr-toast {
  border-radius: var(--vn-radius-pill); background: var(--vn-ink); border-color: rgba(255, 79, 163, .5); box-shadow: 0 0 40px rgba(255, 79, 163, .35); font-weight: 700;
}

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .crafts .cr-bar { bottom: 88px; }
  html.vn:not([data-section="admin"]) .cr-toast { bottom: 100px; }
  html.vn:not([data-section="admin"]) .crafts .cr-sheet__in { padding: 14px; }
  html.vn:not([data-section="admin"]) .crafts .cr-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn:not([data-section="admin"]) .crafts input { font-size: 16px; }
  html.vn:not([data-section="admin"]) .crafts .cr-pk { min-height: 40px; }
}

/* vn-mining.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: калькулятор ферм (/mining, гілка @design_b у views/mining.erb) за
   MiningB.dc.html. Логіка — public/js/mining-vn.js, формула — public/js/mining-calc.js (calcFarm/calcFarms).
   Старий вигляд (.mining/.mn-*, public/js/mining.js) не змінено.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .mnv-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .mnv-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .mnv-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 72px); line-height: .95; letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .mnv-sub { margin: 10px 0 0; max-width: 66ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .mnv-warn { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: var(--vn-radius-pill); background: rgba(255, 226, 122, .08); border: 1px solid rgba(255, 226, 122, .3); color: var(--vn-yellow); font-size: 13px; font-weight: 700; }
html.vn:not([data-section="admin"]) .mnv-muted { margin: 0; color: var(--vn-muted); font-size: 13px; }
html.vn:not([data-section="admin"]) .mnv-empty { margin: 0; padding: 28px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--vn-muted); text-align: center; }

html.vn:not([data-section="admin"]) .mnv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
html.vn:not([data-section="admin"]) .mnv-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
html.vn:not([data-section="admin"]) .mnv-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--vn-radius-section);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .mnv-card__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .mnv-card__h h2, html.vn:not([data-section="admin"]) .mnv-total h2 { margin: 0; font-family: var(--vn-font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
html.vn:not([data-section="admin"]) .mnv-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* сервери */
html.vn:not([data-section="admin"]) .mnv-srvs { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn:not([data-section="admin"]) .mnv-srv { display: inline-flex; align-items: stretch; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); overflow: hidden; }
html.vn:not([data-section="admin"]) .mnv-srv.is-on { border-color: var(--vn-pink); background: rgba(255, 79, 163, .14); box-shadow: 0 0 0 2px rgba(255, 79, 163, .3); }
html.vn:not([data-section="admin"]) .mnv-srv button { min-height: 40px; border: 0; background: none; color: var(--vn-text); font: 700 13px var(--vn-font-body); cursor: pointer; }
html.vn:not([data-section="admin"]) .mnv-srv__b { padding: 0 6px 0 16px; }
html.vn:not([data-section="admin"]) .mnv-srv__b small { color: var(--vn-muted); font-size: 12px; font-weight: 600; }
html.vn:not([data-section="admin"]) .mnv-srv.is-on .mnv-srv__b { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .mnv-srv__x { width: 36px; font-size: 18px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-srv__x:hover { color: var(--vn-red); }
html.vn:not([data-section="admin"]) .mnv-pick { display: flex; flex-direction: column; gap: 10px; }
html.vn:not([data-section="admin"]) .mnv-q input {
  width: 100%; height: 44px; box-sizing: border-box; padding: 0 16px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04); color: var(--vn-text); font-size: 15px; outline: none;
}
html.vn:not([data-section="admin"]) .mnv-q input:focus { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .mnv-pick__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
html.vn:not([data-section="admin"]) .mnv-pick__i {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 8px 12px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: var(--vn-text); text-align: left; cursor: pointer;
}
html.vn:not([data-section="admin"]) .mnv-pick__i:hover { border-color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .mnv-pick__i span { font-size: 12px; color: var(--vn-muted); }

/* умови */
html.vn:not([data-section="admin"]) .mnv-cond { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; align-items: end; }
html.vn:not([data-section="admin"]) .mnv-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.vn:not([data-section="admin"]) .mnv-f--wide { grid-column: 1 / -1; }
html.vn:not([data-section="admin"]) .mnv-f label, html.vn:not([data-section="admin"]) .mnv-f__l { font-size: 12.5px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-f label b { color: var(--vn-cyan); font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .mnv-num { width: 100%; box-sizing: border-box; height: 42px; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .mnv-f small { font-size: 12px; }
html.vn:not([data-section="admin"]) .mnv-ck { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; font-weight: 700; cursor: pointer; }
html.vn:not([data-section="admin"]) .mnv-ck input { width: 20px; height: 20px; accent-color: var(--vn-pink); }

/* ферми */
html.vn:not([data-section="admin"]) .mnv-farms { display: flex; flex-direction: column; gap: 14px; }
html.vn:not([data-section="admin"]) .mnv-farm {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--vn-radius-card);
  background: linear-gradient(160deg, rgba(46, 230, 214, .06), rgba(185, 140, 255, .04)), var(--vn-bg); border: 1px solid rgba(46, 230, 214, .2);
  animation: bIn .55s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .mnv-farm__h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .mnv-farm__name {
  flex: 1 1 200px; min-width: 0; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; background: none;
  color: var(--vn-text); font: 800 18px var(--vn-font-display); text-transform: uppercase; outline: none;
}
html.vn:not([data-section="admin"]) .mnv-farm__name:hover { border-color: rgba(255, 255, 255, .14); }
html.vn:not([data-section="admin"]) .mnv-farm__name:focus { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .mnv-farm__n { font: 700 12px var(--vn-font-mono); color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-slots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
html.vn:not([data-section="admin"]) .mnv-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 2px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--vn-text); cursor: pointer;
  font: 700 18px var(--vn-font-mono); transition: border-color .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .mnv-slot b { font-size: 16px; line-height: 1; }
html.vn:not([data-section="admin"]) .mnv-slot small { font-size: 11px; font-weight: 700; }
html.vn:not([data-section="admin"]) .mnv-slot.is-empty { border-style: dashed; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-slot.is-btc { border-color: rgba(255, 159, 69, .45); background: rgba(255, 159, 69, .1); }
html.vn:not([data-section="admin"]) .mnv-slot.is-btc small { color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .mnv-slot.is-asc { border-color: rgba(185, 140, 255, .5); background: rgba(185, 140, 255, .1); }
html.vn:not([data-section="admin"]) .mnv-slot.is-asc small { color: var(--vn-purple); }
html.vn:not([data-section="admin"]) .mnv-slot.is-asic { border-color: rgba(46, 230, 214, .55); background: rgba(46, 230, 214, .12); }
html.vn:not([data-section="admin"]) .mnv-slot.is-asic small { color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .mnv-slot.is-open { box-shadow: 0 0 0 2px var(--vn-pink); }
@media (hover: hover) { html.vn:not([data-section="admin"]) .mnv-slot:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .35); } }
html.vn:not([data-section="admin"]) .mnv-ed {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: rgba(255, 79, 163, .06); border: 1px solid rgba(255, 79, 163, .3);
  animation: bFade .3s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .mnv-ed__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.vn:not([data-section="admin"]) .mnv-ed__row > .mnv-f__l { min-width: 70px; }
html.vn:not([data-section="admin"]) .mnv-ed .b-chip { min-width: 40px; justify-content: center; }
html.vn:not([data-section="admin"]) .mnv-ed .b-chip:disabled { opacity: .4; cursor: not-allowed; }
html.vn:not([data-section="admin"]) .mnv-ed__act { justify-content: flex-end; }
html.vn:not([data-section="admin"]) .mnv-farm__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: end; }
html.vn:not([data-section="admin"]) .mnv-farm__out { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 8px; margin: 0; }
html.vn:not([data-section="admin"]) .mnv-farm__out > div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .mnv-farm__out dt, html.vn:not([data-section="admin"]) .mnv-rows dt { font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-farm__out dd, html.vn:not([data-section="admin"]) .mnv-rows dd { margin: 2px 0 0; font: 700 14px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .mnv-farm__out dd.is-profit { color: var(--vn-cyan); font-size: 16px; }
html.vn:not([data-section="admin"]) .is-neg { color: var(--vn-red) !important; }
html.vn:not([data-section="admin"]) .mnv-farm__act { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
html.vn:not([data-section="admin"]) .mnv-move { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-move select { height: 40px; padding: 0 12px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .14); background: var(--vn-surface); color: var(--vn-text); font: 600 13px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .mnv-del { min-height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); color: var(--vn-red); }
html.vn:not([data-section="admin"]) .mnv-addfarm { align-self: flex-start; min-height: 44px; padding: 0 22px; border-radius: var(--vn-radius-pill); }

/* підсумок */
html.vn:not([data-section="admin"]) .mnv-total {
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--vn-radius-section);
  background: linear-gradient(160deg, rgba(255, 159, 69, .14), rgba(255, 79, 163, .06)), var(--vn-bg); border: 1px solid rgba(255, 159, 69, .3);
}
html.vn:not([data-section="admin"]) .mnv-total h2 small { display: block; margin-top: 4px; font: 600 12.5px var(--vn-font-body); text-transform: none; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .mnv-big span { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .mnv-big b { display: block; margin-top: 4px; font: 700 clamp(28px, 3.2vw, 38px)/1.05 var(--vn-font-mono); color: var(--vn-cyan); overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .mnv-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; }
html.vn:not([data-section="admin"]) .mnv-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }

@media (max-width: 1100px) {
  html.vn:not([data-section="admin"]) .mnv-grid { grid-template-columns: minmax(0, 1fr); }
  html.vn:not([data-section="admin"]) .mnv-total { position: static; order: -1; }
}
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .mnv-card, html.vn:not([data-section="admin"]) .mnv-farm, html.vn:not([data-section="admin"]) .mnv-total { padding: 14px; }
  html.vn:not([data-section="admin"]) .mnv-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.vn:not([data-section="admin"]) .mnv-num, html.vn:not([data-section="admin"]) .mnv-q input, html.vn:not([data-section="admin"]) .mnv-farm__name { font-size: 16px; }
  html.vn:not([data-section="admin"]) .mnv-ed .b-chip { min-height: 40px; }
}

/* vn-estate.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: нерухомість (/real-estate) за EstateB.dc.html.
   Розмітку й інлайн-логіку views/real_estate.erb (реальні будинки/бізнеси, фільтри, канва-мапа, картка
   об'єкта) не змінено — лише вигляд. Під .vn канва малює свою схематичну мапу
   (public/images/map/schematic.svg) замість ігрового зображення (CLAUDE.md, правило 7).
   Кольори маркерів канва читає з :root (--taken/--free/--auction/--biz) — тут вони в палітрі.
   ────────────────────────────────────────────────────────────────────────── */

html.vn[data-section="estate"] {
  --taken: #A39FB5;
  --taken-soft: rgba(163, 159, 181, .14);
  --free: #2EE6D6;
  --free-soft: rgba(46, 230, 214, .14);
  --auction: #FF4FA3;
  --auction-soft: rgba(255, 79, 163, .16);
  --biz: #FF9F45;
  --biz-soft: rgba(255, 159, 69, .16);
}
html.vn:not([data-section="admin"]) .re-page {
  --card: rgba(255, 255, 255, .035);
  --surface: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --bg: var(--vn-bg);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --faint: var(--vn-muted-2);
  --primary: var(--vn-pink);
  --primary-hover: var(--vn-pink-soft);
  --primary-soft: rgba(255, 79, 163, .12);
  --on-primary: var(--vn-ink);
  --font: var(--vn-font-body);
  --f-mono: var(--vn-font-mono);
  width: 100%; box-sizing: border-box; gap: 22px;
  font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}

/* заголовок */
html.vn:not([data-section="admin"]) .re-page .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .re-page .page-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .re-page .re-subnav .pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--vn-text); font-weight: 700; font-size: 13px;
}
html.vn:not([data-section="admin"]) .re-page .re-subnav .pill--active { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .re-page .re-updated { min-height: 36px; border-radius: var(--vn-radius-pill); font-weight: 700; }

/* KPI-чипи статусів */
html.vn:not([data-section="admin"]) .re-page .re-kpi { border-radius: 20px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .re-page .re-kpi[aria-pressed="true"] { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
html.vn:not([data-section="admin"]) .re-page .re-kpi__label { font-weight: 700; }
html.vn:not([data-section="admin"]) .re-page .re-kpi__value { font-family: var(--vn-font-display); font-weight: 800; font-size: 24px; color: var(--c); }

/* фільтри */
html.vn:not([data-section="admin"]) .re-page .re-toolbar { border-radius: 24px; padding: 12px; }
html.vn:not([data-section="admin"]) .re-page .re-toolbar .iselect select,
html.vn:not([data-section="admin"]) .re-page .re-toolbar .ifield { border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .re-page .re-seg { gap: 6px; padding: 0; border: 0; background: none; }
html.vn:not([data-section="admin"]) .re-page .re-seg button {
  min-height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: var(--vn-text); font-weight: 700;
}
html.vn:not([data-section="admin"]) .re-page .re-seg button[aria-pressed="true"] {
  background: rgba(255, 79, 163, .16); border-color: var(--vn-pink); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35);
}

/* список і мапа */
html.vn:not([data-section="admin"]) .re-page .re-panel { border-radius: var(--vn-radius-section); }
html.vn:not([data-section="admin"]) .re-page .re-row { transition: background .2s; }
html.vn:not([data-section="admin"]) .re-page .re-row.is-on { background: rgba(255, 79, 163, .1); }
html.vn:not([data-section="admin"]) .re-page .re-row__id { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .re-page .re-row__who b { font-weight: 800; }
html.vn:not([data-section="admin"]) .re-page .re-st { border-radius: var(--vn-radius-pill); font-weight: 700; }
html.vn:not([data-section="admin"]) .re-page .re-map { top: 96px; }
html.vn:not([data-section="admin"]) .re-page .re-stage { background: var(--vn-bg); }
html.vn:not([data-section="admin"]) .re-page .re-chip { min-height: 36px; border-radius: var(--vn-radius-pill); font-weight: 700; }
html.vn:not([data-section="admin"]) .re-page .re-chip[aria-pressed="true"] { border-color: var(--vn-pink); background: rgba(255, 79, 163, .14); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .re-page .re-zoom { border-radius: 16px; background: rgba(11, 10, 18, .85); }
html.vn:not([data-section="admin"]) .re-page .re-zoom button { width: 40px; height: 40px; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .re-page .re-tip { border-radius: 12px; background: var(--vn-ink); border-color: rgba(255, 79, 163, .5); }
html.vn:not([data-section="admin"]) .re-page .re-map__foot { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .re-page .re-obj { border-radius: 22px; background: rgba(16, 14, 26, .97); border-color: rgba(255, 79, 163, .4); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
html.vn:not([data-section="admin"]) .re-page .re-obj__t h3 { font-family: var(--vn-font-display); font-weight: 800; text-transform: uppercase; font-size: 17px; }
html.vn:not([data-section="admin"]) .re-page .re-obj__x { min-width: 32px; min-height: 32px; border-radius: 50%; }
html.vn:not([data-section="admin"]) .re-page .re-owner { border-radius: 14px; }
html.vn:not([data-section="admin"]) .re-page .re-more { min-height: 44px; font-weight: 700; color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .re-toast { border-radius: var(--vn-radius-pill); background: var(--vn-ink); border-color: rgba(255, 79, 163, .5); }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .re-page .re-seg button { min-height: 40px; }
  html.vn:not([data-section="admin"]) .re-page input, html.vn:not([data-section="admin"]) .re-page select { font-size: 16px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   /real-estate як у прототипі EstateB (views/real_estate.erb, гілка @design_b): .rev-*
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .re-page:has(.rev-split) { display: flex; flex-direction: column; gap: 28px; padding-top: 44px; padding-bottom: 90px; min-width: 0; max-width: min(1240px, 100%); }
html.vn .rev-head { display: flex; flex-direction: column; align-items: flex-start; }
html.vn .rev-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(46, 230, 214, .35);
  background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; }
html.vn .rev-h1 { margin: 14px 0 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5.4vw, 76px);
  line-height: .95; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; overflow-wrap: anywhere; }
html.vn .rev-h1 .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn .rev-hue { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #FF4FA3); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn .rev-sub { margin: 10px 0 0; max-width: 60ch; color: #A39FB5; }
html.vn .rev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
html.vn .rev-meta .vo-fresh { margin-top: 0; }
html.vn:not([data-section="admin"]) .rev-meta .vo-fresh__dot.is-warn { background: #FF9F45; }
html.vn .rev-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
html.vn .rev-links a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 14px; color: #2EE6D6; text-decoration: none; }
html.vn .rev-links a:hover { color: #F3F1F8; }

html.vn:not([data-section="admin"]) .re-page .rev-split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
html.vn:not([data-section="admin"]) .re-page .rev-split > .re-map { flex: 3 1 620px; min-width: 0; border-radius: 28px; }
html.vn:not([data-section="admin"]) .re-page .rev-split .re-stage { height: 560px; min-height: 360px; }
html.vn .rev-side { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.vn .rev-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); color: #A39FB5; }
html.vn .rev-search:focus-within { border-color: #2EE6D6; }
html.vn .rev-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: #F3F1F8; font: 600 14px var(--vn-font-body); }
html.vn .rev-search input::placeholder { color: #A39FB5; }
html.vn .rev-search .re-search__x { position: static; transform: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #F3F1F8; cursor: pointer; }
html.vn .rev-search .re-search__x[hidden] { display: none; }
html.vn .rev-srv { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
html.vn .rev-srv .b-chip { flex: none; }
html.vn .rev-srv .b-chip[aria-checked="true"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FF8CC4; }
html.vn:not([data-section="admin"]) .re-page .rev-kind { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: none; border: 0; }
html.vn:not([data-section="admin"]) .re-page .rev-kind .b-chip { height: 38px; border-radius: 999px; }
html.vn:not([data-section="admin"]) .re-page .rev-kind .b-chip[aria-pressed="true"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FF8CC4; box-shadow: none; }
html.vn:not([data-section="admin"]) .re-page .rev-kind .re-seg__count { font-family: var(--vn-font-mono); font-size: 12px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .re-page .rev-list { border-radius: 24px; }
html.vn:not([data-section="admin"]) .re-page .rev-list .re-rows { height: 500px; min-height: 0; padding: 6px; }
html.vn:not([data-section="admin"]) .re-page .rev-row { grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border: 0; border-radius: 14px; }
html.vn:not([data-section="admin"]) .re-page .rev-row::before { display: none; }
html.vn:not([data-section="admin"]) .re-page .rev-row:hover { background: rgba(255, 255, 255, .05); }
html.vn .rev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--taken); }
html.vn .rev-dot.re-st--free { background: var(--free); }
html.vn .rev-dot.re-st--auction { background: var(--auction); }
html.vn:not([data-section="admin"]) .re-page .rev-row .re-row__price { grid-column: 3; grid-row: 1; font: 700 12.5px var(--vn-font-mono); text-align: right; }
html.vn:not([data-section="admin"]) .re-page .rev-row .re-row__price small { display: block; margin-left: 0; }
html.vn .rev-h1 { overflow-wrap: normal; word-break: normal; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .re-page:has(.rev-split) { padding-top: 20px; gap: 20px; }
  html.vn .rev-h1 { font-size: clamp(26px, 8.4vw, 40px); }
  html.vn:not([data-section="admin"]) .re-page .rev-split .re-stage { height: min(62vh, 460px); }
  html.vn:not([data-section="admin"]) .re-page .rev-list .re-rows { height: auto; max-height: 70vh; }
  html.vn .rev-srv .b-chip, html.vn:not([data-section="admin"]) .re-page .rev-kind .b-chip { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { html.vn .rev-h1 .b-rise, html.vn .rev-hue { animation: none; } }

/* ─── Історія власників /real-estate/history (views/real_estate_history.erb, @design_b): .reh-* ─── */
html.vn:not([data-section="admin"]) .reh-page { display: flex; flex-direction: column; gap: 22px; padding-top: 44px; padding-bottom: 90px; min-width: 0; width: 100%; max-width: min(1240px, 100%); color: #F3F1F8; }
html.vn .reh-page .rev-chip { text-decoration: none; }
html.vn .reh-page .rev-chip:hover { color: #F3F1F8; border-color: #2EE6D6; }
html.vn .reh-h1 { font-size: clamp(30px, 4.6vw, 64px); }
html.vn .reh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
html.vn .reh-kind { display: flex; gap: 6px; flex-wrap: wrap; }
html.vn .reh-kind .b-chip { text-decoration: none; }
html.vn .reh-kind .b-chip[aria-current="page"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FF8CC4; }
html.vn .reh-total { color: #A39FB5; font-weight: 700; }
html.vn .reh-total b { font-family: var(--vn-font-mono); color: #2EE6D6; font-size: 18px; }
html.vn .reh-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html.vn .reh-sel select { height: 44px; padding: 0 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #F3F1F8; font: 700 14px var(--vn-font-body); max-width: 100%; }
html.vn .reh-sel select option { background: #17121F; }
html.vn .reh-q { flex: 1 1 280px; }
html.vn .reh-go { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A; font: 800 14px var(--vn-font-body); cursor: pointer; }
html.vn .reh-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn .reh-row { display: grid; grid-template-columns: 150px minmax(0, 220px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; }
html.vn .reh-row:hover { background: rgba(255, 255, 255, .05); }
html.vn .reh-row time { font: 600 13px var(--vn-font-mono); color: #A39FB5; }
html.vn .reh-row__obj { display: flex; align-items: center; gap: 8px; min-width: 0; }
html.vn .reh-row__obj a { font: 700 14px var(--vn-font-mono); color: #2EE6D6; text-decoration: none; min-height: 24px; display: inline-flex; align-items: center; }
html.vn .reh-row__obj a:hover { color: #F3F1F8; }
html.vn .reh-page .srv-badge { min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(185, 140, 255, .14); color: #B98CFF; font: 700 12px var(--vn-font-mono); border: 0; }
html.vn .reh-row__srv { font-size: 13px; color: #A39FB5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn .reh-row__who { min-width: 0; overflow-wrap: anywhere; color: #A39FB5; }
html.vn .reh-row__who b { color: #F3F1F8; }
html.vn .reh-arrow { color: #FF4FA3; font-weight: 900; margin: 0 4px; }
html.vn .reh-page .player-link { color: inherit; text-decoration-color: rgba(255, 79, 163, .6); }
html.vn .reh-page .player-link:hover { color: #FF8CC4; }
html.vn .reh-empty { padding: 32px; border-radius: 24px; border: 1px dashed rgba(255, 255, 255, .16); color: #A39FB5; text-align: center; }
html.vn .reh-page :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .reh-page { padding-top: 20px; gap: 16px; }
  html.vn .reh-row { grid-template-columns: 1fr; gap: 4px; }
  html.vn .reh-sel, html.vn .reh-sel select, html.vn .reh-go { width: 100%; }
  html.vn .reh-kind .b-chip { min-height: 40px; }
}
html.vn .reh-page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
html.vn .reh-page .page-btn { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04); color: #F3F1F8; font: 700 14px var(--vn-font-mono); text-decoration: none; }
html.vn .reh-page .page-btn:hover { border-color: rgba(255, 255, 255, .35); }
html.vn .reh-page .page-btn--active { border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FF8CC4; }
html.vn .reh-page .page-btn--disabled { opacity: .45; pointer-events: none; }
html.vn .reh-page .page-ellipsis { align-self: center; color: #A39FB5; }

/* ─── Сторінка будинку / бізнесу (views/_estate_entity_vn.erb): .ree-* ─── */
html.vn:not([data-section="admin"]) .ree-page { display: flex; flex-direction: column; gap: 24px; padding-top: 44px; padding-bottom: 90px; min-width: 0; width: 100%; max-width: min(1240px, 100%); color: #F3F1F8; }
html.vn .ree-page .rev-chip { text-decoration: none; }
html.vn .ree-page .rev-chip:hover { color: #F3F1F8; border-color: #2EE6D6; }
html.vn .ree-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
html.vn .ree-h1 { margin-top: 14px; font-size: clamp(32px, 5vw, 68px); }
html.vn .ree-fav { width: 46px; height: 46px; margin-top: 14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04); color: #A39FB5; cursor: pointer; }
html.vn .ree-fav svg { fill: none; }
html.vn .ree-fav.entity-fav-btn--on { border-color: #FFE27A; background: rgba(255, 226, 122, .14); color: #FFE27A; }
html.vn .ree-fav.entity-fav-btn--on svg { fill: currentColor; }
html.vn .ree-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
html.vn .ree-st { --c: #A39FB5; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
html.vn .ree-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
html.vn .ree-st--free { --c: #2EE6D6; } html.vn .ree-st--auction { --c: #FF4FA3; } html.vn .ree-st--market { --c: #FF9F45; }
html.vn .ree-srv { display: inline-flex; align-items: center; gap: 8px; color: #A39FB5; font-weight: 700; font-size: 14px; }
html.vn .ree-page .srv-badge { min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(185, 140, 255, .14); color: #B98CFF; font: 700 12px var(--vn-font-mono); border: 0; }

html.vn .ree-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
html.vn .ree-col { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
html.vn .ree-card { padding: 20px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html.vn .ree-card__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
html.vn .ree-card__h h2 { margin: 0; font: 800 16px var(--vn-font-display); text-transform: uppercase; }
html.vn .ree-card__h a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 13px; color: #2EE6D6; text-decoration: none; }
html.vn .ree-card__h .num { font: 600 13px var(--vn-font-mono); color: #A39FB5; }
html.vn .ree-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #A39FB5; }
html.vn .ree-owner { flex-direction: row; align-items: center; gap: 16px; }
html.vn .ree-ava { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font: 900 24px var(--vn-font-display); color: #14061A;
  background: linear-gradient(135deg, #FF4FA3, #FF9F45); }
html.vn .ree-ava.is-none { background: rgba(46, 230, 214, .14); color: #2EE6D6; }
html.vn .ree-owner__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html.vn .ree-owner__t b { font-size: 20px; overflow-wrap: anywhere; }
html.vn .ree-none { color: #2EE6D6; }
html.vn .ree-name { color: #A39FB5; font-size: 14px; }
html.vn .ree-page .player-link { color: inherit; text-decoration-color: rgba(255, 79, 163, .6); }
html.vn .ree-page .player-link:hover { color: #FF8CC4; }
html.vn .ree-auc { border-color: rgba(255, 79, 163, .4); background: linear-gradient(160deg, rgba(255, 79, 163, .12), rgba(255, 159, 69, .05)); }
html.vn .ree-auc .ree-k { color: #FF8CC4; }
html.vn .ree-auc dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
html.vn .ree-auc dt { font-size: 13px; color: #A39FB5; }
html.vn .ree-auc dd { margin: 2px 0 0; font: 700 20px var(--vn-font-mono); color: #F3F1F8; white-space: nowrap; }
html.vn .ree-watch { margin: 0; }
html.vn .ree-watch button { width: 100%; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 226, 122, .4); background: rgba(255, 226, 122, .08);
  color: #FFE27A; font: 800 14px var(--vn-font-body); cursor: pointer; }
html.vn .ree-watch button:hover { border-color: #FFE27A; }
html.vn .ree-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
html.vn .ree-hist li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; }
html.vn .ree-hist li:hover { background: rgba(255, 255, 255, .04); }
html.vn .ree-hist time { font: 600 13px var(--vn-font-mono); color: #A39FB5; }
html.vn .ree-hist span { min-width: 0; overflow-wrap: anywhere; color: #A39FB5; }
html.vn .ree-hist b { color: #F3F1F8; }
html.vn .ree-empty { margin: 0; color: #A39FB5; }
html.vn .ree-map { flex: 1 1 360px; }
html.vn .ree-map__box { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0E0B18; }
html.vn .ree-map__box img { width: 100%; height: 100%; display: block; }
html.vn .ree-pin { --c: #A39FB5; position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  border: 3px solid #0B0A12; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 0 24px var(--c); animation: bPop .5s var(--vn-ease) both; }
html.vn .ree-pin--free { --c: #2EE6D6; } html.vn .ree-pin--auction { --c: #FF4FA3; } html.vn .ree-pin--taken { --c: #FFE27A; }
html.vn .ree-map__open { align-self: flex-start; display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 14px; color: #2EE6D6; text-decoration: none; }
html.vn .ree-page :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .ree-page { padding-top: 20px; gap: 18px; }
  html.vn .ree-hist li { grid-template-columns: 1fr; gap: 2px; }
  html.vn .ree-card { padding: 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { html.vn .ree-pin { animation: none; } }
html.vn .ree-pin--biz { --c: #FF9F45; border-radius: 4px; transform: rotate(45deg); margin: -11px 0 0 -11px; }

/* vn-statemap.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: мапа штату (/map, views/state_map.erb) за MapB.dc.html.
   Точки — справжні дані (routes/state_map.rb), підкладка — своя схема public/images/map/schematic.svg.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .sm-page {
  --job: var(--vn-yellow); --biz: var(--vn-orange); --house: var(--vn-purple);
  width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text);
}
html.vn:not([data-section="admin"]) .sm-page .sm-key--job { --c: var(--job); }
html.vn:not([data-section="admin"]) .sm-page .sm-key--biz { --c: var(--biz); }
html.vn:not([data-section="admin"]) .sm-page .sm-key--house { --c: var(--house); }

html.vn:not([data-section="admin"]) .sm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
html.vn:not([data-section="admin"]) .sm-head__t { flex: 1 1 480px; min-width: 0; }
html.vn:not([data-section="admin"]) .sm-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .sm-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .sm-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .sm-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .sm-counts { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn:not([data-section="admin"]) .sm-count { padding: 10px 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .sm-count span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .sm-count i, html.vn:not([data-section="admin"]) .sm-layers i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .sm-count b { font: 800 20px var(--vn-font-display); color: var(--c); }

html.vn:not([data-section="admin"]) .sm-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
html.vn:not([data-section="admin"]) .sm-layers { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .sm-layers .sm-n { font: 700 11px var(--vn-font-mono); opacity: .7; }
html.vn:not([data-section="admin"]) .sm-page:not(.is-js) .sm-layers,
html.vn:not([data-section="admin"]) .sm-page:not(.is-js) .sm-q,
html.vn:not([data-section="admin"]) .sm-page:not(.is-js) .sm-zoom { display: none; }
html.vn:not([data-section="admin"]) .sm-srv { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .sm-srv select { height: 40px; padding: 0 14px; border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .14); background: var(--vn-surface); color: var(--vn-text); font: 700 13px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .sm-q {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: var(--vn-radius-pill);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: var(--vn-muted);
}
html.vn:not([data-section="admin"]) .sm-q:focus-within { border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .6); }
html.vn:not([data-section="admin"]) .sm-q input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--vn-text); font-size: 15px; }
html.vn:not([data-section="admin"]) .sm-q input:focus-visible { box-shadow: none !important; }
html.vn:not([data-section="admin"]) .sm-note { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(255, 226, 122, .07); border: 1px solid rgba(255, 226, 122, .28); color: var(--vn-text); font-size: 13.5px; }

html.vn:not([data-section="admin"]) .sm-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
html.vn:not([data-section="admin"]) .sm-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: calc(100vh - 120px); margin: 0 auto; width: 100%;
  border-radius: var(--vn-radius-section); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: var(--vn-bg);
}
html.vn:not([data-section="admin"]) .sm-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
html.vn:not([data-section="admin"]) .sm-svg:active { cursor: grabbing; }
html.vn:not([data-section="admin"]) .sm-dot { cursor: pointer; stroke: var(--vn-bg); stroke-width: 1; vector-effect: non-scaling-stroke; }
html.vn:not([data-section="admin"]) .sm-dot--job { fill: var(--job); }
html.vn:not([data-section="admin"]) .sm-dot--biz { fill: var(--biz); }
html.vn:not([data-section="admin"]) .sm-dot--house { fill: var(--house); opacity: .85; }
html.vn:not([data-section="admin"]) .sm-dot--house.is-free { fill: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .sm-dot--house.is-auction { fill: var(--vn-pink); }
html.vn:not([data-section="admin"]) .sm-dot--house.is-taken { fill: #A39FB5; }
html.vn:not([data-section="admin"]) .sm-dot.is-sel { stroke: var(--vn-text); stroke-width: 2; }
html.vn:not([data-section="admin"]) .sm-ring { fill: none; stroke: var(--vn-pink); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
html.vn:not([data-section="admin"]) .sm-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(11, 10, 18, .85); border: 1px solid rgba(255, 255, 255, .14); }
html.vn:not([data-section="admin"]) .sm-zoom button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; color: var(--vn-text); font: 400 20px/1 var(--vn-font-body); cursor: pointer; }
html.vn:not([data-section="admin"]) .sm-zoom button + button { border-top: 1px solid rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .sm-zoom button:hover { background: rgba(255, 255, 255, .08); }

html.vn:not([data-section="admin"]) .sm-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: 96px; }
html.vn:not([data-section="admin"]) .sm-card {
  padding: 18px; border-radius: var(--vn-radius-card); background: linear-gradient(160deg, rgba(255, 79, 163, .1), rgba(46, 230, 214, .04)), var(--vn-bg);
  border: 1px solid rgba(255, 79, 163, .35); animation: bPop .3s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .sm-card__k { display: inline-flex; padding: 2px 10px; border-radius: var(--vn-radius-pill); background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 12px; font-weight: 800; }
html.vn:not([data-section="admin"]) .sm-card h2 { margin: 10px 0 4px; font-family: var(--vn-font-display); font-weight: 800; font-size: 18px; text-transform: uppercase; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .sm-card p { margin: 0; color: var(--vn-text-2); font-size: 14px; }
html.vn:not([data-section="admin"]) .sm-open,
html.vn:not([data-section="admin"]) .sm-open:hover { display: inline-flex; align-items: center; min-height: 40px; margin-top: 12px; padding: 0 18px; border-radius: var(--vn-radius-pill); color: var(--vn-ink); font-weight: 800; text-decoration: none; }
html.vn:not([data-section="admin"]) .sm-hint { margin: 0; color: var(--vn-muted); font-size: 14px; }
html.vn:not([data-section="admin"]) .sm-list__h { font-size: 12.5px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .sm-list { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
html.vn:not([data-section="admin"]) .sm-row {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-radius: 14px; border: 1px solid transparent;
  background: rgba(255, 255, 255, .03); color: var(--vn-text); text-align: left; cursor: pointer; transition: background .2s;
}
html.vn:not([data-section="admin"]) .sm-row:hover { background: rgba(255, 255, 255, .06); }
html.vn:not([data-section="admin"]) .sm-row.is-on { border-color: var(--vn-pink); background: rgba(255, 79, 163, .1); }
html.vn:not([data-section="admin"]) .sm-row > span { display: flex; flex-direction: column; min-width: 0; }
html.vn:not([data-section="admin"]) .sm-row b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.vn:not([data-section="admin"]) .sm-row span span { font-size: 12px; color: var(--vn-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.vn:not([data-section="admin"]) .sm-key { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .sm-key--biz.sm-key { border-radius: 2px; transform: rotate(45deg); }
html.vn:not([data-section="admin"]) .sm-key.is-free { background: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .sm-key.is-auction { background: var(--vn-pink); }
html.vn:not([data-section="admin"]) .sm-key.is-taken { background: #A39FB5; }
html.vn:not([data-section="admin"]) .sm-more, html.vn:not([data-section="admin"]) .sm-empty { margin: 6px 0 0; color: var(--vn-muted); font-size: 13px; text-align: center; }
html.vn:not([data-section="admin"]) .sm-foot { margin: 0; font-size: 12.5px; color: var(--vn-muted-2); }

@media (max-width: 1000px) {
  html.vn:not([data-section="admin"]) .sm-split { grid-template-columns: minmax(0, 1fr); }
  html.vn:not([data-section="admin"]) .sm-side { position: static; }
}
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .sm-q input, html.vn:not([data-section="admin"]) .sm-srv select { font-size: 16px; }
  html.vn:not([data-section="admin"]) .sm-list { max-height: none; }
}

/* vn-dforecast.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: прогноз знижок (/discounts/forecast, views/discounts_forecast.erb) за
   SalesForecastB.dc.html. Розрахунок — Web::DiscountForecast (lib/web/discount_forecast.rb).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .df-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 22px; font-family: var(--vn-font-body), sans-serif; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .df-page .df-st--active { --c: var(--vn-pink); }
html.vn:not([data-section="admin"]) .df-page .df-st--soon { --c: var(--vn-orange); }
html.vn:not([data-section="admin"]) .df-page .df-st--later { --c: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .df-page .df-st--overdue { --c: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .df-page .df-st--low,
html.vn:not([data-section="admin"]) .df-page .df-st--nodata { --c: var(--vn-muted); }

html.vn:not([data-section="admin"]) .df-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .df-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .df-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .df-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }
html.vn:not([data-section="admin"]) .df-note { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: var(--vn-radius-pill); background: rgba(255, 226, 122, .08); border: 1px solid rgba(255, 226, 122, .3); color: var(--vn-yellow); font-size: 13px; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html.vn:not([data-section="admin"]) .df-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--vn-radius-pill); color: var(--vn-text); font-weight: 700; text-decoration: none; }

html.vn:not([data-section="admin"]) .df-filter { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .df-filter a { text-decoration: none; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .df-filter a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .df-filter a span { font: 700 11px var(--vn-font-mono); opacity: .7; }
html.vn:not([data-section="admin"]) .df-filter a[aria-current="true"] { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35); }

html.vn:not([data-section="admin"]) .df-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
html.vn:not([data-section="admin"]) .df-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--vn-radius-card);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-top: 3px solid var(--c);
  animation: bIn .55s var(--vn-ease) both;
}
html.vn:not([data-section="admin"]) .df-card__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
html.vn:not([data-section="admin"]) .df-card h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .df-card h2 a { color: var(--vn-text); text-decoration: none; }
html.vn:not([data-section="admin"]) .df-card h2 a:hover { color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .df-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--vn-radius-pill); background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 12px; font-weight: 800; white-space: nowrap; }
html.vn:not([data-section="admin"]) .df-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html.vn:not([data-section="admin"]) .df-st--active .df-badge i { animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .df-win { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 8%, transparent); }
html.vn:not([data-section="admin"]) .df-lbl { flex-basis: 100%; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-win b { font: 800 20px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .df-left { font: 700 13px var(--vn-font-mono); color: var(--c); }
html.vn:not([data-section="admin"]) .df-why { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); color: var(--vn-muted); font-size: 13.5px; }
html.vn:not([data-section="admin"]) .df-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
html.vn:not([data-section="admin"]) .df-meta dt { font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-meta dd { margin: 2px 0 0; font: 700 13px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .df-conf { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--vn-text-2); }
html.vn:not([data-section="admin"]) .df-bars { display: inline-flex; gap: 3px; }
html.vn:not([data-section="admin"]) .df-bars i { width: 14px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .df-bars i.is-on { background: var(--c); }
html.vn:not([data-section="admin"]) .df-hist { align-self: flex-start; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-empty { margin: 0; padding: 32px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--vn-muted); text-align: center; }
html.vn:not([data-section="admin"]) .df-foot { margin: 0; font-size: 12.5px; color: var(--vn-muted-2); }

/* підписки (web_discount_forecast_watches) */
html.vn:not([data-section="admin"]) .df-flash { margin: 0; padding: 10px 14px; border-radius: 16px; background: rgba(46, 230, 214, .08); border: 1px solid rgba(46, 230, 214, .3); font-weight: 700; }
html.vn:not([data-section="admin"]) .df-flash.is-bad { background: rgba(255, 90, 122, .08); border-color: rgba(255, 90, 122, .35); }
html.vn:not([data-section="admin"]) .df-login { margin: 0; }
html.vn:not([data-section="admin"]) .df-login a { display: inline-block; padding: 4px 0; font-weight: 700; }
html.vn:not([data-section="admin"]) .df-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: auto; }
html.vn:not([data-section="admin"]) .df-watch { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
html.vn:not([data-section="admin"]) .df-watch summary { list-style: none; cursor: pointer; }
html.vn:not([data-section="admin"]) .df-watch summary::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) .df-watch summary.is-on { border-color: var(--vn-cyan); color: var(--vn-cyan); white-space: normal; height: auto; min-height: 36px; text-align: right; }
html.vn:not([data-section="admin"]) .df-watch__f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .df-watch__f label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .df-watch__f input { width: 90px; height: 38px; box-sizing: border-box; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .df-watch__f .b-btn, html.vn:not([data-section="admin"]) .df-watch__x .b-ghost { min-height: 38px; padding: 0 16px; border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .df-watch__f .b-btn { color: var(--vn-ink); font-weight: 800; }
@media (max-width: 760px) { html.vn:not([data-section="admin"]) .df-watch__f input { font-size: 16px; } }

/* vn-discounts.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 4a: знижки й історія знижок (/discounts, /discounts/history, /discounts/history/:key)
   за SalesB.dc.html і SalesHistoryB.dc.html. Шаблони, фільтри й дані ті самі (routes/discounts.rb) — лише вигляд,
   поверх косметики етапу 3b (vn-catalog.css). Прогноз (/discounts/forecast) має свої .df-* — тут не зачіпається.
   ────────────────────────────────────────────────────────────────────────── */

html.vn[data-section="discounts"] {
  --accent-fg: var(--vn-pink-soft);
  --accent-bg: rgba(255, 79, 163, .16);
  --text-muted: var(--vn-muted);
  --text-dim: var(--vn-muted);
  --med: var(--vn-yellow);
  --primary: var(--vn-pink);
  --primary-hover: var(--vn-pink-soft);
  --on-primary: var(--vn-ink);
  --accent: var(--vn-pink);
}

/* заголовки */
html.vn[data-section="discounts"] .catalog-head__title,
html.vn[data-section="discounts"] .page-header .page-title {
  margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; padding-bottom: 4px;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn[data-section="discounts"] .catalog-head__sub,
html.vn[data-section="discounts"] .page-header .page-sub { color: var(--vn-muted); font-size: 15px; }
html.vn[data-section="discounts"] .catalog-crumbs a { display: inline-block; padding: 3px 0; }
html.vn[data-section="discounts"] .catalog-stat { border-radius: 20px; }
html.vn[data-section="discounts"] .catalog-stat__num { font-family: var(--vn-font-display); font-weight: 800; color: var(--vn-pink-soft); }

/* посилання-«пігулки» в шапці й категорії */
html.vn[data-section="discounts"] .dc-tg-btn,
html.vn[data-section="discounts"] .cat-btn--sub,
html.vn[data-section="discounts"] .cat-pills .pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; box-sizing: border-box;
  border-radius: var(--vn-radius-pill); border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  color: var(--vn-text); font-size: 13px; font-weight: 700; text-decoration: none;
}
html.vn[data-section="discounts"] .dc-tg-btn { border-color: rgba(46, 230, 214, .4); color: var(--vn-cyan); }
html.vn[data-section="discounts"] .cat-pills .pill--active {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); box-shadow: 0 0 0 2px rgba(255, 79, 163, .35);
}
html.vn[data-section="discounts"] .stat-pill { border-radius: var(--vn-radius-pill); font-family: var(--vn-font-mono); }

/* фільтри */
html.vn[data-section="discounts"] .dc-slider { height: 28px; accent-color: var(--vn-pink); }
html.vn[data-section="discounts"] .dc-quick-chip { min-height: 36px; border-radius: var(--vn-radius-pill); font-weight: 700; }
html.vn[data-section="discounts"] .dc-quick-chip--active { color: var(--vn-pink-soft); background: rgba(255, 79, 163, .16); border-color: var(--vn-pink); }
html.vn[data-section="discounts"] select { max-width: 100%; }
html.vn[data-section="discounts"] .map-filters .search-input,
html.vn[data-section="discounts"] .map-filters .filter-select { min-height: 40px; border-radius: var(--vn-radius-pill); }

/* картки */
html.vn[data-section="discounts"] .dc-card { border-radius: 22px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); transition: transform .25s var(--vn-ease), border-color .25s; }
@media (hover: hover) { html.vn[data-section="discounts"] .dc-card:hover { transform: translateY(-3px); border-color: rgba(255, 79, 163, .45); } }
html.vn[data-section="discounts"] .dc-icon { border-radius: 16px; }
html.vn[data-section="discounts"] .dc-name { font-weight: 800; }
html.vn[data-section="discounts"] .dc-badge {
  border-radius: var(--vn-radius-pill); background: var(--vn-grad-brand); color: var(--vn-ink); font: 800 13px var(--vn-font-display);
}
html.vn[data-section="discounts"] .dc-price-new { color: var(--vn-cyan); font-family: var(--vn-font-mono); }
html.vn[data-section="discounts"] .dc-price-old { color: var(--vn-muted); }
html.vn[data-section="discounts"] .dc-savings { color: var(--vn-orange); font-weight: 700; }
html.vn[data-section="discounts"] .item-cat-badge,
html.vn[data-section="discounts"] .dc-servers__label,
html.vn[data-section="discounts"] .dc-server-pill,
html.vn[data-section="discounts"] .dc-server-pill__name,
html.vn[data-section="discounts"] .dc-servers__more,
html.vn[data-section="discounts"] .dc-until,
html.vn[data-section="discounts"] .dc-action-btn,
html.vn[data-section="discounts"] .dc-group-toggle,
html.vn[data-section="discounts"] .dc-vc__item,
html.vn[data-section="discounts"] .dc-card [class*="dc-hist"] { font-size: 12px; }
html.vn[data-section="discounts"] .dc-server-pill { border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .06); color: var(--vn-text); }
html.vn[data-section="discounts"] .item-cat-badge { border-radius: var(--vn-radius-pill); }
html.vn[data-section="discounts"] .dc-until--dated { color: var(--vn-orange); font-weight: 700; }
html.vn[data-section="discounts"] .dc-action-btn { min-height: 28px; border-radius: var(--vn-radius-pill); }
html.vn[data-section="discounts"] .dc-fav-btn { min-width: 32px; min-height: 32px; }

@media (max-width: 760px) {
  html.vn[data-section="discounts"] input, html.vn[data-section="discounts"] select { font-size: 16px; }
  html.vn[data-section="discounts"] .dc-tg-btn, html.vn[data-section="discounts"] .cat-btn--sub, html.vn[data-section="discounts"] .cat-pills .pill { min-height: 40px; }
}

/* ряд пошуку/сортування/вигляду не переносився й вилазив за екран на телефоні */
html.vn[data-section="discounts"] .discounts-page .catalog-filters__row { flex-wrap: wrap; min-width: 0; }
html.vn[data-section="discounts"] .discounts-page .catalog-filters__row .iselect { flex: 1 1 160px; }
html.vn[data-section="discounts"] .discounts-page .catalog-filters { min-width: 0; max-width: 100%; box-sizing: border-box; }
html.vn[data-section="discounts"] .discounts-page .catalog-filters > *,
html.vn[data-section="discounts"] .discounts-page .ffield { min-width: 0; max-width: 100%; }
html.vn[data-section="discounts"] .discounts-page .isegmented,
html.vn[data-section="discounts"] .discounts-page .seg { flex-wrap: wrap; max-width: 100%; }

/* ─── /discounts за прототипом SalesB.dc.html (views/_discounts_vn.erb) ─── */
html.vn:not([data-section="admin"]) .dvn-page { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
html.vn:not([data-section="admin"]) .dvn-page > * { min-width: 0; }
html.vn:not([data-section="admin"]) .dvn-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .dvn-live { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; }
html.vn:not([data-section="admin"]) .dvn-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #2EE6D6; animation: bPulse 1.6s infinite; }
html.vn:not([data-section="admin"]) .dvn-h1 { margin: 14px 0 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; }
html.vn:not([data-section="admin"]) .dvn-hue { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #FF4FA3); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .dvn-sub { margin: 10px 0 0; max-width: 60ch; color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-cd { padding: 16px 22px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 79, 163, .16), rgba(255, 159, 69, .10));
  border: 1px solid rgba(255, 79, 163, .35); display: flex; flex-direction: column; gap: 6px; }
html.vn:not([data-section="admin"]) .dvn-cd__k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .dvn-cd__row { display: flex; gap: 6px; }
html.vn:not([data-section="admin"]) .dvn-cd__p { min-width: 56px; padding: 6px 8px; border-radius: 14px; background: #14061A; text-align: center; display: flex; flex-direction: column; }
html.vn:not([data-section="admin"]) .dvn-cd__p b { font: 700 22px/1 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .dvn-cd__p small { margin-top: 4px; font-size: 11px; font-weight: 700; color: #A39FB5; }

html.vn:not([data-section="admin"]) .dvn-filters, html.vn:not([data-section="admin"]) .dvn-region { display: flex; flex-direction: column; gap: 12px; }
html.vn:not([data-section="admin"]) .dvn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html.vn:not([data-section="admin"]) .dvn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .dvn-chips a.b-chip { text-decoration: none; }
html.vn:not([data-section="admin"]) .dvn-chips a.b-chip[aria-current="true"], html.vn:not([data-section="admin"]) .b-chip[aria-checked="true"] {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: var(--vn-pink-soft); }
html.vn:not([data-section="admin"]) .dvn-n { font: 700 11px var(--vn-font-mono); opacity: .75; }
html.vn:not([data-section="admin"]) .dvn-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .dvn-grow { flex: 1; }
html.vn:not([data-section="admin"]) .dvn-sorts { margin-left: auto; }
html.vn:not([data-section="admin"]) .dvn-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #F3F1F8; font: 600 14px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .dvn-search input::placeholder { color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-search:focus-within { border-color: #2EE6D6; box-shadow: 0 0 0 3px rgba(46, 230, 214, .25); }
html.vn:not([data-section="admin"]) .dvn-search kbd { font: 600 11px var(--vn-font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .15); color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-link { height: 42px; text-decoration: none; border-color: rgba(255, 255, 255, .14); }
html.vn:not([data-section="admin"]) .dvn-link--y { border-color: rgba(255, 226, 122, .35); color: #FFE27A; }
html.vn:not([data-section="admin"]) .dvn-link--c { border-color: rgba(46, 230, 214, .35); color: #2EE6D6; }
html.vn:not([data-section="admin"]) .dvn-link--o { border-color: rgba(255, 159, 69, .35); color: #FF9F45; }
html.vn:not([data-section="admin"]) .dvn-empty { margin: 0; padding: 50px; text-align: center; border-radius: 26px; border: 1px dashed rgba(255, 255, 255, .16); color: #A39FB5; }

html.vn:not([data-section="admin"]) .dvn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
html.vn:not([data-section="admin"]) .dvn-card { border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column;
  overflow: hidden; transition: transform .3s var(--vn-ease), border-color .3s; }
@media (hover: hover) { html.vn:not([data-section="admin"]) .dvn-card:hover { transform: translateY(-4px); border-color: rgba(255, 79, 163, .45); } }
html.vn:not([data-section="admin"]) .dvn-card__media { position: relative; display: grid; place-items: center; height: 150px; }
html.vn:not([data-section="admin"]) .dvn-card__media img { max-width: 62%; max-height: 120px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
html.vn:not([data-section="admin"]) .dvn-card__pct { position: absolute; right: 12px; top: 12px; padding: 6px 12px; border-radius: 14px; background: #FF4FA3; color: #14061A;
  font-family: var(--vn-font-display); font-weight: 900; font-size: 20px; transform: rotate(6deg); box-shadow: 0 8px 20px rgba(255, 79, 163, .4); }
html.vn:not([data-section="admin"]) .dvn-card__kind { position: absolute; left: 12px; top: 12px; max-width: 55%; height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: rgba(11, 10, 18, .75); font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .dvn-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
html.vn:not([data-section="admin"]) .dvn-card__t { font-family: var(--vn-font-display); font-weight: 800; font-size: 15px; line-height: 20px; }
html.vn:not([data-section="admin"]) .dvn-card__prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
html.vn:not([data-section="admin"]) .dvn-card__now { font: 700 22px var(--vn-font-mono); color: #2EE6D6; }
html.vn:not([data-section="admin"]) .dvn-card__old { font: 500 13px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-card__term { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: #A39FB5; }
html.vn:not([data-section="admin"]) .dvn-card.is-soon .dvn-card__term { color: #FF9F45; }
html.vn:not([data-section="admin"]) .dvn-card__bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .dvn-card__bar span { display: block; height: 100%; background: linear-gradient(90deg, #2EE6D6, #FF4FA3); }
html.vn:not([data-section="admin"]) .dvn-card.is-soon .dvn-card__bar span { background: #FF9F45; }
html.vn:not([data-section="admin"]) .dvn-card__srv { font-size: 12px; color: #A39FB5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .dvn-card__acts { display: flex; gap: 6px; align-items: center; margin-top: auto; font-size: 12.5px; font-weight: 800; color: #8A86A0; }
html.vn:not([data-section="admin"]) .dvn-card__acts .b-link { font-size: 12.5px; }
html.vn:not([data-section="admin"]) .dvn-card__hide { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: none; color: #A39FB5; font: 700 12px var(--vn-font-body); cursor: pointer; }
html.vn:not([data-section="admin"]) .dvn-card__fav { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  color: #F3F1F8; display: grid; place-items: center; padding: 0; cursor: pointer; }
html.vn:not([data-section="admin"]) .dvn-card__fav svg { fill: none; }
html.vn:not([data-section="admin"]) .dvn-card__fav.dc-fav-btn--on { border-color: #FF4FA3; background: rgba(255, 79, 163, .2); color: #FF4FA3; }
html.vn:not([data-section="admin"]) .dvn-card__fav.dc-fav-btn--on svg { fill: currentColor; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .dvn-cd { width: 100%; }
  html.vn:not([data-section="admin"]) .dvn-cd__p { flex: 1; min-width: 0; }
  html.vn:not([data-section="admin"]) .dvn-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  html.vn:not([data-section="admin"]) .dvn-chips .b-chip { flex: none; white-space: nowrap; min-height: 40px; }
  html.vn:not([data-section="admin"]) .dvn-sorts { margin-left: 0; }
  html.vn:not([data-section="admin"]) .dvn-sep, html.vn:not([data-section="admin"]) .dvn-grow, html.vn:not([data-section="admin"]) .dvn-search kbd { display: none; }
  html.vn:not([data-section="admin"]) .dvn-card__fav, html.vn:not([data-section="admin"]) .dvn-card__hide { height: 40px; min-width: 40px; }
}
@media (prefers-reduced-motion: reduce) { html.vn:not([data-section="admin"]) .dvn-hue { animation: none; } }

/* vn-player.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — сторінка гравця /players/:nick (views/player.erb). Прототипу немає: мова інших сторінок —
   шапка з чипом і ніком Unbounded, плитки-лічильники, картки майна з іконкою, історія з мітками
   «отримав» (бірюзова) / «втратив» (червона). Лише кольори палітри.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .player-page { width: 100%; max-width: min(1240px, 100%); min-width: 0; padding-top: 40px; padding-bottom: 80px; color: #F3F1F8;
  display: flex; flex-direction: column; gap: 32px; }
html.vn .plv-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
html.vn .plv-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(46, 230, 214, .35);
  background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; text-decoration: none; }
html.vn .plv-chip:hover { color: #F3F1F8; border-color: #2EE6D6; }
html.vn .plv-head__row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
html.vn .plv-h1 { margin: 0; min-width: 0; font-family: var(--vn-font-display); font-weight: 900; font-size: clamp(30px, 5vw, 68px); line-height: 1; letter-spacing: -.04em;
  overflow: hidden; padding-bottom: 6px; overflow-wrap: anywhere; }
html.vn .plv-h1 .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both;
  background: linear-gradient(90deg, #F3F1F8 0%, #F3F1F8 40%, #FF4FA3 70%, #FF9F45 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.vn .plv-watch { margin: 0; }
html.vn .plv-watch .cat-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04); color: #F3F1F8; font: 800 14px var(--vn-font-body); cursor: pointer; }
html.vn .plv-watch .cat-btn[aria-pressed="true"] { border: 0; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A; }
html.vn .plv-kpis { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html.vn .plv-kpi { --c: #FF4FA3; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
html.vn .plv-kpi--orange { --c: #FF9F45; } html.vn .plv-kpi--cyan { --c: #2EE6D6; } html.vn .plv-kpi--red { --c: #FF5A7A; }
html.vn .plv-kpi span { font-size: 13px; font-weight: 700; color: #A39FB5; }
html.vn .plv-kpi b { font: 700 32px/1.1 var(--vn-font-mono); color: var(--c); }

html.vn:not([data-section="admin"]) .player-section { margin: 0; display: flex; flex-direction: column; gap: 14px; }
html.vn:not([data-section="admin"]) .player-section__title { margin: 0; font: 800 22px var(--vn-font-display); text-transform: uppercase; }
html.vn:not([data-section="admin"]) .player-muted { color: #A39FB5; }
html.vn:not([data-section="admin"]) .player-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
html.vn:not([data-section="admin"]) .player-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center;
  padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); color: #F3F1F8;
  transition: border-color .2s, transform .2s; }
html.vn:not([data-section="admin"]) .player-card:hover { border-color: rgba(255, 79, 163, .45); transform: translateY(-2px); color: #F3F1F8; }
html.vn:not([data-section="admin"]) .player-card > :not(.plv-ic) { grid-column: 2; }
html.vn .plv-ic { grid-row: 1 / span 4; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; align-self: start; color: #14061A;
  background: linear-gradient(135deg, #FF4FA3, #B98CFF); }
html.vn .plv-ic--biz { background: linear-gradient(135deg, #FF9F45, #FFE27A); }
html.vn:not([data-section="admin"]) .player-card__kind { font: 800 16px var(--vn-font-display); }
html.vn:not([data-section="admin"]) .player-card__srv, html.vn:not([data-section="admin"]) .player-card__name { color: #A39FB5; font-size: 13px; }
html.vn:not([data-section="admin"]) .player-page .srv-badge { min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: rgba(46, 230, 214, .12); color: #2EE6D6; font: 700 12px var(--vn-font-mono); border: 0; }
html.vn:not([data-section="admin"]) .player-page .auction-badge { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #FFE27A; color: #14061A; font-size: 12px; font-weight: 800; }

html.vn:not([data-section="admin"]) .player-timeline { gap: 10px; }
html.vn:not([data-section="admin"]) .player-timeline__item { position: relative; grid-template-columns: 150px minmax(0, 1fr) auto; padding: 12px 16px 12px 22px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); }
html.vn:not([data-section="admin"]) .player-timeline__item::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: #2EE6D6; }
html.vn:not([data-section="admin"]) .player-timeline__item--out::before { background: #FF5A7A; }
html.vn:not([data-section="admin"]) .player-timeline__item--in, html.vn:not([data-section="admin"]) .player-timeline__item--out { border-left-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .player-timeline__item time { font: 600 13px var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .player-timeline__what { font-weight: 700; }
html.vn:not([data-section="admin"]) .player-timeline__what a { color: #2EE6D6; }
html.vn:not([data-section="admin"]) .player-timeline__item--out .player-timeline__what { color: #FFB3C2; }
html.vn:not([data-section="admin"]) .player-timeline__who { color: #A39FB5; }
html.vn:not([data-section="admin"]) .player-page .player-link { color: #F3F1F8; text-decoration-color: rgba(255, 79, 163, .6); }
html.vn:not([data-section="admin"]) .player-page .player-link:hover { color: #FF8CC4; }
html.vn:not([data-section="admin"]) .player-page :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .player-page { padding-top: 20px; gap: 24px; }
  html.vn .plv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html.vn .plv-kpi b { font-size: 26px; }
  html.vn:not([data-section="admin"]) .player-timeline__item { grid-template-columns: 1fr; gap: 4px; }
  html.vn .plv-watch, html.vn .plv-watch .cat-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html.vn .plv-h1 .b-rise { animation: none; } }

/* ─── Пошук гравців /players (views/players.erb) і «немає даних» (players_not_found.erb) ─── */
html.vn:not([data-section="admin"]) .players-page { width: 100%; max-width: min(1240px, 100%); min-width: 0; padding-top: 40px; padding-bottom: 80px; color: #F3F1F8;
  display: flex; flex-direction: column; gap: 24px; }
html.vn:not([data-section="admin"]) .players-page .page-header { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
html.vn .plv-chip--static { pointer-events: none; }
html.vn:not([data-section="admin"]) .players-page .page-title { margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 76px); line-height: .95; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .players-page .page-title .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both;
  background: linear-gradient(90deg, #F3F1F8 0%, #F3F1F8 45%, #FF4FA3 75%, #FF9F45 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.vn:not([data-section="admin"]) .players-page .page-sub { margin: 0; max-width: 60ch; color: #A39FB5; }
html.vn:not([data-section="admin"]) .players-page .back-link { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; text-decoration: none; }

html.vn:not([data-section="admin"]) .players-search { position: relative; display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; max-width: 720px; margin: 0;
  padding: 0; background: none; border: 0; }
html.vn .players-search__ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #A39FB5; pointer-events: none; }
html.vn:not([data-section="admin"]) .players-search .search-input { flex: 1; min-width: 0; height: 52px; padding: 0 18px 0 46px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #F3F1F8; font: 600 16px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .players-search .search-input::placeholder { color: #A39FB5; }
html.vn:not([data-section="admin"]) .players-search .search-input:focus { border-color: #2EE6D6; outline: none; }
html.vn:not([data-section="admin"]) .players-search .cat-btn { flex: none; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #FF4FA3, #FF9F45);
  color: #14061A; font: 800 15px var(--vn-font-body); box-shadow: 0 10px 30px rgba(255, 79, 163, .3); cursor: pointer; }

html.vn:not([data-section="admin"]) .player-tops { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
html.vn:not([data-section="admin"]) .player-tops .player-section { padding: 20px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .player-tops .player-section__title { font-size: 18px; }
html.vn:not([data-section="admin"]) .player-top { list-style: none; padding: 0; counter-reset: pt; gap: 8px; }
html.vn:not([data-section="admin"]) .player-top li { counter-increment: pt; position: relative; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; }
html.vn:not([data-section="admin"]) .player-top li::before { content: counter(pt); flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font: 700 13px var(--vn-font-mono); background: rgba(255, 255, 255, .06); color: #A39FB5; }
html.vn:not([data-section="admin"]) .player-top li:nth-child(1)::before { background: #FFE27A; color: #14061A; }
html.vn:not([data-section="admin"]) .player-top li:nth-child(2)::before { background: #2EE6D6; color: #14061A; }
html.vn:not([data-section="admin"]) .player-top li:nth-child(3)::before { background: #FF9F45; color: #14061A; }
html.vn:not([data-section="admin"]) .player-top li a { flex: 1; min-width: 0; min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); color: #F3F1F8; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
html.vn:not([data-section="admin"]) .player-top li a:hover { border-color: rgba(255, 79, 163, .45); }
html.vn:not([data-section="admin"]) .player-top__n { flex: none; min-width: 40px; text-align: right; font: 700 16px var(--vn-font-mono); color: #2EE6D6; }

html.vn:not([data-section="admin"]) .players-page .player-results { margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
html.vn:not([data-section="admin"]) .players-page .player-results__item { min-height: 48px; display: flex; align-items: center; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .035); color: #F3F1F8; font-weight: 800; overflow-wrap: anywhere; transition: border-color .2s; }
html.vn:not([data-section="admin"]) .players-page .player-results__item:hover { border-color: #FF4FA3; color: #FFB3D6; }
html.vn:not([data-section="admin"]) .players-page .empty { padding: 32px; border-radius: 24px; border: 1px dashed rgba(255, 255, 255, .16); background: none; color: #A39FB5; text-align: center; }
html.vn:not([data-section="admin"]) .players-page :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .players-page { padding-top: 20px; }
  html.vn:not([data-section="admin"]) .players-search .cat-btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { html.vn:not([data-section="admin"]) .players-page .page-title .b-rise { animation: none; } }

/* vn-nickgen.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — генератор ніків (views/nickname_generator.erb). Прототипу немає: мова знижок/кейсів —
   токени палітри, заголовок Unbounded з градієнтом, рожеві активні чипи/вкладки, кнопка-градієнт, моно для ніків.
   Класи .nickgen-* і логіка сторінки — ті самі; тут лише вигляд.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .nickgen-page {
  --primary: #FF4FA3; --primary-soft: rgba(255, 79, 163, .16); --on-primary: #14061A; --success: #2EE6D6; --warning: #FFE27A;
  --card: rgba(255, 255, 255, .035); --card-hover: rgba(255, 255, 255, .06); --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .09);
  --bg: #0B0A12; --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 255, 255, .2); --text: #F3F1F8; --text-2: #A39FB5;
  padding-top: 40px; padding-bottom: 80px; color: #F3F1F8; min-width: 0; max-width: min(1240px, 100%);
}
html.vn:not([data-section="admin"]) .nickgen-page .page-header { border: 0; padding-bottom: 8px; }
html.vn:not([data-section="admin"]) .nickgen-eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; margin-bottom: 0;
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 12px; letter-spacing: .06em; }
html.vn:not([data-section="admin"]) .nickgen-page .page-title { margin-top: 14px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 64px); line-height: 1; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; }
html.vn:not([data-section="admin"]) .nickgen-page .page-title .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn:not([data-section="admin"]) .nickgen-hue { background: linear-gradient(90deg, #2EE6D6, #FF4FA3, #FF9F45, #2EE6D6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .nickgen-fmt { font-family: var(--vn-font-mono); font-size: 15px; text-transform: none; color: #FFE27A; border-color: rgba(255, 226, 122, .4);
  border-radius: 999px; padding: 6px 14px; letter-spacing: 0; display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
html.vn:not([data-section="admin"]) .nickgen-fmt i { color: #FF4FA3; }
html.vn:not([data-section="admin"]) .nickgen-page .page-sub { color: #A39FB5; }
html.vn:not([data-section="admin"]) .nickgen-stat { border-radius: 20px; }
html.vn:not([data-section="admin"]) .nickgen-stat b { font: 700 24px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .nickgen-stat__acc { color: #2EE6D6; }

html.vn:not([data-section="admin"]) .nickgen-panel { border-radius: 26px; top: 92px; }
html.vn:not([data-section="admin"]) .nickgen-panel__head h2 { font: 800 16px var(--vn-font-display); text-transform: uppercase; }
html.vn:not([data-section="admin"]) .nickgen-reset { min-height: 32px; border-radius: 999px; padding: 0 12px; }
html.vn:not([data-section="admin"]) .nickgen-label { font-weight: 800; color: #A39FB5; }
html.vn:not([data-section="admin"]) .nickgen-label em { font-family: var(--vn-font-mono); color: #FF8CC4; }
html.vn:not([data-section="admin"]) .nickgen-seg { border-radius: 999px; background: rgba(255, 255, 255, .03); }
html.vn:not([data-section="admin"]) .nickgen-seg .cat-btn { border-radius: 999px; height: 34px; color: #A39FB5; font-weight: 700; }
html.vn:not([data-section="admin"]) .nickgen-seg .cat-btn--active { background: rgba(255, 79, 163, .16); border-color: #FF4FA3; color: #FFB3D6; }
html.vn:not([data-section="admin"]) .nickgen-chips .cat-btn { height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: #F3F1F8; font-weight: 700; }
html.vn:not([data-section="admin"]) .nickgen-chips .cat-btn:hover { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .nickgen-chips .cat-btn--active { background: rgba(255, 79, 163, .16); border-color: #FF4FA3; color: #FFB3D6; }
html.vn:not([data-section="admin"]) .nickgen-chip__cc { border-radius: 999px; font-family: var(--vn-font-mono); font-size: 11px; }
html.vn:not([data-section="admin"]) .nickgen-num { border-radius: 999px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
html.vn:not([data-section="admin"]) .nickgen-num button { flex: none; width: 30px; height: 40px; color: #A39FB5; }
html.vn:not([data-section="admin"]) .nickgen-num input { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .nickgen-page input[type="range"] { width: 100%; min-height: 24px; accent-color: #FF4FA3; }
html.vn:not([data-section="admin"]) .nickgen-ticks { font-family: var(--vn-font-mono); color: #A39FB5; }
html.vn:not([data-section="admin"]) .nickgen-go { height: 50px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A;
  font: 800 15px var(--vn-font-body); box-shadow: 0 10px 30px rgba(255, 79, 163, .3); }
html.vn:not([data-section="admin"]) .nickgen-go:hover { filter: brightness(1.06); }
html.vn:not([data-section="admin"]) .nickgen-go kbd { font-family: var(--vn-font-mono); background: #14061A; color: #FFE27A; }

html.vn:not([data-section="admin"]) .nickgen-tabs { border-radius: 999px; padding: 4px; }
html.vn:not([data-section="admin"]) .nickgen-tab { min-height: 36px; border-radius: 999px; font-weight: 700; color: #A39FB5; }
html.vn:not([data-section="admin"]) .nickgen-tab[aria-selected="true"] { background: rgba(255, 79, 163, .16); color: #FFB3D6; box-shadow: inset 0 0 0 1px #FF4FA3; }
html.vn:not([data-section="admin"]) .nickgen-tab__n { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .nickgen-tab[aria-selected="true"] .nickgen-tab__n { background: #FF4FA3; color: #14061A; }
html.vn:not([data-section="admin"]) .nickgen-ghost { min-height: 38px; border-radius: 999px; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #F3F1F8; font-weight: 700; }
html.vn:not([data-section="admin"]) .nickgen-ghost:hover { border-color: rgba(255, 255, 255, .35); }

html.vn:not([data-section="admin"]) .nickgen-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
html.vn:not([data-section="admin"]) .nickgen-card { border-radius: 22px; padding: 18px; transition: border-color .2s, transform .2s; }
html.vn:not([data-section="admin"]) .nickgen-card:hover { border-color: rgba(255, 79, 163, .45); background: rgba(255, 255, 255, .05); transform: translateY(-2px); }
html.vn:not([data-section="admin"]) .nickgen-nick { font: 700 19px/1.3 var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .nickgen-nick i { color: #FF4FA3; }
html.vn:not([data-section="admin"]) .nickgen-tag { border-radius: 999px; padding: 3px 10px; font-weight: 700; }
html.vn:not([data-section="admin"]) .nickgen-when { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .nickgen-btn { height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 800; }
html.vn:not([data-section="admin"]) .nickgen-btn:hover { border-color: #2EE6D6; color: #2EE6D6; background: rgba(46, 230, 214, .08); }
html.vn:not([data-section="admin"]) .nickgen-btn--ok { color: #2EE6D6; border-color: #2EE6D6; }
html.vn:not([data-section="admin"]) .nickgen-ico { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
html.vn:not([data-section="admin"]) .nickgen-ico--fav { color: #FF4FA3; border-color: #FF4FA3; background: rgba(255, 79, 163, .16); }
html.vn:not([data-section="admin"]) .nickgen-page :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
html.vn:not([data-section="admin"]) .nickgen-toast { background: #17121F; border-color: rgba(255, 79, 163, .45); border-radius: 999px; color: #F3F1F8; }
html.vn:not([data-section="admin"]) .nickgen-toast code { font-family: var(--vn-font-mono); color: #FF8CC4; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .nickgen-page { padding-top: 20px; }
  html.vn:not([data-section="admin"]) .nickgen-seg .cat-btn, html.vn:not([data-section="admin"]) .nickgen-chips .cat-btn, html.vn:not([data-section="admin"]) .nickgen-tab { min-height: 40px; }
  html.vn:not([data-section="admin"]) .nickgen-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .nickgen-page .page-title .b-rise, html.vn:not([data-section="admin"]) .nickgen-hue { animation: none; }
}

/* vn-cases.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — кейси: каталог /cases і сторінка /cases/:slug (views/cases.erb, views/case.erb).
   Прототипу немає — та сама мова, що в знижках/предметах: токени палітри, картки як картки донату
   (градієнтна обкладинка, наліпка, назва Unbounded, ціни моно), рожеві активні чипи, бірюзовий фокус.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .cs {
  --case-gold: #FF9F45; --case-purple: #B98CFF; --case-purple-text: #B98CFF; --case-green: #2EE6D6;
  --case-common: #A39FB5; --case-common-bar: #8A86A0; --az-coin: #FFE27A;
  --primary: #FF4FA3; --primary-soft: rgba(255, 79, 163, .16); --on-primary: #14061A; --success: #2EE6D6;
  --card: rgba(255, 255, 255, .035); --surface: rgba(255, 255, 255, .06); --border: rgba(255, 255, 255, .08); --border-strong: rgba(255, 79, 163, .45);
  --text: #F3F1F8; --text-2: #A39FB5;
  gap: 28px; padding-top: 32px; padding-bottom: 80px; color: #F3F1F8; font-family: var(--vn-font-body);
}
html.vn:not([data-section="admin"]) .cs--page { gap: 24px; }
html.vn:not([data-section="admin"]) .cs .num, html.vn:not([data-section="admin"]) .cs-tile__v, html.vn:not([data-section="admin"]) .cs-price b { font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .cs :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; box-shadow: none; }

/* Шапка */
html.vn:not([data-section="admin"]) .cs-h1 { font-family: var(--vn-font-display); font-weight: 900; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; overflow: hidden; padding-bottom: 4px; }
html.vn:not([data-section="admin"]) .cs-h1 .b-rise, html.vn:not([data-section="admin"]) .cs-hero__name .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn:not([data-section="admin"]) .cs .dvn-hue { background: linear-gradient(90deg, #2EE6D6, #FF4FA3, #FF9F45, #2EE6D6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .cs .page-sub { color: #A39FB5; font-size: 15px; }
html.vn:not([data-section="admin"]) .cs-pill { border-radius: 999px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; }
html.vn:not([data-section="admin"]) .cs-pill b { font-family: var(--vn-font-mono); color: #2EE6D6; }

/* Мітки / чипи рівнів */
html.vn:not([data-section="admin"]) .cs-tag, html.vn:not([data-section="admin"]) .cs-badge { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
html.vn:not([data-section="admin"]) .cs-tag--new, html.vn:not([data-section="admin"]) .cs-badge--new { background: #2EE6D6; color: #14061A; }
html.vn:not([data-section="admin"]) .cs-tag--top, html.vn:not([data-section="admin"]) .cs-badge--top { background: #FFE27A; color: #14061A; }
html.vn:not([data-section="admin"]) .cs-chip { border-radius: 999px; padding: 4px 12px; font-weight: 800; color: var(--tier-text); background: color-mix(in srgb, var(--tier) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); }

/* Кнопки */
html.vn:not([data-section="admin"]) .cs-btn { border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #F3F1F8; font: 800 14px var(--vn-font-body); }
html.vn:not([data-section="admin"]) .cs-btn:hover { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .cs-btn--p { border: 0; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A; box-shadow: 0 10px 30px rgba(255, 79, 163, .3); }
html.vn:not([data-section="admin"]) .cs-fav[aria-pressed="true"] { color: #FF4FA3; border-color: #FF4FA3; background: rgba(255, 79, 163, .16); }

/* Банер / шапка кейса — листівка з градієнтом кольору кейса */
html.vn:not([data-section="admin"]) .cs-banner, html.vn:not([data-section="admin"]) .cs-hero {
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1); color: #F3F1F8;
  background: linear-gradient(120deg, color-mix(in srgb, var(--case-c) 34%, #14061A) 0%, #17121F 55%, #0B0A12 100%); }
html.vn:not([data-section="admin"]) .cs-banner:hover { border-color: rgba(255, 79, 163, .45); color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-banner > .cs-glow, html.vn:not([data-section="admin"]) .cs-hero > .cs-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--case-c) 55%, transparent), transparent 70%); }
html.vn:not([data-section="admin"]) .cs-banner__img, html.vn:not([data-section="admin"]) .cs-hero__img { animation: bFloat 5s ease-in-out infinite; }
html.vn:not([data-section="admin"]) .cs-banner__name { font-family: var(--vn-font-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-hero__name { font-family: var(--vn-font-display); font-weight: 900; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -.04em; overflow: hidden; padding-bottom: 4px; }
html.vn:not([data-section="admin"]) .cs-price b { color: #2EE6D6; }
html.vn:not([data-section="admin"]) .cs-price--az b, html.vn:not([data-section="admin"]) .cs-tile--az .cs-tile__v { color: #FFE27A; }
html.vn:not([data-section="admin"]) .cs-coin circle:last-child { stroke: #14061A; }
html.vn:not([data-section="admin"]) .cs-tile { border-radius: 20px; background: rgba(11, 10, 18, .55); border-color: rgba(255, 255, 255, .1); }
html.vn:not([data-section="admin"]) .cs-tile__v { color: #2EE6D6; font-weight: 700; }
html.vn:not([data-section="admin"]) .cs-tile.is-off .cs-tile__v { color: #A39FB5; font-family: var(--vn-font-body); }

/* Пошук, фільтри, сортування */
html.vn:not([data-section="admin"]) .cs-q, html.vn:not([data-section="admin"]) .cs-sort { border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: #A39FB5; }
html.vn:not([data-section="admin"]) .cs-q:focus-within { border-color: #2EE6D6; }
html.vn:not([data-section="admin"]) .cs-sort select option { background: #17121F; }
html.vn:not([data-section="admin"]) .cs-fchip, html.vn:not([data-section="admin"]) .cs-tab { height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: #F3F1F8; font: 700 13px var(--vn-font-body); box-shadow: none; }
html.vn:not([data-section="admin"]) .cs-fchip:hover, html.vn:not([data-section="admin"]) .cs-tab:hover { border-color: rgba(255, 255, 255, .35); }
html.vn:not([data-section="admin"]) .cs-fchip[aria-pressed="true"], html.vn:not([data-section="admin"]) .cs-tab[aria-pressed="true"] {
  border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FFB3D6; font-weight: 800; box-shadow: none; }
html.vn:not([data-section="admin"]) .cs-fchip span, html.vn:not([data-section="admin"]) .cs-tab span { opacity: 1; color: #A39FB5; font-family: var(--vn-font-mono); font-size: 12px; }

/* Картки кейсів — як картки донату */
html.vn:not([data-section="admin"]) .cs-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
html.vn:not([data-section="admin"]) .cs-card { border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); color: #F3F1F8; overflow: hidden;
  transition: transform .3s var(--vn-ease), border-color .3s; }
html.vn:not([data-section="admin"]) .cs-card:hover { transform: translateY(-4px); border-color: rgba(255, 79, 163, .45); color: #F3F1F8; }
@media (hover: none) { html.vn:not([data-section="admin"]) .cs-card:hover { transform: none; } }
html.vn:not([data-section="admin"]) .cs-card__well { height: 150px;
  background: linear-gradient(160deg, var(--case-c) 0%, color-mix(in srgb, var(--case-c) 35%, #2A1450) 60%, #14061A 100%); }
html.vn:not([data-section="admin"]) .cs-card__well > .cs-glow { display: none; }
html.vn:not([data-section="admin"]) .cs-card__well img { max-width: 62%; max-height: 120px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
html.vn:not([data-section="admin"]) .cs-card .cs-fallback, html.vn:not([data-section="admin"]) .cs-banner .cs-fallback, html.vn:not([data-section="admin"]) .cs-hero .cs-fallback { color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-badge { top: 12px; right: 12px; transform: rotate(6deg); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
html.vn:not([data-section="admin"]) .cs-card.is-off .cs-card__well { filter: saturate(.45) brightness(.8); }
html.vn:not([data-section="admin"]) .cs-card__b { padding: 14px 16px 16px; gap: 8px; border-top: 0; }
html.vn:not([data-section="admin"]) .cs-card__name { font-family: var(--vn-font-display); font-weight: 800; font-size: 15px; line-height: 20px; }
html.vn:not([data-section="admin"]) .cs-card__rub { font: 700 20px var(--vn-font-mono); color: #2EE6D6; }
html.vn:not([data-section="admin"]) .cs-card__az { font: 700 13px var(--vn-font-mono); color: #FFE27A; }
html.vn:not([data-section="admin"]) .cs-empty { border-radius: 24px; border-color: rgba(255, 255, 255, .14); color: #A39FB5; }
html.vn:not([data-section="admin"]) .cs-source { color: #A39FB5; }

/* Сторінка кейса */
html.vn:not([data-section="admin"]) .cs-crumbs { font-weight: 600; }
html.vn:not([data-section="admin"]) .cs-crumbs a { color: #A39FB5; }
html.vn:not([data-section="admin"]) .cs-crumbs a:hover { color: #2EE6D6; }
html.vn:not([data-section="admin"]) .cs-comp, html.vn:not([data-section="admin"]) .cs-box, html.vn:not([data-section="admin"]) .cs-prize {
  border-radius: 22px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .cs-comp { padding: 20px 22px; border-radius: 26px; }
html.vn:not([data-section="admin"]) .cs-comp__h b, html.vn:not([data-section="admin"]) .cs-box__h { font: 800 15px var(--vn-font-display); text-transform: uppercase; letter-spacing: 0; color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-comp__bar { height: 12px; }
html.vn:not([data-section="admin"]) .cs-comp__bar span { box-shadow: 0 0 12px color-mix(in srgb, var(--tier) 50%, transparent); }
html.vn:not([data-section="admin"]) .cs-sec__h { border-bottom-color: rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .cs-sec__h h2 { font: 800 18px var(--vn-font-display); letter-spacing: 0; }
html.vn:not([data-section="admin"]) .cs-prize { border-radius: 18px; color: #F3F1F8; }
html.vn:not([data-section="admin"]) a.cs-prize:hover { border-color: color-mix(in srgb, var(--tier, #FF4FA3) 60%, transparent); color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-prize__thumb { border-radius: 14px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tier) 35%, transparent), transparent 70%), rgba(11, 10, 18, .5);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 55%, transparent); }
html.vn:not([data-section="admin"]) .cs-prize__thumb img { border-radius: 14px; }
html.vn:not([data-section="admin"]) .cs-prize__qty { background: #FF4FA3; color: #14061A; border: 0; border-radius: 8px; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .cs-prize__name { font-weight: 700; }
html.vn:not([data-section="admin"]) .cs-shards { border-radius: 999px; background: rgba(185, 140, 255, .14); color: #B98CFF; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .cs-step__at { background: rgba(255, 79, 163, .16); color: #FFB3D6; font-family: var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .cs-step__icon { border-radius: 12px; background: rgba(11, 10, 18, .5); color: #B98CFF; }
html.vn:not([data-section="admin"]) .cs-step__b a { color: #F3F1F8; }
html.vn:not([data-section="admin"]) .cs-step__b a:hover { color: #2EE6D6; }
html.vn:not([data-section="admin"]) .cs-box__ico { border-radius: 10px; background: rgba(185, 140, 255, .14); color: #B98CFF; }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .cs { gap: 20px; padding-top: 16px; }
  html.vn:not([data-section="admin"]) .cs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.vn:not([data-section="admin"]) .cs-card__well { height: 120px; }
  html.vn:not([data-section="admin"]) .cs-card__b { padding: 12px; }
  html.vn:not([data-section="admin"]) .cs-card__name { font-size: 14px; }
  html.vn:not([data-section="admin"]) .cs-card__rub { font-size: 17px; }
  html.vn:not([data-section="admin"]) .cs-banner, html.vn:not([data-section="admin"]) .cs-hero { padding: 20px; border-radius: 22px; }
  html.vn:not([data-section="admin"]) .cs-filters { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  html.vn:not([data-section="admin"]) .cs-bar > * { min-width: 0; }
  html.vn:not([data-section="admin"]) .cs-fchip { flex: none; }
  html.vn:not([data-section="admin"]) .cs-sort { margin-left: 0; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html.vn:not([data-section="admin"]) .cs .b-rise, html.vn:not([data-section="admin"]) .cs .dvn-hue,
  html.vn:not([data-section="admin"]) .cs-banner__img, html.vn:not([data-section="admin"]) .cs-hero__img { animation: none; }
}
html.vn:not([data-section="admin"]) .cs time.num { font-family: inherit; }
html.vn:not([data-section="admin"]) .cs-h1 { font-size: clamp(32px, 4.4vw, 56px); }
html.vn:not([data-section="admin"]) .cs-step__b a { display: inline-flex; align-items: center; min-height: 24px; }
html.vn:not([data-section="admin"]) .cs { min-width: 0; max-width: 100%; }

/* vn-auth.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 5a: вхід, реєстрація, відновлення пароля, вихід,
   прив'язка Telegram (AuthB.dc.html). Розмітку й логіку (форми, polling
   /api/auth/check, редиректи) не змінено — лише вигляд, через .auth-page /
   .auth-card (нові класи-обгортки) і перевизначення вже наявних CSS-змінних
   (--bg/--card-bg/--border/--text/--text-muted/--accent), які ці сторінки
   й так читають з інлайн-стилів. Кнопка Telegram (#tg-open-btn/#tg-link-btn)
   лишається брендового кольору #1E78C2 — CLAUDE.md, «Сторінки етапу».
   ────────────────────────────────────────────────────────────────────────── */

html.vn .auth-page {
  --bg: var(--vn-bg);
  --card-bg: rgba(255, 255, 255, .035);
  --border: rgba(255, 255, 255, .1);
  --text: var(--vn-text);
  --text-muted: var(--vn-muted);
  --accent: var(--vn-pink);
  font-family: var(--vn-font-body), sans-serif;
}

html.vn .auth-card {
  border-radius: var(--vn-radius-section) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  animation: bIn .55s var(--vn-ease) both;
}

html.vn .auth-page h2 {
  font-family: var(--vn-font-display), sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

html.vn .auth-page input {
  border-radius: var(--vn-radius-field) !important;
  background: rgba(11, 10, 18, .55) !important;
  font-family: var(--vn-font-body), sans-serif;
}
html.vn .auth-page input:focus { box-shadow: 0 0 0 3px rgba(46, 230, 214, .55); }

/* Primary CTAs: every submit/primary link in these templates uses background:var(--accent). */
html.vn .auth-page [style*="background:var(--accent)"] {
  background: var(--vn-grad-brand) !important;
  color: var(--vn-ink) !important;
  font-weight: 800 !important;
  border-radius: var(--vn-radius-pill) !important;
  transition: transform .2s, box-shadow .25s;
}
html.vn .auth-page [style*="background:var(--accent)"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 79, 163, .4);
  opacity: 1 !important;
}

/* Telegram fallback / link button — brand colour, not the site palette. */
html.vn .auth-page #tg-open-btn,
html.vn .auth-page #tg-link-btn {
  background: #1E78C2 !important;
  border-color: #1E78C2 !important;
  color: #fff !important;
  border-radius: var(--vn-radius-pill) !important;
  font-weight: 800 !important;
}
html.vn .auth-page #tg-open-btn svg,
html.vn .auth-page #tg-link-btn svg { fill: #fff !important; }

/* Status banners: keep the shape, swap the two literal colours for palette tokens. */
html.vn .auth-page [style*="#22c55e"] { color: var(--vn-cyan) !important; }
html.vn .auth-page div[style*="background:#22c55e1a"] { background: rgba(46, 230, 214, .1) !important; border-color: rgba(46, 230, 214, .35) !important; }
html.vn .auth-page [style*="#f05050"] { color: var(--vn-red) !important; }
html.vn .auth-page div[style*="background:#f050501a"] { background: rgba(255, 90, 122, .1) !important; border-color: rgba(255, 90, 122, .35) !important; }

html.vn .auth-page a { transition: color .2s; }

/* ─── Hero (login only): decorative perks panel, no data, @design_b-only markup ─── */
html.vn .auth-page--split {
  max-width: 1120px; margin: 60px auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch;
}
html.vn .auth-card-col { margin: 0 !important; flex: 1 1 380px; min-width: 0; padding: 0 !important; }
html.vn .auth-hero {
  flex: 1 1 380px; min-width: 0; position: relative; overflow: hidden;
  border-radius: var(--vn-radius-section);
  background: linear-gradient(180deg, #2A1450 0%, var(--vn-pink) 62%, var(--vn-orange) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  display: flex; align-items: center;
}
html.vn .auth-hero__art {
  position: absolute; right: 10%; top: 12%; width: 150px; height: 150px; border-radius: 50%;
  background: linear-gradient(180deg, var(--vn-yellow), var(--vn-red));
  filter: blur(.5px);
}
html.vn .auth-hero__body { position: relative; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
html.vn .auth-hero__title {
  font-family: var(--vn-font-display), sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.05; color: var(--vn-text);
  text-shadow: 0 5px 0 var(--vn-ink);
}
html.vn .auth-hero__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
html.vn .auth-hero__perks li {
  padding: 10px 14px; border-radius: 16px; background: rgba(20, 6, 26, .72);
  color: var(--vn-text); font-weight: 700; font-size: 14px; line-height: 1.35;
}
@media (max-width: 900px) {
  html.vn .auth-hero { display: none; }
  html.vn .auth-card-col { padding: 0 16px !important; }
}

/* ─── Прив'язка Telegram (views/auth_link_telegram.erb, @design_b): кроки й статус очікування ─── */
html.vn .tgl-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
html.vn .tgl-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 700; color: var(--vn-text); }
html.vn .tgl-steps .num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--vn-grad-brand); color: var(--vn-ink); font: 800 13px var(--vn-font-mono); }
html.vn .tgl-status { display: flex; align-items: center; justify-content: center; gap: 8px; }
html.vn .tgl-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vn-cyan); animation: bPulse 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { html.vn .tgl-status::before { animation: none; } }

/* vn-profile.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 5a: профіль/акаунт (/profile) за ProfileB.dc.html +
   SettingsB.dc.html. Розмітку, форми й JS (profile.erb) не змінено — лише
   вигляд, через перевизначення вже наявних CSS-змінних (.pf-section, .pf-btn,
   .pf-input, .tile, .preview-card… самі посилаються на --card/--primary/
   --border/…) у межах .profile-page, за взірцем vn-jobs.css/vn-crafts.css.

   Вкладки (.pf-tabs) — нова навігація над тими самими секціями (group by
   data-pf-tab, public/js/profile-vn.js); без JS усі секції лишаються
   видимими одним списком, як було. «Сповіщення» й «Активні сесії» —
   посилання/заглушка без логіки (profile.erb, @design_b).
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .profile-page {
  --media-bg: rgba(255, 255, 255, .035);
  --well: rgba(0, 0, 0, .25);
  --muted-icon: var(--vn-muted-2);
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --surface: rgba(255, 255, 255, .05);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --primary: var(--vn-pink);
  --primary-soft: rgba(255, 79, 163, .14);
  --primary-hover: #FF6BB2;
  --on-primary: var(--vn-ink);
  --secondary: var(--vn-cyan);
  --success: var(--vn-cyan);
  --danger: var(--vn-red);
  --acc-1: 255, 79, 163;
  --font: var(--vn-font-body), sans-serif;
  --r-sm: 10px;
  --r-md: var(--vn-radius-field);
  --r-lg: var(--vn-radius-card);
  --focus-ring: 0 0 0 3px rgba(46, 230, 214, .6);
  width: 100%; box-sizing: border-box;
}

html.vn:not([data-section="admin"]) .profile-page .catalog-head__title {
  font-family: var(--vn-font-display), sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .profile-page .pf-section {
  border-radius: var(--vn-radius-section);
  transition: border-color .3s, box-shadow .35s;
}
html.vn:not([data-section="admin"]) .profile-page .pf-section:hover { border-color: rgba(255, 79, 163, .35); }
html.vn:not([data-section="admin"]) .profile-page .pf-btn--primary,
html.vn:not([data-section="admin"]) .profile-page .pf-public-btn:not(.pf-public-btn--off) {
  background: var(--vn-grad-brand); color: var(--vn-ink); font-weight: 800;
}
html.vn:not([data-section="admin"]) .profile-page .pf-btn { border-radius: var(--vn-radius-pill); }
html.vn:not([data-section="admin"]) .profile-page .pf-public-btn { border-radius: var(--vn-radius-pill); }

/* ─── Tabs (role=tablist) ─────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .pf-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto 4px; max-width: 1180px;
  padding: 6px; border-radius: var(--vn-radius-pill); background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .pf-tab {
  height: 40px; padding: 0 16px; border: 0; border-radius: var(--vn-radius-pill);
  background: transparent; color: var(--vn-muted); font: 700 13px var(--vn-font-body), sans-serif;
  cursor: pointer; transition: background .2s, color .2s;
}
html.vn:not([data-section="admin"]) .pf-tab:hover { background: rgba(255, 255, 255, .06); color: var(--vn-text); }
html.vn:not([data-section="admin"]) .pf-tab[aria-selected="true"] {
  background: var(--vn-grad-brand); color: var(--vn-ink);
}

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .pf-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  html.vn:not([data-section="admin"]) .pf-tab { flex: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Хаб профілю (ProfileB): шапка, вітрина, лічильники, вкладки. views/profile.erb (@design_b && @hub),
   дані — routes/profile_hub.rb, поведінка — public/js/profile-vn.js. Налаштування — остання вкладка.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .profile-page:has(.pfh-hero) { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; }
html.vn .pfh-hero { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(120deg, rgba(255, 79, 163, .22), rgba(185, 140, 255, .12) 45%, rgba(46, 230, 214, .1)); }
html.vn .pfh-hero__bg { position: absolute; inset: 0; background: radial-gradient(60% 80% at 10% 0%, rgba(255, 159, 69, .25), transparent 60%); pointer-events: none; }
html.vn .pfh-hero__in { position: relative; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px; }
html.vn .pfh-ava { position: relative; flex: none; width: 120px; height: 120px; }
html.vn .pfh-ava img, html.vn .pfh-ava__l { width: 120px; height: 120px; border-radius: 30px; object-fit: cover; border: 4px solid #F3F1F8; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
html.vn .pfh-ava__l { display: grid; place-items: center; background: linear-gradient(135deg, #FF4FA3, #FF9F45); color: #14061A; font: 900 52px var(--vn-font-display); }
html.vn .pfh-lv { position: absolute; right: -8px; bottom: -8px; padding: 4px 10px; border-radius: 999px; background: #FFE27A; color: #14061A; font: 800 13px var(--vn-font-mono); border: 3px solid #14061A; }
html.vn .pfh-who { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
html.vn .pfh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn .pfh-tag { --c: #F3F1F8; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(20, 6, 26, .55); color: var(--c); font-size: 12px; font-weight: 800; }
html.vn .pfh-name { margin: 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; text-shadow: 0 6px 0 #14061A; }
html.vn .pfh-xp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html.vn .pfh-xp__bar { flex: 1 1 200px; max-width: 360px; height: 12px; border-radius: 999px; background: rgba(20, 6, 26, .55); overflow: hidden; }
html.vn .pfh-xp__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFE27A, #FF9F45, #FF4FA3); }
html.vn .pfh-xp__t { font: 700 13px var(--vn-font-mono); color: #F3F1F8; }
html.vn .pfh-how { position: relative; }
html.vn .pfh-how summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: 13px; font-weight: 800; }
html.vn .pfh-how summary::-webkit-details-marker { display: none; }
html.vn .pfh-how__pop { margin-top: 8px; padding: 14px 16px; border-radius: 18px; background: #17121F; border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 6px; max-width: 420px; font-size: 13.5px; }
html.vn .pfh-how__pop > span { display: flex; justify-content: space-between; gap: 12px; }
html.vn .pfh-how__pop b { color: #2EE6D6; }
html.vn .pfh-how__pop .pfh-how__note { display: block; color: #A39FB5; font-size: 12.5px; }
html.vn .pfh-side { flex: 0 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.vn .pfh-streak { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 20px; background: rgba(20, 6, 26, .55); }
html.vn .pfh-streak__t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
html.vn .pfh-streak__t b { font: 800 18px var(--vn-font-display); }
html.vn .pfh-streak__t span { font-size: 12px; color: #A39FB5; }
html.vn .pfh-week { display: flex; gap: 4px; }
html.vn .pfh-week i { width: 12px; height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
html.vn .pfh-week i.is-on { background: #FF9F45; }
html.vn .pfh-acts { display: flex; flex-wrap: wrap; gap: 8px; }
html.vn .pfh-btn { flex: 1 1 auto; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
  background: #F3F1F8; color: #14061A; font: 800 14px var(--vn-font-body); text-decoration: none; cursor: pointer; }
html.vn .pfh-btn--ghost { background: rgba(20, 6, 26, .55); color: #F3F1F8; border: 1px solid rgba(255, 255, 255, .2); }
html.vn .pfh-btn:hover { filter: brightness(1.05); color: inherit; }

html.vn .pfh-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
html.vn .pfh-sec-h h2 { margin: 0; font: 800 15px var(--vn-font-display); text-transform: uppercase; }
html.vn .pfh-sec-h span { font-size: 13px; color: #A39FB5; }
html.vn .pfh-show { display: flex; flex-direction: column; gap: 10px; }
html.vn .pfh-show__grid, html.vn .pfh-garage { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
html.vn .pfh-car { --c: #FF4FA3; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
  color: #F3F1F8; text-decoration: none; transition: transform .2s, border-color .2s; min-height: 100%; }
html.vn a.pfh-car:hover { transform: translateY(-3px); border-color: rgba(255, 79, 163, .45); color: #F3F1F8; }
html.vn .pfh-car__art { position: relative; height: 120px; display: grid; place-items: center; background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 30%, #2A1450) 60%, #14061A); color: rgba(20, 6, 26, .75); }
html.vn .pfh-car__art img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
html.vn .pfh-car__art svg { width: 70%; max-height: 90px; }
html.vn .pfh-car__t { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
html.vn .pfh-car__t b { font: 800 14px var(--vn-font-display); overflow-wrap: anywhere; }
html.vn .pfh-car__t span { font: 600 12.5px var(--vn-font-mono); color: #2EE6D6; }
html.vn .pfh-car--empty { min-height: 170px; align-items: center; justify-content: center; text-align: center; padding: 16px; border: 1px dashed rgba(255, 255, 255, .18); background: none; color: #A39FB5; font-size: 13.5px; }

html.vn .pfh-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html.vn .pfh-stat { --c: #FF4FA3; padding: 14px 18px; border-radius: 22px; text-align: left; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); color: #F3F1F8; cursor: pointer; font: inherit; }
html.vn .pfh-stat:hover { border-color: var(--c); }
html.vn .pfh-stat span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #A39FB5; }
html.vn .pfh-stat i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
html.vn .pfh-stat b { display: block; font: 700 28px/1.3 var(--vn-font-mono); }

html.vn .pfh-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; scrollbar-width: none; }
html.vn .pfh-tab { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #A39FB5; font: 800 14px var(--vn-font-body); cursor: pointer; white-space: nowrap; }
html.vn .pfh-tab span { font-family: var(--vn-font-mono); font-size: 12px; opacity: .85; }
html.vn .pfh-tab[aria-selected="true"] { background: #F3F1F8; color: #14061A; }
html.vn .pfh-panel { display: flex; flex-direction: column; gap: 14px; }
html.vn .pfh-panel[hidden] { display: none; }
html.vn .pfh-panel--set { gap: 0; }
html.vn .pfh-empty { margin: 0; padding: 28px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); color: #A39FB5; text-align: center; }
html.vn .pfh-empty a, html.vn .pfh-more { color: #2EE6D6; font-weight: 800; text-decoration: none; }
html.vn .pfh-more { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
html.vn .pfh-gcar { position: relative; }
html.vn .pfh-pin { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(20, 6, 26, .7); color: #F3F1F8; cursor: pointer; }
html.vn .pfh-pin[aria-pressed="true"] { background: #FFE27A; color: #14061A; border-color: #FFE27A; }
html.vn .pfh-rows { list-style: none; margin: 0; padding: 6px; border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 4px; }
html.vn .pfh-rows a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: #F3F1F8; text-decoration: none; }
html.vn .pfh-rows a:hover { background: rgba(255, 255, 255, .05); }
html.vn .pfh-rows__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #FF4FA3, #FF9F45); }
html.vn .pfh-rows__ic--item { background: linear-gradient(135deg, #B98CFF, #2EE6D6); }
html.vn .pfh-rows__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn .pfh-rows__t b { overflow-wrap: anywhere; }
html.vn .pfh-rows__t span { font-size: 12.5px; color: #A39FB5; }
html.vn .pfh-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
html.vn .pfh-note { padding: 14px; border-radius: 20px; background: rgba(255, 226, 122, .06); border: 1px dashed rgba(255, 226, 122, .4); display: flex; flex-direction: column; gap: 8px; }
html.vn .pfh-note__h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
html.vn .pfh-note__h a { color: #F3F1F8; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
html.vn .pfh-note__h time { font: 600 12px var(--vn-font-mono); color: #A39FB5; }
html.vn .pfh-note textarea { width: 100%; resize: vertical; min-height: 60px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(11, 10, 18, .5); color: #FFF0B8; font: 600 14px var(--vn-font-body); }
html.vn .pfh-note__f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html.vn .pfh-note__st { font-size: 12px; color: #A39FB5; }
html.vn .pfh-note__del { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 90, 122, .45); background: none; color: #FF5A7A; font: 700 13px var(--vn-font-body); cursor: pointer; }
html.vn .pfh-heat { display: grid; grid-template-rows: repeat(7, 14px); grid-auto-flow: column; grid-auto-columns: 14px; gap: 4px; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); overflow-x: auto; justify-content: start; }
html.vn .pfh-heat__c { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 20px rgba(255, 79, 163, var(--o)); }
html.vn .pfh-act { list-style: none; margin: 0; padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; }
html.vn .pfh-act li { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; }
html.vn .pfh-act b { font: 700 13px var(--vn-font-mono); color: #2EE6D6; }
html.vn .pfh-act time { font: 600 12.5px var(--vn-font-mono); color: #A39FB5; text-align: right; }
html.vn .pfh-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
html.vn .pfh-badge { --c: #FF4FA3; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); opacity: .6; }
html.vn .pfh-badge.is-got { opacity: 1; border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
html.vn .pfh-badge__ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #A39FB5; }
html.vn .pfh-badge.is-got .pfh-badge__ic { background: var(--c); color: #14061A; }
html.vn .pfh-badge__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.vn .pfh-badge__t span { font-size: 12.5px; color: #A39FB5; }
html.vn .pfh-badge__xp { font: 700 12px var(--vn-font-mono); color: #FFE27A; white-space: nowrap; }
html.vn .profile-page :is(.pfh-tab, .pfh-stat, .pfh-btn, .pfh-pin, .pfh-note__del, .pfh-how summary, .pfh-car, .pfh-rows a, textarea):focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }

@media (max-width: 760px) {
  html.vn .pfh-hero__in { padding: 20px; gap: 18px; }
  html.vn .pfh-ava, html.vn .pfh-ava img, html.vn .pfh-ava__l { width: 88px; height: 88px; }
  html.vn .pfh-ava__l { font-size: 38px; border-radius: 24px; }
  html.vn .pfh-side { flex-basis: 100%; }
  html.vn .pfh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn .pfh-stat b { font-size: 22px; }
  html.vn .pfh-tab { min-height: 40px; }
  html.vn .pfh-show__grid, html.vn .pfh-garage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html.vn .pfh-car__art { height: 88px; }
  html.vn .pfh-car--empty { min-height: 120px; font-size: 12.5px; padding: 10px; }
  html.vn .pfh-car__t { padding: 10px; }
  html.vn .pfh-act li { grid-template-columns: minmax(0, 1fr) auto; }
  html.vn .pfh-act time { grid-column: 1 / -1; text-align: left; }
}

/* ─── Публічна сторінка /u/:slug (views/user_public.erb, @design_b): та сама мова, що й хаб ─── */
html.vn:not([data-section="admin"]) .upv { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; padding-bottom: 80px; width: 100%; max-width: min(1240px, 100%); min-width: 0; color: #F3F1F8; }
html.vn .upv-status { margin: 0; font-size: 15px; font-style: italic; color: #F3F1F8; opacity: .9; overflow-wrap: anywhere; }
html.vn .upv-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #F3F1F8; opacity: .8; }
html.vn .upv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.vn .upv .pfh-stat { cursor: default; }
html.vn .upv-note { margin: 0; font-size: 12.5px; color: #A39FB5; }
html.vn .upv .pfh-sec-h h2 { font: 800 15px var(--vn-font-display); text-transform: uppercase; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .upv { padding-top: 16px; gap: 18px; }
  html.vn .upv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html.vn .upv .pfh-stat { padding: 12px; min-width: 0; }
  html.vn .upv .pfh-stat span { font-size: 12px; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Фони шапки профілю й рамки аватара (власні CSS-малюнки, лише палітра). Набір і рівні —
   PROFILE_BG_LEVELS / AVATAR_FRAME_LEVELS (lib/web/helpers/users.rb). Ті самі правила для прев’ю в «Вигляді».
   ────────────────────────────────────────────────────────────────────────── */
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="dusk"]     { background: linear-gradient(180deg, #2A1450 0%, #5B2A6E 55%, #FF4FA3 130%); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="lagoon"]   { background: linear-gradient(135deg, #0E3B44 0%, #1B2A55 55%, #2A1450 100%), #0B0A12; }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="grid"]     { background:
  linear-gradient(transparent 60%, rgba(255, 79, 163, .35) 61%, transparent 62%) 0 0 / 100% 100%,
  repeating-linear-gradient(90deg, rgba(46, 230, 214, .25) 0 1px, transparent 1px 40px),
  repeating-linear-gradient(0deg, rgba(46, 230, 214, .2) 0 1px, transparent 1px 28px),
  linear-gradient(180deg, #14061A, #2A1450); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="sunset"]   { background: linear-gradient(180deg, #2A1450 0%, #FF4FA3 60%, #FF9F45 85%, #FFE27A 100%); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="stars"]    { background:
  radial-gradient(1.5px 1.5px at 12% 20%, #F3F1F8 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #F3F1F8 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 55% 35%, #FFE27A 50%, transparent 51%), radial-gradient(1px 1px at 72% 15%, #F3F1F8 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 88% 60%, #2EE6D6 50%, transparent 51%), radial-gradient(1px 1px at 40% 45%, #F3F1F8 50%, transparent 51%),
  radial-gradient(60% 80% at 80% 100%, rgba(185, 140, 255, .35), transparent 70%), #0B0A12; }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="rain"]     { background:
  repeating-linear-gradient(100deg, transparent 0 18px, rgba(46, 230, 214, .22) 18px 19px, transparent 19px 37px, rgba(255, 79, 163, .2) 37px 38px),
  linear-gradient(180deg, #14061A, #1B2A55); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="city"]     { background:
  linear-gradient(#14061A, #14061A) 0 100% / 100% 14% no-repeat,
  repeating-linear-gradient(90deg, #14061A 0 26px, transparent 26px 34px, #14061A 34px 58px, transparent 58px 66px) 0 100% / 100% 42% no-repeat,
  repeating-linear-gradient(90deg, transparent 0 12px, #241030 12px 44px, transparent 44px 56px) 0 100% / 100% 64% no-repeat,
  radial-gradient(circle at 75% 45%, #FFE27A 0, #FF9F45 6%, transparent 7%),
  linear-gradient(180deg, #2A1450 0%, #FF4FA3 78%, #FF9F45 100%); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="ocean"]    { background:
  repeating-radial-gradient(ellipse at 50% 140%, rgba(46, 230, 214, .22) 0 6px, transparent 6px 22px),
  linear-gradient(180deg, #1B2A55, #0E3B44 70%, #2EE6D6 160%); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="aurora"]   { background:
  radial-gradient(70% 60% at 20% 20%, rgba(46, 230, 214, .45), transparent 70%),
  radial-gradient(60% 60% at 70% 30%, rgba(185, 140, 255, .45), transparent 70%),
  radial-gradient(50% 50% at 50% 90%, rgba(255, 226, 122, .2), transparent 70%), #0B0A12; }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="synth-sun"] { background:
  repeating-linear-gradient(180deg, transparent 0 9px, #2A1450 9px 12px) 0 55% / 100% 45% no-repeat,
  radial-gradient(circle at 50% 78%, #FFE27A 0, #FF9F45 18%, #FF4FA3 30%, transparent 31%),
  linear-gradient(180deg, #14061A, #2A1450 70%, #FF4FA3 140%); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="vice-night"] { background:
  radial-gradient(40% 60% at 15% 100%, rgba(255, 79, 163, .55), transparent 70%),
  radial-gradient(40% 60% at 85% 0%, rgba(46, 230, 214, .45), transparent 70%),
  linear-gradient(120deg, #14061A, #2A1450 50%, #0E3B44); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="hologram"] { background: linear-gradient(115deg, #2EE6D6, #B98CFF 30%, #FF4FA3 55%, #FFE27A 75%, #2EE6D6) 0 0 / 300% 100%;
  animation: pfcHolo 10s ease-in-out infinite; }
@keyframes pfcHolo { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="gold-rush"] { background:
  repeating-linear-gradient(135deg, rgba(255, 226, 122, .18) 0 2px, transparent 2px 14px),
  linear-gradient(135deg, #3A2410, #FF9F45 60%, #FFE27A); }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="glitch"]   { background:
  repeating-linear-gradient(0deg, rgba(255, 79, 163, .3) 0 3px, transparent 3px 11px, rgba(46, 230, 214, .3) 11px 13px, transparent 13px 29px),
  linear-gradient(90deg, #14061A, #2A1450); }
/* A chosen background replaces the default glow; text stays readable over bright ones. */
html.vn .pfh-hero:not([data-bg=""]) .pfh-hero__bg { background: linear-gradient(90deg, rgba(11, 10, 18, .55), rgba(11, 10, 18, .15) 60%, rgba(11, 10, 18, .35)); }

/* Frames: on the hero avatar and on the picker previews. */
html.vn :is(.pfh-ava, .pfc-fr) { --fr: 4px solid #F3F1F8; }
html.vn .pfh-ava[data-frame] :is(img, .pfh-ava__l) { border: var(--fr); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame=""]       { --fr: 4px solid transparent; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="white"]  { --fr: 4px solid #F3F1F8; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="pink"]   { --fr: 4px solid #FF4FA3; --gl: 0 0 18px rgba(255, 79, 163, .7); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="cyan"]   { --fr: 4px solid #2EE6D6; --gl: 0 0 18px rgba(46, 230, 214, .7); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="violet"] { --fr: 4px solid #B98CFF; --gl: 0 0 18px rgba(185, 140, 255, .7); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="dashed"] { --fr: 4px dashed #2EE6D6; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="double"] { --fr: 6px double #FF4FA3; }
html.vn .pfh-ava[data-frame] :is(img, .pfh-ava__l) { box-shadow: var(--gl, 0 16px 40px rgba(0, 0, 0, .45)); }
/* Gradient frames: a ring drawn behind the photo. */
html.vn :is(.pfh-ava, .pfc-fr):is([data-frame="sunset"], [data-frame="chrome"], [data-frame="gold"], [data-frame="vice"], [data-frame="hologram"], [data-frame="pulse"], [data-frame="glitch"], [data-frame="crown"]) { --fr: 4px solid transparent; }
html.vn .pfh-ava::before, html.vn .pfc-fr::before { content: ""; position: absolute; inset: -2px; border-radius: 32px; z-index: 0; pointer-events: none; }
html.vn .pfc-fr::before { border-radius: 16px; }
html.vn :is(.pfh-ava, .pfc-fr) > * { position: relative; z-index: 1; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="sunset"]::before   { background: linear-gradient(135deg, #FF4FA3, #FF9F45, #FFE27A); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="chrome"]::before   { background: linear-gradient(180deg, #F3F1F8, #A39FB5 48%, #F3F1F8 52%, #2EE6D6); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="gold"]::before     { background: linear-gradient(135deg, #FFE27A, #FF9F45 50%, #FFE27A); box-shadow: 0 0 20px rgba(255, 226, 122, .55); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="vice"]::before     { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #B98CFF, #FF4FA3) 0 0 / 300% 100%; animation: pfcHolo 6s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(255, 79, 163, .5); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="hologram"]::before { background: linear-gradient(115deg, #2EE6D6, #B98CFF, #FF4FA3, #FFE27A, #2EE6D6) 0 0 / 300% 100%; animation: pfcHolo 4s ease-in-out infinite; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="pulse"]::before    { background: #FF4FA3; animation: pfcPulse 2.2s ease-in-out infinite; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="glitch"]::before   { background: linear-gradient(90deg, #FF4FA3 50%, #2EE6D6 50%); transform: translate(2px, -2px); box-shadow: -4px 3px 0 #2EE6D6; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="crown"]::before    { background: linear-gradient(135deg, #FFE27A, #FF9F45); box-shadow: 0 0 24px rgba(255, 226, 122, .7); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="crown"]::after     { content: ""; position: absolute; z-index: 2; left: 50%; top: -18px; width: 40px; height: 22px; transform: translateX(-50%);
  background: #FFE27A; clip-path: polygon(0 100%, 0 30%, 25% 65%, 50% 0, 75% 65%, 100% 30%, 100% 100%); filter: drop-shadow(0 2px 0 #14061A); }
html.vn .pfc-fr[data-frame="crown"]::after { top: -10px; width: 22px; height: 12px; }
@keyframes pfcPulse { 0%, 100% { box-shadow: 0 0 6px rgba(255, 79, 163, .6); } 50% { box-shadow: 0 0 26px #FF4FA3, 0 0 40px rgba(255, 159, 69, .5); } }

/* Picker */
html.vn .pfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
html.vn .pfc-grid--fr { grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr)); }
html.vn .pfc-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: #F3F1F8; font: 700 12.5px var(--vn-font-body); cursor: pointer; }
html.vn .pfc-tile[aria-checked="true"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .12); }
html.vn .pfc-tile:focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
html.vn .pfc-tile.is-locked { opacity: .55; cursor: not-allowed; }
html.vn .pfc-bg { display: block; width: 100%; height: 64px; border-radius: 12px; background: linear-gradient(120deg, rgba(255, 79, 163, .22), rgba(185, 140, 255, .12) 45%, rgba(46, 230, 214, .1)), #17121F; }
html.vn .pfc-fr { position: relative; width: 56px; height: 56px; margin-top: 10px; }
html.vn .pfc-fr > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 16px; border: var(--fr); background: linear-gradient(135deg, #FF4FA3, #FF9F45);
  color: #14061A; font: 900 22px var(--vn-font-display); box-shadow: var(--gl, none); }
html.vn .pfc-h3 { margin: 0; font: 800 15px var(--vn-font-display); }
html.vn .pfc-st { margin: 0; min-height: 18px; font-size: 13px; color: #2EE6D6; }
html.vn .pfc { display: flex; flex-direction: column; gap: 14px; }
@media (prefers-reduced-motion: reduce) {
  html.vn :is(.pfh-hero, .pfc-bg)[data-bg="hologram"], html.vn :is(.pfh-ava, .pfc-fr)::before { animation: none; }
}
@media (max-width: 760px) {
  html.vn .pfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.vn .pfc-grid--fr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html.vn .pfh-ava { margin-bottom: 12px; }
}

/* ─── Нагороди за досягнення: анімовані фони й рамки інших форм (лише палітра, власні малюнки) ─── */
@property --pfc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="garage-neon"] { background:
  repeating-linear-gradient(90deg, rgba(255, 79, 163, .55) 0 3px, transparent 3px 60px, rgba(46, 230, 214, .45) 60px 63px, transparent 63px 120px) 0 0 / 240px 100%,
  linear-gradient(180deg, transparent 70%, rgba(255, 79, 163, .25) 70%, rgba(255, 79, 163, .25) 71%, transparent 71%),
  linear-gradient(180deg, #14061A, #241030 70%, #0B0A12); animation: pfcSlide 6s linear infinite; }
@keyframes pfcSlide { to { background-position: 240px 0, 0 0, 0 0; } }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="radar"] { background:
  conic-gradient(from var(--pfc-ang) at 85% 50%, rgba(46, 230, 214, .5), transparent 18%, transparent),
  repeating-radial-gradient(circle at 85% 50%, transparent 0 34px, rgba(46, 230, 214, .22) 34px 35px),
  linear-gradient(120deg, #0B0A12, #0E3B44); animation: pfcRadar 4s linear infinite; }
@keyframes pfcRadar { to { --pfc-ang: 360deg; } }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="meteor"] { background:
  linear-gradient(225deg, transparent 0 46%, rgba(243, 241, 248, .9) 49%, rgba(255, 79, 163, .5) 51%, transparent 54%) 0 0 / 420px 280px,
  linear-gradient(225deg, transparent 0 47%, rgba(46, 230, 214, .8) 49.5%, transparent 52%) 160px 90px / 560px 380px,
  radial-gradient(1px 1px at 20% 30%, #F3F1F8 50%, transparent 51%), radial-gradient(1px 1px at 70% 60%, #F3F1F8 50%, transparent 51%),
  linear-gradient(180deg, #0B0A12, #2A1450); animation: pfcMeteor 5s linear infinite; }
@keyframes pfcMeteor { to { background-position: -420px 280px, -400px 470px, 0 0, 0 0, 0 0; } }

/* Shaped frames: the photo is cut to the shape, a ring of the same shape glows behind it. */
html.vn :is(.pfh-ava, .pfc-fr):is([data-frame="wheel"], [data-frame="hex"], [data-frame="bubble"], [data-frame="diamond"], [data-frame="star"]) { --fr: 0 solid transparent; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="wheel"] :is(img, .pfh-ava__l, span:first-child),
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="star"] :is(img, .pfh-ava__l, span:first-child) { border-radius: 50% !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="wheel"]::before { inset: -8px; border-radius: 50%;
  background: repeating-conic-gradient(#14061A 0 8deg, #F3F1F8 8deg 14deg, #14061A 14deg 22deg, #FF4FA3 22deg 26deg); animation: pfcTurn 3s linear infinite; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="hex"] :is(img, .pfh-ava__l, span:first-child),
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="hex"]::before { clip-path: polygon(25% 2%, 75% 2%, 99% 50%, 75% 98%, 25% 98%, 1% 50%); border-radius: 0 !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="hex"]::before { inset: -8px; background: linear-gradient(135deg, #2EE6D6, #B98CFF, #2EE6D6) 0 0 / 200% 200%; animation: pfcHolo 4s ease-in-out infinite; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="bubble"] :is(img, .pfh-ava__l, span:first-child) { border-radius: 50% 50% 50% 12% !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="bubble"]::before { inset: -6px; border-radius: 50% 50% 50% 14%; background: linear-gradient(135deg, #FF4FA3, #FF9F45);
  box-shadow: 0 0 18px rgba(255, 79, 163, .55); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="bubble"]::after { content: ""; position: absolute; z-index: 2; left: -10px; bottom: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: #FF9F45; box-shadow: -8px 8px 0 -3px #FF4FA3; animation: pfcPop 2.4s ease-in-out infinite; }
html.vn .pfc-fr[data-frame="bubble"]::after { width: 10px; height: 10px; left: -6px; bottom: -6px; box-shadow: -5px 5px 0 -2px #FF4FA3; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="diamond"] :is(img, .pfh-ava__l, span:first-child),
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="diamond"]::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0 !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="diamond"]::before { inset: -12px; background: linear-gradient(135deg, #FFE27A, #FF9F45, #FFE27A); animation: pfcGlow 2s ease-in-out infinite; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="star"]::before { inset: -30px; border-radius: 0;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: linear-gradient(135deg, #FFE27A, #FF9F45, #FF4FA3); animation: pfcTurn 14s linear infinite; }
html.vn .pfc-fr:is([data-frame="hex"], [data-frame="diamond"])::before { inset: -5px; }
html.vn .pfc-fr[data-frame="star"]::before { inset: -14px; }
html.vn .pfc-fr[data-frame="wheel"]::before { inset: -5px; }
@keyframes pfcTurn { to { transform: rotate(360deg); } }
@keyframes pfcPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes pfcGlow { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 226, 122, .4)); } 50% { filter: drop-shadow(0 0 12px rgba(255, 226, 122, .9)); } }
@media (prefers-reduced-motion: reduce) {
  html.vn :is(.pfh-hero, .pfc-bg):is([data-bg="garage-neon"], [data-bg="radar"], [data-bg="meteor"]),
  html.vn :is(.pfh-ava, .pfc-fr)::after { animation: none; }
}
html.vn .pfh-badge { flex-wrap: wrap; }
html.vn .pfh-badge__rw { flex-basis: 100%; padding-left: 56px; font-size: 12px; font-weight: 700; color: #FF8CC4; }

/* ─── Фони й рамки за досягнення (міграція 124) ─── */
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="confetti"] { background:
  radial-gradient(3px 6px at 10% 20%, #FF4FA3 50%, transparent 51%), radial-gradient(4px 4px at 30% 60%, #2EE6D6 50%, transparent 51%),
  radial-gradient(3px 6px at 55% 25%, #FFE27A 50%, transparent 51%), radial-gradient(4px 4px at 75% 70%, #B98CFF 50%, transparent 51%),
  radial-gradient(3px 6px at 90% 35%, #FF9F45 50%, transparent 51%), radial-gradient(4px 4px at 45% 85%, #FF4FA3 50%, transparent 51%)
  0 0 / 220px 160px, linear-gradient(160deg, #2A1450, #14061A); animation: pfcConfetti 7s linear infinite; }
@keyframes pfcConfetti { to { background-position: 0 160px, 0 160px, 0 160px, 0 160px, 0 160px, 0 160px, 0 0; } }
html.vn :is(.pfh-hero, .pfc-bg)[data-bg="tunnel"] { background:
  repeating-radial-gradient(ellipse at 80% 50%, transparent 0 18px, rgba(255, 79, 163, .45) 18px 20px, transparent 20px 38px, rgba(46, 230, 214, .4) 38px 40px),
  radial-gradient(ellipse at 80% 50%, #14061A 0, #2A1450 60%, #0B0A12 100%); background-size: 100% 100%;
  animation: pfcTunnel 3s linear infinite; }
@keyframes pfcTunnel { from { background-size: 100% 100%, 100% 100%; } to { background-size: 140% 140%, 100% 100%; } }

html.vn :is(.pfh-ava, .pfc-fr):is([data-frame="shield"], [data-frame="heart"]) { --fr: 0 solid transparent; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="shield"] :is(img, .pfh-ava__l, span:first-child),
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="shield"]::before { clip-path: polygon(50% 0, 100% 14%, 96% 62%, 50% 100%, 4% 62%, 0 14%); border-radius: 0 !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="shield"]::before { inset: -10px; background: linear-gradient(180deg, #2EE6D6, #B98CFF 60%, #FF4FA3); }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="heart"] :is(img, .pfh-ava__l, span:first-child),
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="heart"]::before {
  clip-path: polygon(50% 100%, 6% 56%, 0 34%, 4% 14%, 18% 2%, 34% 1%, 50% 14%, 66% 1%, 82% 2%, 96% 14%, 100% 34%, 94% 56%); border-radius: 0 !important; }
html.vn :is(.pfh-ava, .pfc-fr)[data-frame="heart"]::before { inset: -10px; background: linear-gradient(135deg, #FF4FA3, #FF5A7A, #FF9F45); animation: pfcBeat 1.6s ease-in-out infinite; }
html.vn .pfc-fr:is([data-frame="shield"], [data-frame="heart"])::before { inset: -5px; }
@keyframes pfcBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  html.vn :is(.pfh-hero, .pfc-bg):is([data-bg="confetti"], [data-bg="tunnel"]) { animation: none; }
}

/* vn-messages.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 5a: центр повідомлень /messages (NotificationsB.dc.html
   — «стрічка дзвіночка»: знижки, нагадування, адмін-розсилки, фільтр статусу
   стеження). Розмітка й логіка (read/delete/read_all/delete_all, скасування
   watch) не змінені — лише вигляд, через .messages-page й перевизначення
   CSS-змінних, які .msg-*/.page-* уже читають (--card-bg, --border, --text,
   --accent…). «Лише непрочитані» — клієнтський фільтр уже відрендерених
   рядків (messages.erb), без нових запитів.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .messages-page {
  --card: rgba(255, 255, 255, .035);
  --card-bg: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --text-muted: var(--vn-muted);
  --primary: var(--vn-pink);
  --primary-soft: rgba(255, 79, 163, .14);
  --on-primary: var(--vn-ink);
  --r-sm: 10px;
  --font: var(--vn-font-body), sans-serif;
  width: 100%; box-sizing: border-box; font-family: var(--vn-font-body), sans-serif;
}

html.vn:not([data-section="admin"]) .messages-page .page-title {
  font-family: var(--vn-font-display), sans-serif; font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--vn-text) 40%, var(--vn-pink), var(--vn-orange), var(--vn-cyan));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: bHue 8s ease-in-out infinite;
}

html.vn:not([data-section="admin"]) .messages-page .msg-watches,
html.vn:not([data-section="admin"]) .messages-page .msg-row {
  border-radius: var(--vn-radius-card);
  transition: border-color .25s, transform .2s;
}
html.vn:not([data-section="admin"]) .messages-page .msg-row:hover { border-color: rgba(255, 255, 255, .18); }
html.vn:not([data-section="admin"]) .messages-page .msg-row--unread {
  border-color: rgba(255, 79, 163, .4) !important;
  background: rgba(255, 79, 163, .06) !important;
}

html.vn:not([data-section="admin"]) .messages-page .msg-row__icon {
  width: 36px; height: 36px; flex: none; border-radius: 12px; font-size: 17px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .06);
}
/* Icon tile colour by kind — same emoji, tinted background per notification type. */
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="discount_alert"] .msg-row__icon,
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="donate_favorite_added"] .msg-row__icon { background: rgba(255, 159, 69, .18); }
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="favorite_added"] .msg-row__icon { background: rgba(255, 226, 122, .18); }
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="online_alert"] .msg-row__icon,
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="queue_alert"] .msg-row__icon,
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="watch_added"] .msg-row__icon { background: rgba(46, 230, 214, .18); }
html.vn:not([data-section="admin"]) .messages-page .msg-row[data-kind="admin_message"] .msg-row__icon { background: rgba(185, 140, 255, .18); }

html.vn:not([data-section="admin"]) .messages-page .msg-actions__btn,
html.vn:not([data-section="admin"]) .messages-page .msg-watches__cancel,
html.vn:not([data-section="admin"]) .messages-page .msg-row__read {
  border-radius: var(--vn-radius-pill);
}
html.vn:not([data-section="admin"]) .messages-page #msg-unread-toggle[aria-pressed="true"],
html.vn:not([data-section="admin"]) .messages-page .msg-settings-link {
  background: var(--vn-grad-brand); color: var(--vn-ink); border-color: transparent; font-weight: 800;
}

/* "Лише непрочитані" (client-side filter, no network calls). */
html.vn:not([data-section="admin"]) .messages-page .msg-list--unread-only .msg-row:not([data-unread="true"]) { display: none; }

/* ──────────────────────────────────────────────────────────────────────────
   «Центр повідомлень» як у прототипі NotificationsB (views/messages.erb, @design_b): .mvn-*
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .mvn { display: flex; flex-direction: column; gap: 28px; padding-top: 44px; padding-bottom: 90px; width: 100%; max-width: min(1240px, 100%); min-width: 0; color: #F3F1F8; }
html.vn .mvn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
html.vn .mvn-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: #2EE6D6; font-size: 13px; font-weight: 700; }
html.vn .mvn-h1 { margin: 14px 0 0; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 5vw, 72px); line-height: .95; letter-spacing: -.04em; overflow: hidden; padding-bottom: 6px; }
html.vn .mvn-h1 .b-rise { display: inline-block; animation: bRise .8s cubic-bezier(.2, .8, .2, 1) both; }
html.vn .mvn-hue { background: linear-gradient(90deg, #FF4FA3, #FF9F45, #2EE6D6, #FF4FA3); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite; }
html.vn .mvn-sub { margin: 10px 0 0; max-width: 60ch; color: #A39FB5; }
html.vn .mvn-head__acts { display: flex; gap: 8px; flex-wrap: wrap; }
html.vn .mvn-head__acts form { margin: 0; }
html.vn .mvn-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: linear-gradient(90deg, #FF4FA3, #FF9F45); color: #14061A; font: 800 14px var(--vn-font-body); cursor: pointer; text-decoration: none; }
html.vn .mvn-btn:disabled { opacity: .5; cursor: default; }
html.vn .mvn-btn--ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); color: #F3F1F8; }
html.vn .mvn-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
html.vn .mvn-side { flex: 1 1 280px; max-width: 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
html.vn .mvn-card { padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
html.vn .mvn-card__h { font: 800 14px var(--vn-font-display); }
html.vn .mvn-card__row { display: flex; justify-content: space-between; align-items: baseline; }
html.vn .mvn-muted { color: #A39FB5; font-size: 12.5px; }
html.vn .mvn-note { color: #A39FB5; font-size: 12.5px; line-height: 1.45; }
html.vn .mvn-types { display: flex; flex-direction: column; gap: 4px; }
html.vn .mvn-type { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 0; background: none; color: #F3F1F8; font: 700 14px var(--vn-font-body); text-align: left; cursor: pointer; }
html.vn .mvn-type span:nth-child(2) { flex: 1; }
html.vn .mvn-type b { font: 700 12.5px var(--vn-font-mono); color: #A39FB5; }
html.vn .mvn-type[aria-pressed="true"] { background: rgba(255, 79, 163, .14); box-shadow: inset 0 0 0 1px #FF4FA3; }
html.vn .mvn-type:hover { background: rgba(255, 255, 255, .05); }
html.vn .mvn-type__ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #14061A; background: var(--c); }
html.vn .mvn-link { display: flex; justify-content: space-between; align-items: center; min-height: 36px; color: #2EE6D6; font-weight: 800; text-decoration: none; }
html.vn .mvn-link:hover { color: #F3F1F8; }
html.vn .mvn-watch, html.vn .mvn-ss { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
html.vn .mvn-watch form { margin-left: auto; }
html.vn .mvn-ss a { flex: 1 1 100%; color: #F3F1F8; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
html.vn .mvn-ss a:hover { color: #FF8CC4; }
html.vn .mvn-ss .mvn-mini { margin-left: auto; }
html.vn .mvn-mini { min-width: 28px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: none; color: #A39FB5; font: 700 12px var(--vn-font-body); cursor: pointer; }
html.vn .mvn-mini:hover { color: #FF5A7A; border-color: #FF5A7A; }

html.vn .mvn-main { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
html.vn .mvn-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html.vn .mvn-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #A39FB5; }
html.vn .mvn-search:focus-within { border-color: #2EE6D6; }
html.vn .mvn-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: #F3F1F8; font: 600 14px var(--vn-font-body); }
html.vn .mvn-search input::placeholder { color: #A39FB5; }
html.vn .mvn-bar .b-chip[aria-pressed="true"], html.vn .mvn-selbar .b-chip[aria-pressed="true"] { border-color: #FF4FA3; background: rgba(255, 79, 163, .16); color: #FF8CC4; }
html.vn .mvn-selbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 18px; background: rgba(255, 79, 163, .08); border: 1px solid rgba(255, 79, 163, .3); }
html.vn .mvn-selbar[hidden] { display: none; }
html.vn .mvn-danger { color: #FF5A7A !important; }
html.vn .mvn-day { display: flex; flex-direction: column; gap: 6px; }
html.vn .mvn-day[hidden] { display: none; }
html.vn .mvn-day + .mvn-day { margin-top: 10px; }
html.vn .mvn-day__h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A39FB5; }
html.vn .mvn-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn .mvn-row[hidden] { display: none; }
html.vn .mvn-row.is-unread { background: rgba(255, 79, 163, .07); border-color: rgba(255, 79, 163, .3); }
html.vn .mvn-row__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #14061A; background: var(--c); }
html.vn .mvn-row__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
html.vn .mvn-row__t { display: flex; align-items: center; gap: 8px; }
html.vn .mvn-row__t b { font-size: 15px; overflow-wrap: anywhere; }
html.vn .mvn-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #FF4FA3; box-shadow: 0 0 8px #FF4FA3; }
html.vn .mvn-row__s { font-size: 14px; color: #D9D5E6; overflow-wrap: anywhere; }
html.vn .mvn-row__s a { color: #2EE6D6; }
html.vn .mvn-row__m { font-size: 12.5px; color: #A39FB5; }
html.vn .mvn-row__m time { font-family: var(--vn-font-mono); }
html.vn .mvn-row__a { display: flex; gap: 6px; flex: none; }
html.vn .mvn-ib { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #A39FB5; cursor: pointer; }
html.vn .mvn-ib:hover { color: #F3F1F8; border-color: rgba(255, 255, 255, .35); }
html.vn .mvn-ib[data-act="delete"]:hover { color: #FF5A7A; border-color: #FF5A7A; }
html.vn .mvn-cb { width: 24px; height: 24px; flex: none; margin-top: 8px; border-radius: 7px; border: 2px solid rgba(255, 255, 255, .3); background: none; cursor: pointer; }
html.vn .mvn-cb[aria-checked="true"] { background: #FF4FA3; border-color: #FF4FA3; box-shadow: inset 0 0 0 3px #14061A; }
html.vn .mvn-cb[hidden] { display: none; }
html.vn .mvn-empty { padding: 32px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); color: #A39FB5; display: flex; flex-direction: column; gap: 4px; text-align: center; }
html.vn .mvn-empty b { color: #F3F1F8; }
html.vn .mvn-empty[hidden] { display: none; }
html.vn .mvn-toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 10px 0 20px;
  border-radius: 999px; background: #14061A; border: 1px solid rgba(255, 79, 163, .5); box-shadow: 0 0 40px rgba(255, 79, 163, .3); font-weight: 800; }
html.vn .mvn-toast[hidden] { display: none; }
html.vn .mvn-undo { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: #F3F1F8; color: #14061A; font: 800 13px var(--vn-font-body); cursor: pointer; }
html.vn .mvn :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .mvn { padding-top: 20px; gap: 20px; }
  html.vn .mvn-side { display: contents; }
  html.vn .mvn-wrap { flex-direction: column; align-items: stretch; }
  html.vn .mvn-side > .mvn-card { order: 2; }
  html.vn .mvn-side > .mvn-card:first-child { order: 0; padding: 8px; }
  html.vn .mvn-main { order: 1; flex-basis: auto; }
  html.vn .mvn-wrap { width: 100%; min-width: 0; }
  html.vn .mvn-side > .mvn-card, html.vn .mvn-main, html.vn .mvn-types { min-width: 0; max-width: 100%; }
  html.vn .mvn-types { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  html.vn .mvn-type { flex: none; min-height: 40px; }
  html.vn .mvn-row__a { flex-direction: column; }
  html.vn .mvn-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { html.vn .mvn-h1 .b-rise, html.vn .mvn-hue { animation: none; } }

/* ──────────────────────────────────────────────────────────────────────────
   «Сповіщення бота» /notifications (views/notifications.erb). Прототипу немає — мова «Центру повідомлень»:
   палітра, пілюлі-кнопки ≥ 34 px з темним текстом, на телефоні рядки таблиць стають картками; вікна додавання.
   ────────────────────────────────────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .notif-page { max-width: min(1000px, 100%) !important; width: 100%; min-width: 0; padding: 40px 20px 90px !important; color: #F3F1F8; }
html.vn .notif-page > a[href="/chats"] { display: inline-flex !important; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  color: #A39FB5 !important; font-weight: 700; margin-bottom: 18px !important; }
html.vn .notif-page > a[href="/chats"]:hover { color: #F3F1F8 !important; border-color: rgba(255, 255, 255, .35); }
html.vn .nbv-head { margin-bottom: 26px; display: flex; flex-direction: column; align-items: flex-start; }
html.vn .notif-page .notif-section { border-radius: 24px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); margin-bottom: 18px; }
html.vn .notif-page .notif-section-header { padding: 14px 18px; border-bottom-color: rgba(255, 255, 255, .08); font: 800 15px var(--vn-font-display); }
html.vn .notif-page .notif-section-header svg { color: #FF4FA3; }
html.vn .notif-page .notif-count { font-family: var(--vn-font-mono); background: rgba(255, 79, 163, .16); color: #FF8CC4; border-radius: 999px; }
html.vn .notif-page .notif-empty { color: #A39FB5; }
html.vn .notif-page .notif-table th { color: #A39FB5; font-size: 12px; letter-spacing: .06em; }
html.vn .notif-page .notif-table td { border-color: rgba(255, 255, 255, .06); }
html.vn .notif-page .notif-tag { border-radius: 999px; background: rgba(46, 230, 214, .12); color: #2EE6D6; font-weight: 700; }
html.vn .notif-page [style*="#22c55e"] { background: rgba(46, 230, 214, .14) !important; color: #2EE6D6 !important; }
html.vn .notif-page [style*="color:var(--text-muted)"] { color: #A39FB5 !important; }
html.vn :is(.notif-page, .nmodal) .notif-btn { min-height: 34px; padding: 0 14px; border-radius: 999px; font: 800 13px var(--vn-font-body); }
html.vn :is(.notif-page, .nmodal) .notif-btn:hover { opacity: 1; filter: brightness(1.08); }
html.vn :is(.notif-page, .nmodal) :is(.notif-btn--toggle, .notif-btn--submit, .notif-add-btn) { background: linear-gradient(90deg, #FF4FA3, #FF9F45) !important; color: #14061A !important; border: 0; }
html.vn .notif-page .notif-btn--toggle { background: rgba(255, 255, 255, .06) !important; color: #F3F1F8 !important; border: 1px solid rgba(255, 255, 255, .16); }
html.vn :is(.notif-page, .nmodal) .notif-btn--delete { border: 1px solid rgba(255, 90, 122, .5); color: #FF5A7A; background: none; }
html.vn .nmodal .notif-btn--cancel { background: rgba(255, 255, 255, .06); color: #F3F1F8; }
html.vn .notif-page .notif-add-btn { margin-left: auto; min-height: 34px; padding: 0 16px; border-radius: 999px; font: 800 13px var(--vn-font-body); cursor: pointer; }
html.vn .notif-page :focus-visible, html.vn .nmodal :focus-visible { outline: 3px solid #2EE6D6; outline-offset: 2px; }

html.vn .nmodal-overlay { background: rgba(6, 5, 12, .7); backdrop-filter: blur(6px); }
html.vn .nmodal { border-radius: 26px; background: #17121F; border: 1px solid rgba(255, 79, 163, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); color: #F3F1F8; }
html.vn .nmodal-header { font: 800 16px var(--vn-font-display); border-bottom-color: rgba(255, 255, 255, .08); }
html.vn .nmodal-close { min-width: 34px; min-height: 34px; border-radius: 50%; color: #A39FB5; }
html.vn .nmodal .nf-label { color: #A39FB5; font-weight: 800; }
html.vn .nmodal .nf-input { min-height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #F3F1F8; }
html.vn .nmodal .nf-input:focus { border-color: #2EE6D6; }
html.vn .nmodal .nf-input option { background: #17121F; }
html.vn .nmodal :is(input[type="radio"], input[type="checkbox"]) { accent-color: #FF4FA3; width: 18px; height: 18px; }
html.vn .nmodal .nf-dropdown { border-radius: 14px; background: #17121F; border-color: rgba(255, 255, 255, .14); }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .notif-page { padding: 20px 16px 90px !important; }
  html.vn .notif-page .notif-section-header { flex-wrap: wrap; }
  html.vn .notif-page .notif-table-wrap { overflow: visible; }
  html.vn .notif-page .notif-table, html.vn .notif-page .notif-table tbody { display: block; width: 100%; }
  html.vn .notif-page .notif-table thead { display: none; }
  html.vn .notif-page .notif-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
  html.vn .notif-page .notif-table td { display: block; padding: 0 !important; border: 0; }
  html.vn .notif-page .notif-table td:last-child { flex-basis: 100%; }
  html.vn .notif-page .notif-btn, html.vn .notif-page .notif-add-btn { min-height: 40px; }
  html.vn .nmodal { width: calc(100% - 24px); max-height: 88vh; overflow-y: auto; }
}
html.vn .notif-page > a[href="/chats"] svg { display: none; }

/* vn-comments.css */
/* ──────────────────────────────────────────────────────────────────────────
   Vice Neon (.vn) — етап 5b: обговорення (CommentsB.dc.html), embedded on /items/:id
   and /vehicles/:id (views/_community.erb + views/_comment.erb, data in lib/web/routes/
   community.rb). Old design's markup (.community-*) is untouched (see _comment.erb's
   `else` branch) — this file only themes the shared legacy variables .community/.cat-btn/
   .search-input already read (--accent, --border, --surface, --bg, --text-muted…), same
   technique as vn-messages.css, plus the new .cm-* reactions/stickers/spoiler components.
   ────────────────────────────────────────────────────────────────────────── */

html.vn:not([data-section="admin"]) .community {
  --card: rgba(255, 255, 255, .035);
  --card-bg: rgba(255, 255, 255, .035);
  --surface: rgba(255, 255, 255, .035);
  --border: rgba(255, 255, 255, .08);
  --border-h: rgba(255, 255, 255, .22);
  --text: var(--vn-text);
  --text-2: var(--vn-muted);
  --text-dim: var(--vn-muted);
  --text-muted: var(--vn-muted);
  --bg: rgba(11, 10, 18, .5);
  --accent: var(--vn-pink);
  --accent-ink: var(--vn-ink);
  --accent-fg: var(--vn-pink);
  --accent-bg: rgba(255, 79, 163, .14);
  --r-sm: 10px;
  border-radius: var(--vn-radius-section);
  font-family: var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .community__title {
  font-family: var(--vn-font-display), sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
}
html.vn:not([data-section="admin"]) .community-comment,
html.vn:not([data-section="admin"]) .cm {
  border-radius: var(--vn-radius-card);
}

/* ─── New comment card (.cm-*) ──────────────────────────────────────────── */
html.vn:not([data-section="admin"]) .cm {
  display: flex; gap: 12px; padding: 14px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--vn-radius-card);
}
html.vn:not([data-section="admin"]) .cm--reply { margin-left: 44px; background: rgba(255, 255, 255, .02); }
html.vn:not([data-section="admin"]) .cm--hidden { opacity: .55; }
html.vn:not([data-section="admin"]) .cm__av {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ac, var(--vn-pink)); color: var(--vn-ink); font: 900 14px var(--vn-font-display), sans-serif;
}
html.vn:not([data-section="admin"]) .cm__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
html.vn:not([data-section="admin"]) .cm__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.vn:not([data-section="admin"]) .cm__who { color: var(--vn-text); font-weight: 800; text-decoration: none; }
html.vn:not([data-section="admin"]) .cm__who:hover { color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .cm__role {
  padding: 2px 8px; border-radius: 999px; background: rgba(255, 79, 163, .14); color: var(--vn-pink); font-size: 11px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .cm__best {
  padding: 2px 8px; border-radius: 999px; background: rgba(46, 230, 214, .12); border: 1px solid rgba(46, 230, 214, .35);
  color: var(--vn-cyan); font-size: 11px; font-weight: 800;
}
html.vn:not([data-section="admin"]) .cm__sp { flex: 1; }
html.vn:not([data-section="admin"]) .cm__time { color: var(--vn-muted); font-size: 12px; font-family: var(--vn-font-mono); text-decoration: none; }
html.vn:not([data-section="admin"]) .cm__text { margin: 0; color: #E4E0EE; font-size: 14.5px; line-height: 1.6; word-break: break-word; }

html.vn:not([data-section="admin"]) .cm-mention { color: var(--vn-cyan); font-weight: 800; }
html.vn:not([data-section="admin"]) .cm-spoiler {
  display: inline; padding: 0 4px; border-radius: 6px; background: #3B2A8C; color: transparent;
  text-shadow: 0 0 8px rgba(243, 241, 248, .7); cursor: pointer; user-select: none;
}
html.vn:not([data-section="admin"]) .cm-spoiler--open {
  background: rgba(185, 140, 255, .14); color: #E4D6FF; text-shadow: none; cursor: text; user-select: text;
}

html.vn:not([data-section="admin"]) .cm__row,
html.vn:not([data-section="admin"]) .cm-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
html.vn:not([data-section="admin"]) .cm-inline-form { margin: 0; }
html.vn:not([data-section="admin"]) .cm-react,
html.vn:not([data-section="admin"]) .cm-sticker {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: var(--vn-text);
  font: 700 12px var(--vn-font-mono); cursor: pointer;
}
html.vn:not([data-section="admin"]) .cm-react { color: var(--rc, var(--vn-muted)); }
html.vn:not([data-section="admin"]) .cm-react--on,
html.vn:not([data-section="admin"]) .cm-sticker--on {
  border-color: var(--rc, var(--sc)); background: color-mix(in srgb, var(--rc, var(--sc)) 16%, transparent);
}
html.vn:not([data-section="admin"]) .cm-sticker {
  color: var(--sc, var(--vn-pink)); border-color: color-mix(in srgb, var(--sc, var(--vn-pink)) 45%, transparent);
  text-shadow: 0 0 6px color-mix(in srgb, var(--sc, var(--vn-pink)) 70%, transparent);
  font-family: var(--vn-font-display), sans-serif; letter-spacing: .02em; font-weight: 800; font-size: 11px;
}
html.vn:not([data-section="admin"]) .cm-chip,
html.vn:not([data-section="admin"]) summary.cm-chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); color: var(--vn-text);
  font: 700 12.5px var(--vn-font-body), sans-serif; cursor: pointer; list-style: none;
}
html.vn:not([data-section="admin"]) .cm-chip--dashed { border-style: dashed; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cm-chip[aria-checked="true"],
html.vn:not([data-section="admin"]) .cm-chip--on {
  border-color: var(--vn-pink); background: rgba(255, 79, 163, .14); color: #FF8CC4;
}
html.vn:not([data-section="admin"]) .cm-add-sticker summary::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) .cm-sticker-grid {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 14px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .cm-sp { flex: 1 1 auto; }
html.vn:not([data-section="admin"]) .cm-link {
  border: 0; background: none; padding: 0; color: var(--vn-muted); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
html.vn:not([data-section="admin"]) .cm-link:hover { color: var(--vn-text); }
html.vn:not([data-section="admin"]) .cm-link--danger:hover { color: var(--vn-red); }
html.vn:not([data-section="admin"]) .cm-reply summary::-webkit-details-marker { display: none; }
html.vn:not([data-section="admin"]) .cm-reply-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; align-items: flex-start; }
html.vn:not([data-section="admin"]) .cm-reply-form textarea { width: 100%; max-width: 560px; }
html.vn:not([data-section="admin"]) .cm-list { margin: 10px 0 0; padding: 0; list-style: none; }
html.vn:not([data-section="admin"]) .cm-markup-hint { color: var(--vn-muted); font-size: 12px; }
html.vn:not([data-section="admin"]) .cm-markup-hint code { font-family: var(--vn-font-mono); color: var(--vn-cyan); }
html.vn:not([data-section="admin"]) .cm-toolbar__sp { flex: 1 1 auto; }
html.vn:not([data-section="admin"]) .cm-sorts { margin: 6px 0 10px; }
html.vn:not([data-section="admin"]) .cm-form textarea { border-radius: var(--vn-radius-field); }

/* ─── Блок «Спільнота» за VehicleB: велика оцінка, зірки-кнопки, поле вводу-картка ─── */
html.vn:not([data-section="admin"]) .community { padding: 22px; border-radius: 26px; display: flex; flex-direction: column; gap: 16px; }
html.vn:not([data-section="admin"]) .community > * { margin-top: 0; margin-bottom: 0; }
html.vn:not([data-section="admin"]) .community__title { margin: 0; font-size: 15px; font-weight: 800; }
html.vn:not([data-section="admin"]) .community-rating { gap: 10px 22px; }
html.vn:not([data-section="admin"]) .community-rating__summary { gap: 10px; }
html.vn:not([data-section="admin"]) .community-rating__avg { font: 900 38px/1 var(--vn-font-display), sans-serif; letter-spacing: -.03em; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .community-rating__stars { font-size: 18px; letter-spacing: 2px; }
html.vn:not([data-section="admin"]) .community-rating__count { color: var(--vn-muted); font-size: 13px; }
html.vn:not([data-section="admin"]) .community-rate fieldset { gap: 2px; }
html.vn:not([data-section="admin"]) .community-rate label {
  display: grid; place-items: center; width: 40px; height: 44px; padding: 0; font-size: 30px; color: var(--vn-muted-2);
  border-radius: 10px; transition: transform .2s var(--vn-ease), color .15s;
}
html.vn:not([data-section="admin"]) .community-rate label:hover { transform: scale(1.12); }
html.vn:not([data-section="admin"]) .community-rate label:hover, html.vn:not([data-section="admin"]) .community-rate label:hover ~ label,
html.vn:not([data-section="admin"]) .community-rate input:checked ~ label { color: var(--vn-yellow); }
html.vn:not([data-section="admin"]) .community-rate input:focus-visible + label { outline: 2px solid var(--vn-cyan); outline-offset: 1px; }
html.vn:not([data-section="admin"]) .community__subtitle { margin: 0 0 8px; font: 800 15px var(--vn-font-body), sans-serif; text-transform: none; letter-spacing: 0; }
html.vn:not([data-section="admin"]) .community-form { gap: 10px; margin-bottom: 14px; }
html.vn:not([data-section="admin"]) .community-form textarea,
html.vn:not([data-section="admin"]) .community-form input:not([type=hidden]),
html.vn:not([data-section="admin"]) .community-form select {
  width: 100%; max-width: none; box-sizing: border-box; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(11, 10, 18, .5); color: var(--vn-text);
  font: 500 15px/23px var(--vn-font-body), sans-serif;
}
html.vn:not([data-section="admin"]) .community-form textarea { min-height: 96px; resize: vertical; }
html.vn:not([data-section="admin"]) .community-form input:not([type=hidden]), html.vn:not([data-section="admin"]) .community-form select { height: 44px; padding-block: 0; }
html.vn:not([data-section="admin"]) .community-form textarea::placeholder, html.vn:not([data-section="admin"]) .community-form input::placeholder { color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .community-form textarea:focus, html.vn:not([data-section="admin"]) .community-form input:focus,
html.vn:not([data-section="admin"]) .community-form select:focus { outline: none; border-color: var(--vn-cyan); box-shadow: 0 0 0 3px rgba(46, 230, 214, .25); }
html.vn:not([data-section="admin"]) .community-form label { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .community .cat-btn--primary {
  height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--vn-grad-brand); color: var(--vn-ink); font-weight: 800;
}
html.vn:not([data-section="admin"]) .community__muted { color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .community__muted a { color: var(--vn-cyan); font-weight: 800; }
html.vn:not([data-section="admin"]) .cm__av { border-radius: 12px; background: var(--ac, var(--vn-grad-brand)); }
html.vn:not([data-section="admin"]) .cm { padding: 12px; border-radius: 16px; }
html.vn:not([data-section="admin"]) .cm--reply { margin: 10px 0 0 0; border-left: 2px solid rgba(255, 79, 163, .35); border-radius: 4px 16px 16px 4px; }
html.vn:not([data-section="admin"]) .community-suggest { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
html.vn:not([data-section="admin"]) .community-suggest summary { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 15px; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .community-suggest[open] summary { margin-bottom: 12px; }
@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .community { padding: 16px; }
  html.vn:not([data-section="admin"]) .cm { gap: 10px; padding: 10px; }
  html.vn:not([data-section="admin"]) .cm__av { width: 32px; height: 32px; font-size: 13px; }
  html.vn:not([data-section="admin"]) .cm--reply { margin-left: -42px; }
  html.vn:not([data-section="admin"]) .cm__row { gap: 6px; }
  html.vn:not([data-section="admin"]) .cm-react, html.vn:not([data-section="admin"]) .cm-sticker { height: 32px; }
  html.vn:not([data-section="admin"]) .cm-chip, html.vn:not([data-section="admin"]) summary.cm-chip { height: 40px; }
  html.vn:not([data-section="admin"]) .community-rate label { width: 36px; font-size: 28px; }
}
html.vn:not([data-section="admin"]) .cm-link { display: inline-flex; align-items: center; min-height: 24px; }
html.vn:not([data-section="admin"]) .community-rating__stars { color: var(--vn-muted-2); }

/* vn-changelog.css */
/* «Що нового» (/changelog, ChangelogB.dc.html; views/changelog.erb) — published packages from Admin › Зміни. */
html.vn:not([data-section="admin"]) .cl-page { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 26px; padding-top: 44px; padding-bottom: 90px; color: var(--vn-text); font-family: var(--vn-font-body), sans-serif; }
html.vn:not([data-section="admin"]) .cl-kicker {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--vn-radius-pill);
  border: 1px solid rgba(46, 230, 214, .35); background: rgba(46, 230, 214, .08); color: var(--vn-cyan); font-size: 13px; font-weight: 700;
}
html.vn:not([data-section="admin"]) .cl-title {
  margin: 14px 0 0; overflow: hidden; padding-bottom: 6px; font-family: var(--vn-font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 76px); line-height: .95; letter-spacing: -.04em;
}
html.vn:not([data-section="admin"]) .cl-grad {
  background: linear-gradient(90deg, var(--vn-pink), var(--vn-orange), var(--vn-cyan), var(--vn-pink)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: bHue 8s ease-in-out infinite;
}
html.vn:not([data-section="admin"]) .cl-sub { margin: 10px 0 0; max-width: 60ch; color: var(--vn-muted); font-size: 15px; line-height: 24px; }

/* summary tiles */
html.vn:not([data-section="admin"]) .cl-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
html.vn:not([data-section="admin"]) .cl-sum__it { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .cl-sum__it span { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cl-sum__it i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .cl-sum__it b { display: block; margin-top: 4px; font: 800 28px var(--vn-font-display), sans-serif; }

/* filter bar (links) */
html.vn:not([data-section="admin"]) .cl-bar {
  position: sticky; top: 86px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 22px;
  background: rgba(20, 18, 32, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08);
}
html.vn:not([data-section="admin"]) .cl-bar__g { display: flex; flex-wrap: wrap; gap: 6px; }
html.vn:not([data-section="admin"]) .cl-bar__g:first-child { flex: 1 1 auto; min-width: 0; }
html.vn:not([data-section="admin"]) .cl-bar .b-chip { text-decoration: none; color: var(--vn-text); }
html.vn:not([data-section="admin"]) .cl-bar .b-chip[aria-current="true"] { border-color: var(--vn-pink); background: rgba(255, 79, 163, .16); color: #FF8CC4; box-shadow: 0 0 0 2px rgba(255, 79, 163, .35), 0 6px 16px rgba(255, 79, 163, .18); }
html.vn:not([data-section="admin"]) .cl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
html.vn:not([data-section="admin"]) .cl-n { opacity: .65; font-family: var(--vn-font-mono); }

/* timeline */
html.vn:not([data-section="admin"]) .cl-feed { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 26px; }
html.vn:not([data-section="admin"]) .cl-feed__line { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--vn-cyan), var(--vn-pink) 60%, transparent); }
html.vn:not([data-section="admin"]) .cl-pkg { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }
html.vn:not([data-section="admin"]) .cl-pkg__dot { position: absolute; left: -26px; top: 24px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--vn-bg); border: 3px solid var(--c); box-shadow: 0 0 12px var(--c); }
html.vn:not([data-section="admin"]) .cl-pkg__h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
html.vn:not([data-section="admin"]) .cl-pkg__at { font: 700 13px var(--vn-font-mono); color: var(--c); }
html.vn:not([data-section="admin"]) .cl-pkg__h h2 { margin: 0; flex: 1 1 260px; font: 800 18px var(--vn-font-display), sans-serif; line-height: 1.25; }
html.vn:not([data-section="admin"]) .cl-pkg__who { font-size: 12px; color: var(--vn-muted); }

/* new on the site: tiles */
html.vn:not([data-section="admin"]) .cl-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
html.vn:not([data-section="admin"]) .cl-new { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 10px; border-radius: 18px; background: rgba(46, 230, 214, .06); border: 1px solid rgba(46, 230, 214, .25); color: var(--vn-text); text-decoration: none; }
html.vn:not([data-section="admin"]) .cl-new.is-mine { border-color: var(--vn-pink); }
html.vn:not([data-section="admin"]) .cl-new__ic { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #FF9F45, #FFE27A); }
html.vn:not([data-section="admin"]) .cl-new__ic--vehicle { background: linear-gradient(135deg, #2EE6D6, #7FD1FF); }
html.vn:not([data-section="admin"]) .cl-new__tag { position: absolute; top: -6px; right: -6px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--vn-cyan); color: #14061A; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
html.vn:not([data-section="admin"]) .cl-new__t { min-width: 0; }
html.vn:not([data-section="admin"]) .cl-new__t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .cl-new__t span, html.vn:not([data-section="admin"]) .cl-row__t span { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cl-new em, html.vn:not([data-section="admin"]) .cl-row em { font-style: normal; font-weight: 800; color: #FF8CC4; }

/* changed fields: rows */
html.vn:not([data-section="admin"]) .cl-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px;
  color: var(--vn-text); text-decoration: none; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .06); transition: background .2s, transform .2s;
}
html.vn:not([data-section="admin"]) .cl-row:hover { background: rgba(255, 255, 255, .06); transform: translateX(4px); }
html.vn:not([data-section="admin"]) .cl-row.is-mine { background: rgba(255, 79, 163, .06); border-color: rgba(255, 79, 163, .35); }
html.vn:not([data-section="admin"]) .cl-row.is-removed { background: rgba(255, 90, 122, .05); border-color: rgba(255, 90, 122, .2); }
html.vn:not([data-section="admin"]) .cl-row.is-removed .cl-row__t b { text-decoration: line-through; }
html.vn:not([data-section="admin"]) .cl-row__ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--kc); background: color-mix(in srgb, var(--kc) 14%, transparent); }
html.vn:not([data-section="admin"]) .cl-row__t { min-width: 0; }
html.vn:not([data-section="admin"]) .cl-row__t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.vn:not([data-section="admin"]) .cl-row__v { text-align: right; line-height: 20px; max-width: 46vw; }
html.vn:not([data-section="admin"]) .cl-row__v s { font: 500 12px var(--vn-font-mono); color: var(--vn-muted-2); }
html.vn:not([data-section="admin"]) .cl-row__v b { font: 700 14px var(--vn-font-mono); }
html.vn:not([data-section="admin"]) .cl-row__d { font: 800 12px var(--vn-font-mono); color: var(--vn-orange); }
html.vn:not([data-section="admin"]) .cl-row__d.is-up { color: var(--vn-cyan); }
/* one card per changed record (page), its fields listed inside */
html.vn:not([data-section="admin"]) .cl-grp { border-radius: 18px; background: rgba(255, 255, 255, .02); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
html.vn:not([data-section="admin"]) .cl-grp.is-mine { background: rgba(255, 79, 163, .05); border-color: rgba(255, 79, 163, .35); }
html.vn:not([data-section="admin"]) .cl-grp.is-removed { background: rgba(255, 90, 122, .04); border-color: rgba(255, 90, 122, .2); }
html.vn:not([data-section="admin"]) .cl-grp.is-removed .cl-grp__t b { text-decoration: line-through; }
html.vn:not([data-section="admin"]) .cl-grp__h { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: var(--vn-text); text-decoration: none; transition: background .2s; }
html.vn:not([data-section="admin"]) .cl-grp__h:hover { background: rgba(255, 255, 255, .05); }
html.vn:not([data-section="admin"]) .cl-grp__ic { width: 38px; height: 38px; border-radius: 12px; }
html.vn:not([data-section="admin"]) .cl-grp__t { flex: 1; min-width: 0; }
html.vn:not([data-section="admin"]) .cl-grp__t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
html.vn:not([data-section="admin"]) .cl-grp__t span { font-size: 12px; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cl-grp__go { flex: none; color: var(--vn-muted); }
html.vn:not([data-section="admin"]) .cl-grp__list { list-style: none; margin: 0; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; }
html.vn:not([data-section="admin"]) .cl-grp__list .cl-row { background: rgba(255, 255, 255, .025); border-color: transparent; padding: 8px 10px; }
html.vn:not([data-section="admin"]) .cl-grp__list .cl-row:hover { transform: none; }
html.vn:not([data-section="admin"]) .cl-grp__list .cl-row__t b { font-weight: 600; font-size: 13.5px; }
html.vn:not([data-section="admin"]) .cl-empty { padding: 40px 20px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .16); text-align: center; color: var(--vn-muted); }

@media (max-width: 760px) {
  html.vn:not([data-section="admin"]) .cl-page { padding-top: 22px; gap: 20px; }
  html.vn:not([data-section="admin"]) .cl-bar { position: static; }
  html.vn:not([data-section="admin"]) .cl-bar .b-chip { min-height: 40px; }
  html.vn:not([data-section="admin"]) .cl-feed { padding-left: 18px; }
  html.vn:not([data-section="admin"]) .cl-pkg { padding: 16px; }
  html.vn:not([data-section="admin"]) .cl-pkg__dot { left: -18px; width: 12px; height: 12px; }
  html.vn:not([data-section="admin"]) .cl-feed__line { left: 4px; }
  html.vn:not([data-section="admin"]) .cl-row { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; }
  html.vn:not([data-section="admin"]) .cl-row__v { grid-column: 2; text-align: left; max-width: none; }
  html.vn:not([data-section="admin"]) .cl-row__v br { display: none; }
  html.vn:not([data-section="admin"]) .cl-row__d { margin-left: 8px; }
}
