/* ========================================
           КИБЕРПАНК 2077 - ПОЛНАЯ ВЕРСИЯ СТИЛЕЙ
           Адаптивность: от 320px до 4K
           Исправлено: контрастность текста на всех устройствах
           ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Основные неоновые цвета */
    --neon-green: #0aff9e;
    --neon-cyan: #00f2ff;
    --neon-purple: #bc13fe;
    --neon-red: #ff3366;
    --neon-yellow: #ffd700;
    --neon-pink: #ff00cc;
    --neon-blue: #0066ff;
    
    /* Фоновые цвета - светлее для лучшей читаемости */
    --bg-deep: #050b15;
    --bg-card: #0f1825e6;
    --bg-dark: #0c1622;
    --bg-darker: #08101a;
    --bg-overlay: #0a1220cc;
    
    /* Цвета текста - явно заданы для контраста */
    --text-primary: #e0f5ff;
    --text-secondary: #b8d4f0;
    --text-muted: #8ab3d0;
    --text-accent: #0aff9e;
    --text-cyan: #00f2ff;
    
    /* Свечения */
    --glow-green: 0 0 12px rgba(10, 255, 158, 0.6), 0 0 4px #0aff9e;
    --glow-cyan: 0 0 12px rgba(0, 242, 255, 0.5);
    --glow-purple: 0 0 12px rgba(188, 19, 254, 0.5);
    --glow-red: 0 0 12px rgba(255, 51, 102, 0.5);
    
    /* Границы */
    --border-neon: 1px solid rgba(10, 255, 158, 0.6);
    --border-cyan: 1px solid rgba(0, 242, 255, 0.6);
    --border-purple: 1px solid rgba(188, 19, 254, 0.6);
    
    /* Шрифты */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', 'Consolas', monospace;
    --font-cyber: 'Orbitron', 'Share Tech Mono', var(--font-mono);
    
    /* Размеры */
    --container-padding: 2rem;
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 28px;
    --border-radius-xl: 40px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body {
    background: radial-gradient(ellipse at 20% 30%, #051020, #010208);
    font-family: var(--font-mono);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    position: relative;
}

/* Анимированный градиентный фон */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, rgba(0, 255, 100, 0.03) 0px, rgba(0, 255, 100, 0.03) 2px, transparent 2px, transparent 6px),
        radial-gradient(circle at 70% 80%, rgba(188, 19, 254, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: var(--bg-darker);
}

::-webkit-scrollbar-track {
    background: rgba(1, 10, 20, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-green);
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Выделение текста */
::selection {
    background: var(--neon-green);
    color: #010008;
    text-shadow: none;
}

::-moz-selection {
    background: var(--neon-green);
    color: #010008;
}

/* ========== КОНТЕЙНЕРЫ ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow-y: visible;
}

/* Адаптивные отступы контейнера */
@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.8rem;
    }
}

/* ========== КИБЕРПАНК ЗАГОЛОВОК ========== */
.cyber-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--neon-green);
    box-shadow: 0 10px 30px -10px rgba(10, 255, 158, 0.2);
    padding: 1.5rem 0;
    backdrop-filter: blur(4px);
    position: relative;
    animation: headerGlow 3s ease-in-out infinite;
    background: rgba(5, 15, 25, 0.5);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 0 10px 30px -10px rgba(10, 255, 158, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px -5px rgba(10, 255, 158, 0.4);
    }
}

.cyber-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-cyan), var(--neon-purple), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

h1 {
    font-size: clamp(1.7rem, 7vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0aff9e, #00f2ff, #bc13fe, #ff3366);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 12px #0aff9e);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px #0aff9e);
    }
    50% {
        filter: drop-shadow(0 0 20px #bc13fe);
    }
}

.sub {
    color: var(--neon-green);
    font-size: clamp(0.7rem, 3vw, 0.85rem);
    border: 1px solid var(--neon-green);
    display: inline-block;
    padding: 0.2rem 1rem;
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(10px);
    background: rgba(10, 255, 158, 0.15);
    transition: all var(--transition-normal);
}

.sub:hover {
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.glitch-text {
    animation: glitch 1.2s infinite;
    position: relative;
    display: inline-block;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: -1px 0 var(--neon-red), 1px 0 var(--neon-cyan);
        transform: skew(0deg);
    }
    25% {
        text-shadow: -2px 0 var(--neon-red), 2px 0 var(--neon-cyan);
        transform: skew(0.5deg);
    }
    50% {
        text-shadow: 1px 0 var(--neon-red), -1px 0 var(--neon-cyan);
        transform: skew(-0.5deg);
    }
}

/* ========== ПАНЕЛЬ ПОИСКА ========== */
.search-panel {
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--neon-green);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(10, 255, 158, 0.2);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.search-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 255, 158, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.search-panel:hover {
    box-shadow: 0 0 40px rgba(10, 255, 158, 0.4);
    border-color: var(--neon-cyan);
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.input-wrapper {
    flex: 3;
    min-width: 200px;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: #05121f;
    border: 1px solid var(--neon-green);
    padding: 1rem 1.2rem;
    border-radius: 48px;
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    font-weight: bold;
    outline: none;
    transition: all var(--transition-fast);
    letter-spacing: 1px;
}

.input-wrapper input:focus {
    box-shadow: 0 0 20px #0aff9e;
    border-color: #0aff9e;
    background: #06212f;
    transform: scale(1.01);
}

.input-wrapper input::placeholder {
    color: rgba(10, 255, 158, 0.5);
    font-weight: normal;
}

.button-container {
    text-align: center;
}

button {
    background: linear-gradient(95deg, #0aff9e, #00cc88);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 48px;
    font-weight: bold;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 3vw, 1rem);
    cursor: pointer;
    color: #021008;
    transition: all var(--transition-fast);
    box-shadow: 0 0 8px #0aff9e;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px #0aff9e;
    background: linear-gradient(95deg, #2affae, #00dd99);
}

button:active {
    transform: scale(0.98);
}

/* ========== КАРТОЧКА РЕЗУЛЬТАТА ========== */
.result-card {
    background: linear-gradient(145deg, rgba(12, 25, 40, 0.95), rgba(5, 12, 22, 0.98));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border-left: 6px solid var(--neon-green);
    border-top: 1px solid rgba(10, 255, 158, 0.5);
    padding: 1.5rem;
    margin-top: 1.8rem;
    animation: fadeSlideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), neonPulse 3s infinite alternate;
    box-shadow: 0 20px 35px -15px black;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
    color: var(--text-primary);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(10, 255, 158, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(10, 255, 158, 0.5);
    border-left-width: 8px;
}

.result-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(10, 255, 158, 0.05), transparent);
    animation: scan 4s linear infinite;
    pointer-events: none;
    border-radius: var(--border-radius-lg);
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 2px var(--neon-green);
        border-left-width: 6px;
    }
    100% {
        box-shadow: 0 0 25px var(--neon-green), 0 0 10px var(--neon-cyan);
        border-left-width: 8px;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ХЕДЕР КАРТОЧКИ ========== */
.code-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px dashed #2aff9e;
    padding-bottom: 0.8rem;
    position: relative;
}

.badge-code {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: 800;
    background: #071524cc;
    padding: 0.2rem 1rem;
    border-radius: 60px;
    font-family: monospace;
    border: 1px solid #0aff9e;
    text-shadow: 0 0 8px #0aff9e;
    animation: badgeGlow 2s ease-in-out infinite;
    color: var(--neon-green);
}

@keyframes badgeGlow {
    0%, 100% {
        text-shadow: 0 0 8px #0aff9e;
    }
    50% {
        text-shadow: 0 0 15px #0aff9e, 0 0 5px #00f2ff;
    }
}

.title-code {
    font-size: clamp(1rem, 4vw, 1.6rem);
    font-weight: bold;
    color: var(--text-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    word-break: break-word;
}

.category {
    background: rgba(10, 255, 158, 0.2);
    border-radius: 24px;
    padding: 0.2rem 0.9rem;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    border: 1px solid #0aff9e;
    transition: all var(--transition-fast);
    color: var(--neon-green);
}

.category:hover {
    background: rgba(10, 255, 158, 0.4);
    transform: scale(1.05);
}

/* ========== ДЕТАЛЬНЫЕ БЛОКИ ========== */
.detail-box {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--border-radius-md);
    border-left: 4px solid #00f2ff;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.detail-box:hover {
    background: rgba(0, 0, 0, 0.75);
    border-left-width: 6px;
    transform: translateX(5px);
}

.detail-box h4 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.detail-box h4::before {
    content: '▶';
    font-size: 0.7rem;
    animation: blink 1.5s step-end infinite;
    color: var(--neon-cyan);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.detail-box p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.detail-box li {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Битовая маска */
.bitmask-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.bit-chip {
    background: linear-gradient(135deg, #1e2a3f, #121d2f);
    border-radius: 30px;
    padding: 0.3rem 1rem;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    border: 1px solid #0aff9e;
    color: var(--neon-green);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.bit-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
    background: #2a3f55;
}

/* Решение */
.solution-steps {
    list-style: none;
    padding-left: 0;
}

.solution-steps li {
    margin-bottom: 0.6rem;
    padding-left: 1.8rem;
    position: relative;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.solution-steps li:hover {
    transform: translateX(5px);
    color: var(--neon-green);
}

.solution-steps li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    animation: stepGlow 1s ease-in-out infinite;
}

@keyframes stepGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Предупреждение */
.warning-note {
    background: linear-gradient(135deg, #0a0515f0, #0f0a1af0);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #ff3366;
    position: relative;
    overflow: hidden;
    color: #ffb3c6;
}

.warning-note::before {
    content: '⚠️';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 2rem;
    opacity: 0.2;
    animation: warningPulse 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* ========== ИНФОРМАЦИОННЫЕ СЕТКИ ========== */
.info-grids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-panel {
    background: rgba(8, 20, 32, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    border: 1px solid var(--neon-cyan);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: var(--text-secondary);
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent, rgba(0, 242, 255, 0.1), transparent);
    transition: top 0.5s ease;
}

.info-panel:hover::before {
    top: 100%;
}

.info-panel:hover {
    border-color: #0aff9e;
    box-shadow: 0 0 18px rgba(10, 255, 158, 0.3);
    transform: translateY(-3px);
}

.info-panel h3 {
    color: var(--neon-green);
    margin-bottom: 0.8rem;
    border-left: 4px solid #0aff9e;
    padding-left: 0.7rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    color: var(--text-secondary);
}

td {
    padding: 0.5rem;
    border-bottom: 1px solid #2a5a7a;
    text-align: left;
}

th {
    padding: 0.5rem;
    border-bottom: 1px solid #2a5a7a;
    text-align: left;
    color: var(--neon-cyan);
}

tr:hover {
    background: rgba(10, 255, 158, 0.1);
}

/* ========== ИСТОРИЯ ПОИСКА ========== */
.history-panel {
    background: rgba(8, 20, 32, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--neon-cyan);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.history-badge {
    background: #0a1622;
    border: 1px solid #0aff9e;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    color: var(--neon-green);
}

.history-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 255, 158, 0.3), transparent);
    transition: left 0.3s ease;
}

.history-badge:hover::before {
    left: 100%;
}

.history-badge:hover {
    background: #1a2a3a;
    box-shadow: 0 0 8px #0aff9e;
    transform: translateY(-2px);
}

.history-badge:active {
    transform: translateY(0);
}

/* ========== КНОПКИ ========== */
.copy-btn {
    background: rgba(10, 255, 158, 0.15);
    border: 1px solid var(--neon-green);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: clamp(0.65rem, 2vw, 0.7rem);
    box-shadow: none;
    transition: all var(--transition-fast);
    color: var(--neon-green);
}

.copy-btn:hover {
    background: var(--neon-green);
    color: #010008;
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

/* ========== РЕКОМЕНДАЦИИ (КОЛЛАПС) ========== */
.recommend-block {
    background: rgba(12, 22, 35, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--neon-green);
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}

.recommend-block:hover {
    box-shadow: var(--glow-green);
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all var(--transition-fast);
}

.collapsible-header:hover {
    transform: translateX(5px);
}

.collapsible-header h2 {
    color: var(--neon-green);
    margin: 0;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
    animation: iconPulse 1s ease-in-out infinite;
    color: var(--neon-green);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-content.open {
    max-height: 3000px;
    transition: max-height 0.7s ease-in-out;
}

.recommend-block ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.recommend-block ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.recommend-block li {
    margin: 0.5rem 0;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.recommend-block li:hover {
    transform: translateX(5px);
    color: var(--neon-green);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    background: linear-gradient(135deg, #0e1a2a, #050a14);
    border: 2px solid #0aff9e;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px rgba(10, 255, 158, 0.5);
    animation: modalContentSlide 0.3s ease;
    color: var(--text-primary);
}

@keyframes modalContentSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content textarea {
    background: #06121f;
    border: 1px solid #0aff9e;
    color: var(--neon-green);
    padding: 0.8rem;
    width: 100%;
    margin: 1rem 0;
    border-radius: var(--border-radius-md);
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.modal-content input {
    background: #06121f;
    border: 1px solid #0aff9e;
    color: var(--neon-green);
    padding: 0.8rem;
    width: 100%;
    margin: 1rem 0;
    border-radius: var(--border-radius-md);
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
}

.modal-content textarea:focus {
    outline: none;
    box-shadow: var(--glow-green);
    transform: scale(1.01);
}

.modal-content input:focus {
    outline: none;
    box-shadow: var(--glow-green);
    transform: scale(1.01);
}

.modal-content button {
    margin: 0.5rem;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ========== */
.section-card {
    background: rgba(8, 20, 32, 0.85);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-neon);
    transition: all var(--transition-normal);
    color: var(--text-secondary);
}

.section-card:hover {
    border-color: var(--neon-green);
    box-shadow: var(--glow-green);
}

.cyber-badge {
    display: inline-block;
    background: rgba(10, 255, 158, 0.2);
    border: 1px solid var(--neon-green);
    border-radius: 40px;
    padding: 0.2rem 1rem;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--neon-green);
}

.bit-value {
    color: var(--neon-green);
    font-weight: bold;
}

.glow-code {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.rule-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    border-left: 3px solid var(--neon-green);
    color: var(--text-secondary);
}

.neon-title {
    text-align: center;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius-xl);
    background: rgba(10, 255, 158, 0.08);
}

.status-led {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
    animation: ledPulse 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes ledPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.warning-tag {
    background: rgba(255, 51, 102, 0.2);
    border-left: 3px solid var(--neon-red);
    padding: 0.8rem;
    border-radius: var(--border-radius-sm);
    margin: 1rem 0;
    color: #ffa0b3;
}

hr {
    border-color: rgba(10, 255, 158, 0.3);
    margin: 1rem 0;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    font-size: clamp(0.6rem, 2.5vw, 0.7rem);
    border-top: 1px solid #0aff9e;
    color: var(--text-muted);
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .result-card::after {
        animation: none;
    }
    
    .info-panel::before {
        animation: none;
    }
    
    button::before {
        animation: none;
    }
    
    .search-panel::before {
        animation: none;
    }
    
    .result-card:hover {
        transform: translateY(-2px);
    }
    
    .cyber-header {
        margin-bottom: 1rem;
        padding: 1rem 0;
    }
    
    .search-panel {
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .input-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .input-wrapper input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    button {
        width: 100%;
        padding: 0.8rem;
    }
    
    .result-card {
        padding: 1rem;
        border-radius: var(--border-radius-md);
        border-left-width: 4px;
    }
    
    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .detail-box {
        padding: 0.7rem;
        margin: 0.7rem 0;
    }
    
    .detail-box:hover {
        transform: translateX(2px);
    }
    
    .info-grids {
        gap: 0.8rem;
    }
    
    .info-panel {
        padding: 0.8rem;
    }
    
    .recommend-block {
        padding: 1rem;
    }
    
    .history-panel {
        padding: 0.8rem;
        gap: 0.5rem;
    }
    
    .history-badge {
        padding: 0.25rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .copy-btn {
        padding: 0.25rem 0.7rem;
        font-size: 0.6rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .result-card {
        padding: 0.8rem;
    }
    
    .badge-code {
        font-size: 1rem;
        padding: 0.1rem 0.6rem;
    }
    
    .title-code {
        font-size: 0.9rem;
    }
    
    .detail-box {
        padding: 0.5rem;
    }
    
    .detail-box h4 {
        font-size: 0.85rem;
    }
    
    .bit-chip {
        padding: 0.15rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .solution-steps li {
        font-size: 0.75rem;
        padding-left: 1.2rem;
    }
}

/* Поддержка reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    *::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Пустой контейнер результата */
#resultContainer:empty {
    display: none;
}

#historyList {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

#popularCodes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.glow-text {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* ========== КИБЕРПАНК 2077 - УЛУЧШЕННЫЕ СТИЛИ ДЛЯ WARNING-NOTE ========== */

.warning-note {
    position: relative;
    background: linear-gradient(135deg, #0a0820f0 0%, #0f0c25f0 100%);
    border: 1px solid var(--neon-red);
    padding: 25px 30px;
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffccdd;
    font-family: 'Courier New', 'Fira Code', monospace;
    overflow: hidden;
    backdrop-filter: blur(2px);
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3), 0 0 20px rgba(255, 51, 102, 0.2), inset 0 0 20px rgba(255, 51, 102, 0.05);
    animation: warningNeonPulse 2s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Анимация пульсации неона */
@keyframes warningNeonPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 51, 102, 0.3), 0 0 20px rgba(255, 51, 102, 0.2), inset 0 0 20px rgba(255, 51, 102, 0.05);
        border-left-color: #ff3366;
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 51, 102, 0.6), 0 0 40px rgba(255, 51, 102, 0.4), inset 0 0 30px rgba(255, 51, 102, 0.1);
        border-left-color: #ff00aa;
    }
}

/* Анимированная неоновая граница слева */
.warning-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff3366, #ff00cc, #ff6699, #ff00cc, #ff3366);
    background-size: 100% 200%;
    animation: warningBorderGlow 3s linear infinite;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
}

@keyframes warningBorderGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 200%;
    }
}

/* Голографическая иконка предупреждения */
.warning-note::after {
    content: "⚠️";
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    opacity: 0.3;
    animation: warningHologramFlicker 1.5s steps(2) infinite;
    filter: drop-shadow(0 0 5px #ff3366);
    pointer-events: none;
}

@keyframes warningHologramFlicker {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
        filter: drop-shadow(0 0 5px #ff3366);
    }
    25% {
        opacity: 0.5;
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px #ff00cc);
    }
    75% {
        opacity: 0.2;
        transform: scale(0.95);
        filter: drop-shadow(0 0 2px #ff6699);
    }
}

/* Заголовок в киберпанк стиле */
.warning-note strong {
    color: #ff6699;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #ff3366, 0 0 10px #ff3366, 0 0 20px rgba(255, 51, 102, 0.5);
    animation: warningGlitchText 3s infinite;
    position: relative;
    display: inline-block;
}

@keyframes warningGlitchText {
    0%, 100% {
        text-shadow: 0 0 5px #ff3366, 0 0 10px #ff3366;
        transform: skew(0deg);
    }
    95% {
        text-shadow: 0 0 5px #ff3366, 0 0 10px #ff3366;
        transform: skew(0deg);
    }
    96% {
        text-shadow: -2px 0 red, 2px 0 #ff00cc;
        transform: skew(2deg);
    }
    97% {
        text-shadow: 2px 0 red, -2px 0 #ff00cc;
        transform: skew(-2deg);
    }
}

/* Кибер-список */
.warning-note ul {
    margin: 15px 0 15px 0 !important;
    padding: 0 0 0 20px !important;
    list-style-type: none !important;
    position: relative !important;
    text-align: left !important;
}

/* Анимированные элементы списка */
.warning-note li {
    margin: 12px 0 !important;
    line-height: 1.6 !important;
    color: #ffccdd !important;
    position: relative !important;
    padding-left: 25px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 0 2px rgba(255, 51, 102, 0.5) !important;
    text-align: left !important;
    list-style-type: none !important;
}

/* Кибер-маркеры с анимацией */
.warning-note li::before {
    content: "⚠️" !important;
    position: absolute !important;
    left: 0 !important;
    color: #ff6699 !important;
    font-size: 1rem !important;
    animation: warningCyberMarker 1s ease-in-out infinite !important;
    text-shadow: 0 0 5px #ff3366 !important;
}

@keyframes warningCyberMarker {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(3px);
        opacity: 0.7;
        color: #ff00aa;
    }
}

/* Эффект сканирования при наведении */
.warning-note li:hover {
    transform: translateX(8px) !important;
    color: #ff99aa !important;
    text-shadow: 0 0 8px #ff3366 !important;
}

.warning-note li:hover::before {
    content: "⚡" !important;
    color: #ffff00 !important;
    animation: warningLightning 0.5s ease !important;
}

@keyframes warningLightning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Анимированная сетка на фоне */
.warning-note .warning-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 51, 102, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 51, 102, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    animation: warningGridMove 20s linear infinite;
}

@keyframes warningGridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

/* Сканирующая линия */
.warning-note .warning-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 51, 102, 0.1) 50%, transparent 100%);
    animation: warningScan 4s linear infinite;
    pointer-events: none;
}

@keyframes warningScan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Мобильная адаптация КИБЕРПАНК */
@media (max-width: 768px) {
    .warning-note {
        padding: 18px 20px;
        margin: 15px 0;
    }
    
    .warning-note::before {
        width: 3px;
    }
    
    .warning-note::after {
        font-size: 28px;
        right: 15px;
        top: 15px;
        opacity: 0.2;
    }
    
    .warning-note strong {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
        display: block;
    }
    
    .warning-note ul {
        margin: 12px 0 12px 0 !important;
        padding-left: 18px !important;
    }
    
    .warning-note li {
        margin: 8px 0 !important;
        font-size: 0.8rem !important;
        padding-left: 22px !important;
    }
    
    .warning-note li::before {
        font-size: 0.9rem !important;
    }
    
    .warning-note li:hover {
        transform: translateX(5px) !important;
    }
}

@media (max-width: 480px) {
    .warning-note {
        padding: 15px 15px;
    }
    
    .warning-note::after {
        font-size: 20px;
        opacity: 0.15;
    }
    
    .warning-note strong {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .warning-note li {
        font-size: 0.7rem !important;
        margin: 6px 0 !important;
        padding-left: 20px !important;
    }
    
    .warning-note li::before {
        font-size: 0.8rem !important;
    }
    
    .warning-note ul {
        padding-left: 16px !important;
    }
}

/* Ландшафтная ориентация */
@media (max-width: 768px) and (orientation: landscape) {
    .warning-note ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .warning-note li {
        margin: 0 !important;
        padding-right: 10px;
        border-right: 1px solid rgba(255, 51, 102, 0.3);
    }
    
    .warning-note li:last-child {
        border-right: none;
    }
}

/* Анимированный текст "WARNING" в углу */
.warning-note .cyber-warning {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 8px;
    color: rgba(255, 51, 102, 0.3);
    font-family: monospace;
    letter-spacing: 2px;
    animation: warningBlink 2s step-end infinite;
}

@keyframes warningBlink {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
        color: #ff3366;
    }
}

/* Эффект глитча при загрузке */
.warning-note.glitch-effect {
    animation: warningGlitchLoad 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes warningGlitchLoad {
    0% {
        transform: skew(0deg);
        opacity: 0;
    }
    20% {
        transform: skew(2deg);
        opacity: 1;
    }
    40% {
        transform: skew(-2deg);
    }
    60% {
        transform: skew(1deg);
    }
    80% {
        transform: skew(-1deg);
    }
    100% {
        transform: skew(0deg);
    }
}

/* Стили для печати/PDF */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .result-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .search-panel {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .info-panel {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .warning-note {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .recommend-block {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .badge-code {
        color: black !important;
        text-shadow: none !important;
    }
    
    .title-code {
        color: black !important;
        text-shadow: none !important;
    }
    
    .detail-box h4 {
        color: black !important;
        text-shadow: none !important;
    }
    
    .category {
        color: black !important;
        text-shadow: none !important;
    }
    
    .cyber-header::after {
        animation: none;
        display: none;
    }
    
    .result-card::after {
        animation: none;
        display: none;
    }
    
    .search-panel::before {
        animation: none;
        display: none;
    }
    
    button {
        background: #f0f0f0;
        color: black;
        border: 1px solid #ccc;
    }
    
    .glitch-text {
        animation: none;
        text-shadow: none;
    }
    
    h1 {
        background: none;
        color: black;
        filter: none;
    }
}

/* ===== CYBERPUNK DSG DATABASE UI ===== */

body {
margin: 0;
padding: 0;
background: radial-gradient(circle at 20% 20%, #0a0f2a, #02030a);
font-family: "Segoe UI", Tahoma, sans-serif;
color: #00ffe1;
}

/* ===== INPUT ===== */
#codeInput {
width: 100%;
padding: 14px;
font-size: 18px;
background: #050816;
border: 1px solid #00ffe1;
color: #00ffe1;
border-radius: 8px;
outline: none;
box-shadow: 0 0 10px #00ffe155;
transition: 0.2s;
}

#codeInput:focus {
box-shadow: 0 0 20px #00ffe1;
border-color: #ff00ff;
}

/* ===== RESULT CARD ===== */
.result-card {
background: linear-gradient(145deg, #050816, #0b1235);
border: 1px solid #00ffe1;
border-radius: 12px;
padding: 20px;
margin-top: 20px;
box-shadow:
0 0 15px #00ffe155,
inset 0 0 10px #ff00ff22;
animation: glowCard 3s infinite alternate;
}

@keyframes glowCard {
from { box-shadow: 0 0 10px #00ffe144; }
to { box-shadow: 0 0 25px #ff00ff66; }
}

/* ===== HEADINGS ===== */
h3 {
color: #ff00ff;
text-shadow: 0 0 8px #ff00ff;
}

/* ===== QUICK LINKS ===== */
.quick-link {
cursor: pointer;
color: #00ffe1;
padding: 4px 8px;
border: 1px solid #00ffe1;
border-radius: 6px;
margin: 3px;
display: inline-block;
transition: 0.2s;
text-shadow: 0 0 5px #00ffe1;
}

.quick-link:hover {
background: #00ffe1;
color: #02030a;
box-shadow: 0 0 10px #00ffe1;
}

/* ===== BUTTON ===== */
button {
background: linear-gradient(90deg, #ff00ff, #00ffe1);
border: none;
padding: 12px 20px;
color: #02030a;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
margin-top: 10px;
transition: 0.2s;
}

button:hover {
transform: scale(1.05);
box-shadow: 0 0 15px #ff00ff;
}

/* ===== TABLE ===== */
table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}

td, th {
border: 1px solid #00ffe144;
padding: 8px;
}

th {
background: #0b1235;
color: #ff00ff;
}

/* ===== MOBILE ADAPTIVE ===== */
@media (max-width: 768px) {

body {
padding: 10px;
}

#codeInput {
font-size: 16px;
padding: 12px;
}

.result-card {
padding: 15px;
font-size: 14px;
}

h3 {
font-size: 18px;
}

.quick-link {
font-size: 14px;
padding: 3px 6px;
}

button {
width: 100%;
padding: 14px;
font-size: 16px;
}

table, td, th {
font-size: 12px;
}
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {

h3 {
font-size: 16px;
}

.result-card {
padding: 12px;
}

table {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}::selection {
background: #ff00ff;
color: #000;
}

hr {
border: none;
border-top: 1px solid #00ffe1;
box-shadow: 0 0 5px #00ffe1;
} 

/* ========== ГАЛЕРЕЯ ========== */
.cyber-gallery {
    margin: 50px 0;
}

.gallery-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ff, #f0f, #0ff, transparent);
}

.title-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 10px #0ff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.gallery-item {
    margin: 0;
    position: relative;
}

.image-frame {
    position: relative;
    border: 2px solid #0ff;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    transition: all 0.3s;
}

.image-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px #0ff, 0 0 60px #f0f;
    border-color: #f0f;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s;
}

.image-frame:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,0,255,0.1) 0%, transparent 50%, rgba(0,255,255,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0,0,0,0.7);
    color: #0ff;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 2px;
    border-top: 1px solid #0ff;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 2;
}

.image-frame:hover .image-caption {
    transform: translateY(0);
}

/* Угловые украшения */
.corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f0f;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-frame:hover .corner-decoration {
    opacity: 1;
}

.tl { top: 5px; left: 5px; border-right: none; border-bottom: none; }
.tr { top: 5px; right: 5px; border-left: none; border-bottom: none; }
.bl { bottom: 5px; left: 5px; border-right: none; border-top: none; }
.br { bottom: 5px; right: 5px; border-left: none; border-top: none; }

/* Timestamp */
.cyber-timestamp {
    text-align: center;
    margin-top: 40px;
    padding: 10px;
    border-top: 1px dashed #0ff;
    border-bottom: 1px dashed #f0f;
}

.timestamp-label {
    color: #f0f;
    font-weight: bold;
    margin-right: 10px;
}

.timestamp-value {
    color: #0ff;
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; text-shadow: 0 0 20px #0ff; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .phone-number {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cyber-text {
        font-size: 1rem;
    }
}

/* Цифровой дождь (фон) */
.digital-rain-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.digit {
position: absolute;
top: -20px;
color: #00f3ff;
font-family: monospace;
font-weight: bold;
user-select: none;
animation: fall linear infinite;
opacity: 0.2;
}
@keyframes fall {
to { transform: translateY(100vh); }
}






/* КИБЕРПАНК-ФОН С СЕТКОЙ И ГЛИТЧАМИ */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(#00ffff08 1px, transparent 1px),
                linear-gradient(90deg, #ff00ff08 1px, transparent 1px);
            background-size: 30px 30px;
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(0deg, rgba(0,255,255,0.02) 0px, rgba(255,0,255,0.02) 2px, transparent 2px, transparent 8px);
            pointer-events: none;
            z-index: 0;
        }

        /* ГЛАВНЫЙ КОНТЕЙНЕР */
        .cyber-container {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
            animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        /* НЕОНОВЫЙ ЗАГОЛОВОК */
        .neon-header {
            text-align: center;
            margin-bottom: 2.5rem;
            border-bottom: 2px solid #0ff;
            box-shadow: 0 8px 20px -10px #0ff3;
            padding-bottom: 1rem;
        }

        h1 {
            font-family: 'Orbitron', monospace;
            font-weight: 900;
            font-size: clamp(1.6rem, 8vw, 3rem);
            letter-spacing: 4px;
            background: linear-gradient(135deg, #0ff, #f0f, #ff44cc);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 8px #0ff8, 0 0 15px #f0f6;
            animation: glitch 3s infinite;
        }

        .sub {
            font-family: 'Share Tech Mono', monospace;
            color: #0fa;
            text-shadow: 0 0 3px #0fa;
            font-size: 0.9rem;
            word-break: break-word;
        }

        /* ТАБЛИЦА — АДАПТИВНЫЙ КИБЕРПАНК-ДИЗАЙН */
        .cyber-table-wrapper {
            background: rgba(0, 10, 20, 0.65);
            backdrop-filter: blur(8px);
            border-radius: 2rem;
            border: 1px solid #0ffa;
            box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
            overflow-x: auto;
            transition: all 0.3s;
        }

        .cyber-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-family: 'Share Tech Mono', monospace;
            font-size: 0.85rem;
            min-width: 680px;
        }

        /* ЗАГОЛОВКИ ТАБЛИЦЫ */
        .cyber-table th {
            font-family: 'Orbitron', monospace;
            font-weight: 700;
            font-size: 0.85rem;
            letter-spacing: 1px;
            padding: 1rem 0.8rem;
            background: #0a111fe0;
            border-bottom: 3px solid #0ff;
            color: #0ff;
            text-shadow: 0 0 2px #0ff;
            text-transform: uppercase;
            position: relative;
        }

        .cyber-table td {
            padding: 0.9rem 0.7rem;
            border-bottom: 1px solid #2affff30;
            color: #caf0ff;
            transition: all 0.2s;
            vertical-align: top;
            word-break: break-word;
        }

        /* АНИМАЦИЯ СТРОК */
        .cyber-table tr {
            transition: 0.15s linear;
        }

        .cyber-table tbody tr:hover {
            background: #0ff1a;
            box-shadow: 0 0 12px #0ff5;
            cursor: default;
            transform: scale(1.002);
        }

        /* СТИЛИ ДЛЯ КОДА */
        .code-badge {
            display: inline-block;
            background: #000000aa;
            border-left: 4px solid #0ff;
            padding: 0.2rem 0.6rem;
            font-weight: bold;
            font-size: 1.1rem;
            color: #0ff;
            font-family: monospace;
            border-radius: 0 12px 12px 0;
            box-shadow: 0 0 6px cyan;
        }

        /* РЕШЕНИЕ — НЕОНОВЫЙ БЛОК */
        .solution {
            background: #0a0f1fcc;
            border-radius: 1rem;
            padding: 0.3rem 0.7rem;
            font-size: 0.8rem;
            border: 0.5px solid #ff44cc80;
            color: #ffb3ff;
            display: inline-block;
            backdrop-filter: blur(2px);
        }

        /* АДАПТИВНЫЕ ПРАВИЛА ДЛЯ МОБИЛЬНЫХ */
        @media (max-width: 760px) {
            body {
                padding: 0.8rem;
            }
            .cyber-table th, .cyber-table td {
                padding: 0.7rem 0.4rem;
                font-size: 0.7rem;
            }
            .cyber-table th {
                font-size: 0.7rem;
            }
            .code-badge {
                font-size: 0.9rem;
                padding: 0.1rem 0.4rem;
            }
            .solution {
                font-size: 0.7rem;
            }
        }

        @media (max-width: 550px) {
            .cyber-table th, .cyber-table td {
                padding: 0.6rem 0.3rem;
                font-size: 0.65rem;
            }
            .cyber-table {
                min-width: 550px;
            }
        }

        /* СТИЛИ ДЛЯ ПЕРВОЙ КОЛОНКИ */
        .cyber-table td:first-child, .cyber-table th:first-child {
            border-left: 2px solid #0ff;
            font-weight: bold;
        }

        /* АНИМАЦИИ */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
                filter: blur(5px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
                filter: blur(0);
            }
        }

        @keyframes glitch {
            0%, 100% { text-shadow: 0 0 5px #0ff, 0 0 10px #f0f; }
            95% { text-shadow: -2px 0 #f0f, 2px 0 #0ff; }
            96% { text-shadow: 2px 0 #f0f, -2px 0 #0ff; }
        }

        /* СТАТУС БАР С БЕГУЩЕЙ СТРОКОЙ */
        .status-bar {
            margin-top: 2rem;
            background: #00000099;
            border-radius: 2rem;
            padding: 0.6rem;
            text-align: center;
            border-top: 1px solid #0ff;
            font-size: 0.7rem;
            font-family: monospace;
            backdrop-filter: blur(4px);
            animation: pulseText 2s infinite;
        }

        @keyframes pulseText {
            0% { opacity: 0.6; text-shadow: 0 0 0px cyan; }
            100% { opacity: 1; text-shadow: 0 0 4px cyan; }
        }

        /* СТИЛЬ СКРОЛЛБАРА */
        .cyber-table-wrapper::-webkit-scrollbar {
            height: 8px;
            background: #0a0f1e;
        }
        .cyber-table-wrapper::-webkit-scrollbar-thumb {
            background: #0ff;
            border-radius: 10px;
            box-shadow: inset 0 0 6px #000;
        }

        footer {
            text-align: center;
            margin-top: 2rem;
            font-size: 0.7rem;
            color: #0ff9;
        }