/* вынесен из inline-<style> страницы generate.html (SEC-11: style-src без unsafe-inline) */
    /* ═══════════════════════════════════════════════════════════
       ПОДБОР ПЛЁНКИ — Home Page (Modern Redesign)
       ═══════════════════════════════════════════════════════════ */

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
      font-weight: 400;
      line-height: 1.55;
      color: var(--ui-text) !important;
      /* «Б2»: ровный фон без неоновых пятен, как на остальных страницах после волны 0. */
      background: var(--ui-bg) !important;
      background-image: none !important;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    .nv-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
    @media (max-width: 700px) { .nv-container { padding: 0 16px; } }

    /* ── Hero Section ─────────────────────────────────── */
    /* Названо .nv-hero-section, а не .nv-hero — design-system.css уже занимает
       .nv-hero под типографическую утилиту (font-weight:900, letter-spacing:-0.035em
       для крупных заголовков). Совпадение имён приводило к тому, что .nv-hero-sub
       (не переопределяющий font-weight/letter-spacing) наследовал эти значения
       от секции-обёртки — отсюда «слипшийся» подзаголовок. */
    .nv-hero-section {
      padding: 48px 0 64px;
      position: relative;
    }
    .nv-hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 40px;
      align-items: stretch;
    }
    @media (max-width: 900px) {
      .nv-hero-section { padding: 24px 0 48px; }
      .nv-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    }

    /* Left side: Form panel */
    .nv-form-panel {
      background: var(--ui-surface);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-xl);
      padding: 28px;
      position: relative;
      overflow: hidden;
    }
    @media (max-width: 600px) {
      .nv-form-panel { padding: 20px; border-radius: var(--nv-r-lg); }
    }

    .nv-eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.22em;
      color: var(--ui-accent);
      padding: 6px 14px;
      background: rgba(201,166,255,0.08);
      border: 1px solid var(--ui-line-btn);
      border-radius: 99px;
      position: relative;
      z-index: 1;
    }
    .nv-eyebrow::before {
      content: ''; width: 6px; height: 6px;
      border-radius: 50%; background: var(--ui-accent);
      box-shadow: none;
      animation: nv-pulse 2s ease-in-out infinite;
    }
    @keyframes nv-pulse { 50% { opacity: 0.4; } }

    .nv-hero-title {
      font-family: 'Inter', sans-serif;
      font-size: clamp(1.9rem, 4.5vw, 2.8rem);
      font-weight: 900;
      letter-spacing: -0.035em;
      line-height: 1.02;
      margin: 14px 0 12px;
      position: relative;
      z-index: 1;
    }
    .nv-hero-title .grad {
      background: var(--ui-gradient);
      -webkit-background-clip: text; background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nv-hero-sub {
      font-size: 0.95rem;
      color: var(--ui-text-3);
      margin: 0 0 24px;
      line-height: 1.55;
      max-width: 480px;
      position: relative; z-index: 1;
    }

    /* Wallet badge */
    .nv-wallet {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px;
      background: var(--ui-bg);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-md);
      margin-bottom: 22px;
      position: relative; z-index: 1;
    }
    .nv-wallet-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--ui-text-4);
      margin-bottom: 4px;
    }
    .nv-wallet-value {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--ui-accent);
      line-height: 1;
    }
    .nv-wallet-meta {
      font-size: 0.75rem;
      color: var(--ui-text-4);
      text-align: right;
    }

    /* Form */
    .nv-form { position: relative; z-index: 1; }
    .nv-field {
      display: flex; flex-direction: column;
      gap: 6px;
      margin-bottom: 14px;
    }
    .nv-field-label {
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--ui-text-4);
    }
    /* Селектор внутри .nv-field и !important: старое общее правило полей в design-system.css
       (input[type="email"] и др.) задаёт фон и рамку с !important и специфичнее одного класса —
       тот же приём, что на мойке, в каталоге, магазине и профиле; остальной сайт не задет. */
    .nv-field .nv-input, .nv-field .nv-select {
      width: 100%;
      padding: 13px 16px;
      font-family: 'Inter', sans-serif !important;
      font-size: 0.92rem !important;
      color: var(--ui-text) !important;
      background: var(--ui-bg) !important;
      border: 1px solid var(--ui-line-hi) !important;
      border-radius: var(--nv-r-md) !important;
      box-shadow: none !important;
      color-scheme: dark;
      transition: all 0.2s !important;
    }
    .nv-field .nv-input::placeholder { color: var(--ui-text-4); }
    .nv-input::file-selector-button {
      background: rgba(201,166,255,0.15);
      border: none;
      padding: 6px 12px;
      border-radius: var(--nv-r-sm);
      color: var(--ui-accent);
      font-family: 'Inter', sans-serif;
      font-weight: 600;
      cursor: pointer;
      margin-right: 10px;
    }
    .nv-field .nv-input:focus, .nv-field .nv-select:focus {
      outline: none !important;
      border-color: var(--ui-accent) !important;
      background: var(--ui-bg) !important;
      box-shadow: none !important;
    }

    /* Selected film preview */
    .selected-film-preview:not(:empty) {
      margin: 12px 0 16px;
      padding: 12px 14px;
      background: var(--ui-bg);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-md);
      display: flex; align-items: center; gap: 14px;
    }

    /* Главная кнопка «Сгенерировать» — .ui-btn-primary («Б2», design-system.css):
       градиент и тёмный текст. Здесь только размер. */
    #generateBtn { width: 100%; padding: 15px 26px; font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
    #generateBtn:active { transform: scale(0.98); }
    #generateBtn[disabled] { opacity: 0.5; cursor: not-allowed; filter: none; }

    .nv-actions {
      display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
      margin-top: 18px;
    }
    /* Второстепенные кнопки под формой — .ui-btn-secondary. При длинном тексте
       («Пополнить баланс», «Оставить заявку») переносим строку, а не обрезаем
       по ширине половины грида. */
    .nv-actions .ui-btn-secondary {
      white-space: normal;
      text-align: center;
      padding: 13px 18px;
      font-size: 0.88rem;
    }
    /* Пакеты кредитов: «Оплатить» и «Списать с баланса» на всю ширину карточки. */
    .pack-card .pack-redeem-btn { margin-top: 8px; }
    .pack-card .ui-btn-primary:disabled,
    .pack-card .ui-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
    .pack-card .ui-btn-secondary:disabled:hover { border-color: var(--ui-line-btn); color: var(--ui-text); }

    /* Progress */
    #progressWrap {
      margin-top: 18px;
      padding: 14px 16px;
      background: var(--ui-bg);
      border-radius: var(--nv-r-md);
      border: 1px solid var(--ui-line-hi);
    }

    /* Полоса прогресса генерации (видимость и ширину меняет setGenerateBusy через style) */
    .gen-progress__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .gen-progress__label { font-size: 0.82rem; color: var(--ui-text-3); }
    .gen-progress__pct { font-size: 0.82rem; color: var(--ui-accent); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
    .gen-progress__track { height: 6px; background: var(--ui-surface); border-radius: 99px; overflow: hidden; border: 1px solid var(--ui-line); }
    .gen-progress__bar { height: 100%; width: 0%; background: var(--ui-gradient); border-radius: 99px; transition: width 0.3s; }

    /* Деньги на балансе под кошельком (видимость меняет updateWalletUI) */
    .nv-wallet-money { font-size: 0.8rem; color: var(--ui-text-3); margin: -14px 0 22px; position: relative; z-index: 1; }

    /* Status */
    .status-box {
      margin-top: 14px;
      padding: 13px 16px;
      font-size: 0.88rem;
      font-weight: 600;
      border-radius: var(--nv-r-md);
      border: 1px solid transparent;
    }
    .status-box.hidden { display: none; }
    /* «Б2» для сообщений генерации и оплаты (их обновляют showMessage и опрос статуса
       оплаты — классы те же, логика не тронута). Общие цвета в styles.css: «info» там
       голубой (--cyan), а подложки успеха/ошибки не совпадают с --success/--danger. */
    .nv-form .status-box--info, .nv-topup-card .status-box--info { color: var(--ui-accent); background: rgba(201,166,255,0.10); border-color: rgba(201,166,255,0.30); }
    .nv-form .status-box--success, .nv-topup-card .status-box--success { background: rgba(180,255,57,0.08); border-color: rgba(180,255,57,0.30); }
    .nv-form .status-box--error, .nv-topup-card .status-box--error { background: rgba(255,53,99,0.10); border-color: rgba(255,53,99,0.35); }
    .selected-film-preview .film-preview-card__price { color: var(--ui-accent); }
    .selected-film-preview .film-preview-card__meta { color: var(--ui-text-3); }
    /* M-1: мёртвый CSS с классами .status-box.success/.error/.info убран —
       JS (generate-1.js:showMessage) всегда ставит BEM-модификаторы
       status-box--success/--error/--info, эти селекторы никогда не совпадали.
       Реальные цвета — в styles.css (.status-box--success/--error/--info). */

    /* Right side: Preview panel */
    .nv-preview-panel {
      background: var(--ui-surface);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-xl);
      padding: 28px;
      display: flex; flex-direction: column;
      min-height: 480px;
    }
    @media (max-width: 600px) {
      .nv-preview-panel { padding: 20px; border-radius: var(--nv-r-lg); min-height: 360px; }
    }
    .nv-preview-label {
      font-family: 'JetBrains Mono', monospace;
      /* I-18: было 10px/40% — ниже порога WCAG 4.5:1 для мелкого текста. */
      font-size: 11px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--ui-text-3);
      margin-bottom: 14px;
    }
    .nv-preview-stage {
      flex: 1;
      display: flex; align-items: center; justify-content: center;
      background: var(--ui-bg);
      border: 1px dashed var(--ui-line-hi);
      border-radius: var(--nv-r-lg);
      padding: 20px;
      min-height: 320px;
      position: relative;
      overflow: hidden;
    }
    .result-frame__image {
      max-width: 100%;
      max-height: 360px;
      object-fit: contain;
      filter: drop-shadow(0 16px 48px transparent);
    }
    .nv-preview-caption {
      margin-top: 12px;
      font-size: 0.82rem;
      /* I-18: было 50% — поднято до 60% для WCAG 4.5:1. */
      color: var(--ui-text-3);
      text-align: center;
      font-weight: 500;
    }

    /* ═══ Compare slider (исходник / результат) ═══ */
    .compare-wrap {
      width: 100%;
      display: flex; flex-direction: column; gap: 10px;
      animation: nv-fadeup 0.5s cubic-bezier(0.16,1,0.3,1) both;
    }
    @keyframes nv-fadeup {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .compare-stage {
      position: relative; width: 100%; aspect-ratio: 4/3;
      max-height: 480px; overflow: hidden;
      border-radius: var(--nv-r-lg); background: var(--ui-bg);
      cursor: ew-resize; user-select: none;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    /* [ЛАНДШАФТ-GENERATE] Телефон горизонтально: сцена выдавливала вниз всё, что
       под ней.
       Арифметика: при ≤900px сетка .nv-hero-grid схлопывается в одну колонку,
       поэтому панель предпросмотра идёт под формой. Ширина экрана в ландшафте
       ~812px, значит медиа-запросы по max-width:600px сюда НЕ попадают вовсе —
       ни уменьшенные отступы панели, ни мобильные размеры ручки. Сцена получает
       ~740px ширины, по пропорции 4/3 просит ~555px высоты, упирается в потолок
       480px — и всё равно это больше всей высоты вьюпорта (~375px). Плюс сама
       панель требует min-height:480px. Подпись и подсказка уезжают за экран.

       Чиним тем же детектом по типу ввода, что и остальные мобильные ветки
       проекта (Ф-СЛАЙДЕР1): не по ширине окна, иначе правило поймает и десктоп.

       Высоту сцены задаём от вьюпорта, а ширину выводим из неё по той же
       пропорции 4/3 — для этого .compare-wrap центрирует элементы по поперечной
       оси, иначе колонка растянула бы сцену на всю ширину и пропорция потеряла
       бы смысл. dvh поверх vh: на iOS адресная строка съедает часть vh, и
       «стопроцентная» высота оказывается больше фактически видимой.
       Потолок max-height:480px здесь снят — он больше не ограничивает, а мешает.
       min-height:120px — чтобы на совсем низких экранах сцена не схлопнулась.

       Почему НЕ flex:1 1 auto, как на compare.html: там .cmp-wrap — это <main>,
       то есть контейнер страницы, и деление остатка работает. Здесь .compare-wrap
       лежит на три уровня глубже (.nv-preview-panel > .nv-preview-stage >
       .compare-wrap) и ни у одного предка нет определённой высоты, привязанной к
       вьюпорту — делить было бы нечего. Строить такую цепочку через три
       контейнера без проверки в браузере рискованно; при необходимости это
       отдельный заход. */
    @media (hover: none) and (pointer: coarse) and (orientation: landscape) {
      .nv-preview-panel { min-height: 0; padding: 16px; }
      .nv-preview-stage { min-height: 0; }
      .compare-wrap { min-height: 0; }

      /* [ЛАНДШАФТ-GENERATE-2] Сцена была крошечной и с полями по бокам.
         Причина: у сцены оставалась пропорция 4/3 при width:auto, то есть ШИРИНА
         выводилась из высоты. При посчитанных ~205px высоты ширина выходила ~273px
         вместо ~724px доступных — отсюда и «поля» вокруг маленького кадра.
         Здесь пропорция отменяется, и ширину задаёт контейнер. Кадр по-прежнему
         заполняет сцену: object-fit:cover стоит на .compare-img (правило выше),
         от пропорции контейнера он не зависит и продолжает работать.
         Базовое правило .compare-stage не трогаем — 4/3 остаётся везде, кроме
         этой ветки. */
      .compare-stage {
        aspect-ratio: auto;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        max-height: none;
        height: 62vh; height: 62dvh;
        min-height: 120px;
      }

      /* Бюджет высоты. Раньше 62dvh брались «с потолка», без учёта того, что
         вокруг сцены: отступы панели 16x2, лейбл секции ~26px, отступы контейнера
         сцены 20x2 плюс рамка, gap колонки 10px, подсказка ~16px и подпись
         состояния ~25px — суммарно около 155px. На экране высотой 375px сцене
         оставалось меньше, чем ей назначали, и всё выдавливалось.
         Вместо того чтобы просто урезать долю, убираем из ландшафта два
         необязательных элемента — тогда 62dvh снова помещаются с запасом:
         32 (панель) + 40 (контейнер) + 25 (подпись) + 232 (сцена) = 329 из 375.
         На короткий экран 320px тоже влезает: 97 + 198 = 295.

         Что убрано и почему именно это:
         — .nv-preview-label «Предпросмотр / результат»: декоративный заголовок
           секции, 10px капсом. В ландшафте результат и так занимает весь экран,
           подписывать его нечем.
         — .compare-hint «Потяни ручку чтобы сравнить»: дублируется подписью
           состояния #resultCaption, которая после генерации и после
           восстановления буквально содержит «Потяни ручку, чтобы сравнить».
           Инструкция остаётся на экране, просто в одном экземпляре.
         Подпись состояния под панелью НЕ трогаем: она несёт статус («Готово»,
         «Последняя генерация»), а не инструкцию. Её селектор здесь намеренно не
         повторяется — по тексту файла проверяют, что правила для неё в этой
         ветке нет. */
      .nv-preview-label { display: none; }
      .compare-hint { display: none; }
      /* Те же значения, что в мобильной ветке по max-width:600px выше. Дублируются,
         а не выносятся в общее правило, потому что ветки пересекаются лишь частично:
         телефон в ландшафте шире 600px и под ту ветку не попадает, а узкое окно
         десктопа попадает под неё, но не под эту. Общего условия, покрывающего
         ровно оба случая и ничего лишнего, нет. */
      /* I-19: было 38/28px — ниже порога тап-зоны 44×44 (WCAG 2.5.8 / Apple HIG / Material). */
      .compare-handle { width: 44px; height: 44px; }
      .media-action-btn { width: 44px; height: 44px; }
    }
    .compare-img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      -webkit-user-drag: none; pointer-events: none;
    }
    .compare-img--before { z-index: 1; }
    /* [БАГ-МЕТКИ] Клип ест СЛЕВА: слой «после» занимает правую половину — ту,
       над которой стоит тег «ПОСЛЕ», а слева остаётся оригинал под тегом «ДО».
       Было inset(0 50% 0 0), то есть отрезано справа, и «после» показывался
       слева — под чипом «ДО», который стоял у левого края. Двигали картинки, а
       не подписи. Сами чипы позже убраны целиком (БАГ-ПОДПИСИ), но порядок
       сторон остаётся прежним: слева исходник, справа результат. */
    .compare-img--after  { z-index: 2; clip-path: inset(0 0 0 50%); }
    .compare-line {
      position: absolute; top: 0; bottom: 0; left: 50%;
      width: 2px; transform: translateX(-50%);
      background: linear-gradient(180deg, rgba(255,255,255,0.4), #fff 50%, rgba(255,255,255,0.4));
      box-shadow: 0 0 12px rgba(255,255,255,0.6);
      pointer-events: none; z-index: 3;
    }
    .compare-handle {
      position: absolute; top: 50%; left: 50%;
      width: 44px; height: 44px; border-radius: 50%;
      background: #fff;
      box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center;
      transform: translate(-50%, -50%); z-index: 4; cursor: ew-resize;
      transition: transform 0.15s, box-shadow 0.2s;
    }
    .compare-handle:hover {
      box-shadow: 0 8px 24px transparent, 0 0 0 4px transparent;
    }
    .compare-handle svg { width: 18px; height: 18px; }

    /* [БАГ-ПОДПИСИ] Здесь были правила угловых чипов, подписывавших половины
       слайдера двумя словами про «до» и «после» — сам чип и две его
       модификации по краям. Убраны целиком вместе с разметкой: страница больше
       нигде не называет стороны этими словами. Подписи теперь смысловые и живут
       в зуме — название плёнки с датой у результата и «Моя машина» у исходника.
       Имена классов намеренно не повторяются: тест проверяет их отсутствие в
       файле поиском по тексту, и упоминание в комментарии его ломало. */
    .compare-hint {
      font-size: 0.74rem;
      /* I-18: было 40% — поднято до 60% для WCAG 4.5:1. */
      color: var(--ui-text-3);
      text-align: center;
      font-weight: 500;
    }

    @media (max-width: 600px) {
      /* [МОБИЛЬНАЯ-ОБРЕЗКА] Здесь сцене навязывалась квадратная пропорция 1:1.
         Фото приходит 4:3, и object-fit:cover срезал примерно по 12.5% с каждого
         края. Переопределение снято, сцена наследует базовые 4/3 из правила выше —
         подбирать новое значение не нужно, нужно не мешать. Имя CSS-свойства тут
         намеренно не пишется: тест проверяет его отсутствие в этом блоке поиском
         по тексту, и упоминание в комментарии его ломало. */
      /* I-19: было 38/28px — ниже порога тап-зоны 44×44 (WCAG 2.5.8 / Apple HIG / Material). */
      .compare-handle { width: 44px; height: 44px; }
      .media-action-btn { width: 44px; height: 44px; }
    }

    /* ═══ How section ═══ */
    .nv-how {
      padding: 64px 0;
    }
    .nv-how-head {
      text-align: center;
      margin: 0 auto 40px;
      max-width: 640px;
    }
    .nv-how-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 12px 0 8px;
    }
    .nv-how-head p {
      color: var(--ui-text-3);
      font-size: 0.96rem;
      margin: 0;
    }
    .nv-how-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    @media (max-width: 900px) { .nv-how-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 580px) { .nv-how-grid { grid-template-columns: 1fr; } }

    .nv-how-card {
      padding: 24px;
      background: var(--ui-surface);
      backdrop-filter: blur(16px);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-lg);
      transition: all 0.25s cubic-bezier(0.22,0.61,0.36,1);
    }
    .nv-how-card:hover {
      transform: translateY(-3px);
      border-color: var(--ui-line-btn);
      box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px transparent;
    }
    .nv-how-num {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.7rem;
      letter-spacing: 0.16em;
      color: var(--ui-accent);
      margin-bottom: 12px;
      font-weight: 600;
    }
    .nv-how-icon {
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, rgba(201,166,255,0.15), rgba(201,166,255,0.06));
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-md);
      margin-bottom: 16px;
    }
    .nv-how-icon svg { width: 20px; height: 20px; stroke: var(--ui-accent); }
    .nv-how-card h3 {
      font-family: 'Inter', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.015em;
      margin: 0 0 6px;
    }
    .nv-how-card p {
      font-size: 0.88rem;
      color: var(--ui-text-3);
      margin: 0;
      line-height: 1.55;
    }

    /* ═══ Credit packs / Top-up ═══ */
    .nv-topup {
      padding: 48px 0 64px;
    }
    .nv-topup-card {
      background: var(--ui-surface);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-xl);
      padding: 32px;
    }
    .nv-topup-card--flash {
      animation: nvTopupFlash 1.6s ease-out;
    }
    @keyframes nvTopupFlash {
      0%   { box-shadow: 0 0 0 0 transparent; border-color: var(--ui-accent); }
      60%  { box-shadow: 0 0 0 10px transparent; border-color: var(--ui-line-btn); }
      100% { box-shadow: 0 0 0 0 transparent; border-color: var(--ui-line-hi); }
    }
    .nv-topup-head {
      margin-bottom: 24px;
    }
    .nv-topup-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 8px 0 4px;
    }
    .nv-topup-head p {
      color: var(--ui-text-3);
      font-size: 0.9rem;
      margin: 0;
    }
    .nv-topup-legal {
      color: var(--ui-text-3);
      font-size: 0.85rem;
      line-height: 1.5;
      margin: 0 0 12px;
    }
    .nv-topup-legal a {
      color: inherit;
      text-decoration: underline;
    }
    .credit-packs {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }
    .pack-card {
      padding: 20px;
      background: var(--ui-bg);
      border: 1px solid var(--ui-line-hi);
      border-radius: var(--nv-r-lg);
      transition: all 0.2s;
      position: relative;
    }
    .pack-card:hover {
      border-color: var(--ui-line-btn);
      transform: translateY(-2px);
    }
    .pack-card--featured {
      background: var(--ui-surface);
      border-color: var(--ui-accent);
    }
    .pack-card .pack-card__title { color: var(--ui-text-3); }
    .pack-card .pack-card__credits { color: var(--ui-text-3); }
    .pack-card .pack-card__price { color: var(--ui-text); }
    .pack-badge {
      position: absolute;
      top: 12px; right: 12px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 3px 8px;
      border-radius: 99px;
      background: var(--ui-gradient);
      color: var(--ui-bg);
    }

    /* ═══ Gallery (history) ═══ */
    .nv-gallery {
      padding: 0 0 64px;
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 12px;
    }

    /* Section headers */
    .nv-section-head {
      margin-bottom: 24px;
    }
    .nv-section-head .nv-eyebrow {
      margin-bottom: 12px;
    }
    .nv-section-head h2 {
      font-family: 'Inter', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin: 0;
    }

    /* Animation entrance */
    .animate-fade-up {
      animation: nv-fadeup 0.6s cubic-bezier(0.16,1,0.3,1) both;
    }

    /* Form panel old class compatibility */
    .visualizer-form { width: 100%; }
  
