/* ==========================================================================
   ██████  ██    ██ ███████ ███████ ███████ ███████ ██    ██  ██████  ██      ███████ 
   ██   ██ ██    ██ ██      ██      ██      ██      ██    ██ ██    ██ ██      ██      
   ██████  ██    ██ █████   ███████ ███████ ███████ ██    ██ ██    ██ ██      █████   
   ██   ██ ██    ██ ██           ██      ██      ██ ██    ██ ██    ██ ██      ██      
   ██████   ██████  ███████ ███████ ███████ ███████  ██████   ██████  ███████ ███████ 
   ==========================================================================
   КИБЕРПАНК-СТИЛИ ДЛЯ КНИЖНЫХ СТРАНИЦ — ПОЛНАЯ СИСТЕМА
   Версия: 3.0 (Объединённая и оптимизированная)
   Совместимость: Joomla 3.x / 4.x / 5.x
   ========================================================================== */

/* ================================================================
   БЛОК 0: СИСТЕМНЫЕ ПЕРЕМЕННЫЕ (ЕДИНАЯ ЦВЕТОВАЯ СХЕМА)
   ================================================================ */
:root {
    /* 🔹 Основные цвета фона */
    --bg-black: #050505;          /* Абсолютно чёрный — база для книг */
    --bg-card: #0f172a;           /* Тёмно-синий — карточки текста */
    --bg-form: #070a12;           /* Сверхтёмный — формы и модалки */
    --bg-footer: #050505;         /* Чёрный — подвал */
    
    /* 🔹 Текст */
    --text-gray: #cbd5e1;         /* Светло-серый — основной текст книги */
    --text-slate: #64748b;        /* Приглушённый серый — второстепенный */
    --text-muted: #475569;        /* Почти невидимый — технический */
    --text-footer: #94a3b8;       /* Серый — текст в подвале */
    --text-dark: #1e293b;         /* Тёмный — для версии */
    
    /* 🔹 Неоновые цвета */
    --neon-blue: #00F5FF;         /* Голубой неон — заголовки, рамки, акценты */
    --neon-green: #00ff66;        /* Зелёный неон — активные элементы, статусы */
    --neon-red: #ff1111;          /* Красный неон — ошибки, предупреждения */
    --neon-orange: #ff5500;       /* Оранжевый неон — особые акценты, кнопки */
    --neon-orange-light: #ff8800; /* Светлый оранжевый — для ховера */
    --cyber-ice: #A3F1FF;         /* Ледяной голубой — особые заголовки */
    
    /* 🔹 Дополнительные цвета */
    --scrollbar-track: #334155;   /* Цвет дорожки скроллбара */
    --border-divider: #334155;    /* Цвет разделителей */
    --glow-soft: rgba(0, 245, 255, 0.08); /* Мягкое свечение */
}

/* ================================================================
   БЛОК 1: ГЛОБАЛЬНЫЙ ФОН И ОКРУЖЕНИЕ КНИЖНЫХ СТРАНИЦ
   ================================================================ */

/* 1.1. Основной контейнер книжной страницы — чёрный фон */
.cyber-novel-container {
    background: var(--bg-black) !important;
    background-color: var(--bg-black) !important;
    color: var(--text-gray) !important;
    padding: 40px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 1.2. Закрашиваем все элементы внутри книжной страницы (брандмауэр) */
.cyber-novel-container * {
    background-color: transparent !important; /* Прозрачность по умолчанию */
}

/* 1.3. Принудительный чёрный фон для основных блоков */
.cyber-novel-container #sp-main-body,
.cyber-novel-container .main-content,
.cyber-novel-container article,
.cyber-novel-container .container,
.cyber-novel-container .row,
.cyber-novel-container .component-content,
.cyber-novel-container .site-container {
    background-color: var(--bg-black) !important;
    background: var(--bg-black) !important;
    box-shadow: none !important;
    border: none !important;
}

/* 1.4. Скрываем заголовки, которые выводятся из параметров меню Joomla */
.cyber-novel-container .page-header,
.cyber-novel-container .component-title,
.cyber-novel-container .item-title,
.cyber-novel-container h1.contentheading,
.cyber-novel-container .content-title,
.cyber-novel-container .breadcrumbs-header,
.cyber-novel-container .breadcrumb-title {
    display: none !important;
}

/* ================================================================
   БЛОК 2: КАСТОМНЫЙ СКРОЛЛБАР (КИБЕРПАНК-СТИЛЬ)
   ================================================================ */

/* 2.1. Настройка прокрутки страницы */
html,
body {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
}

/* 2.2. Дорожка скроллбара — чёрная */
::-webkit-scrollbar {
    width: 12px !important;
    background-color: var(--bg-black) !important;
}

/* 2.3. Бегунок в обычном состоянии — серый */
::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-track) !important;
    border-radius: 6px !important;
    border: 2px solid var(--bg-black) !important;
}

/* 2.4. Бегунок при наведении — голубой неон */
::-webkit-scrollbar-thumb:hover {
    background-color: var(--neon-blue) !important;
    cursor: pointer !important;
}

/* 2.5. Бегунок при удержании — зелёный неон */
::-webkit-scrollbar-thumb:active {
    background-color: var(--neon-green) !important;
    cursor: pointer !important;
}

/* 2.6. Поддержка Firefox */
html,
body {
    scrollbar-width: thin !important;
    scrollbar-color: var(--scrollbar-track) var(--bg-black) !important;
}

/* ================================================================
   БЛОК 3: ТИПОГРАФИКА — ЗАГОЛОВКИ И СИСТЕМНЫЕ РЕЕСТРЫ
   ================================================================ */

/* 3.1. Технический серый реестр над заголовком (системный лог) */
.cyber-novel-container .matrix-system-log {
    color: var(--text-footer) !important;
    opacity: 1 !important;
    font-size: 11px !important;
    display: block !important;
    letter-spacing: 2px !important;
    margin-bottom: 5px !important;
    font-family: monospace !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

/* 3.2. Главный заголовок главы — Garamond, неоновый, без рамки */
.cyber-novel-container h2.matrix-title-pulse {
    font-family: Garamond, "Bookman Old Style", serif !important;
    font-size: 2.2rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    text-align: center !important;
    display: table !important;
    margin: 1.5rem auto 2.2rem auto !important;
    padding: 14px 40px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--neon-blue) !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.95),
                 0 0 15px rgba(0, 245, 255, 0.7),
                 0 0 30px rgba(0, 245, 255, 0.45) !important;
    transition: color 1.5s ease-in-out,
                text-shadow 1.5s ease-in-out !important;
}

/* 3.3. Мигающий курсор после заголовка */
.cyber-novel-container h2.matrix-title-pulse::after {
    content: " |" !important;
    font-weight: 300 !important;
    color: inherit !important;
    text-shadow: inherit !important;
    -webkit-text-stroke: 0px transparent !important;
    animation: cursorBlink 1s infinite steps(2, start) !important;
}

/* 3.4. Названия крупных частей — Palatino, ледяной голубой */
.cyber-novel-container .matrix-part-title {
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif !important;
    font-size: 1.35rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    display: block !important;
    margin: 0rem auto 2.5rem auto !important;
    color: var(--cyber-ice) !important;
    text-shadow: 0 0 4px var(--neon-blue),
                 0 0 10px rgba(0, 245, 255, 0.85),
                 0 0 20px rgba(0, 245, 255, 0.4) !important;
    opacity: 1 !important;
}

/* 3.5. Шапка внутри выкатной формы */
.cyber-auth-header {
    margin-bottom: 2rem;
    border-bottom: 1px dashed rgba(0, 245, 255, 0.25);
    padding-bottom: 20px;
}

.cyber-auth-header .matrix-part-title {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    margin: 0 auto !important;
    text-shadow: 0 0 4px var(--neon-blue) !important;
}

/* ================================================================
   БЛОК 4: ТЕКСТОВЫЕ КАРТОЧКИ (ОСНОВНОЙ КОНТЕНТ КНИГИ)
   ================================================================ */

/* 4.1. Базовый каркас карточки романа */
.cyber-novel-container .book-text-card {
    max-width: 1200px !important;
    padding: 30px 40px !important;
    margin: 0 auto 25px auto !important;
    width: 100% !important;
    background-color: var(--bg-card) !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* 4.2. Единый шрифт для всего текстового контента */
.cyber-novel-container .book-text-card p,
.cyber-novel-container .book-text-card ul,
.cyber-novel-container .book-text-card li {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
    /* цвет УБРАН отсюда */
    text-align: justify !important;
}

/* 4.3. Индивидуальные отступы и красная строка для абзацев */
.cyber-novel-container .book-text-card p {
    margin-bottom: 20px !important;
    text-indent: 30px !important;
}

.cyber-novel-container .book-text-card p:last-child {
    margin-bottom: 0 !important;
}

/* 4.4. Списки — убираем маркеры, добавляем отступ */
.cyber-novel-container .book-text-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    padding-left: 35px !important;
}

/* 4.5. Каждый пункт списка с эффектом выступа */
.cyber-novel-container .book-text-card li {
    margin-bottom: 18px !important;
    padding-left: 0 !important;
    text-indent: -25px !important; /* Выталкивает маркер влево */
}

.cyber-novel-container .book-text-card li:last-child {
    margin-bottom: 0 !important;
}

/* 4.6. Курсив внутри списков наследует выравнивание */
.cyber-novel-container .book-text-card li em {
    text-indent: inherit !important;
    display: inline !important;
}

/* 4.7. Боковые лазерные маркеры карточек (цветные линии слева) */
.cyber-novel-container .book-text-card.line-blue {
    border: 1px solid rgba(0, 245, 255, 0.45) !important;
    border-left: 4px solid var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.15) !important;
}

.cyber-novel-container .book-text-card.line-green {
    border: 1px solid rgba(0, 255, 102, 0.45) !important;
    border-left: 4px solid var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.15) !important;
}

.cyber-novel-container .book-text-card.line-red {
    border: 1px solid rgba(255, 17, 17, 0.45) !important;
    border-left: 4px solid var(--neon-red) !important;
    box-shadow: 0 0 15px rgba(255, 17, 17, 0.2) !important;
}

.cyber-novel-container .book-text-card.line-orange {
    border: 1px solid rgba(255, 136, 0, 0.45) !important;
    border-left: 4px solid var(--neon-orange-light) !important;
    box-shadow: 0 0 15px rgba(255, 136, 0, 0.15) !important;
}

/* 4.8. Карточка формы — специальный модификатор */
.cyber-novel-container .book-text-card.cyber-form-card {
    background-color: var(--bg-form) !important;
    padding: 35px 40px !important;
}

/* 4.9. Изоляция списков внутри формы */
.cyber-novel-container .book-text-card.cyber-form-card li {
    text-indent: 0 !important;
    padding-left: 15px !important;
}

/* ================================================================
   БЛОК 5: СИСТЕМНЫЕ СНОСКИ И ПРИМЕЧАНИЯ
   ================================================================ */

/* 5.1. Техническая врезка — лог эксперимента */
.cyber-novel-container .matrix-terminal-note {
    padding-left: 15px !important;
    margin-left: 5px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    color: var(--text-gray) !important;
    text-shadow: none !important;
    border-left: 2px dashed transparent !important;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* 5.2. Цветные маркеры для заметок */
.cyber-novel-container .matrix-terminal-note.note-blue {
    border-left: 2px dashed var(--neon-blue) !important;
    box-shadow: -4px 0 8px -2px rgba(0, 245, 255, 0.5) !important;
}

.cyber-novel-container .matrix-terminal-note.note-green {
    border-left: 2px dashed var(--neon-green) !important;
    box-shadow: -4px 0 8px -2px rgba(0, 255, 102, 0.5) !important;
}

.cyber-novel-container .matrix-terminal-note.note-red {
    border-left: 2px dashed var(--neon-red) !important;
    box-shadow: -4px 0 8px -2px rgba(255, 17, 17, 0.6) !important;
}

.cyber-novel-container .matrix-terminal-note.note-orange {
    border-left: 2px dashed var(--neon-orange-light) !important;
    box-shadow: -4px 0 8px -2px rgba(255, 136, 0, 0.5) !important;
}

/* 5.3. Технический блок — фон и рамка */
.cyber-tech-block {
    background-color: rgba(0, 255, 102, 0.04) !important;
    border-radius: 4px !important;
    padding: 15px 18px !important;
    border: 1px solid rgba(0, 255, 102, 0.12) !important;
    margin-bottom: 15px !important;
}

/* 5.4. Отключаем красную строку внутри технической врезки */
.cyber-tech-block p,
.cyber-tech-block div {
    text-indent: 0 !important;
}

/* ================================================================
   БЛОК 6: ТОЧЕЧНАЯ ПОДСВЕТКА СЛОВ (ТЕГ <CODE>)
   ================================================================ */

/* 6.1. Базовый стиль для кода внутри текста */
.cyber-novel-container .book-text-card p code,
.cyber-novel-container .book-text-card li code {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold !important;
    font-style: normal !important;
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    display: inline !important;
    box-shadow: none !important;
}

/* 6.2. Курсив внутри кода */
.cyber-novel-container .book-text-card p code.italic,
.cyber-novel-container .book-text-card li code.italic {
    font-style: italic !important;
}

/* 6.3. Голубой неон для кода */
.cyber-novel-container .book-text-card p code.neon-blue,
.cyber-novel-container .book-text-card li code.neon-blue {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.9),
                 0 0 12px rgba(0, 245, 255, 0.5) !important;
}

/* 6.4. Зелёный неон для кода */
.cyber-novel-container .book-text-card p code.neon-green,
.cyber-novel-container .book-text-card li code.neon-green {
    color: var(--neon-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.9),
                 0 0 12px rgba(0, 255, 102, 0.5) !important;
}

/* 6.5. Красный неон для кода */
.cyber-novel-container .book-text-card p code.neon-red,
.cyber-novel-container .book-text-card li code.neon-red {
    color: var(--neon-red) !important;
    text-shadow: 0 0 5px rgba(255, 17, 17, 0.95),
                 0 0 12px rgba(255, 17, 17, 0.6) !important;
}

/* 6.6. Оранжевый неон для кода */
.cyber-novel-container .book-text-card p code.neon-orange,
.cyber-novel-container .book-text-card li code.neon-orange {
    color: var(--neon-orange-light) !important;
    text-shadow: 0 0 5px rgba(255, 136, 0, 0.9),
                 0 0 12px rgba(255, 136, 0, 0.5) !important;
}

/* ================================================================
   БЛОК 7: ИНТЕРФЕЙСНЫЕ КНОПКИ
   ================================================================ */

/* 7.1. Контейнер для кнопок */
.cyber-btn-container {
    text-align: center !important;
    padding-bottom: 4rem !important;
    width: 100% !important;
    display: block !important;
}

/* 7.2. Основная кнопка — растянута на 950px */
.cyber-novel-container .cyber-novel-btn,
#trigger-report-panel {
    display: block !important;
    width: 100% !important;
    max-width: 950px !important;
    margin: 0 auto !important;
    background: transparent !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 15px 25px !important;
    font-size: 1.15rem !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold !important;
    text-decoration: none !important;
    color: var(--neon-green) !important;
    border: 1px solid rgba(0, 255, 102, 0.45) !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.15) !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5) !important;
    transition: all 0.4s ease-in-out !important;
}

/* 7.3. Кнопка при наведении — голубой неон */
.cyber-novel-container .cyber-novel-btn:hover,
#trigger-report-panel:hover {
    animation: none !important;
    color: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
    background-color: rgba(0, 245, 255, 0.08) !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.95),
                 0 0 12px rgba(0, 245, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.55) !important;
}

/* 7.4. Кнопка-раскрывашка (оранжевая) */
.cyber-unlock-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--neon-orange);
    color: var(--neon-orange);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.1);
    border-radius: 2px;
}

.cyber-unlock-btn:hover {
    background: rgba(255, 85, 0, 0.08);
    border-color: var(--neon-orange-light);
    box-shadow: 0 0 40px rgba(255, 85, 0, 0.25);
    text-shadow: 0 0 20px rgba(255, 85, 0, 0.6);
}

.cyber-unlock-btn.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.1);
    background: rgba(0, 255, 102, 0.03);
}

.cyber-unlock-btn.active:hover {
    background: rgba(0, 255, 102, 0.08);
    border-color: #66ff99;
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.25);
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.6);
}

/* ================================================================
   БЛОК 8: НАВИГАЦИОННЫЙ БЛОК (КНОПКИ "НАЗАД" / "ВПЕРЕД")
   ================================================================ */

/* 8.1. Контейнер для двух узких кнопок по краям */
.cyber-nav-wrapper {
    max-width: 950px !important;
    margin: 0 auto 25px auto !important;
    padding: 0 0px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 8.2. Узкая навигационная кнопка */
.cyber-nav-link {
    all: unset !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 280px !important;
    display: inline-block !important;
    cursor: pointer !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    color: var(--neon-green) !important;
    border: 1px solid rgba(0, 255, 102, 0.35) !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1) !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4) !important;
    transition: all 0.4s ease-in-out !important;
}

/* 8.3. Кнопка при наведении */
.cyber-nav-link:hover {
    color: var(--neon-blue) !important;
    border-color: var(--neon-blue) !important;
    background-color: rgba(0, 245, 255, 0.08) !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.95),
                 0 0 12px rgba(0, 245, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* 8.4. Кнопка "Назад" — прижата влево */
.cyber-nav-link-prev {
    margin-right: auto !important;
    text-align: center !important;
}

/* 8.5. Кнопка "Вперёд" — прижата вправо */
.cyber-nav-link-next {
    margin-left: auto !important;
    text-align: center !important;
}

/* ================================================================
   БЛОК 9: МЕХАНИКА СЛАЙДЕРА (ВЫЕЗЖАЮЩАЯ ФОРМА)
   ================================================================ */

/* 9.1. Контейнер слайдера — скрыт по умолчанию */
.cyber-auth-slidedown-panel {
    width: 100%;
    max-width: 950px !important;
    margin: 0 auto !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease-out,
                visibility 0.5s !important;
    box-sizing: border-box;
}

/* 9.2. Панель в раскрытом состоянии */
.cyber-auth-slidedown-panel.panel-expanded {
    max-height: 1200px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================================================================
   БЛОК 10: ФОРМЫ ВВОДА (КИБЕРПАНК-СТИЛЬ)
   ================================================================ */

/* 10.1. Контейнер формы — голубая рамка, тёмный фон */
.formContainer,
.cyber-novel-container .formContainer {
    width: 100% !important;
    max-width: 950px !important;
    margin: 0 auto !important;
    padding: 35px 40px !important;
    box-sizing: border-box !important;
    background: var(--bg-form) !important;
    border: 4px solid var(--neon-blue) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.15) !important;
}

/* 10.2. Группа полей ввода */
.cyber-input-group {
    margin-bottom: 22px !important;
    width: 100% !important;
}

/* 10.3. Подписи к полям */
.cyber-label {
    display: block !important;
    font-family: monospace !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: var(--neon-blue) !important;
    margin-bottom: 8px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.8) !important;
}

/* 10.4. Обёртка поля ввода — с префиксом и статусом */
.cyber-input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: var(--bg-black) !important;
    border: 1px solid var(--neon-blue) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 6px rgba(0, 245, 255, 0.2) !important;
    transition: all 0.25s ease-in-out !important;
    animation: formBorderPulse 4s infinite ease-in-out !important;
}

/* 10.5. Префикс (символ > или #) */
.cyber-input-wrapper > span:first-child {
    color: var(--neon-green) !important;
    font-family: monospace !important;
    font-weight: bold !important;
    font-size: 16px !important;
    padding-left: 15px !important;
    user-select: none !important;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.5) !important;
}

/* 10.6. Само поле ввода */
.cyber-input-wrapper input,
.cyber-input-wrapper textarea {
    background: var(--bg-black) !important;
    background-color: var(--bg-black) !important;
    color: var(--neon-green) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 10px !important;
    font-family: monospace !important;
    font-size: 14px !important;
    font-weight: bold !important;
    flex-grow: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.5) !important;
}

/* 10.7. Статус поля (готово / ошибка) */
.cyber-input-status {
    padding-right: 15px !important;
    font-family: monospace !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    font-weight: bold !important;
    user-select: none !important;
    text-transform: uppercase !important;
    color: var(--neon-green) !important;
    text-shadow: 0 0 6px var(--neon-green) !important;
}

/* 10.8. Фокус на поле — останавливаем пульсацию */
.cyber-input-wrapper:focus-within {
    animation-play-state: paused !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 6px var(--neon-blue),
                0 0 16px var(--neon-blue) !important;
}

/* 10.9. Плейсхолдеры */
.cyber-input-wrapper input::placeholder,
.cyber-input-wrapper textarea::placeholder {
    color: var(--text-slate) !important;
    opacity: 0.4 !important;
}

/* 10.10. Модификатор для textarea — вертикальное выравнивание */
.cyber-textarea-wrapper {
    align-items: flex-start !important;
}

.cyber-textarea-wrapper span:first-child {
    padding-top: 10px !important;
}

.cyber-textarea-wrapper .cyber-input-status {
    padding-top: 12px !important;
    padding-right: 15px !important;
}

/* 10.11. Хедер формы — никнейм и предупреждение */
.cyber-id-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 8px !important;
}

/* 10.12. Предупреждение "Ввод реальных ФИО запрещён" */
.cyber-id-warning {
    font-family: monospace !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: var(--neon-orange) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 5px rgba(255, 85, 0, 0.8),
                 0 0 10px rgba(255, 85, 0, 0.3) !important;
    user-select: none !important;
    white-space: nowrap !important;
}

/* 10.13. Борьба с автозаполнением браузера */
.cyber-input-wrapper input:-webkit-autofill,
.cyber-input-wrapper input:-webkit-autofill:hover,
.cyber-input-wrapper input:-webkit-autofill:focus,
.cyber-input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-black) inset !important;
    -webkit-text-fill-color: var(--neon-green) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* 10.14. Технический подвал формы */
.cyber-form-footer,
.cyber-dejavu-log-footer {
    margin-top: 2.5rem !important;
    padding-top: 15px !important;
    border-top: 1px dashed rgba(100, 116, 139, 0.15) !important;
    font-family: monospace !important;
    font-size: 10px !important;
    color: var(--text-muted) !important;
    user-select: none !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ================================================================
   БЛОК 11: ТАБЛИЦЫ ЛОГОВ И СИСТЕМНЫЙ ДАМП
   ================================================================ */

/* 11.1. Таблица логов классификации */
.cyber-log-grid {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 102, 0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.cyber-log-row {
    display: table-row;
}

/* 11.2. Метка (левый столбец) — зелёный неон */
.cyber-log-label {
    display: table-cell;
    text-align: right;
    padding-right: 15px;
    padding-top: 6px;
    padding-bottom: 6px;
    white-space: nowrap;
    vertical-align: top;
    color: var(--neon-green);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1rem;
}

/* 11.3. Значение (правый столбец) — серый текст */
.cyber-log-value {
    display: table-cell;
    text-align: left;
    vertical-align: top;
    padding-top: 6px;
    padding-bottom: 6px;
    color: var(--text-gray);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}

/* ================================================================
   БЛОК 12: РАЗДЕЛИТЕЛИ И СПЕЦИАЛЬНЫЕ СПИСКИ
   ================================================================ */

/* 12.1. Разделитель перед исследовательской работой */
.cyber-research-divider {
    max-width: 950px;
    margin: 3rem auto 3rem auto !important;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cyber-research-divider::before,
.cyber-research-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 245, 255, 0.2), transparent);
}

/* 12.2. Список с кружочками (полностью изолированный) */
.cyber-dotted-list {
    list-style: disc outside !important;
    padding-left: 30px !important;
    margin: 15px 0 15px 0 !important;
}

.cyber-dotted-list li {
    display: list-item !important;
    list-style: disc outside !important;
    text-indent: 0 !important;
    padding-left: 10px !important;
    margin-bottom: 12px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
    color: var(--text-gray) !important;
    text-align: justify !important;
}

.cyber-dotted-list li:last-child {
    margin-bottom: 0 !important;
}

/* ================================================================
   БЛОК 13: ФУТЕР (ПОДВАЛ САЙТА)
   ================================================================ */

.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-footer);
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    padding: 20px 20px 12px 20px;
    border-top: 1px solid rgba(0, 245, 255, 0.08);
    margin-top: 30px;
    text-align: center;
    line-height: 1.5;
}

.site-footer .footer-inner {
    max-width: 950px;
    margin: 0 auto;
}

.site-footer a {
    color: var(--neon-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--neon-green);
}

.site-footer .footer-divider {
    color: var(--scrollbar-track);
    margin: 0 6px;
}

.site-footer .age-badge {
    color: #FF4444;
    font-family: monospace;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #FF4444;
    padding: 1px 10px;
    display: inline-block;
    letter-spacing: 1px;
}

.site-footer .tech-note {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(0, 245, 255, 0.03);
    padding: 6px 12px;
    border-left: 2px solid rgba(0, 245, 255, 0.12);
    margin: 6px auto 10px auto;
    text-align: left;
    line-height: 1.4;
    max-width: 950px;
}

.site-footer .tech-note .highlight {
    color: var(--neon-blue);
}

.site-footer .footer-copyright {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    font-size: 10px;
    color: var(--scrollbar-track);
    letter-spacing: 1px;
}

.site-footer .footer-copyright .version {
    color: var(--text-dark);
    margin-left: 12px;
}

/* 13.1. Убираем лишние отступы у строк в подвале */
.site-footer p {
    margin: 0 0 5px 0;
}

.site-footer .footer-links {
    margin: 5px 0 8px 0;
}

.site-footer .footer-helpline {
    margin: 5px 0 8px 0;
}

/* ================================================================
   БЛОК 14: ФИНАЛЬНАЯ ФРАЗА-ЭПИГРАФ (СИСТЕМНОЕ СООБЩЕНИЕ)
   ================================================================ */

.cyber-system-message {
    text-align: center !important;
    padding: 20px 0 10px 0 !important;
    margin-top: 20px !important;
    border-top: 1px solid rgba(0, 255, 102, 0.12) !important;
    font-style: italic !important;
    color: var(--text-gray) !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 0.95rem !important;
    text-indent: 0 !important;
    letter-spacing: 1px !important;
}

.cyber-system-message code {
    font-size: inherit !important;
}

/* ================================================================
   БЛОК 15: АНИМАЦИИ (ЕДИНЫЙ ЦЕНТР УПРАВЛЕНИЯ)
   ================================================================ */

/* 15.1. Пульсация рамки для форм (голубой ↔ зелёный) */
@keyframes formBorderPulse {
    0%, 100% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 6px rgba(0, 245, 255, 0.2);
    }
    50% {
        border-color: var(--neon-green);
        box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
    }
}

/* 15.2. Мигающий курсор (для заголовков) */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 15.3. Пульсация рамки видео (голубой ↔ зелёный) */
@keyframes neonFramePulse {
    0% {
        border-color: var(--neon-blue) !important;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.15) !important;
    }
    50% {
        border-color: var(--neon-green) !important;
        box-shadow: 0 0 25px rgba(0, 255, 102, 0.35) !important;
    }
    100% {
        border-color: var(--neon-blue) !important;
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.15) !important;
    }
}

/* 15.4. Аппаратный сбой кнопки при отправке */
@keyframes cyberHardwareGlitch {
    0%, 100% {
        border-color: var(--neon-green);
        box-shadow: 0 0 15px var(--neon-green);
        opacity: 1;
        transform: scale(1);
    }
    20% {
        border-color: var(--neon-red);
        box-shadow: 0 0 25px var(--neon-red);
        opacity: 0.8;
        transform: scale(0.99);
    }
    40% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 30px var(--neon-blue);
        opacity: 0.9;
    }
    60% {
        border-color: var(--neon-orange-light);
        box-shadow: 0 0 20px var(--neon-orange-light);
        opacity: 0.7;
        transform: scale(1.01);
    }
    80% {
        border-color: var(--neon-green);
        box-shadow: 0 0 5px var(--neon-green);
        opacity: 1;
    }
}

/* 15.5. Класс для активации глитча */
.cyber-btn-glitch {
    animation: cyberHardwareGlitch 0.3s infinite steps(2) !important;
}

/* 15.6. Пульсация неонового текста (для заголовков) */
@keyframes neonTextPulse {
    0% {
        color: var(--neon-blue) !important;
        border-color: var(--neon-blue) !important;
        text-shadow: 0 0 12px rgba(0, 245, 255, 0.6) !important;
    }
    50% {
        color: var(--neon-green) !important;
        border-color: var(--neon-green) !important;
        text-shadow: 0 0 18px rgba(0, 255, 102, 0.7) !important;
    }
    100% {
        color: var(--neon-blue) !important;
        border-color: var(--neon-blue) !important;
        text-shadow: 0 0 12px rgba(0, 245, 255, 0.6) !important;
    }
}

/* ================================================================
   БЛОК 16: АНИМАЦИЯ ПОЯВЛЕНИЯ ТЕКСТА ПРИ СКРОЛЛЕ
   ================================================================ */

/* 16.1. Исходное состояние — скрыт */
.cyber-novel-container .scroll-box {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    transition: opacity 0.5s ease-out,
                transform 0.5s ease-out;
    will-change: opacity, transform;
}

/* 16.2. Активное состояние — проявлен */
.cyber-novel-container .scroll-box.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ================================================================
   БЛОК 17: ВИДЕОПЛЕЕР И ИНТЕРФЕЙС УПРАВЛЕНИЯ
   ================================================================ */

/* 17.1. Контейнер видеоплеера (16:9) */
.prologue-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    border: 1px solid var(--neon-blue) !important;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.15);
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* 17.2. Пульсирующая рамка видео */
.prologue-video-wrapper.matrix-pulse-frame {
    animation: neonFramePulse 4s infinite ease-in-out !important;
}

/* 17.3. Элемент видео */
.prologue-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 17.4. Контейнер для кнопок под видео */
.video-controls-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

/* 17.5. Сброс отступов у кнопок */
.video-controls-row p,
.video-controls-row div {
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

/* 17.6. Базовые кнопки управления видео */
.video-ctrl-btn {
    background: transparent !important;
    border: 1px solid var(--neon-blue) !important;
    color: var(--neon-blue) !important;
    padding: 8px 16px;
    font-family: monospace !important;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.5);
}

.video-ctrl-btn:hover {
    background: transparent !important;
    color: var(--neon-blue) !important;
    box-shadow: 0 0 15px var(--neon-blue) !important;
}

/* 17.7. Активная кнопка (зелёная) */
.video-ctrl-btn.active-green {
    border-color: var(--neon-green) !important;
    color: var(--neon-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.5) !important;
}

.video-ctrl-btn.active-green:hover {
    background: transparent !important;
    color: var(--neon-green) !important;
    box-shadow: 0 0 15px var(--neon-green) !important;
}

/* 17.8. Пульсация кнопок видео */
.matrix-pulse {
    animation: neonFramePulse 3s infinite ease-in-out;
}

/* 17.9. Большая кнопка перехода к следующей главе */
.prologue-btn-next {
    display: block;
    max-width: 280px;
    margin: 30px auto;
    font-weight: bold;
    color: #28a745 !important;
    text-align: center;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid #28a745 !important;
    padding: 12px 24px;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    font-family: monospace !important;
    transition: all 0.3s ease;
}

.prologue-btn-next:hover {
    color: #ffffff !important;
    background-color: #28a745 !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    text-decoration: none;
}

/* ================================================================
   БЛОК 18: МОБИЛЬНАЯ АДАПТАЦИЯ (ВСЕ УСТРОЙСТВА)
   ================================================================ */

/* 18.1. Планшеты и маленькие ноутбуки (до 768px) */
@media (max-width: 768px) {
    /* Контейнер книги */
    .cyber-novel-container {
        padding: 20px 0 !important;
    }
    
    /* Заголовки */
    .cyber-novel-container h2.matrix-title-pulse {
        font-size: 18px !important;
        letter-spacing: 1px !important;
        padding: 10px 20px !important;
    }
    
    /* Карточки текста */
    .cyber-novel-container .book-text-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .cyber-novel-container .book-text-card p {
        font-size: 16px !important;
        line-height: 1.7 !important;
        text-indent: 20px !important;
    }
    
    .cyber-novel-container .book-text-card ul,
    .cyber-novel-container .book-text-card li {
        font-size: 16px !important;
        line-height: 1.7 !important;
    }
    
    /* Подменю */
    body .moduletable ul li ul,
    body .moduletable ul li .nav-child,
    body .moduletable ul li .dropdown-menu,
    html ul.mod-menu li ul,
    .dropdown-menu {
        min-width: 200px !important;
        padding: 6px 10px !important;
    }
    
    body .moduletable ul li ul li a,
    .dropdown-menu li a {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    /* Навигационные кнопки */
    .cyber-nav-wrapper {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 0 20px !important;
        gap: 10px !important;
    }
    
    .cyber-nav-link {
        min-width: 100px !important;
        max-width: 160px !important;
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
    
    .cyber-nav-link-prev {
        margin-right: 0 !important;
    }
    
    .cyber-nav-link-next {
        margin-left: 0 !important;
    }
    
    /* Формы */
    .formContainer,
    .cyber-novel-container .formContainer {
        padding: 20px !important;
        margin: 0 10px 20px 10px !important;
    }
    
    /* Видеоплеер */
    .video-controls-row {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .video-ctrl-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .prologue-btn-next {
        width: 100% !important;
        font-size: 14px !important;
    }
    
    /* Системные заметки */
    .cyber-novel-container .matrix-terminal-note {
        font-size: 15px !important;
        padding-left: 12px !important;
    }
    
    /* Подвал */
    .site-footer {
        font-size: 10px !important;
        padding: 15px 12px 10px 12px !important;
    }
    
    .site-footer .tech-note {
        font-size: 8px !important;
        padding: 5px 10px !important;
    }
}

/* 18.2. Телефоны и очень маленькие экраны (до 600px) */
@media (max-width: 600px) {
    .cyber-nav-link {
        min-width: 80px !important;
        max-width: 120px !important;
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
    }
}

/* 18.3. Очень маленькие телефоны (до 400px) */
@media (max-width: 400px) {
    .cyber-novel-container h2.matrix-title-pulse {
        font-size: 15px !important;
        letter-spacing: 0px !important;
        padding: 8px 12px !important;
    }
    
    .cyber-novel-container .book-text-card {
        padding: 12px !important;
    }
    
    .cyber-novel-container .book-text-card p {
        font-size: 14px !important;
        text-indent: 15px !important;
    }
    
    .cyber-novel-container .book-text-card ul,
    .cyber-novel-container .book-text-card li {
        font-size: 14px !important;
    }
    
    .cyber-novel-container .matrix-terminal-note {
        font-size: 13px !important;
        padding-left: 10px !important;
    }
    
    .cyber-nav-link {
        min-width: 60px !important;
        max-width: 90px !important;
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
    }
}

/* ================================================================
   БЛОК 19: ЭТИЧЕСКИЙ БРАНДМАУЭР (ЮРИДИЧЕСКИЙ БЛОК)
   ================================================================ */

/* 19.1. Контейнер предупреждения с красной полосой слева */
.ethical-firewall-container {
    background-color: #0b0c10 !important;
    border-left: 4px solid var(--neon-red) !important;
    padding: 25px 30px;
    margin: 30px auto;
    max-width: 800px;
    box-sizing: border-box;
}

/* 19.2. Заголовок дисклеймера */
.ethical-title {
    color: var(--neon-red) !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* 19.3. Текст предупреждения */
.ethical-text {
    color: #8892b0 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

/* 19.4. Выделенные фразы */
.ethical-accent {
    color: var(--neon-red) !important;
    font-weight: bold;
}

/* ================================================================
   БЛОК 20: ИНТЕРФЕЙС ТЕРМИНАЛА
   ================================================================ */

/* 20.1. Главная коробка терминала */
.terminal-welcome-container {
    background-color: var(--bg-black) !important;
    color: var(--neon-green) !important;
    font-family: 'Courier New', Courier, monospace !important;
    padding: 30px;
    border: 1px solid #113311;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.05);
    max-width: 800px;
    margin: 40px auto;
    min-height: 400px;
    position: relative;
}

/* 20.2. Системные цвета терминала */
.system-green {
    color: var(--neon-green) !important;
    margin: 5px 0;
}

.system-red {
    color: var(--neon-red) !important;
    font-weight: bold;
    letter-spacing: 1px;
}

.system-cyan,
#click-to-start {
    color: var(--neon-green) !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.3) !important;
}

/* 20.3. Главный заголовок терминала */
.terminal-title {
    color: #00ffff !important;
    font-family: monospace !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5) !important;
}

/* 20.4. Элемент управления звуком */
#sound-control {
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.3) !important;
    transition: all 0.2s ease-in-out;
}

#sound-control:hover {
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.8) !important;
    transform: scale(1.05);
}

/* 20.5. Художественный текст терминала */
.art-text-block p,
#welcome-interface .p-4,
#welcome-interface .p-4 p {
    color: #a1ffa1 !important;
    line-height: 1.8 !important;
    font-size: 19px !important;
    margin-bottom: 15px;
    text-align: justify;
}

/* 20.6. Полоса загрузки */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #112211 !important;
    border-radius: 2px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--neon-green) !important;
    box-shadow: 0 0 10px var(--neon-green);
    width: 0;
    transition: width 0.4s ease;
}

/* 20.7. Мигающий курсор терминала */
.blink-cursor {
    font-weight: bold;
    color: var(--neon-green) !important;
    animation: terminalCursorBlink 1s infinite step-end !important;
}

/* 20.8. Анимация курсора терминала */
@keyframes terminalCursorBlink {
    from,
    to {
        color: transparent;
    }
    50% {
        color: var(--neon-green);
    }
}

/* 20.9. Футуристическая кнопка терминала */
.btn-custom-green {
    background-color: transparent !important;
    border: 1px solid var(--neon-green) !important;
    color: var(--neon-green) !important;
    padding: 15px 40px;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

.btn-custom-green:hover {
    background-color: var(--neon-green) !important;
    color: var(--bg-black) !important;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4) !important;
}

/* 20.10. Анимация появления строк терминала */
.terminal-fade-line {
    opacity: 0;
    animation: terminalLineAppear 0.5s ease-out forwards !important;
}

.delay-1 {
    animation-delay: 1s !important;
}
.delay-2 {
    animation-delay: 2s !important;
}
.delay-3 {
    animation-delay: 3s !important;
}
.delay-4 {
    animation-delay: 4s !important;
}

@keyframes terminalLineAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   БЛОК 21: МОБИЛЬНАЯ АДАПТАЦИЯ ТЕРМИНАЛА
   ================================================================ */

@media (max-width: 768px) {
    .terminal-welcome-container {
        padding: 15px !important;
        margin: 10px !important;
    }
    
    .terminal-title {
        font-size: 18px !important;
    }
    
    .terminal-mobile-title {
        font-size: 14px !important;
        padding: 0 10px;
    }
    
    .art-text-block p,
    #welcome-interface .p-4,
    #welcome-interface .p-4 p {
        font-size: 16px !important;
    }
    
    .btn-custom-green {
        padding: 12px 25px !important;
        font-size: 15px !important;
        letter-spacing: 1px !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .progress-bar-container {
        margin: 20px 0 !important;
    }
    
    .ethical-firewall-container {
        padding: 15px !important;
        margin: 15px 10px !important;
        border-left-width: 3px !important;
    }
    
    .ethical-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .ethical-text {
        font-size: 13px !important;
        text-align: left !important;
    }
}

/* ================================================================
   БЛОК 22: ИНТЕРФЕЙС КНИГИ — НЕОНОВАЯ ПУЛЬСАЦИЯ ЗАГОЛОВКОВ
   ================================================================ */

/* 22.1. Базовый класс для заголовков с пульсацией */
.homepage h2,
.site-home h2,
.homepage h1,
.site-home h1,
.prologue-layout-col h2,
.prologue-section-bg h2,
h2.matrix-title-pulse {
    font-family: monospace !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    display: inline-block !important;
    background: transparent !important;
    margin-top: 0.5rem !important;
    margin-bottom: 2rem !important;
    padding-bottom: 0px !important;
    border: none !important;
    animation: neonTextPulse 4s infinite ease-in-out !important;
}

/* 22.2. Класс-включатель линии под заголовком */
h2.matrix-title-pulse.with-line,
.prologue-layout-col h2.with-line,
.prologue-section-bg h2.with-line {
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--neon-blue) !important;
}

/* 22.3. Защита от TinyMCE в Joomla */
.prologue-layout-col h2 *,
.prologue-section-bg h2 *,
h2.matrix-title-pulse * {
    color: inherit !important;
}



/* ==========================================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ИССЛЕДОВАТЕЛЬСКОЙ РАБОТЫ
   Версия: 1.0 (минимальная)
   Описание: Добавляем только то, чего не хватает.
   ========================================================================== */

/* 1. Голубая левая рамка для карточки (часть 2) */
.book-text-card.line-cyan {
    border: 1px solid rgba(0, 245, 255, 0.45) !important;
    border-left: 4px solid #00F5FF !important;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.15) !important;
}

/* 2. Разделитель между частями (опционально, можно использовать <hr> с inline) */
.cyber-divider {
    border: none !important;
    border-top: 1px dashed rgba(0, 245, 255, 0.15) !important;
    margin: 25px 0 !important;
    height: 0 !important;
}

/* ============================================================
     ЭПИГРАФ — НЕОНОВЫЙ СТИЛЬ (ГОЛУБОЙ СВЕТ)
     ============================================================ */

.epigraph-wrapper {
    max-width: 950px;
    margin: 0 auto 2.5rem auto;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.epigraph-card {
    border-left: none;
    border-right: 2px solid rgba(0, 245, 255, 0.3);
    background: rgba(0, 245, 255, 0.03);
    text-align: right;
    padding: 18px 28px 18px 0;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.05);
    transition: box-shadow 0.4s ease;
}

.epigraph-card:hover {
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.12);
}

/* Верхняя строка — источник (светло-серый, как основной текст) */
.epigraph-source {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: #cbd5e1;  /* <-- ИЗМЕНЕНО: теперь светло-серый, как основной текст */
    text-indent: 0 !important;
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;   /* <-- чуть приглушён, но читаем */
}

/* Строки цитаты — Palatino, курсив, голубой неон */
.epigraph-line {
    font-family: 'Palatino Linotype', 'Georgia', serif;
    font-style: italic;
    text-indent: 0 !important;
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
    color: #a0aec0;
}

/* Первая строка — яркий голубой неон */
.epigraph-line-accent {
    color: #00F5FF !important;
    text-shadow: 
        0 0 8px rgba(0, 245, 255, 0.6),
        0 0 20px rgba(0, 245, 255, 0.3),
        0 0 40px rgba(0, 245, 255, 0.1) !important;
    margin-bottom: 0.1rem;
}

/* Вторая строка — приглушённый голубой */
.epigraph-line-muted {
    color: #7dd3fc !important;
    text-shadow: 
        0 0 6px rgba(0, 245, 255, 0.3),
        0 0 15px rgba(0, 245, 255, 0.1) !important;
}

/* Подпись — автор/источник (светло-серый, как основной текст) */
.epigraph-author {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    color: #cbd5e1;  /* <-- ИЗМЕНЕНО: теперь светло-серый, как основной текст */
    text-indent: 0 !important;
    margin-top: 0.6rem;
    letter-spacing: 0.5px;
    opacity: 0.85;   /* <-- чуть приглушён, но читаем */
}

/* ============================================================
     АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
     ============================================================ */
@media (max-width: 768px) {
    .epigraph-wrapper {
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    .epigraph-card {
        padding: 14px 18px 14px 0;
    }
    
    .epigraph-line {
        font-size: 0.95rem;
    }
    
    .epigraph-source,
    .epigraph-author {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .epigraph-card {
        padding: 10px 14px 10px 0;
        border-right-width: 1px;
    }
    
    .epigraph-line {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}


/* ================================================================
   БЛОК 23: УНИФИЦИРОВАННЫЕ ДИАЛОГИ (С ПРИОРИТЕТОМ)
   ================================================================ */
.cyber-dialogue {
    text-indent: 0 !important;
    padding-left: 20px !important;
    font-style: italic !important;
    margin-bottom: 8px !important;
}

/* ПЕРЕБИВАЕМ ГЛОБАЛЬНОЕ ПРАВИЛО — добавляем родительские классы */
.cyber-novel-container .book-text-card p.cyber-dialogue-green {
    color: #00ff66 !important;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.25) !important;
}

.cyber-novel-container .book-text-card p.cyber-dialogue-blue {
    color: #00F5FF !important;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.25) !important;
}

.cyber-novel-container .book-text-card p.cyber-dialogue-orange {
    color: #ff8800 !important;
    text-shadow: 0 0 8px rgba(255, 136, 0, 0.25) !important;
}

.cyber-novel-container .book-text-card p.cyber-dialogue-red {
    color: #ff2200 !important;
    text-shadow: 0 0 8px rgba(255, 34, 0, 0.25) !important;
}

/* ==========================================================================
   КОНЕЦ ДОПОЛНИТЕЛЬНЫХ СТИЛЕЙ
   ========================================================================== */

/* ================================================================
   БЛОК 25: КНОПКА АККОРДЕОНА (СТИЛЬ КАК У НАВИГАЦИИ)
   ================================================================ */

/* Кнопка аккордеона — наследует стиль навигационных кнопок */
.cyber-novel-container .cyber-accordion-btn {
    display: block !important;
    width: 100% !important;
    max-width: 950px !important;
    margin: 0 auto !important;
    padding: 14px 20px !important;
    background: transparent !important;
    color: #00ff66 !important; /* fallback */
    color: var(--neon-green, #00ff66) !important;
    border: 1px solid rgba(0, 255, 102, 0.35) !important;
    border-radius: 6px !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4) !important;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.4s ease-in-out !important;
    text-align: center !important;
    box-sizing: border-box !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Ховер — голубое свечение */
.cyber-novel-container .cyber-accordion-btn:hover {
    color: #00F5FF !important;
    color: var(--neon-blue, #00F5FF) !important;
    border-color: #00F5FF !important;
    border-color: var(--neon-blue, #00F5FF) !important;
    background-color: rgba(0, 245, 255, 0.08) !important;
    text-shadow: 0 0 5px rgba(0, 245, 255, 0.95),
                 0 0 12px rgba(0, 245, 255, 0.5) !important;
    box-shadow: 0 0 25px rgba(0, 245, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Активное состояние (когда блок открыт) — зелёное с усилением */
.cyber-novel-container .cyber-accordion-btn.active {
    border-color: #00ff66 !important;
    border-color: var(--neon-green, #00ff66) !important;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.25) !important;
    background-color: rgba(0, 255, 102, 0.03) !important;
}

/* Блок контента аудита — по умолчанию скрыт */
.cyber-novel-container #audit-content-1,
.cyber-novel-container .audit-content {  /* можно использовать общий класс */
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-in-out,
                margin 0.3s ease !important;
    margin-top: 0 !important;
    padding: 0 !important; /* чтобы не было лишних отступов при закрытии */
}

/* Раскрытое состояние */
.cyber-novel-container #audit-content-1.open,
.cyber-novel-container .audit-content.open {
    max-height: 1200px !important;
    opacity: 1 !important;
    margin-top: 25px !important;
    padding: 0 !important; /* отступы внутри карточки уже есть */
}


/* ==========================================================================
   БЛОК 26: ИНЖЕНЕРНЫЙ АУДИТ — ПЛАВНОЕ РАСКРЫТИЕ
   ========================================================================== */

/* Блок аудита — скрыт по умолчанию, плавно появляется */
#audit-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease-in-out,
                margin 0.4s ease-in-out;
    margin-top: 0;
    padding: 0; /* чтобы не было лишних отступов в закрытом состоянии */
}

/* Открытое состояние — плавно выезжает */
#audit-content.open {
    max-height: 2000px; /* достаточно для любого текста */
    opacity: 1;
    margin-top: 25px;
}

/* Дополнительно: плавное изменение текста кнопки (опционально) */
#toggle-audit {
    transition: all 0.3s ease;
}
/* ================================================================
   КОНЕЦ ФАЙЛА — cyber-novel.css
   ================================================================ */