/* ============================================================
   FastSel Nova v2 — тёмная премиум-тема в уровне GGSel/Playerok.
   Слой поверх Tailwind: body.t-nova переопределяет утилиты.
   Dark-first: дефолт тёмный; html.nv-light → светлая версия.
   Акцент: электро-лайм. Шрифты: Manrope + Unbounded (дисплей).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap');

body.t-nova {
    /* Базовая палитра — глубокий «ночной» синевато-графитовый */
    --th-bg:        10 12 17;
    --th-surface:   18 21 29;     /* карточки */
    --th-surface-2: 26 30 40;     /* вторичные поверхности */
    --th-ink:       236 239 246;  /* основной текст */
    --th-ink-2:     169 176 192;
    --th-muted:     107 115 132;
    --th-line:      236 239 246;  /* рамки — полупрозрачный светлый */
    --th-acc:       200 241 53;   /* электро-лайм */
    --th-acc-deep:  168 214 30;
    --th-acc-ink:   14 16 10;     /* текст на лайме — почти чёрный */
    --th-acc2:      123 140 255;  /* второй акцент — iris */
    --th-bar:       12 14 20;     /* шапка/футер/нижняя навигация */
    --th-radius:    18px;
    --th-glow:      0 0 0 1px rgba(200,241,53,.35), 0 14px 34px -12px rgba(200,241,53,.22);
    --th-shadow:    0 10px 32px -12px rgba(0,0,0,.55);

    font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-feature-settings: 'ss01' on, 'cv05' on;
    color-scheme: dark;
}

/* ---------- Типографика ---------- */
body.t-nova .font-sans,
body.t-nova input, body.t-nova select, body.t-nova textarea, body.t-nova button {
    font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
}
body.t-nova h1, body.t-nova h2 {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    letter-spacing: -0.01em;
}
body.t-nova header .font-extrabold { font-family: 'Unbounded', 'Manrope', sans-serif; letter-spacing: -.01em; }
body.t-nova ::selection { background: rgb(var(--th-acc)); color: rgb(var(--th-acc-ink)); }

/* ---------- Фон и поверхности ---------- */
body.t-nova.bg-slate-50,
body.t-nova {
    background-color: rgb(var(--th-bg));
    background-image:
        radial-gradient(circle at 12% -8%, rgba(var(--th-acc)/.07), transparent 42%),
        radial-gradient(circle at 92% -4%, rgba(var(--th-acc2)/.08), transparent 38%);
    background-attachment: fixed;
    color: rgb(var(--th-ink));
}
body.t-nova .bg-white,
body.t-nova .bg-slate-50  { background-color: rgb(var(--th-surface)); }
body.t-nova .bg-slate-100 { background-color: rgb(var(--th-surface-2)); }
body.t-nova .bg-slate-200 { background-color: rgb(38 43 56); }
body.t-nova .bg-slate-300 { background-color: rgb(56 62 78); }
body.t-nova .hover\:bg-slate-50:hover  { background-color: rgba(var(--th-acc)/.09); }
body.t-nova .hover\:bg-slate-100:hover { background-color: rgb(var(--th-surface-2)); }
body.t-nova .hover\:bg-slate-200:hover { background-color: rgb(38 43 56); }
body.t-nova .bg-white\/70 { background-color: rgba(18,21,29,.78); }
body.t-nova .bg-white\/10 { background-color: rgba(255,255,255,.06); }
body.t-nova .bg-white\/90 { background-color: rgba(18,21,29,.92); }
body.t-nova .bg-slate-50\/50 { background-color: rgba(18,21,29,.5); }

/* Текст */
body.t-nova .text-slate-900 { color: rgb(var(--th-ink)); }
body.t-nova .text-slate-800 { color: rgb(var(--th-ink)); }
body.t-nova .text-slate-700 { color: rgb(var(--th-ink-2)); }
body.t-nova .text-slate-600 { color: rgb(var(--th-ink-2)); }
body.t-nova .text-slate-500 { color: rgb(var(--th-muted)); }
body.t-nova .text-slate-400 { color: rgb(var(--th-muted)); }
body.t-nova .text-slate-300 { color: rgb(var(--th-ink-2)); }
body.t-nova .text-slate-200 { color: rgb(var(--th-ink)); }
body.t-nova .text-slate-100 { color: rgb(var(--th-ink)); }
body.t-nova .hover\:text-slate-900:hover { color: #fff; }
body.t-nova .hover\:text-slate-700:hover { color: rgb(var(--th-ink)); }
body.t-nova .hover\:text-slate-600:hover { color: rgb(var(--th-ink-2)); }

/* Рамки — тонкая «световая» линия */
body.t-nova .border-slate-200 { border-color: rgba(var(--th-line)/.08); }
body.t-nova .border-slate-300 { border-color: rgba(var(--th-line)/.15); }
body.t-nova .border-slate-100 { border-color: rgba(var(--th-line)/.05); }
body.t-nova .border-slate-900 { border-color: rgba(var(--th-line)/.2); }
body.t-nova .divide-slate-100 > * + * { border-color: rgba(var(--th-line)/.06); }

/* ---------- Семантика: статусные плашки на тёмном фоне ---------- */
body.t-nova {
    --st-ok-bg: rgba(16,185,129,.10);  --st-ok-bg2: rgba(16,185,129,.17);  --st-ok-line: rgba(16,185,129,.28);
    --st-ok-t1: #34d399; --st-ok-t2: #6ee7b7;
    --st-err-bg: rgba(244,63,94,.10);  --st-err-bg2: rgba(244,63,94,.17);  --st-err-line: rgba(244,63,94,.28);
    --st-err-t1: #fb7185; --st-err-t2: #fda4af;
    --st-warn-bg: rgba(245,158,11,.10); --st-warn-bg2: rgba(245,158,11,.17); --st-warn-line: rgba(245,158,11,.3);
    --st-warn-t1: #fbbf24; --st-warn-t2: #fcd34d;
    --st-info-bg: rgba(14,165,233,.10); --st-info-bg2: rgba(14,165,233,.17); --st-info-line: rgba(14,165,233,.3);
    --st-info-t1: #38bdf8; --st-info-t2: #7dd3fc;
}
/* success */
body.t-nova .bg-emerald-50  { background-color: var(--st-ok-bg); }
body.t-nova .bg-emerald-100 { background-color: var(--st-ok-bg2); }
body.t-nova .bg-emerald-500 { background-color: #10b981; }
body.t-nova .bg-emerald-600 { background-color: #059669; }
body.t-nova .text-emerald-400,
body.t-nova .text-emerald-500,
body.t-nova .text-emerald-600 { color: var(--st-ok-t1); }
body.t-nova .text-emerald-700,
body.t-nova .text-emerald-800 { color: var(--st-ok-t2); }
body.t-nova .border-emerald-200,
body.t-nova .border-emerald-300 { border-color: var(--st-ok-line); }
body.t-nova .hover\:bg-emerald-50:hover { background-color: var(--st-ok-bg); }
body.t-nova .hover\:bg-emerald-700:hover { background-color: #047857; }
/* danger */
body.t-nova .bg-rose-50  { background-color: var(--st-err-bg); }
body.t-nova .bg-rose-100 { background-color: var(--st-err-bg2); }
body.t-nova .bg-rose-500 { background-color: #e11d48; }
body.t-nova .bg-rose-600 { background-color: #be123c; }
body.t-nova .text-rose-400,
body.t-nova .text-rose-500,
body.t-nova .text-rose-600 { color: var(--st-err-t1); }
body.t-nova .text-rose-700,
body.t-nova .text-rose-800 { color: var(--st-err-t2); }
body.t-nova .border-rose-200,
body.t-nova .border-rose-300 { border-color: var(--st-err-line); }
body.t-nova .hover\:bg-rose-50:hover { background-color: var(--st-err-bg); }
body.t-nova .hover\:text-rose-600:hover { color: var(--st-err-t1); }
body.t-nova .hover\:text-rose-500:hover { color: var(--st-err-t1); }
body.t-nova .hover\:text-rose-400:hover { color: var(--st-err-t2); }
/* warning */
body.t-nova .bg-amber-50  { background-color: var(--st-warn-bg); }
body.t-nova .bg-amber-100 { background-color: var(--st-warn-bg2); }
body.t-nova .bg-amber-500 { background-color: #f59e0b; }
body.t-nova .text-amber-400,
body.t-nova .text-amber-500,
body.t-nova .text-amber-600 { color: var(--st-warn-t1); }
body.t-nova .text-amber-700,
body.t-nova .text-amber-800 { color: var(--st-warn-t2); }
body.t-nova .border-amber-200,
body.t-nova .border-amber-300 { border-color: var(--st-warn-line); }
/* info */
body.t-nova .bg-sky-50  { background-color: var(--st-info-bg); }
body.t-nova .bg-sky-100 { background-color: var(--st-info-bg2); }
body.t-nova .text-sky-400,
body.t-nova .text-sky-500,
body.t-nova .text-sky-600 { color: var(--st-info-t1); }
body.t-nova .text-sky-700 { color: var(--st-info-t2); }
body.t-nova .border-sky-200 { border-color: var(--st-info-line); }
/* orange (иконки типа fa-fire) */
body.t-nova .text-orange-500 { color: #fb923c; }
body.t-nova .text-orange-400 { color: #fdba74; }

/* ---------- Формы ---------- */
body.t-nova .rounded-xl  { border-radius: 14px; }
body.t-nova .rounded-2xl { border-radius: 18px; }
body.t-nova .rounded-3xl { border-radius: 24px; }
body.t-nova .rounded-lg  { border-radius: 12px; }

body.t-nova .card-hover {
    border-color: rgba(var(--th-line)/.08) !important;
    transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
body.t-nova .card-hover:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--th-acc)/.45) !important;
    box-shadow: var(--th-glow);
}

/* ---------- Акцент: indigo/violet → лайм ---------- */
body.t-nova .bg-indigo-50    { background-color: rgba(var(--th-acc)/.10); }
body.t-nova .bg-indigo-100   { background-color: rgba(var(--th-acc)/.16); }
body.t-nova .bg-indigo-500,
body.t-nova .bg-indigo-600   { background-color: rgb(var(--th-acc)); color: rgb(var(--th-acc-ink)); }
body.t-nova .hover\:bg-indigo-700:hover { background-color: rgb(var(--th-acc-deep)); }
body.t-nova .hover\:bg-indigo-50:hover  { background-color: rgba(var(--th-acc)/.14); }

body.t-nova .text-indigo-300 { color: rgba(var(--th-acc)/.75); }
body.t-nova .text-indigo-400,
body.t-nova .text-indigo-500,
body.t-nova .text-indigo-600 { color: rgb(var(--th-acc)); }
body.t-nova .text-indigo-700 { color: rgb(var(--th-acc-deep)); }
body.t-nova .text-indigo-900 { color: rgb(var(--th-acc)); }
body.t-nova .hover\:text-indigo-600:hover,
body.t-nova .hover\:text-indigo-700:hover { color: rgb(var(--th-acc)); }
body.t-nova .hover\:text-rose-700:hover   { color: rgb(var(--th-acc-deep)); }

body.t-nova .border-indigo-100 { border-color: rgba(var(--th-acc)/.18); }
body.t-nova .border-indigo-200 { border-color: rgba(var(--th-acc)/.25); }
body.t-nova .border-indigo-300 { border-color: rgba(var(--th-acc)/.35); }
body.t-nova .border-indigo-500 { border-color: rgb(var(--th-acc)); }
body.t-nova .hover\:border-indigo-300:hover { border-color: rgba(var(--th-acc)/.5); }

body.t-nova .focus\:ring-indigo-500:focus,
body.t-nova .focus\:ring-emerald-500:focus,
body.t-nova .focus\:ring-indigo-400:focus {
    --tw-ring-color: rgba(var(--th-acc)/.45);
}
body.t-nova .focus\:border-indigo-500:focus { border-color: rgb(var(--th-acc)); }
body.t-nova .accent-indigo-600 { accent-color: rgb(var(--th-acc)); }
body.t-nova .accent-indigo-500 { accent-color: rgb(var(--th-acc)); }
body.t-nova .ring-indigo-300 { --tw-ring-color: rgba(var(--th-acc)/.4); }
body.t-nova .ring-white\/15  { --tw-ring-color: rgba(255,255,255,.14); }
body.t-nova .ring-white\/20  { --tw-ring-color: rgba(255,255,255,.18); }

/* violet → второй акцент iris */
body.t-nova .bg-violet-50   { background-color: rgba(var(--th-acc2)/.12); }
body.t-nova .bg-violet-100  { background-color: rgba(var(--th-acc2)/.18); }
body.t-nova .bg-violet-500,
body.t-nova .bg-violet-600  { background-color: rgb(var(--th-acc2)); }
body.t-nova .text-violet-400 { color: rgba(var(--th-acc2)/.85); }
body.t-nova .text-violet-500,
body.t-nova .text-violet-600,
body.t-nova .text-violet-700 { color: rgb(var(--th-acc2)); }
body.t-nova .bg-violet-50\/50 { background-color: rgba(var(--th-acc2)/.08); }

/* Градиенты */
body.t-nova .from-indigo-500,
body.t-nova .from-indigo-600 { --tw-gradient-from: rgb(var(--th-acc)) var(--tw-gradient-from-position); --tw-gradient-to: rgba(var(--th-acc)/0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
body.t-nova .from-indigo-300 { --tw-gradient-from: rgba(var(--th-acc)/.85) var(--tw-gradient-from-position); --tw-gradient-to: rgba(var(--th-acc)/0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
body.t-nova .to-violet-500,
body.t-nova .to-violet-600   { --tw-gradient-to: rgb(var(--th-acc2)) var(--tw-gradient-to-position); }
body.t-nova .to-violet-300   { --tw-gradient-to: rgba(var(--th-acc2)/.85) var(--tw-gradient-to-position); }
body.t-nova .hover\:from-indigo-500:hover { --tw-gradient-from: rgb(var(--th-acc-deep)) var(--tw-gradient-from-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
body.t-nova .hover\:to-violet-500:hover   { --tw-gradient-to: rgba(var(--th-acc2)/.85) var(--tw-gradient-to-position); }

/* Тени акцента */
body.t-nova .shadow-indigo-500\/30,
body.t-nova .shadow-indigo-500\/40 {
    --tw-shadow-color: rgba(var(--th-acc)/.3);
    --tw-shadow: var(--tw-shadow-colored);
}

/* ---------- Шапка: стекло ---------- */
body.t-nova header {
    background: rgba(var(--th-bar)/.78) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(var(--th-line)/.08);
}
body.t-nova header .font-extrabold,
body.t-nova header .text-slate-900 { color: #F2F4FA; }
body.t-nova header .text-slate-600,
body.t-nova header .text-slate-700 { color: #A9B0C0; }
body.t-nova header .text-slate-500 { color: #7C8496; }
body.t-nova header .hover\:bg-slate-100:hover,
body.t-nova header .hover\:bg-indigo-50:hover,
body.t-nova header .hover\:bg-rose-50:hover { background-color: rgba(255,255,255,.07); }
body.t-nova header .hover\:text-slate-900:hover { color: #fff; }
body.t-nova header .hover\:text-rose-600:hover { color: #fb7185; }
body.t-nova header .text-indigo-600 { color: rgb(var(--th-acc)); }
body.t-nova header input[type="search"] {
    background-color: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #F2F4FA;
}
body.t-nova header input[type="search"]::placeholder { color: rgba(242,244,250,.4); }
body.t-nova header input[type="search"]:focus {
    background-color: rgba(255,255,255,.09);
    border-color: rgba(var(--th-acc)/.6);
    --tw-ring-color: rgba(var(--th-acc)/.35);
}
body.t-nova header .text-slate-400 { color: rgba(242,244,250,.45); }

/* Выпадашка живого поиска */
body.t-nova #search-suggest, body.t-nova #m-search-suggest {
    background-color: rgb(var(--th-surface));
    border-color: rgba(var(--th-line)/.12);
    box-shadow: var(--th-shadow);
}
body.t-nova #search-suggest .text-slate-800 { color: rgb(var(--th-ink)); }
body.t-nova #search-suggest .text-slate-900 { color: rgb(var(--th-ink)); }
body.t-nova #search-suggest img { background-color: rgb(var(--th-surface-2)); }

/* Лого-плашка */
body.t-nova header .bg-gradient-to-br.from-indigo-500 {
    --tw-gradient-from: rgb(var(--th-acc));
    --tw-gradient-to: rgb(var(--th-acc2));
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    box-shadow: 0 8px 24px -8px rgba(var(--th-acc)/.5);
}
body.t-nova header .bg-gradient-to-br.from-indigo-500 i { color: rgb(var(--th-acc-ink)); }

/* «Каталог» в шапке — лаймовая CTA */
body.t-nova header nav > a[href="/catalog"],
body.t-nova header a[href="/catalog"].hidden.sm\:inline-flex {
    background: rgb(var(--th-acc));
    color: rgb(var(--th-acc-ink)) !important;
    border-radius: 12px;
    font-weight: 800;
    padding: 9px 16px;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
body.t-nova header a[href="/catalog"]:hover {
    background: rgb(var(--th-acc-deep));
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(var(--th-acc)/.5);
}
/* «Регистрация» — контурная */
body.t-nova header a.bg-slate-900 {
    background-color: rgba(255,255,255,.08);
    color: #F2F4FA;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: none;
}
body.t-nova header a.bg-slate-900:hover { background-color: rgba(255,255,255,.14); }

/* Чипы категорий */
body.t-nova header div.flex.gap-1 a {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    transition: all .15s ease;
}
body.t-nova header div.flex.gap-1 a:hover { background: rgba(255,255,255,.10); }
body.t-nova header div.flex.gap-1 a.bg-indigo-600,
body.t-nova header a.bg-indigo-600 {
    background-color: rgb(var(--th-acc));
    border-color: rgb(var(--th-acc)) !important;
    color: rgb(var(--th-acc-ink));
    font-weight: 700;
}
body.t-nova header div.flex.gap-1 a.bg-indigo-600 i,
body.t-nova header div.flex.gap-1 a.bg-indigo-600 .fa-solid { color: rgb(var(--th-acc-ink)); }
body.t-nova button[title="Переключить тему"] { color: #A9B0C0; }
body.t-nova button[title="Переключить тему"]:hover { color: rgb(var(--th-acc)); }

/* ---------- Футер ---------- */
body.t-nova footer {
    background-color: rgb(var(--th-bar)) !important;
    border-top: 1px solid rgba(var(--th-line)/.08) !important;
}
body.t-nova footer .text-slate-500 { color: #8B93A6; }
body.t-nova footer .text-slate-400 { color: #6B7384; }
body.t-nova footer .text-slate-700 { color: #C6CBD8; }
body.t-nova footer .text-slate-300 { color: rgba(255,255,255,.28); }
body.t-nova footer .hover\:text-slate-900:hover { color: #fff; }
body.t-nova footer .hover\:text-indigo-600:hover { color: rgb(var(--th-acc)); }
body.t-nova footer .bg-slate-900 { background-color: rgb(var(--th-acc)); }
body.t-nova footer .bg-slate-900 i { color: rgb(var(--th-acc-ink)); }
body.t-nova footer .bg-slate-50  { background-color: rgba(255,255,255,.05); }
body.t-nova footer .bg-rose-50   { background-color: rgba(244,63,94,.12); }
body.t-nova footer .border-slate-200,
body.t-nova footer .border-rose-200 { border-color: rgba(255,255,255,.12); }
body.t-nova footer .text-rose-600 { color: #fb7185; }

/* ---------- Мобильная нижняя навигация ---------- */
body.t-nova nav.glass.fixed {
    background: rgba(var(--th-bar)/.85) !important;
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(var(--th-line)/.08);
}
body.t-nova nav.glass .text-slate-500 { color: #8B93A6; }
body.t-nova nav.glass .text-indigo-600 { color: rgb(var(--th-acc)); }

/* ---------- Hero / баннеры ---------- */
body.t-nova main section.bg-slate-900,
body.t-nova section.rounded-3xl.bg-slate-900 {
    background: linear-gradient(125deg, #141824 40%, #0d1017) !important;
    border: 1px solid rgba(var(--th-line)/.1);
    box-shadow: var(--th-shadow);
}
body.t-nova div[class*="radial-gradient"] {
    background-image:
        radial-gradient(ellipse at top right, rgba(var(--th-acc)/.22), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(var(--th-acc2)/.18), transparent 55%) !important;
}
body.t-nova main section .text-slate-300 { color: rgba(236,239,246,.72); }

/* ---------- Поля ввода ---------- */
body.t-nova input.rounded-xl, body.t-nova select.rounded-xl,
body.t-nova textarea.rounded-xl, body.t-nova input.rounded-lg {
    border-color: rgba(var(--th-line)/.14);
    background-color: rgba(255,255,255,.04);
    color: rgb(var(--th-ink));
}
body.t-nova input:focus, body.t-nova select:focus, body.t-nova textarea:focus {
    border-color: rgba(var(--th-acc)/.6);
    background-color: rgba(255,255,255,.06);
}
body.t-nova input::placeholder, body.t-nova textarea::placeholder { color: rgba(236,239,246,.35); }
body.t-nova input[type="radio"], body.t-nova input[type="checkbox"] { accent-color: rgb(var(--th-acc)); }

/* ---------- Кнопки ---------- */
body.t-nova a.bg-indigo-600, body.t-nova button.bg-indigo-600 {
    border: 0;
    color: rgb(var(--th-acc-ink));
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
body.t-nova a.bg-indigo-600:hover, body.t-nova button.bg-indigo-600:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px -8px rgba(var(--th-acc)/.45);
}
body.t-nova button.bg-slate-900, body.t-nova a.bg-slate-900 {
    background-color: rgb(var(--th-surface-2));
    color: rgb(var(--th-ink));
    border: 1px solid rgba(var(--th-line)/.12);
    transition: transform .15s ease, background .15s ease;
}
body.t-nova .hover\:bg-slate-700:hover,
body.t-nova .hover\:bg-slate-800:hover { background-color: rgb(var(--th-acc)); color: rgb(var(--th-acc-ink)); }



/* Модалки */
body.t-nova .shadow-2xl {
    border: 1px solid rgba(var(--th-line)/.12);
    box-shadow: var(--th-shadow);
}
body.t-nova .bg-slate-900\/60 { background-color: rgba(4,5,8,.7); }

/* Скроллбар */
body.t-nova ::-webkit-scrollbar { width: 10px; height: 10px; }
body.t-nova ::-webkit-scrollbar-track { background: rgb(var(--th-bg)); }
body.t-nova ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.14);
    border-radius: 8px;
    border: 2px solid rgb(var(--th-bg));
}
body.t-nova ::-webkit-scrollbar-thumb:hover { background: rgba(var(--th-acc)/.5); }

/* Фокус с клавиатуры */
body.t-nova :focus-visible {
    outline: 2px solid rgb(var(--th-acc));
    outline-offset: 2px;
    border-radius: 6px;
}
body.t-nova .hover\:underline:hover { text-underline-offset: 3px; }

/* Плавность появления */
body.t-nova main { animation: nv-fade .35s ease; }
@keyframes nv-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   NOVA COMPONENTS — собственная разметка (nv-*)
   ============================================================ */

/* ---------- Hero ---------- */
body.t-nova .nv-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(var(--th-line)/.1);
    background:
        radial-gradient(ellipse 70% 90% at 88% -20%, rgba(var(--th-acc)/.16), transparent 60%),
        radial-gradient(ellipse 55% 70% at -5% 110%, rgba(var(--th-acc2)/.14), transparent 55%),
        linear-gradient(125deg, #161a26 30%, #0c0e15 100%);
    box-shadow: var(--th-shadow);
    padding: clamp(30px, 5vw, 64px);
    margin-bottom: clamp(28px, 4vw, 48px);
    color: #F2F4FA;
}
body.t-nova .nv-hero::after {
    /* точечная сетка поверх градиента */
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(120deg, #000 30%, transparent 75%);
    -webkit-mask-image: linear-gradient(120deg, #000 30%, transparent 75%);
}
body.t-nova .nv-hero-inner { position: relative; z-index: 1; max-width: 660px; }
body.t-nova .nv-hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: rgb(var(--th-acc));
    background: rgba(var(--th-acc)/.10);
    border: 1px solid rgba(var(--th-acc)/.35);
    border-radius: 999px; padding: 7px 15px;
    margin-bottom: 22px;
}
body.t-nova .nv-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 4.4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.01em;
}
body.t-nova .nv-hero-title em {
    font-style: normal;
    color: rgb(var(--th-acc));
}
body.t-nova .nv-hero-sub {
    margin-top: 18px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
    color: rgba(242,244,250,.65);
    max-width: 540px;
}
body.t-nova .nv-hero-search {
    margin-top: 26px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    max-width: 560px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
body.t-nova .nv-hero-search:focus-within {
    border-color: rgba(var(--th-acc)/.55);
    box-shadow: 0 0 0 4px rgba(var(--th-acc)/.12);
}
body.t-nova .nv-hero-search > i { color: rgba(242,244,250,.5); font-size: 15px; }
body.t-nova .nv-hero-search input {
    flex: 1; min-width: 0; border: 0; outline: 0;
    background: transparent; font-size: 15px;
    color: #F2F4FA;
    padding: 10px 0;
}
body.t-nova .nv-hero-search input::placeholder { color: rgba(242,244,250,.38); }
body.t-nova .nv-hero-search button {
    border: 0; cursor: pointer; flex-shrink: 0;
    background: rgb(var(--th-acc)); color: rgb(var(--th-acc-ink));
    font-weight: 800; font-size: 15px;
    border-radius: 999px; padding: 11px 26px;
    transition: background .15s ease, transform .15s ease;
}
body.t-nova .nv-hero-search button:hover { background: rgb(var(--th-acc-deep)); transform: scale(1.03); }
body.t-nova .nv-hero-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
body.t-nova .nv-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600;
    color: rgba(242,244,250,.8);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px; padding: 7px 14px;
    transition: all .15s ease;
    text-decoration: none;
}
body.t-nova .nv-chip:hover {
    background: rgb(var(--th-acc)); border-color: rgb(var(--th-acc));
    color: rgb(var(--th-acc-ink));
    transform: translateY(-1px);
}
body.t-nova .nv-hero-stats {
    margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px;
    font-size: 13px; color: rgba(242,244,250,.55);
}
body.t-nova .nv-hero-stats i { color: rgb(var(--th-acc)); margin-right: 6px; }
body.t-nova .nv-hero-logo {
    position: absolute; right: clamp(20px, 4vw, 56px); top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}
@media (min-width: 1024px) {
    body.t-nova .nv-hero-logo { display: flex; }
    body.t-nova .nv-hero-logo img {
        height: min(var(--hero-logo-h, 180px), max(110px, 24vw));
        width: auto; max-width: min(46vw, 560px); object-fit: contain;
        filter: drop-shadow(0 0 34px rgba(var(--th-acc)/.45));
        mix-blend-mode: screen;
    }
}

/* ---------- Секции ---------- */
body.t-nova .nv-sec { margin-bottom: clamp(28px, 4vw, 48px); }
body.t-nova .nv-sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px;
}
body.t-nova .nv-sec-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(18px, 2.2vw, 24px); font-weight: 600;
    color: rgb(var(--th-ink));
}
body.t-nova .nv-sec-title i { color: rgb(var(--th-acc)); margin-right: 6px; }
body.t-nova .nv-sec-link {
    font-size: 14px; font-weight: 700; color: rgb(var(--th-acc));
    white-space: nowrap; text-decoration: none;
    opacity: .9; transition: opacity .15s;
}
body.t-nova .nv-sec-link:hover { opacity: 1; }
body.t-nova .nv-sec-link i { font-size: 11px; margin-left: 2px; }

/* ---------- Плитки категорий ---------- */
body.t-nova .nv-cats {
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { body.t-nova .nv-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { body.t-nova .nv-cats { grid-template-columns: repeat(6, 1fr); } }
body.t-nova .nv-cat {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: rgb(var(--th-surface));
    border: 1px solid rgba(var(--th-line)/.08);
    border-radius: 18px; padding: 20px 12px 16px;
    text-align: center; text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
body.t-nova .nv-cat:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--th-acc)/.4);
    box-shadow: 0 12px 28px -12px rgba(var(--th-acc)/.2);
}
body.t-nova .nv-cat-icon {
    width: 52px; height: 52px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--th-acc)/.1);
    border: 1px solid rgba(var(--th-acc)/.22);
    color: rgb(var(--th-acc));
    font-size: 22px;
}
body.t-nova .nv-cat-icon img { width: 28px; height: 28px; object-fit: contain; }
body.t-nova .nv-cat-name { font-weight: 700; font-size: 14px; color: rgb(var(--th-ink)); }

/* ---------- Сетка товаров ---------- */
body.t-nova .nv-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) { body.t-nova .nv-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ---------- Карточка товара ---------- */
body.t-nova .nv-card {
    display: flex; flex-direction: column;
    background: rgb(var(--th-surface));
    border: 1px solid rgba(var(--th-line)/.08);
    border-radius: 18px; overflow: hidden;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .22s ease;
}
body.t-nova .nv-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--th-acc)/.45);
    box-shadow: var(--th-glow);
}
body.t-nova .nv-card-media {
    position: relative; aspect-ratio: 1/1;
    background: rgb(var(--th-surface-2));
    overflow: hidden;
}
body.t-nova .nv-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
body.t-nova .nv-card:hover .nv-card-media img { transform: scale(1.06); }
body.t-nova .nv-card-badges {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    min-width: 0; margin-bottom: 8px;
}
body.t-nova .nv-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 800; line-height: 1;
    padding: 5px 9px; border-radius: 999px;
    backdrop-filter: blur(6px);
}
body.t-nova .nv-badge-acc  { background: linear-gradient(135deg, #34d399, #059669); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.35); }
body.t-nova .nv-badge-ink  { background: rgba(10,12,17,.78); color: #F2F4FA; border: 1px solid rgba(255,255,255,.16); }
body.t-nova .nv-badge-rose { background: #e11d48; color: #fff; }
body.t-nova .nv-fav {
    position: absolute; right: 8px; top: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
body.t-nova .nv-card-body {
    padding: 12px 14px 14px;
    display: flex; flex-direction: column; flex: 1;
}
body.t-nova .nv-card-cat {
    font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: rgb(var(--th-acc));
    margin-bottom: 4px;
}
body.t-nova .nv-card-name {
    font-size: 14px; font-weight: 700; line-height: 1.35;
    color: rgb(var(--th-ink));
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
}
body.t-nova .nv-card:hover .nv-card-name { color: rgb(var(--th-acc)); }
body.t-nova .nv-card-meta {
    margin-top: 6px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11.5px; color: rgb(var(--th-muted));
}
body.t-nova .nv-card-shop i { font-size: 9px; margin-right: 3px; }
body.t-nova .nv-card-shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.t-nova .nv-card-rate { color: #fbbf24; font-weight: 700; white-space: nowrap; }
body.t-nova .nv-card-rate em { font-style: normal; font-weight: 400; color: rgb(var(--th-muted)); }
body.t-nova .nv-card-foot {
    margin-top: auto; padding-top: 12px;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
}
body.t-nova .nv-card-price s {
    display: block; font-size: 11px; color: rgb(var(--th-muted)); font-weight: 500;
}
body.t-nova .nv-card-price b {
    font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
    color: rgb(var(--th-ink));
}
body.t-nova .nv-card-go {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgb(var(--th-surface-2)); color: rgb(var(--th-ink-2));
    border: 1px solid rgba(var(--th-line)/.12);
    font-size: 13px;
    transition: all .18s ease;
}
body.t-nova .nv-card:hover .nv-card-go {
    background: rgb(var(--th-acc)); color: rgb(var(--th-acc-ink)); border-color: rgb(var(--th-acc));
}
body.t-nova .nv-empty { text-align: center; padding: 60px 20px; color: rgb(var(--th-muted)); }
body.t-nova .nv-empty i { font-size: 44px; opacity: .4; display: block; margin-bottom: 14px; }
body.t-nova .nv-empty p { font-size: 17px; }

/* ---------- Страница товара ---------- */
body.t-nova #product-price { font-family: 'Unbounded', sans-serif; font-weight: 700; }
body.t-nova #buy-btn {
    background: rgb(var(--th-acc)) !important;
    color: rgb(var(--th-acc-ink)) !important;
    border: 0;
    box-shadow: 0 12px 30px -10px rgba(var(--th-acc)/.4);
    font-family: 'Manrope', sans-serif;
    transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}
body.t-nova #buy-btn:hover {
    background: rgb(var(--th-acc-deep)) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px -10px rgba(var(--th-acc)/.5);
}
body.t-nova #buy-btn:active { transform: translateY(0); }
body.t-nova .has-\[\:checked\]\:border-indigo-500:has(:checked) { border-color: rgb(var(--th-acc)); }
body.t-nova .has-\[\:checked\]\:bg-indigo-50\/50:has(:checked) { background-color: rgba(var(--th-acc)/.07); }
body.t-nova .lg\:sticky > .bg-white.rounded-3xl {
    border-color: rgba(var(--th-line)/.1);
    box-shadow: var(--th-shadow);
}
body.t-nova .ptab.bg-indigo-50 { background-color: rgba(var(--th-acc)/.1); }
body.t-nova .ptab { transition: color .15s, background .15s; }
/* Блоки кода */
body.t-nova pre.bg-slate-900 { background-color: #0a0c12; border: 1px solid rgba(var(--th-line)/.08); }

/* ============================================================
   NV-LIGHT — светлая версия Nova (тумблер луны/солнца)
   ============================================================ */
html.nv-light body.t-nova {
    --th-bg:        244 245 248;
    --th-surface:   255 255 255;
    --th-surface-2: 236 238 243;
    --th-ink:       18 20 26;
    --th-ink-2:     72 78 92;
    --th-muted:     122 128 142;
    --th-line:      18 20 26;
    --th-acc:       122 168 10;   /* глубокий лайм — читается на белом */
    --th-acc-deep:  100 140 8;
    --th-acc-ink:   255 255 255;
    --th-acc2:      99 102 241;
    --th-bar:       18 20 27;
    --th-glow:      0 0 0 1px rgba(122,168,10,.3), 0 14px 30px -14px rgba(18,20,26,.25);
    --th-shadow:    0 10px 28px -12px rgba(18,20,26,.18);
    color-scheme: light;
}
html.nv-light body.t-nova {
    background-image:
        radial-gradient(circle at 12% -8%, rgba(var(--th-acc)/.06), transparent 42%),
        radial-gradient(circle at 92% -4%, rgba(var(--th-acc2)/.05), transparent 38%);
}
html.nv-light body.t-nova .bg-white\/70 { background-color: rgba(255,255,255,.8); }
html.nv-light body.t-nova .bg-white\/90 { background-color: rgba(255,255,255,.92); }
html.nv-light body.t-nova .nv-badge-ink { background: rgba(255,255,255,.9); color: #12141a; border-color: rgba(18,20,26,.15); }
html.nv-light body.t-nova .nv-card-rate { color: #d97706; }
html.nv-light body.t-nova .nv-hero { border-color: rgba(18,20,26,.12); }
html.nv-light body.t-nova ::-webkit-scrollbar-track { background: rgb(var(--th-bg)); }
html.nv-light body.t-nova ::-webkit-scrollbar-thumb { background: rgba(18,20,26,.2); border-color: rgb(var(--th-bg)); }
html.nv-light body.t-nova ::-webkit-scrollbar-thumb:hover { background: rgba(var(--th-acc)/.6); }
html.nv-light body.t-nova .bg-slate-200 { background-color: rgb(228 231 237); }
html.nv-light body.t-nova .bg-slate-300 { background-color: rgb(206 210 219); }
html.nv-light body.t-nova .hover\:bg-slate-200:hover { background-color: rgb(228 231 237); }

/* Статусы — светлые значения для светлой Nova */
html.nv-light body.t-nova {
    --st-ok-bg: #ecfdf5;  --st-ok-bg2: #d1fae5;  --st-ok-line: #a7f3d0;
    --st-ok-t1: #059669; --st-ok-t2: #047857;
    --st-err-bg: #fff1f2; --st-err-bg2: #ffe4e6; --st-err-line: #fecdd3;
    --st-err-t1: #e11d48; --st-err-t2: #be123c;
    --st-warn-bg: #fffbeb; --st-warn-bg2: #fef3c7; --st-warn-line: #fde68a;
    --st-warn-t1: #d97706; --st-warn-t2: #b45309;
    --st-info-bg: #f0f9ff; --st-info-bg2: #e0f2fe; --st-info-line: #bae6fd;
    --st-info-t1: #0284c7; --st-info-t2: #0369a1;
}
html.nv-light body.t-nova .text-emerald-500,
html.nv-light body.t-nova .text-emerald-600 { color: #059669; }
html.nv-light body.t-nova .text-rose-500,
html.nv-light body.t-nova .text-rose-600 { color: #e11d48; }
html.nv-light body.t-nova .text-amber-500 { color: #d97706; }
html.nv-light body.t-nova .text-orange-500 { color: #ea580c; }
html.nv-light body.t-nova .text-violet-500,
html.nv-light body.t-nova .text-violet-600,
html.nv-light body.t-nova .text-violet-700 { color: rgb(var(--th-acc2)); }

@media (prefers-reduced-motion: reduce) {
    body.t-nova main { animation: none; }
    body.t-nova .card-hover, body.t-nova .nv-card, body.t-nova .nv-cat { transition: none; }
    body.t-nova .nv-card:hover, body.t-nova .card-hover:hover { transform: none; }
}


/* ---------- Шапка v2: брутальная плашка ---------- */
/* Нижняя световая кромка — акцентный «луч» под шапкой */
body.t-nova header {
    position: relative;
    box-shadow: 0 18px 50px -30px rgba(0,0,0,.8);
}
body.t-nova header::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--th-acc)/.55) 18%,
        rgba(var(--th-acc2)/.7) 50%,
        rgba(var(--th-acc)/.55) 82%,
        transparent 100%);
    pointer-events: none;
}
/* Логотип — лёгкое акцентное свечение */
body.t-nova header > div > div > a[href="/"] img {
    filter: drop-shadow(0 0 14px rgba(var(--th-acc)/.35));
}
body.t-nova header > div > div > a[href="/"]:hover img {
    filter: drop-shadow(0 0 20px rgba(var(--th-acc)/.55));
}
/* Иконка-заглушка логотипа — акцентный градиент с наклонной гранью */
body.t-nova header .bg-gradient-to-br.from-indigo-500 {
    border-radius: 12px;
    box-shadow: 0 6px 20px -6px rgba(var(--th-acc)/.55), inset 0 1px 0 rgba(255,255,255,.25);
}

/* Поиск — толще, с внутренней глубиной и акцентным фокусом */
body.t-nova header input[type="search"] {
    border-radius: 14px;
    padding-top: 10px; padding-bottom: 10px;
    background-color: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.10);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
body.t-nova header input[type="search"]:focus {
    box-shadow: inset 0 2px 6px rgba(0,0,0,.25),
                0 0 0 3px rgba(var(--th-acc)/.22),
                0 0 24px -6px rgba(var(--th-acc)/.4);
}
body.t-nova header label:hover input[type="search"]:not(:focus) {
    border-color: rgba(255,255,255,.2);
}

/* Кнопка «Каталог» — фирменная CTA с гранью */
body.t-nova header a[href="/catalog"] {
    border-radius: 14px !important;
    box-shadow: 0 6px 18px -6px rgba(var(--th-acc)/.6), inset 0 1px 0 rgba(255,255,255,.28);
    letter-spacing: .02em;
}
body.t-nova header a[href="/catalog"]:active { transform: translateY(0); }

/* Иконные кнопки (тема, выход) — одинаковые чипы */
body.t-nova header nav button {
    width: 38px; height: 38px; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    transition: all .18s ease;
}
body.t-nova header nav button:hover {
    border-color: rgba(var(--th-acc)/.5);
    background: rgba(var(--th-acc)/.12);
    transform: translateY(-1px);
}
body.t-nova header form[action="/logout"] button:hover {
    border-color: rgba(244,63,94,.55); background: rgba(244,63,94,.12);
    color: #fb7185;
}

/* «Панель»/«Кабинет» и аккаунт — контурные чипы */
body.t-nova header nav a[href^="/admin"], body.t-nova header nav a[href^="/seller"],
body.t-nova header nav a[href="/account"] {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    transition: all .18s ease;
}
body.t-nova header nav a[href^="/admin"]:hover, body.t-nova header nav a[href^="/seller"]:hover,
body.t-nova header nav a[href="/account"]:hover {
    border-color: rgba(var(--th-acc)/.45);
    background: rgba(var(--th-acc)/.10);
}
/* «Стать продавцом» — розовый, читаемо на тёмном */
body.t-nova header a[href="/register"].text-rose-600 { color: #fb7185; }
body.t-nova header a[href="/register"].text-rose-600:hover { color: #fda4af; }

/* Чипы категорий — жирнее и выразительнее */
body.t-nova header div.flex.gap-1 a {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.045);
    font-weight: 600;
    padding: 6px 14px;
    transition: all .18s ease;
}
body.t-nova header div.flex.gap-1 a:hover {
    background: rgba(var(--th-acc)/.12);
    border-color: rgba(var(--th-acc)/.45);
    color: #F2F4FA;
    transform: translateY(-1px);
}
body.t-nova header div.flex.gap-1 a.bg-indigo-600 {
    border-radius: 10px;
    box-shadow: 0 4px 14px -4px rgba(var(--th-acc)/.6);
}
/* Иконки внутри чипов — акцентные; на активном (залитом акцентом) — в цвет чернил акцента */
body.t-nova header div.flex.gap-1 a .fa-solid,
body.t-nova header div.flex.gap-1 a i { color: rgb(var(--th-acc)); }
body.t-nova header div.flex.gap-1 a.bg-indigo-600 i,
body.t-nova header div.flex.gap-1 a.bg-indigo-600 .fa-solid { color: rgb(var(--th-acc-ink)); }

/* Футер: убрать плашку с молнией у копирайта */
body.t-nova footer span:has(.fa-bolt) { display: none; }


/* ---------- Мобильная полировка ---------- */
@media (max-width: 639px) {
    /* Hero компактнее */
    body.t-nova .nv-hero { border-radius: 18px; padding: 24px 18px 26px; margin-bottom: 26px; }
    body.t-nova .nv-hero-pill { font-size: 9.5px; letter-spacing: .1em; padding: 5px 11px; margin-bottom: 14px; }
    body.t-nova .nv-hero-title { font-size: clamp(20px, 7.4vw, 30px); line-height: 1.14; }
    body.t-nova .nv-hero-sub { font-size: 13px; margin-top: 12px; }
    body.t-nova .nv-hero-stats { margin-top: 16px; font-size: 11px; gap: 8px 14px; }

    /* Секции и категории */
    body.t-nova .nv-sec { margin-bottom: 26px; }
    body.t-nova .nv-sec-head { margin-bottom: 12px; }
    body.t-nova .nv-sec-title { font-size: 16px; }
    body.t-nova .nv-sec-link { font-size: 12px; }
    body.t-nova .nv-cats { gap: 8px; }
    body.t-nova .nv-cat { border-radius: 14px; padding: 12px 6px 10px; gap: 6px; }
    body.t-nova .nv-cat-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
    body.t-nova .nv-cat-icon img { width: 22px; height: 22px; }
    body.t-nova .nv-cat-name { font-size: 11.5px; }

    /* Карточки компактнее, чтобы дышали в 2 колонки */
    body.t-nova .nv-grid { gap: 10px; }
    body.t-nova .nv-card { border-radius: 16px; }
    body.t-nova .nv-card-body { padding: 8px 6px 6px; }
    body.t-nova .nv-card-badges { gap: 4px; margin-bottom: 6px; }
    body.t-nova .nv-badge { font-size: 9.5px; padding: 4px 7px; gap: 4px; }
    body.t-nova .nv-card-cat { font-size: 9px; margin-bottom: 3px; }
    body.t-nova .nv-card-name { font-size: 12.5px; min-height: 2.6em; }
    body.t-nova .nv-card-meta { font-size: 10px; margin-top: 4px; }
    body.t-nova .nv-card-foot { padding-top: 8px; }
    body.t-nova .nv-card-price b { font-size: 16px; }
    body.t-nova .nv-card-price s { font-size: 10px; }
    body.t-nova .nv-fav { width: 30px; height: 30px; right: 6px; top: 6px; }

    /* Шапка: чипы категорий компактнее */
    body.t-nova header div.flex.gap-1 a { padding: 4px 11px; font-size: 12px; }
}

/* Светлая Nova: поиск — чистая светлая плашка на тёмной шапке */
html.nv-light body.t-nova header input[type="search"] {
    background-color: #fff;
    border-color: rgba(18,20,26,.14);
    color: #12141a;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
html.nv-light body.t-nova header input[type="search"]::placeholder { color: #8a91a0; }
html.nv-light body.t-nova header input[type="search"]:focus {
    background-color: #fff;
    border-color: rgba(var(--th-acc)/.6);
    box-shadow: 0 1px 3px rgba(0,0,0,.18),
                0 0 0 3px rgba(var(--th-acc)/.28),
                0 0 22px -6px rgba(var(--th-acc)/.5);
}
html.nv-light body.t-nova header label:hover input[type="search"]:not(:focus) {
    border-color: rgba(var(--th-acc)/.5);
}
html.nv-light body.t-nova header .text-slate-400 { color: #9aa1b0; }

/* ---------- Карточка v4: плотная сетка + hover-экшены (паттерн Plati) ---------- */
/* Промежуточные колонки: 5 в ряд на широких экранах */
@media (min-width: 640px)  { body.t-nova .nv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { body.t-nova .nv-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { body.t-nova .nv-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { body.t-nova .nv-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* Компактнее */
body.t-nova .nv-card { border-radius: 14px; }
body.t-nova .nv-card-body { padding: 9px 8px 8px; }
body.t-nova .nv-card-badges { gap: 4px; margin-bottom: 6px; }
body.t-nova .nv-badge { font-size: 9.5px; padding: 4px 7px; gap: 4px; border-radius: 8px; }
body.t-nova .nv-card-cat { font-size: 9.5px; margin-bottom: 3px; }
body.t-nova .nv-card-name { font-size: 13px; min-height: 2.65em; }
body.t-nova .nv-card-meta { font-size: 10.5px; margin-top: 4px; }
body.t-nova .nv-card-foot { padding-top: 9px; }
body.t-nova .nv-card-price b { font-size: 15.5px; }
body.t-nova .nv-card-price s { font-size: 10.5px; }
body.t-nova .nv-fav { width: 30px; height: 30px; right: 7px; top: 7px; }

/* «Купить» — в самом низу карточки, под ценой; на десктопе раскрывается при наведении */
body.t-nova .nv-card-buy {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 34px; margin-top: 9px; border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 42%), rgb(var(--th-acc));
    color: rgb(var(--th-acc-ink));
    font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
    transition: filter .15s ease, transform .1s ease,
                height .18s ease, margin-top .18s ease, opacity .18s ease;
}
body.t-nova .nv-card-buy:hover { filter: brightness(1.08); }
body.t-nova .nv-card-buy:active { transform: scale(.97); }
body.t-nova .nv-card-buy i { font-size: 12px; }

/* Сердечко: скрыто до hover, но избранное видно всегда */
@media (hover: hover) {
    body.t-nova .nv-fav { opacity: 0; transition: opacity .18s ease, transform .15s ease; }
    body.t-nova .nv-card:hover .nv-fav,
    body.t-nova .nv-card:focus-visible .nv-fav,
    body.t-nova .nv-fav.is-fav { opacity: 1; }
}

/* ---------- Названия товаров крупнее (как на Plati) ---------- */
body.t-nova .nv-card-name { font-size: 15px; font-weight: 800; line-height: 1.3; }
body.t-nova .nv-card-foot { padding-top: 10px; }
body.t-nova .nv-card-price b { font-size: 16.5px; }
/* Страница товара: крупный заголовок */
body.t-nova .pv-card h1 { font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; }
@media (max-width: 639px) {
    body.t-nova .nv-card-name { font-size: 13.5px; }
    body.t-nova .nv-card-price b { font-size: 15px; }
}

/* Внутри карточки товара — текст чуть компактнее */
body.t-nova .pv-card > p { font-size: 14px; }
body.t-nova .pv-card ul { font-size: 13px; }
body.t-nova .pv-card .text-4xl { font-size: 30px; }
/* Логотип в шапке: скруглённая рамка с бегущим неоном; внутри прозрачно — берёт цвет шапки */
body.t-nova a.nv-logo {
    position: relative;
    padding: 6px 17px;
    border-radius: 14px;
    animation: nvLogoGlow 2.6s ease-in-out infinite;
}
body.t-nova a.nv-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(120deg,
        rgb(var(--th-acc) / 0.95),
        rgb(var(--th-acc2, var(--th-acc)) / 0.15),
        rgb(var(--th-acc) / 0.95));
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    animation: nvLogoFlow 4s linear infinite;
}
@keyframes nvLogoFlow {
    to { background-position: 300% 0; }
}
@keyframes nvLogoGlow {
    0%, 100% { box-shadow: 0 0 10px rgb(var(--th-acc) / 0.25); }
    50%      { box-shadow: 0 0 20px rgb(var(--th-acc) / 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    body.t-nova a.nv-logo, body.t-nova a.nv-logo::before { animation: none; }
}
@media (max-width: 639px) {
    body.t-nova a.nv-logo { padding: 5px 12px; border-radius: 13px; }
}

/* Строка категорий в шапке прячется при скролле (шапка sticky — верх остаётся) */
body.t-nova .hdr-cats {
    max-height: 60px;
    opacity: 1;
    transition: max-height .3s ease, opacity .22s ease, padding .3s ease;
}
body.t-nova header.is-scrolled .hdr-cats {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

